123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926 |
- $PBExportHeader$w_rp_order_ml.srw
- forward
- global type w_rp_order_ml from w_publ_easyq
- end type
- type ddlb_scid from uo_ddlb_scid within w_rp_order_ml
- end type
- type st_5 from statictext within w_rp_order_ml
- end type
- type ddlb_salestatus from dropdownlistbox within w_rp_order_ml
- end type
- type st_6 from statictext within w_rp_order_ml
- end type
- type ddlb_status from dropdownlistbox within w_rp_order_ml
- end type
- type st_7 from statictext within w_rp_order_ml
- end type
- type ddlb_2 from dropdownlistbox within w_rp_order_ml
- end type
- type st_1 from statictext within w_rp_order_ml
- end type
- type ddlb_1 from dropdownlistbox within w_rp_order_ml
- end type
- type mle_1 from multilineedit within w_rp_order_ml
- end type
- type cb_3 from commandbutton within w_rp_order_ml
- end type
- type dw_ex from datawindow within w_rp_order_ml
- end type
- end forward
- global type w_rp_order_ml from w_publ_easyq
- string title = "销售订单物料运算统计表"
- ddlb_scid ddlb_scid
- st_5 st_5
- ddlb_salestatus ddlb_salestatus
- st_6 st_6
- ddlb_status ddlb_status
- st_7 st_7
- ddlb_2 ddlb_2
- st_1 st_1
- ddlb_1 ddlb_1
- mle_1 mle_1
- cb_3 cb_3
- dw_ex dw_ex
- end type
- global w_rp_order_ml w_rp_order_ml
- type variables
- long cur_scid_arr[]
- Long cur_flag = -1 //-1:全部,0仓库未审,1仓库已审核
- Long cur_secflag = -1 //-1:全部,0财务未审
- long cur_priceflag= -1 //-1:全部,0未确认
- Int cur_status
- int cur_salestatus = 1
- Int cur_scllflag = -1,cur_scllsecflag = -1
- long ins_proid[]
- long ins_row
- end variables
- forward prototypes
- public subroutine wf_hidecol ()
- public subroutine wf_pro ()
- public subroutine wf_insert ()
- end prototypes
- public subroutine wf_hidecol ();s_hide_col s_col1,s_col2,s_col3,s_null
- s_col1.col_1 = 'u_outwaremx_costamt'
- f_hide_col(490,dw_1,s_col1)
- s_col2.col_1 = 'gfamt'
- f_hide_col(843,dw_1,s_col2)
- s_col3.col_1 = 'u_outwaremx_enprice'
- s_col3.col_2 = 'enamt'
- s_col3.col_3 = 'fprice'
- s_col3.col_4 = 'famt'
- s_col3.col_5 = 'rebate'
- s_col3.col_6 = 'u_outwaremx_dftsaleprice'
- s_col3.col_7 = 'u_outwaremx_price'
- s_col3.col_8 = 'u_outwaremx_ware_fprice'
- s_col3.col_9 = 'ware_amt'
- f_hide_col(122,dw_1,s_col3)
- s_col3 = s_null
- s_col3.col_1 = 'famt_norebate'
- s_col3.col_2 = 'famt_rebate'
- f_hide_col(122,dw_1,s_col3)
- s_hide_col s_col_mtrlsectype
- s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
- f_hide_col(1308,dw_1,s_col_mtrlsectype)
- s_hide_col s_col_zxmtrlmode
- s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
- f_hide_col(1309,dw_1,s_col_zxmtrlmode)
- end subroutine
- public subroutine wf_pro ();long i,j,ll_cnt,proid[]
- string ls_s,name[]
- string ls_s1
- dw_1.SetRedraw(False)
- datastore ds
- ds = Create datastore
- ds.DataObject = "ddc_pro"
- ds.SetTransObject(sqlca)
- ll_cnt = ds.Retrieve()
- if ll_cnt>50 then ll_cnt=50
- ins_row = ll_cnt
- for i=1 to ll_cnt
- proid[i]=long(ds.object.proid[i])
- ins_proid[i] = proid[i]
- name[i]=ds.object.name[i]
- next
- //format="#,##0.##~tIF(SPT1=0,'#','#,##0.##')"
- for j= 1 to ll_cnt
- ls_s="plan" + string(j)
- dw_1.Modify(ls_s + '.Visible = 1')
- dw_1.modify(ls_s+".format=~"#,##0.##~~tIF("+ls_s+"=0,'#','#,##0.##')~"")
-
- ls_s1 = "item"+string(j)
- dw_1.Modify(ls_s1 + '.Visible = 1')
- dw_1.modify(ls_s1+".format=~"#,##0.##~~tIF("+ls_s1+"=0,'#','#,##0.##')~"")
-
- ls_s1 = "pro"+string(j)
- dw_1.Modify(ls_s1 + '.Visible = 1')
- dw_1.modify(ls_s1+".format=~"#,##0.##~~tIF("+ls_s1+"=0,'#','#,##0.##')~"")
- next
- string ls_modify
- for j= ll_cnt + 1 to 50
- ls_modify=''
- ls_s="plan" + string(j)
- dw_1.Modify(ls_s + '.Visible = 0')
- ls_modify = ls_modify + "destroy " + ls_s + '_t ~n ' + ls_s + '.visible=0 ~n '
- dw_1.Modify(ls_modify)
-
- ls_modify=''
- ls_s="item" + string(j)
- dw_1.Modify(ls_s + '.Visible = 0')
- ls_modify = ls_modify + "destroy " + ls_s + '_t ~n ' + ls_s + '.visible=0 ~n '
- dw_1.Modify(ls_modify)
-
- ls_modify=''
- ls_s="pro" + string(j)
- dw_1.Modify(ls_s + '.Visible = 0')
- ls_modify = ls_modify + "destroy " + ls_s + '_t ~n ' + ls_s + '.visible=0 ~n '
- dw_1.Modify(ls_modify)
-
- next
-
- // for j =1 to 50
- // ls_modify=''
- // ls_s="item" + string(j)
- // dw_1.Modify(ls_s + '.Visible = 0')
- // ls_modify = ls_modify + "destroy " + ls_s + '_t ~n ' + ls_s + '.visible=0 ~n '
- // dw_1.Modify(ls_modify)
- // next
-
-
- //设置标题
- string ls_temp=''
- string ls_long=''
-
- for j=1 to ll_cnt
- ls_long=string(long(len( name[j]) / 4) * 400 )
- if long(ls_long)<400 then ls_long='400'
- ls_temp='plan' + string(j)
- dw_1.Modify(ls_temp + '.width = ' + ls_long)
- dw_1.Modify(ls_temp +"_t.text = '" + name[j]+'~r计划数 '+ "'")
-
- ls_long=string(long(len( name[j]) / 4) * 400 )
- if long(ls_long)<400 then ls_long='400'
- ls_temp='item' + string(j)
- dw_1.Modify(ls_temp + '.width = ' + ls_long)
- dw_1.Modify(ls_temp +"_t.text = '" /*+ name[j]*/+'~r已确认完成数 '+ "'")
- ls_long=string(long(len( name[j]) / 4) * 400 )
- if long(ls_long)<400 then ls_long='400'
- ls_temp='pro' + string(j)
- dw_1.Modify(ls_temp + '.width = ' + ls_long)
- dw_1.Modify(ls_temp +"_t.text = '" /*+ name[j]*/+'~r未确认完成数 '+ "'")
- next
-
- FOR i=1 TO 1000
- dw_1.SetTabOrder (i, 0)
- NEXT
-
-
-
- wf_insert()
-
-
-
-
-
-
-
-
-
-
- //datastore dsss
- //dsss = Create datastore
- //dsss.DataObject = "ddd_rp_cb2"
- //dsss.SetTransObject(sqlca)
- //ll_cnt = dsss.Retrieve()
- //
- ////
- ////
- // wf_insert_cb2(0,dsss)//插入数据
- //
- // if cbx_addson.checked=true then//汇总子工程到总工程
- // llk_cnt=0
- // llk_sonbillid=llk_sonbillid_temp
- // wf_maketree(cur_projectid)
- // for j=1 to upperbound(llk_sonbillid)
- // update u_parm_pay set arg_projectid =:llk_sonbillid[j] where id=199;
- // commit;
- // ll_cnt =dsss.Retrieve()
- // //messagebox('sss',string(ll_cnt))
- // wf_insert_cb2(0,dsss)//插入数据
- // next
- // update u_parm_pay set arg_projectid =:cur_projectid where id=199;
- // commit;
- // end if
- ////
- ////
- //
- //
- //
- //
- // for i=0 to 99
- //
- // if dec(dw_1.Describe("Evaluate('compute_" + string(i) + "',0)"))=0 then
- // ls_s="item" + string(i + 1)
- // dw_1.Modify(ls_s + '.Visible = 0')
- // end if
- //next
- //
- //
- // dw_1.sort()
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- dw_1.SetRedraw(true)
- end subroutine
- public subroutine wf_insert ();Long i,j,z
- Long ll_mtrlid,CNT,ll_row,ll_cnt
- string tp_name,tp_name1,tp_name2
- long tp_mtrlid,tp_taskid,tp_printid,tp_proid
- string ls_dt,ls,ls_month,ls_cust
- IF dw_1.RowCount() <= 0 THEN RETURN
- IF dw_EX.RowCount() <= 0 THEN RETURN
- CNT = dw_EX.RowCount()
- //FOR i = 1 To dw_1.RowCount()
- // ll_mtrlid = dw_1.Object.mtrlid[i]
- //NEXT
- //
- // FOR i =1 TO dw_1.RowCount()
- // ll_mtrlid = dw_1.object.mtrlid[i]
- // for j =1 to 12
- // tp_name = 'spt'+String(j)
- // ls_cust = ins_sptid[]
- // ls = "dt="+ls_month+' and '+"mtrlid="+string(ll_mtrlid)
- // //messagebox("",ls)
- // dw_2.setfilter(ls)
- // dw_2.filter()
- // ld_a2 = 0
- // ld_avr= 0
- // IF dw_2.rowcount() = 1 then
- // ld_a2 = dw_2.object.a2[1]
- // ld_avr = dw_2.object.avr[1]
- // //messagebox("",ld_avr)
- // end if
- // dw_1.setitem(i,tp_name,ld_a2)
- // dw_1.setitem(i,tp_name1,ld_avr)
- // next
- // NEXT
- IF CNT <= 0 THEN RETURN
- FOR z = 1 To dw_1.RowCount()
- tp_mtrlid = dw_1.Object.mtrlid[z]
- tp_taskid= dw_1.Object.taskid[z]
- tp_printid = dw_1.Object.printid[z]
- FOR i = 1 To ins_row
- tp_proid = ins_proid[i]
- tp_name = 'plan'+String(i)
- tp_name1 = 'item'+String(i)
- tp_name2 = 'pro'+String(i)
- FOR j = 1 To cnt
- IF tp_mtrlid = dw_ex.Object.mtrlid[j] and tp_mtrlid = dw_ex.object.taskid[j] and tp_printid= dw_ex.object.printid[j] and tp_proid = dw_ex.object.proid[j] THEN
- IF Z =1 THEN
- dw_1.setitem(z,tp_name,dw_ex.Object.proqty[j])
- dw_1.setitem(z,tp_name1,dw_ex.Object.fqty[j])
- dw_1.setitem(z,tp_name2,dw_ex.Object.notfqty[j])
- ELSEIF tp_mtrlid = dw_1.Object.mtrlid[z - 1] and tp_taskid = dw_1.object.taskid[z - 1] and tp_printid= dw_1.object.printid[z - 1] then
- ELSE
- dw_1.setitem(z,tp_name,dw_ex.Object.proqty[j])
- dw_1.setitem(z,tp_name1,dw_ex.Object.fqty[j])
- dw_1.setitem(z,tp_name2,dw_ex.Object.notfqty[j])
- END IF
-
- END IF
- NEXT
- NEXT
- NEXT
- end subroutine
- on w_rp_order_ml.create
- int iCurrent
- call super::create
- this.ddlb_scid=create ddlb_scid
- this.st_5=create st_5
- this.ddlb_salestatus=create ddlb_salestatus
- this.st_6=create st_6
- this.ddlb_status=create ddlb_status
- this.st_7=create st_7
- this.ddlb_2=create ddlb_2
- this.st_1=create st_1
- this.ddlb_1=create ddlb_1
- this.mle_1=create mle_1
- this.cb_3=create cb_3
- this.dw_ex=create dw_ex
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.ddlb_scid
- this.Control[iCurrent+2]=this.st_5
- this.Control[iCurrent+3]=this.ddlb_salestatus
- this.Control[iCurrent+4]=this.st_6
- this.Control[iCurrent+5]=this.ddlb_status
- this.Control[iCurrent+6]=this.st_7
- this.Control[iCurrent+7]=this.ddlb_2
- this.Control[iCurrent+8]=this.st_1
- this.Control[iCurrent+9]=this.ddlb_1
- this.Control[iCurrent+10]=this.mle_1
- this.Control[iCurrent+11]=this.cb_3
- this.Control[iCurrent+12]=this.dw_ex
- end on
- on w_rp_order_ml.destroy
- call super::destroy
- destroy(this.ddlb_scid)
- destroy(this.st_5)
- destroy(this.ddlb_salestatus)
- destroy(this.st_6)
- destroy(this.ddlb_status)
- destroy(this.st_7)
- destroy(this.ddlb_2)
- destroy(this.st_1)
- destroy(this.ddlb_1)
- destroy(this.mle_1)
- destroy(this.cb_3)
- destroy(this.dw_ex)
- end on
- event close;call super::close;f_SetProfileString(SYS_empid, this.classname(), "status", string(cur_status))
- f_SetProfileString(SYS_empid, this.classname(), "scllflag", string(cur_scllflag))
- end event
- event open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
- EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
- dw_ex.SetTransObject (sqlca)
- end event
- event ue_before_open;call super::ue_before_open;if_ue_retr=true
- if_ue_filter=true
- if_ue_sort=true
- if_ue_sentdataout=true
- end event
- type cb_func from w_publ_easyq`cb_func within w_rp_order_ml
- end type
- type cb_exit from w_publ_easyq`cb_exit within w_rp_order_ml
- end type
- type cb_2 from w_publ_easyq`cb_2 within w_rp_order_ml
- boolean bringtotop = true
- end type
- type cb_psetup from w_publ_easyq`cb_psetup within w_rp_order_ml
- boolean bringtotop = true
- end type
- type cb_1 from w_publ_easyq`cb_1 within w_rp_order_ml
- boolean bringtotop = true
- end type
- event cb_1::clicked;DateTime ld_firstdate,ld_enddate
- ld_firstdate = DateTime(Date(em_1.Text),Time(0))
- ld_enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
- //IF ld_firstdate < sys_showsaledata_mindt THEN ld_firstdate = sys_showsaledata_mindt
- Int li_option_outrep
- IF sys_power_issuper THEN
- li_option_outrep = 0
- ELSE
- li_option_outrep = sys_option_outrep
- END IF
- dw_1.Retrieve(cur_scid_arr,cur_salestatus,cur_status,cur_scllflag,ld_firstdate,ld_enddate, sys_areaid,sys_user_outrep, li_option_outrep)
- //IF ddlb_1.text = '采购' then
- //
- //elseif ddlb_1.text ='外协' then
- //
- //elseif ddlb_1.text ='自制' then
- //
- //elseif ddlb_1.text ='领料明细' then
- //end if
- end event
- type st_3 from w_publ_easyq`st_3 within w_rp_order_ml
- integer x = 32
- integer y = 324
- end type
- type st_4 from w_publ_easyq`st_4 within w_rp_order_ml
- integer x = 750
- integer y = 324
- end type
- type em_1 from w_publ_easyq`em_1 within w_rp_order_ml
- integer x = 251
- integer y = 308
- integer taborder = 130
- end type
- type em_2 from w_publ_easyq`em_2 within w_rp_order_ml
- integer x = 841
- integer y = 308
- integer taborder = 140
- end type
- type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_order_ml
- integer x = 1627
- integer y = 12
- end type
- type cbx_yl from w_publ_easyq`cbx_yl within w_rp_order_ml
- integer x = 1417
- integer y = 12
- end type
- type dw_1 from w_publ_easyq`dw_1 within w_rp_order_ml
- integer y = 420
- integer width = 2743
- integer height = 1376
- string dataobject = "dw_rp_order_ml_mx_cg"
- end type
- event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
- String ls_code
- Long ll_scid
- int li_thflag
-
- // ll_scid = THIS.Object.u_outware_scid[row]
- // ls_code = THIS.Object.u_outware_outwarecode[row]
- // li_thflag = THIS.Object.thflag[row]
-
- // f_open_win(ll_scid,ls_code)
- END IF
- end event
- event dw_1::retrieveend;call super::retrieveend;uf_read_profile_layout()
- end event
- event dw_1::constructor;call super::constructor;wf_replacedw()
- end event
- type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_order_ml
- end type
- type sle_cust from w_publ_easyq`sle_cust within w_rp_order_ml
- end type
- type st_mtrl from w_publ_easyq`st_mtrl within w_rp_order_ml
- end type
- type st_cust from w_publ_easyq`st_cust within w_rp_order_ml
- end type
- type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_order_ml
- boolean visible = true
- integer x = 1417
- end type
- type pb_em1 from w_publ_easyq`pb_em1 within w_rp_order_ml
- integer x = 667
- integer y = 308
- end type
- type pb_em2 from w_publ_easyq`pb_em2 within w_rp_order_ml
- integer x = 1253
- integer y = 308
- end type
- type pb_2 from w_publ_easyq`pb_2 within w_rp_order_ml
- integer x = 1362
- integer y = 308
- end type
- type cb_help from w_publ_easyq`cb_help within w_rp_order_ml
- end type
- type cb_copyself from w_publ_easyq`cb_copyself within w_rp_order_ml
- end type
- type gb_1 from w_publ_easyq`gb_1 within w_rp_order_ml
- end type
- type ln_bar from w_publ_easyq`ln_bar within w_rp_order_ml
- end type
- type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_order_ml
- end type
- type r_bar from w_publ_easyq`r_bar within w_rp_order_ml
- end type
- type ln_1 from w_publ_easyq`ln_1 within w_rp_order_ml
- end type
- type ln_2 from w_publ_easyq`ln_2 within w_rp_order_ml
- end type
- type ln_3 from w_publ_easyq`ln_3 within w_rp_order_ml
- end type
- type ln_4 from w_publ_easyq`ln_4 within w_rp_order_ml
- end type
- type ddlb_scid from uo_ddlb_scid within w_rp_order_ml
- integer x = 142
- integer y = 192
- integer width = 603
- integer height = 620
- integer taborder = 130
- boolean bringtotop = true
- end type
- event constructor;call super::constructor;cur_scid_arr = THIS.uo_scid_arr
- end event
- event selectionchanged;call super::selectionchanged;
- cur_scid_arr = THIS.uo_scid_arr
- cb_1.triggerevent(clicked!)
- end event
- type st_5 from statictext within w_rp_order_ml
- integer x = 5
- integer y = 208
- integer width = 128
- 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 ddlb_salestatus from dropdownlistbox within w_rp_order_ml
- integer x = 2208
- integer y = 192
- integer width = 338
- integer height = 860
- integer taborder = 100
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "在进行"
- boolean sorted = false
- boolean vscrollbar = true
- string item[] = {"[全部]","待审批","在进行","已暂停","已终止","已完成"}
- borderstyle borderstyle = stylelowered!
- end type
- event selectionchanged;choose case index
- case 1
- cur_salestatus= -1
- case 2 //待销售审批
- cur_salestatus=0
- case 3 //在进行
- cur_salestatus=1
- case 4 //'已暂停'
- cur_salestatus=2
- case 5 //'已终止'
- cur_salestatus=3
- case 6 //'已完成'
- cur_salestatus=5
- case else
- cur_salestatus= -1
- end choose
- cb_1.TriggerEvent(Clicked!)
- //parent.triggerevent("retrieve_pageretr")
- end event
- type st_6 from statictext within w_rp_order_ml
- integer x = 759
- integer y = 208
- integer width = 133
- 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 = center!
- boolean focusrectangle = false
- end type
- type ddlb_status from dropdownlistbox within w_rp_order_ml
- integer x = 910
- integer y = 192
- integer width = 361
- integer height = 496
- integer taborder = 110
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "待审核"
- boolean sorted = false
- boolean vscrollbar = true
- string item[] = {"[全部]","待审核","在进行","自动完成","手动完成"}
- borderstyle borderstyle = stylelowered!
- end type
- event constructor;cur_status = Long(f_ProfileString(SYS_empid, parent.classname(), "status", "-1"))
- CHOOSE CASE cur_status
- CASE 0
- this.Text = "待审核"
- CASE 1
- this.Text = "在进行"
- CASE 5
- this.Text = "自动完成"
- CASE 6
- this.Text = "手动完成"
- CASE -1
- this.Text = "[全部]"
- END CHOOSE
- end event
- event selectionchanged;CHOOSE CASE Index
- CASE 1 //[全部]
- cur_status = -1
- CASE 2 //待审批
- cur_status = 0
- CASE 3 //在进行
- cur_status = 1
- CASE 4 //'自动完成'
- cur_status = 5
- CASE 5 //'手动完成'
- cur_status = 6
- CASE ELSE
- cur_status = -1
- END CHOOSE
- cb_1.TriggerEvent(Clicked!)
- end event
- type st_7 from statictext within w_rp_order_ml
- integer x = 1266
- integer y = 208
- integer width = 233
- 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 = center!
- boolean focusrectangle = false
- end type
- type ddlb_2 from dropdownlistbox within w_rp_order_ml
- integer x = 1490
- integer y = 192
- integer width = 343
- integer height = 300
- integer taborder = 110
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "[全部]"
- boolean sorted = false
- string item[] = {"[全部]","待用料审","已用料审"}
- borderstyle borderstyle = stylelowered!
- end type
- event constructor;cur_scllflag = Long(f_ProfileString(SYS_empid, parent.classname(), "scllflag", "-1"))
- CHOOSE CASE cur_scllflag
- CASE -1
- this.Text = "[全部]"
- CASE 0
- this.Text = "待用料审"
- CASE 1
- this.Text = "已用料审"
- END CHOOSE
- end event
- event selectionchanged;CHOOSE CASE Index
- CASE 1
- cur_scllflag = -1
- CASE 2
- cur_scllflag = 0
- CASE 3
- cur_scllflag = 1
- END CHOOSE
- cb_1.TriggerEvent(Clicked!)
- end event
- type st_1 from statictext within w_rp_order_ml
- integer x = 1861
- integer y = 204
- integer width = 343
- 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 ddlb_1 from dropdownlistbox within w_rp_order_ml
- integer x = 2597
- integer y = 192
- integer width = 494
- integer height = 300
- integer taborder = 80
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "采购"
- boolean sorted = false
- boolean vscrollbar = true
- string item[] = {"采购","外协","自制","领料明细"}
- borderstyle borderstyle = stylelowered!
- end type
- event selectionchanged;IF INDEX = 1 THEN
- DW_1.DATAOBJECT = 'dw_rp_order_ml_mx_cg'
- wf_replacedw()
- ELSEIF INDEX = 2 THEN
- DW_1.DATAOBJECT = 'dw_rp_order_ml_mx_wx'
- ELSEIF INDEX = 3 THEN
- DW_1.DATAOBJECT = 'dw_rp_order_ml_mx_zz'
- ELSEIF INDEX = 4 THEN
- DW_1.DATAOBJECT = 'dw_rp_order_ml_mx_llmx'
- END IF
- dw_1.SetTransObject (sqlca)
- cb_1.triggerevent(clicked!)
- end event
- type mle_1 from multilineedit within w_rp_order_ml
- boolean visible = false
- integer x = 2747
- integer y = 16
- integer width = 384
- integer height = 284
- integer taborder = 130
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- boolean enabled = false
- boolean hscrollbar = true
- boolean vscrollbar = true
- borderstyle borderstyle = stylelowered!
- end type
- type cb_3 from commandbutton within w_rp_order_ml
- boolean visible = false
- integer x = 3182
- integer y = 84
- integer width = 411
- integer height = 84
- integer taborder = 80
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- boolean enabled = false
- string text = "none"
- end type
- event clicked;string name1,name2,name3,name
- long i
- name1 = '0.00000 as plan'
- name2 = '0.00000 as item'
- name3 = '0.00000 as pro'
- for i = 1 to 50
- name1 = '0.00000 as plan'
- name2 = '0.00000 as item'
- name3 = '0.00000 as pro'
- name1 = name1+string(i)
- name2 = name2+string(i)
- name3 = name3+string(i)
- name = name +name1+'~r~n'+name2+'~r~n'+name3+'~r~n'
- next
- mle_1.text = name
- end event
- type dw_ex from datawindow within w_rp_order_ml
- boolean visible = false
- integer x = 2889
- integer y = 460
- integer width = 549
- integer height = 320
- integer taborder = 20
- boolean bringtotop = true
- boolean enabled = false
- string title = "none"
- string dataobject = "dw_rp_order_ml_procode_ex"
- boolean livescroll = true
- borderstyle borderstyle = stylelowered!
- end type
|