$PBExportHeader$w_pdb_date.srw forward global type w_pdb_date from w_publ_base end type type cb_1 from uo_imflatbutton within w_pdb_date end type type st_1 from statictext within w_pdb_date end type type em_3 from editmask within w_pdb_date end type type cbx_noallocqty from checkbox within w_pdb_date end type end forward global type w_pdb_date from w_publ_base integer width = 1257 integer height = 612 string title = "日期" boolean minbox = false windowtype windowtype = response! cb_1 cb_1 st_1 st_1 em_3 em_3 cbx_noallocqty cbx_noallocqty end type global w_pdb_date w_pdb_date type variables string rst_pdb s_edit_index_tran s_tran_re end variables on w_pdb_date.create int iCurrent call super::create this.cb_1=create cb_1 this.st_1=create st_1 this.em_3=create em_3 this.cbx_noallocqty=create cbx_noallocqty iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.cb_1 this.Control[iCurrent+2]=this.st_1 this.Control[iCurrent+3]=this.em_3 this.Control[iCurrent+4]=this.cbx_noallocqty end on on w_pdb_date.destroy call super::destroy destroy(this.cb_1) destroy(this.st_1) destroy(this.em_3) destroy(this.cbx_noallocqty) end on event open;call super::open;String ls_title ls_title = Message.StringParm THIS.Title = ls_title st_1.Text = ls_title rst_pdb = '' end event event close;call super::close;CloseWithReturn(THIS,s_tran_re) end event type cb_func from w_publ_base`cb_func within w_pdb_date boolean visible = false integer x = 1115 integer y = 4 integer width = 114 boolean enabled = false end type type cb_exit from w_publ_base`cb_exit within w_pdb_date integer x = 626 integer y = 344 string text = "取消" end type event cb_exit::clicked;rst_pdb = '' Close(PARENT) end event type cb_1 from uo_imflatbutton within w_pdb_date integer x = 219 integer y = 344 integer width = 311 integer height = 96 integer taborder = 30 boolean bringtotop = true string normalpicname = "ok.bmp" end type event clicked;call super::clicked;s_tran_re.b_string = em_3.Text IF cbx_noallocqty.Checked THEN s_tran_re.b_long = 1 ELSE s_tran_re.b_long = 0 END IF Close(PARENT) end event type st_1 from statictext within w_pdb_date integer x = 169 integer y = 136 integer width = 256 integer height = 48 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 134217739 string text = "日期" alignment alignment = right! boolean focusrectangle = false end type type em_3 from editmask within w_pdb_date integer x = 443 integer y = 120 integer width = 430 integer height = 88 integer taborder = 10 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 string text = "none" alignment alignment = center! borderstyle borderstyle = stylelowered! maskdatatype maskdatatype = datetimemask! string mask = "yyyy-mm-dd" boolean spin = true end type event rbuttondown;s_calender_arg s_calender s_calender.PointerX = THIS.PointerX() s_calender.PointerY = THIS.PointerY() s_calender.X = THIS.X s_calender.Y = THIS.Y OpenWithParm(w_calendar,s_calender) THIS.Text = String(id_date_selected) end event event constructor;THIS.Text = String(Today(),'yyyy-mm-dd') end event type cbx_noallocqty from checkbox within w_pdb_date boolean visible = false integer x = 357 integer y = 252 integer width = 411 integer height = 60 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" long textcolor = 33554432 long backcolor = 134217739 string text = "不考虑零库存" end type