w_outware_sale_mod_th.srw 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. $PBExportHeader$w_outware_sale_mod_th.srw
  2. forward
  3. global type w_outware_sale_mod_th from w_publ_base
  4. end type
  5. type dw_uc from datawindow within w_outware_sale_mod_th
  6. end type
  7. type cb_1 from uo_imflatbutton within w_outware_sale_mod_th
  8. end type
  9. end forward
  10. global type w_outware_sale_mod_th from w_publ_base
  11. integer width = 2400
  12. integer height = 1472
  13. string title = "销售退货单修改结算方式"
  14. boolean minbox = false
  15. windowtype windowtype = response!
  16. dw_uc dw_uc
  17. cb_1 cb_1
  18. end type
  19. global w_outware_sale_mod_th w_outware_sale_mod_th
  20. on w_outware_sale_mod_th.create
  21. int iCurrent
  22. call super::create
  23. this.dw_uc=create dw_uc
  24. this.cb_1=create cb_1
  25. iCurrent=UpperBound(this.Control)
  26. this.Control[iCurrent+1]=this.dw_uc
  27. this.Control[iCurrent+2]=this.cb_1
  28. end on
  29. on w_outware_sale_mod_th.destroy
  30. call super::destroy
  31. destroy(this.dw_uc)
  32. destroy(this.cb_1)
  33. end on
  34. event open;call super::open;s_edit_index_tran s_open
  35. s_open = Message.PowerObjectParm
  36. dw_uc.SetTransObject(sqlca)
  37. dw_uc.Retrieve(s_open.b_long,s_open.c_long)
  38. end event
  39. type cb_func from w_publ_base`cb_func within w_outware_sale_mod_th
  40. boolean visible = false
  41. end type
  42. type cb_exit from w_publ_base`cb_exit within w_outware_sale_mod_th
  43. integer x = 2030
  44. integer y = 1272
  45. end type
  46. type dw_uc from datawindow within w_outware_sale_mod_th
  47. integer width = 2400
  48. integer height = 1252
  49. integer taborder = 30
  50. boolean bringtotop = true
  51. string title = "none"
  52. string dataobject = "dw_outware_sale_mod_th"
  53. boolean livescroll = true
  54. borderstyle borderstyle = stylelowered!
  55. end type
  56. type cb_1 from uo_imflatbutton within w_outware_sale_mod_th
  57. integer x = 1399
  58. integer y = 1272
  59. integer width = 311
  60. integer height = 96
  61. integer taborder = 20
  62. boolean bringtotop = true
  63. end type
  64. event clicked;call super::clicked;Long uc_row
  65. DateTime ldt_outdate,ldt_outdate_ori,ldt_balcdate
  66. Long ll_scid,ll_outwareid,ll_storageid
  67. dw_uc.AcceptText()
  68. uc_row = dw_uc.GetRow()
  69. If uc_row <= 0 Then
  70. MessageBox('系统提示','请选定当前目标单据!')
  71. Return
  72. End If
  73. ll_scid = dw_uc.Object.u_outware_scid[uc_row]
  74. ll_outwareid = dw_uc.Object.u_outware_outwareid[uc_row]
  75. ll_storageid = dw_uc.Object.u_outware_storageid[uc_row]
  76. If Not dw_uc.Object.u_outware_outdate[uc_row] > DateTime(2000-01-01,Now()) Then
  77. MessageBox('系统提示','不合理发生时间')
  78. dw_uc.SetFocus()
  79. dw_uc.SetColumn("u_outware_outdate")
  80. Return
  81. End If
  82. If dw_uc.Object.u_outware_relint_1[uc_row] = 0 Then
  83. MessageBox('系统提示','请选择结算方式')
  84. dw_uc.SetFocus()
  85. dw_uc.SetColumn("u_outware_relint_1")
  86. Return
  87. End If
  88. If dw_uc.Update() = -1 Then
  89. Rollback;
  90. MessageBox('系统提示','保存资料失败,请重试!')
  91. Return
  92. End If
  93. String arg_msg
  94. f_setsysoplog('销售发货单','销售退货单摘要修改,code:'+dw_uc.Object.u_outware_outwarecode[uc_row],arg_msg,True)
  95. Close(Parent)
  96. end event