123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- $PBExportHeader$w_cmpl_qty_ch_son.srw
- forward
- global type w_cmpl_qty_ch_son from w_publ_base
- end type
- type cb_1 from uo_imflatbutton within w_cmpl_qty_ch_son
- end type
- type st_3 from statictext within w_cmpl_qty_ch_son
- end type
- type em_1 from editmask within w_cmpl_qty_ch_son
- end type
- type rb_1 from radiobutton within w_cmpl_qty_ch_son
- end type
- type rb_2 from radiobutton within w_cmpl_qty_ch_son
- end type
- type em_2 from editmask within w_cmpl_qty_ch_son
- end type
- end forward
- global type w_cmpl_qty_ch_son from w_publ_base
- integer width = 1120
- integer height = 404
- string title = "公式辅助参数"
- boolean minbox = false
- windowtype windowtype = response!
- cb_1 cb_1
- st_3 st_3
- em_1 em_1
- rb_1 rb_1
- rb_2 rb_2
- em_2 em_2
- end type
- global w_cmpl_qty_ch_son w_cmpl_qty_ch_son
- type variables
- s_cmpl_qty s_cmpl
- string ls_num
- string ls_value
- string ls_flag
- end variables
- on w_cmpl_qty_ch_son.create
- int iCurrent
- call super::create
- this.cb_1=create cb_1
- this.st_3=create st_3
- this.em_1=create em_1
- this.rb_1=create rb_1
- this.rb_2=create rb_2
- this.em_2=create em_2
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.cb_1
- this.Control[iCurrent+2]=this.st_3
- this.Control[iCurrent+3]=this.em_1
- this.Control[iCurrent+4]=this.rb_1
- this.Control[iCurrent+5]=this.rb_2
- this.Control[iCurrent+6]=this.em_2
- end on
- on w_cmpl_qty_ch_son.destroy
- call super::destroy
- destroy(this.cb_1)
- destroy(this.st_3)
- destroy(this.em_1)
- destroy(this.rb_1)
- destroy(this.rb_2)
- destroy(this.em_2)
- end on
- event close;call super::close;closewithreturn(this,s_cmpl)
- end event
- event open;call super::open;ls_value = f_ProfileString (sys_empid,'w_cmpl_qty_ch', "value",'1')
- ls_num = f_ProfileString (sys_empid,'w_cmpl_qty_ch', "num",'5')
- ls_flag = f_ProfileString (sys_empid,'w_cmpl_qty_ch', "flag",'0')
- IF ls_num > '5' THEN
- ls_num = '5'
- END IF
- IF ls_flag = '1' THEN
- rb_1.Checked = TRUE
- rb_2.Checked = FALSE
- ELSE
- rb_1.Checked = FALSE
- rb_2.Checked = TRUE
- END IF
- em_1.Text = ls_num
- em_2.Text = ls_value
- s_cmpl.retu = 0
- end event
- type cb_func from w_publ_base`cb_func within w_cmpl_qty_ch_son
- boolean visible = false
- end type
- type cb_exit from w_publ_base`cb_exit within w_cmpl_qty_ch_son
- integer x = 613
- integer y = 188
- integer width = 343
- integer taborder = 50
- end type
- type cb_1 from uo_imflatbutton within w_cmpl_qty_ch_son
- integer x = 142
- integer y = 188
- integer width = 343
- integer height = 96
- integer taborder = 40
- boolean bringtotop = true
- string normalpicname = "ok.bmp"
- end type
- event clicked;call super::clicked;ls_num = em_1.Text
- ls_value = em_2.Text
- IF rb_1.Checked THEN
- ls_flag = '1'
- s_cmpl.flag = TRUE
- ELSE
- ls_flag = '0'
- s_cmpl.flag = FALSE
- END IF
- f_SetProfileString (sys_empid,"w_cmpl_qty_ch", "num", ls_num)
- f_SetProfileString (sys_empid,"w_cmpl_qty_ch", "value", ls_value)
- f_SetProfileString (sys_empid,'w_cmpl_qty_ch', "flag",ls_flag)
- s_cmpl.num = Long(ls_num)
- s_cmpl.addvalue = Dec(ls_value)
- s_cmpl.retu = 1
- Close(PARENT)
- end event
- type st_3 from statictext within w_cmpl_qty_ch_son
- integer x = 5
- integer y = 52
- integer width = 201
- integer height = 64
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217738
- string text = "小数位:"
- alignment alignment = right!
- boolean focusrectangle = false
- end type
- type em_1 from editmask within w_cmpl_qty_ch_son
- integer x = 224
- integer y = 36
- integer width = 165
- integer height = 84
- integer taborder = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- alignment alignment = right!
- borderstyle borderstyle = stylelowered!
- string mask = "###0"
- boolean spin = true
- double increment = 1
- string minmax = "0~~5"
- end type
- event modified;em_2.SetFocus()
- end event
- type rb_1 from radiobutton within w_cmpl_qty_ch_son
- integer x = 453
- integer y = 16
- integer width = 155
- 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 = 134217738
- string text = "*"
- boolean checked = true
- end type
- type rb_2 from radiobutton within w_cmpl_qty_ch_son
- integer x = 453
- integer y = 96
- integer width = 160
- integer height = 56
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217738
- string text = "/"
- end type
- type em_2 from editmask within w_cmpl_qty_ch_son
- integer x = 635
- integer y = 44
- integer width = 421
- integer height = 84
- integer taborder = 300
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- alignment alignment = right!
- borderstyle borderstyle = stylelowered!
- string mask = "#########0.##########"
- end type
- event modified;cb_1.SetFocus()
- end event
|