w_saletask_cmpl_otheramt.srw 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. $PBExportHeader$w_saletask_cmpl_otheramt.srw
  2. forward
  3. global type w_saletask_cmpl_otheramt from w_publ_base
  4. end type
  5. type dw_1 from datawindow within w_saletask_cmpl_otheramt
  6. end type
  7. end forward
  8. global type w_saletask_cmpl_otheramt from w_publ_base
  9. integer width = 1207
  10. integer height = 636
  11. string title = "计算优惠款"
  12. boolean minbox = false
  13. windowtype windowtype = response!
  14. dw_1 dw_1
  15. end type
  16. global w_saletask_cmpl_otheramt w_saletask_cmpl_otheramt
  17. type variables
  18. long ll_row
  19. decimal cur_otheramt
  20. end variables
  21. on w_saletask_cmpl_otheramt.create
  22. int iCurrent
  23. call super::create
  24. this.dw_1=create dw_1
  25. iCurrent=UpperBound(this.Control)
  26. this.Control[iCurrent+1]=this.dw_1
  27. end on
  28. on w_saletask_cmpl_otheramt.destroy
  29. call super::destroy
  30. destroy(this.dw_1)
  31. end on
  32. event close;call super::close;closewithreturn(this,cur_otheramt)
  33. end event
  34. event open;call super::open;
  35. decimal lde_msttakeamt
  36. lde_msttakeamt = message.doubleparm
  37. ll_row = dw_1.insertrow(0)
  38. dw_1.object.msttakeamt[ll_row] = lde_msttakeamt
  39. dw_1.setcolumn('billamt')
  40. end event
  41. type cb_func from w_publ_base`cb_func within w_saletask_cmpl_otheramt
  42. integer x = 251
  43. integer y = 412
  44. integer width = 311
  45. integer height = 96
  46. string text = "确定"
  47. toolbaralignment pic_align = alignatleft!
  48. boolean border = true
  49. end type
  50. event cb_func::clicked;call super::clicked;dw_1.accepttext()
  51. cur_otheramt = dw_1.object.msttakeamt[ll_row] - dw_1.object.billamt[ll_row]
  52. //
  53. //IF Year(date(em_1.Text)) < 2000 THEN
  54. // MessageBox('提示','请输入正确的日期',information!,OK!)
  55. // RETURN
  56. //END IF
  57. //
  58. Close(PARENT)
  59. //
  60. end event
  61. type cb_exit from w_publ_base`cb_exit within w_saletask_cmpl_otheramt
  62. integer x = 690
  63. integer y = 408
  64. end type
  65. event cb_exit::clicked;cur_otheramt = 0
  66. Close(PARENT)
  67. end event
  68. type dw_1 from datawindow within w_saletask_cmpl_otheramt
  69. integer x = 119
  70. integer width = 965
  71. integer height = 400
  72. integer taborder = 10
  73. boolean bringtotop = true
  74. string title = "none"
  75. string dataobject = "dw_saletask_cmpl_otheramt"
  76. boolean border = false
  77. boolean livescroll = true
  78. end type