123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- $PBExportHeader$w_aifmb_inquire_rsp.srw
- forward
- global type w_aifmb_inquire_rsp from window
- end type
- type cb_2 from commandbutton within w_aifmb_inquire_rsp
- end type
- type cb_1 from commandbutton within w_aifmb_inquire_rsp
- end type
- type dw_1 from datawindow within w_aifmb_inquire_rsp
- end type
- end forward
- global type w_aifmb_inquire_rsp from window
- integer width = 1961
- integer height = 728
- boolean titlebar = true
- string title = "询价"
- boolean controlmenu = true
- windowtype windowtype = response!
- long backcolor = 67108864
- string icon = "AppIcon!"
- boolean center = true
- cb_2 cb_2
- cb_1 cb_1
- dw_1 dw_1
- end type
- global w_aifmb_inquire_rsp w_aifmb_inquire_rsp
- on w_aifmb_inquire_rsp.create
- this.cb_2=create cb_2
- this.cb_1=create cb_1
- this.dw_1=create dw_1
- this.Control[]={this.cb_2,&
- this.cb_1,&
- this.dw_1}
- end on
- on w_aifmb_inquire_rsp.destroy
- destroy(this.cb_2)
- destroy(this.cb_1)
- destroy(this.dw_1)
- end on
- event open;s_aifmb_inquire_add s_tran
- s_tran = message.powerobjectparm
- long i
- i = dw_1.InsertRow(0)
- dw_1.Object.mtrlcode[i] = s_tran.mtrlcode
- dw_1.Object.mtrlname[i] = s_tran.mtrlname
- dw_1.Object.mtrlmode[i] = s_tran.mtrlmode
- dw_1.Object.mprice[i] = s_tran.mprice
- dw_1.Object.nprice[i] = s_tran.nprice
- dw_1.Object.desiredprice[i] = s_tran.desiredprice
- dw_1.Object.quantity[i] = s_tran.quantity
- dw_1.Object.unit[i] = s_tran.unit
- dw_1.Object.inquireremark[i] = s_tran.inquireremark
- dw_1.Object.inquireid[i] = s_tran.inquireid
- dw_1.Object.froment[i] = s_tran.froment
- dw_1.Object.fromuser[i] = s_tran.fromuser
- end event
- type cb_2 from commandbutton within w_aifmb_inquire_rsp
- integer x = 1664
- integer y = 504
- integer width = 251
- integer height = 112
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "取消"
- end type
- event clicked;close(parent)
- end event
- type cb_1 from commandbutton within w_aifmb_inquire_rsp
- integer x = 1371
- integer y = 504
- integer width = 251
- integer height = 112
- integer taborder = 20
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "确定"
- end type
- event clicked;Int rslt = 1
- String arg_msg = ''
- uo_aifmb aifmb
- aifmb = Create uo_aifmb
- dw_1.AcceptText()
- Long i = 1
- s_aifmb_inquire_add s_tran
- s_tran.inquireid = dw_1.Object.inquireid[i]
- s_tran.mprice = dw_1.Object.mprice[i]
- s_tran.nprice = dw_1.Object.nprice[i]
- IF aifmb.uf_inquire_rsp(s_tran, arg_msg) <> 1 THEN
- rslt = 0
- arg_msg = '询价回复失败,' + arg_msg
- GOTO ext
- END IF
- ext:
- Destroy aifmb
- IF rslt = 1 THEN
- Close(Parent)
- ELSE
- MessageBox('ERROR', arg_msg)
- END IF
- end event
- type dw_1 from datawindow within w_aifmb_inquire_rsp
- integer width = 1934
- integer height = 468
- integer taborder = 10
- string title = "none"
- string dataobject = "dw_aifmb_inquire_rsp"
- boolean livescroll = true
- borderstyle borderstyle = stylelowered!
- end type
|