123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- $PBExportHeader$w_inwaremx_buy_mod_price.srw
- forward
- global type w_inwaremx_buy_mod_price from w_publ_base
- end type
- type cb_ok from uo_imflatbutton within w_inwaremx_buy_mod_price
- end type
- type dw_1 from datawindow within w_inwaremx_buy_mod_price
- end type
- end forward
- global type w_inwaremx_buy_mod_price from w_publ_base
- integer width = 2363
- integer height = 980
- string title = "采购收货单修改单价"
- boolean minbox = false
- windowtype windowtype = response!
- cb_ok cb_ok
- dw_1 dw_1
- end type
- global w_inwaremx_buy_mod_price w_inwaremx_buy_mod_price
- type variables
- s_edit_index_tran s_tran
- long ins_scid,ins_inwareid,ins_printid
- uo_inware uo_in
- end variables
- on w_inwaremx_buy_mod_price.create
- int iCurrent
- call super::create
- this.cb_ok=create cb_ok
- this.dw_1=create dw_1
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.cb_ok
- this.Control[iCurrent+2]=this.dw_1
- end on
- on w_inwaremx_buy_mod_price.destroy
- call super::destroy
- destroy(this.cb_ok)
- destroy(this.dw_1)
- end on
- event open;call super::open;dw_1.settransobject(sqlca)
- uo_in = create uo_inware
- uo_in.commit_transaction = sqlca
- s_tran=Message.PowerObjectParm
- ins_scid = s_tran.b_long
- ins_inwareid = s_tran.c_long
- ins_printid = s_tran.d_long
- dw_1.retrieve( ins_scid,ins_inwareid,ins_printid)
- dw_1.setfocus()
- end event
- type cb_func from w_publ_base`cb_func within w_inwaremx_buy_mod_price
- boolean visible = false
- end type
- type cb_exit from w_publ_base`cb_exit within w_inwaremx_buy_mod_price
- integer x = 2025
- integer y = 788
- integer picsize = 16
- end type
- type cb_ok from uo_imflatbutton within w_inwaremx_buy_mod_price
- integer x = 1701
- integer y = 788
- integer width = 311
- integer height = 96
- integer taborder = 20
- boolean bringtotop = true
- string normalpicname = "ok.bmp"
- integer picsize = 16
- end type
- event clicked;call super::clicked;dw_1.AcceptText()
- Long ll_row
- Decimal ld_uprice,ld_jgprice
- String arg_msg
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','没有可保存的内容', Information!, OK! )
- RETURN
- END IF
- ld_uprice = dw_1.Object.u_inwaremx_uprice[ll_row]
- ld_jgprice = dw_1.Object.u_inwaremx_jgprice[ll_row]
- IF uo_in.mod_price(ins_scid,ins_inwareid,ins_printid,ld_uprice,ld_jgprice,-1,-1,arg_msg,TRUE) = 0 THEN
- MessageBox('错误',arg_msg, StopSign!, OK! )
- RETURN
- END IF
- MessageBox('提示','修改单价成功!', Information!, OK! )
- Close(PARENT)
- end event
- type dw_1 from datawindow within w_inwaremx_buy_mod_price
- integer width = 2336
- integer height = 768
- integer taborder = 30
- boolean bringtotop = true
- string title = "none"
- string dataobject = "dw_inwaremx_buy_mod_price"
- boolean livescroll = true
- borderstyle borderstyle = stylelowered!
- end type
- event constructor;f_title_change(this)
- end event
|