w_dsr_p_inwarecp_qty.srw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. $PBExportHeader$w_dsr_p_inwarecp_qty.srw
  2. forward
  3. global type w_dsr_p_inwarecp_qty from window
  4. end type
  5. type cb_2 from commandbutton within w_dsr_p_inwarecp_qty
  6. end type
  7. type cb_1 from commandbutton within w_dsr_p_inwarecp_qty
  8. end type
  9. type st_1 from statictext within w_dsr_p_inwarecp_qty
  10. end type
  11. type sle_1 from singlelineedit within w_dsr_p_inwarecp_qty
  12. end type
  13. end forward
  14. global type w_dsr_p_inwarecp_qty from window
  15. integer width = 1120
  16. integer height = 664
  17. boolean titlebar = true
  18. string title = "批设数量"
  19. boolean controlmenu = true
  20. windowtype windowtype = response!
  21. long backcolor = 67108864
  22. string icon = "AppIcon!"
  23. boolean center = true
  24. cb_2 cb_2
  25. cb_1 cb_1
  26. st_1 st_1
  27. sle_1 sle_1
  28. end type
  29. global w_dsr_p_inwarecp_qty w_dsr_p_inwarecp_qty
  30. type variables
  31. s_dsr_finish_procode_qty ss_dsr_finish_procode_qty
  32. end variables
  33. on w_dsr_p_inwarecp_qty.create
  34. this.cb_2=create cb_2
  35. this.cb_1=create cb_1
  36. this.st_1=create st_1
  37. this.sle_1=create sle_1
  38. this.Control[]={this.cb_2,&
  39. this.cb_1,&
  40. this.st_1,&
  41. this.sle_1}
  42. end on
  43. on w_dsr_p_inwarecp_qty.destroy
  44. destroy(this.cb_2)
  45. destroy(this.cb_1)
  46. destroy(this.st_1)
  47. destroy(this.sle_1)
  48. end on
  49. event close;CloseWithReturn(THIS,ss_dsr_finish_procode_qty)
  50. end event
  51. event open;ss_dsr_finish_procode_qty = Message.PowerObjectParm
  52. this.title=ss_dsr_finish_procode_qty.name
  53. sle_1.text=string(ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  54. end event
  55. type cb_2 from commandbutton within w_dsr_p_inwarecp_qty
  56. integer x = 654
  57. integer y = 420
  58. integer width = 361
  59. integer height = 112
  60. integer taborder = 30
  61. integer textsize = -9
  62. integer weight = 400
  63. fontcharset fontcharset = gb2312charset!
  64. fontpitch fontpitch = variable!
  65. string facename = "宋体"
  66. string text = "取消"
  67. end type
  68. event clicked;ss_dsr_finish_procode_qty.if_ok=0
  69. close(parent)
  70. end event
  71. type cb_1 from commandbutton within w_dsr_p_inwarecp_qty
  72. integer x = 101
  73. integer y = 420
  74. integer width = 361
  75. integer height = 112
  76. integer taborder = 20
  77. integer textsize = -9
  78. integer weight = 400
  79. fontcharset fontcharset = gb2312charset!
  80. fontpitch fontpitch = variable!
  81. string facename = "宋体"
  82. string text = "确定"
  83. end type
  84. event clicked;
  85. IF Dec(sle_1.Text) <= 0 THEN
  86. MessageBox('NO','数量输入有误!')
  87. sle_1.text=string(ss_dsr_finish_procode_qty.proqty - ss_dsr_finish_procode_qty.finishqty,'#,##0.####')
  88. RETURN
  89. END IF
  90. ss_dsr_finish_procode_qty.rtn_qty=dec(sle_1.text)
  91. ss_dsr_finish_procode_qty.if_ok = 1
  92. //MessageBox('',String(Dec(sle_1.Text)))
  93. close(parent)
  94. end event
  95. type st_1 from statictext within w_dsr_p_inwarecp_qty
  96. integer x = 32
  97. integer y = 156
  98. integer width = 389
  99. integer height = 80
  100. integer textsize = -9
  101. integer weight = 700
  102. fontcharset fontcharset = gb2312charset!
  103. fontpitch fontpitch = variable!
  104. string facename = "宋体"
  105. long textcolor = 33554432
  106. long backcolor = 67108864
  107. string text = "批设数量:"
  108. boolean focusrectangle = false
  109. end type
  110. type sle_1 from singlelineedit within w_dsr_p_inwarecp_qty
  111. integer x = 466
  112. integer y = 144
  113. integer width = 576
  114. integer height = 96
  115. integer taborder = 10
  116. integer textsize = -9
  117. integer weight = 400
  118. fontcharset fontcharset = gb2312charset!
  119. fontpitch fontpitch = variable!
  120. string facename = "宋体"
  121. long textcolor = 33554432
  122. borderstyle borderstyle = stylelowered!
  123. end type