123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- $PBExportHeader$w_mtrldef_edit_price_updatebill_2.srw
- forward
- global type w_mtrldef_edit_price_updatebill_2 from w_publ_base
- end type
- type st_1 from statictext within w_mtrldef_edit_price_updatebill_2
- end type
- type cb_1 from uo_imflatbutton within w_mtrldef_edit_price_updatebill_2
- end type
- type mle_1 from multilineedit within w_mtrldef_edit_price_updatebill_2
- end type
- type ddlb_1 from uo_ddlb_storageid within w_mtrldef_edit_price_updatebill_2
- end type
- type cbx_mtrlorigin_0 from checkbox within w_mtrldef_edit_price_updatebill_2
- end type
- type cbx_mtrlorigin_3 from checkbox within w_mtrldef_edit_price_updatebill_2
- end type
- type cbx_mtrlorigin_2 from checkbox within w_mtrldef_edit_price_updatebill_2
- end type
- end forward
- global type w_mtrldef_edit_price_updatebill_2 from w_publ_base
- integer width = 1376
- integer height = 1016
- string title = "更新计划价"
- boolean minbox = false
- windowtype windowtype = response!
- st_1 st_1
- cb_1 cb_1
- mle_1 mle_1
- ddlb_1 ddlb_1
- cbx_mtrlorigin_0 cbx_mtrlorigin_0
- cbx_mtrlorigin_3 cbx_mtrlorigin_3
- cbx_mtrlorigin_2 cbx_mtrlorigin_2
- end type
- global w_mtrldef_edit_price_updatebill_2 w_mtrldef_edit_price_updatebill_2
- type variables
- Long cur_storageid = 0
- s_edit_index_tran s_rslt
- end variables
- on w_mtrldef_edit_price_updatebill_2.create
- int iCurrent
- call super::create
- this.st_1=create st_1
- this.cb_1=create cb_1
- this.mle_1=create mle_1
- this.ddlb_1=create ddlb_1
- this.cbx_mtrlorigin_0=create cbx_mtrlorigin_0
- this.cbx_mtrlorigin_3=create cbx_mtrlorigin_3
- this.cbx_mtrlorigin_2=create cbx_mtrlorigin_2
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.st_1
- this.Control[iCurrent+2]=this.cb_1
- this.Control[iCurrent+3]=this.mle_1
- this.Control[iCurrent+4]=this.ddlb_1
- this.Control[iCurrent+5]=this.cbx_mtrlorigin_0
- this.Control[iCurrent+6]=this.cbx_mtrlorigin_3
- this.Control[iCurrent+7]=this.cbx_mtrlorigin_2
- end on
- on w_mtrldef_edit_price_updatebill_2.destroy
- call super::destroy
- destroy(this.st_1)
- destroy(this.cb_1)
- destroy(this.mle_1)
- destroy(this.ddlb_1)
- destroy(this.cbx_mtrlorigin_0)
- destroy(this.cbx_mtrlorigin_3)
- destroy(this.cbx_mtrlorigin_2)
- end on
- event close;call super::close;Int li_flag
- IF cbx_mtrlorigin_0.Checked THEN
- li_flag = 1
- ELSE
- li_flag = 0
- END IF
- f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_0",String(li_flag))
- IF cbx_mtrlorigin_3.Checked THEN
- li_flag = 1
- ELSE
- li_flag = 0
- END IF
- f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_3",String(li_flag))
- IF cbx_mtrlorigin_2.Checked THEN
- li_flag = 1
- ELSE
- li_flag = 0
- END IF
- f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_2",String(li_flag))
- CloseWithReturn(This,s_rslt)
- end event
- event ue_before_open;call super::ue_before_open;Int li_flag
- li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_0",'1'))
- cbx_mtrlorigin_0.Checked = li_flag = 1
- li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_3",'0'))
- cbx_mtrlorigin_3.Checked = li_flag = 1
- li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_2",'0'))
- cbx_mtrlorigin_2.Checked = li_flag = 1
- end event
- type cb_func from w_publ_base`cb_func within w_mtrldef_edit_price_updatebill_2
- boolean visible = false
- integer x = 809
- boolean enabled = false
- end type
- type cb_exit from w_publ_base`cb_exit within w_mtrldef_edit_price_updatebill_2
- integer x = 805
- integer y = 724
- string text = "取消"
- end type
- event cb_exit::clicked;s_rslt.b_long = 0
- close(parent)
- end event
- type st_1 from statictext within w_mtrldef_edit_price_updatebill_2
- integer x = 183
- integer y = 628
- integer width = 137
- 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 = "仓库"
- boolean focusrectangle = false
- end type
- type cb_1 from uo_imflatbutton within w_mtrldef_edit_price_updatebill_2
- integer x = 334
- integer y = 724
- integer width = 311
- integer height = 96
- integer taborder = 20
- boolean bringtotop = true
- end type
- event clicked;call super::clicked;Boolean lb_flag = False
- s_rslt.b_long = cur_storageid
- IF cbx_mtrlorigin_0.Checked THEN
- s_rslt.c_long = 1
- lb_flag = True
- ELSE
- s_rslt.c_long = 0
- END IF
- IF cbx_mtrlorigin_3.Checked THEN
- s_rslt.d_long = 1
- lb_flag = True
- ELSE
- s_rslt.d_long = 0
- END IF
- IF cbx_mtrlorigin_2.Checked THEN
- s_rslt.e_long = 1
- lb_flag = True
- ELSE
- s_rslt.e_long = 0
- END IF
- IF Not lb_flag THEN
- MessageBox('','必须最少选择一种物料类型')
- RETURN
- END IF
- Close(Parent)
- end event
- type mle_1 from multilineedit within w_mtrldef_edit_price_updatebill_2
- integer x = 18
- integer y = 16
- integer width = 1330
- integer height = 372
- integer taborder = 10
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 255
- long backcolor = 16777215
- string text = " 注意:此功能将会按勾选的类别的物料计划价【>0】更新所选仓库未结存的进仓单成本价,出仓单成本价,库存成本价、库存金额,结存表本期的期初、期间进、期间出、结余金额; 确定操作后,结存表的期初金额将有可能与上月的结余金额不相符,数据将不能恢复,请使用前做好备份工作,谨慎使用!"
- boolean border = false
- boolean displayonly = true
- end type
- type ddlb_1 from uo_ddlb_storageid within w_mtrldef_edit_price_updatebill_2
- integer x = 306
- integer y = 616
- integer width = 873
- integer taborder = 20
- boolean bringtotop = true
- end type
- event selectionchanged;call super::selectionchanged;cur_storageid = uo_storageid
- end event
- event constructor;call super::constructor;cur_storageid = uo_storageid
- end event
- type cbx_mtrlorigin_0 from checkbox within w_mtrldef_edit_price_updatebill_2
- integer x = 142
- integer y = 492
- integer width = 238
- 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 = "自制"
- boolean checked = true
- end type
- type cbx_mtrlorigin_3 from checkbox within w_mtrldef_edit_price_updatebill_2
- integer x = 567
- integer y = 496
- integer width = 238
- 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
- type cbx_mtrlorigin_2 from checkbox within w_mtrldef_edit_price_updatebill_2
- integer x = 983
- integer y = 496
- integer width = 238
- 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
|