w_dsr_finish_procode_qty.srw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. $PBExportHeader$w_dsr_finish_procode_qty.srw
  2. forward
  3. global type w_dsr_finish_procode_qty from window
  4. end type
  5. type cb_2 from commandbutton within w_dsr_finish_procode_qty
  6. end type
  7. type cb_1 from commandbutton within w_dsr_finish_procode_qty
  8. end type
  9. type st_3 from statictext within w_dsr_finish_procode_qty
  10. end type
  11. type st_2 from statictext within w_dsr_finish_procode_qty
  12. end type
  13. type st_1 from statictext within w_dsr_finish_procode_qty
  14. end type
  15. type sle_1 from singlelineedit within w_dsr_finish_procode_qty
  16. end type
  17. end forward
  18. global type w_dsr_finish_procode_qty from window
  19. integer width = 1120
  20. integer height = 664
  21. boolean titlebar = true
  22. string title = "本次完成"
  23. boolean controlmenu = true
  24. windowtype windowtype = response!
  25. long backcolor = 67108864
  26. string icon = "AppIcon!"
  27. boolean center = true
  28. cb_2 cb_2
  29. cb_1 cb_1
  30. st_3 st_3
  31. st_2 st_2
  32. st_1 st_1
  33. sle_1 sle_1
  34. end type
  35. global w_dsr_finish_procode_qty w_dsr_finish_procode_qty
  36. type variables
  37. s_dsr_finish_procode_qty ss_dsr_finish_procode_qty
  38. end variables
  39. on w_dsr_finish_procode_qty.create
  40. this.cb_2=create cb_2
  41. this.cb_1=create cb_1
  42. this.st_3=create st_3
  43. this.st_2=create st_2
  44. this.st_1=create st_1
  45. this.sle_1=create sle_1
  46. this.Control[]={this.cb_2,&
  47. this.cb_1,&
  48. this.st_3,&
  49. this.st_2,&
  50. this.st_1,&
  51. this.sle_1}
  52. end on
  53. on w_dsr_finish_procode_qty.destroy
  54. destroy(this.cb_2)
  55. destroy(this.cb_1)
  56. destroy(this.st_3)
  57. destroy(this.st_2)
  58. destroy(this.st_1)
  59. destroy(this.sle_1)
  60. end on
  61. event close;CloseWithReturn(THIS,ss_dsr_finish_procode_qty)
  62. end event
  63. event open;ss_dsr_finish_procode_qty = Message.PowerObjectParm
  64. this.title=ss_dsr_finish_procode_qty.name
  65. st_2.text='计划数:' + string(ss_dsr_finish_procode_qty.proqty,'#,##0.####')
  66. st_3.text='已完成数:' + string(ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  67. sle_1.text=string(ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  68. end event
  69. type cb_2 from commandbutton within w_dsr_finish_procode_qty
  70. integer x = 654
  71. integer y = 444
  72. integer width = 361
  73. integer height = 112
  74. integer taborder = 30
  75. integer textsize = -9
  76. integer weight = 400
  77. fontcharset fontcharset = gb2312charset!
  78. fontpitch fontpitch = variable!
  79. string facename = "宋体"
  80. string text = "取消"
  81. end type
  82. event clicked;ss_dsr_finish_procode_qty.if_ok=0
  83. close(parent)
  84. end event
  85. type cb_1 from commandbutton within w_dsr_finish_procode_qty
  86. integer x = 101
  87. integer y = 444
  88. integer width = 361
  89. integer height = 112
  90. integer taborder = 20
  91. integer textsize = -9
  92. integer weight = 400
  93. fontcharset fontcharset = gb2312charset!
  94. fontpitch fontpitch = variable!
  95. string facename = "宋体"
  96. string text = "确定"
  97. end type
  98. event clicked;
  99. IF Dec(sle_1.Text) <= 0 THEN
  100. MessageBox('NO','本次完成数输入有误!')
  101. sle_1.text=string(ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  102. RETURN
  103. END IF
  104. IF Dec(sle_1.Text) > ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty THEN
  105. MessageBox('NO','本次完成数 大于 未完成数 !')
  106. sle_1.text=string(ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  107. RETURN
  108. END IF
  109. ss_dsr_finish_procode_qty.rtn_qty=dec(sle_1.text)
  110. ss_dsr_finish_procode_qty.if_ok = 1
  111. //MessageBox('',String(Dec(sle_1.Text)))
  112. close(parent)
  113. end event
  114. type st_3 from statictext within w_dsr_finish_procode_qty
  115. integer x = 18
  116. integer y = 164
  117. integer width = 832
  118. integer height = 80
  119. integer textsize = -9
  120. integer weight = 700
  121. fontcharset fontcharset = gb2312charset!
  122. fontpitch fontpitch = variable!
  123. string facename = "宋体"
  124. long textcolor = 33554432
  125. long backcolor = 67108864
  126. string text = "已完成数:"
  127. boolean focusrectangle = false
  128. end type
  129. type st_2 from statictext within w_dsr_finish_procode_qty
  130. integer x = 18
  131. integer y = 36
  132. integer width = 814
  133. integer height = 80
  134. integer textsize = -9
  135. integer weight = 700
  136. fontcharset fontcharset = gb2312charset!
  137. fontpitch fontpitch = variable!
  138. string facename = "宋体"
  139. long textcolor = 33554432
  140. long backcolor = 67108864
  141. string text = "计划数:"
  142. boolean focusrectangle = false
  143. end type
  144. type st_1 from statictext within w_dsr_finish_procode_qty
  145. integer x = 18
  146. integer y = 304
  147. integer width = 389
  148. integer height = 80
  149. integer textsize = -9
  150. integer weight = 700
  151. fontcharset fontcharset = gb2312charset!
  152. fontpitch fontpitch = variable!
  153. string facename = "宋体"
  154. long textcolor = 33554432
  155. long backcolor = 67108864
  156. string text = "本次完成数:"
  157. boolean focusrectangle = false
  158. end type
  159. type sle_1 from singlelineedit within w_dsr_finish_procode_qty
  160. integer x = 453
  161. integer y = 292
  162. integer width = 576
  163. integer height = 96
  164. integer taborder = 10
  165. integer textsize = -9
  166. integer weight = 400
  167. fontcharset fontcharset = gb2312charset!
  168. fontpitch fontpitch = variable!
  169. string facename = "宋体"
  170. long textcolor = 33554432
  171. borderstyle borderstyle = stylelowered!
  172. end type