w_outware_sale_mod.srw 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. $PBExportHeader$w_outware_sale_mod.srw
  2. forward
  3. global type w_outware_sale_mod from w_publ_base
  4. end type
  5. type dw_uc from datawindow within w_outware_sale_mod
  6. end type
  7. type cb_1 from uo_imflatbutton within w_outware_sale_mod
  8. end type
  9. end forward
  10. global type w_outware_sale_mod from w_publ_base
  11. integer width = 2501
  12. integer height = 1688
  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 w_outware_sale_mod
  20. on w_outware_sale_mod.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.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
  40. boolean visible = false
  41. end type
  42. type cb_exit from w_publ_base`cb_exit within w_outware_sale_mod
  43. integer x = 2103
  44. integer y = 1472
  45. end type
  46. type dw_uc from datawindow within w_outware_sale_mod
  47. integer y = 8
  48. integer width = 2464
  49. integer height = 1424
  50. integer taborder = 30
  51. boolean bringtotop = true
  52. string title = "仓审后修改结算方式"
  53. string dataobject = "dw_outware_sale_mod"
  54. boolean livescroll = true
  55. borderstyle borderstyle = stylelowered!
  56. end type
  57. type cb_1 from uo_imflatbutton within w_outware_sale_mod
  58. integer x = 1573
  59. integer y = 1464
  60. integer taborder = 20
  61. boolean bringtotop = true
  62. end type
  63. event clicked;call super::clicked;Long uc_row
  64. DateTime ldt_outdate,ldt_outdate_ori,ldt_balcdate
  65. Long ll_scid,ll_outwareid,ll_storageid
  66. dw_uc.AcceptText()
  67. uc_row = dw_uc.GetRow()
  68. If uc_row <= 0 Then
  69. MessageBox('系统提示','请选定当前目标单据!')
  70. Return
  71. End If
  72. ll_scid = dw_uc.Object.u_outware_scid[uc_row]
  73. ll_outwareid = dw_uc.Object.u_outware_outwareid[uc_row]
  74. ll_storageid = dw_uc.Object.u_outware_storageid[uc_row]
  75. If Not dw_uc.Object.u_outware_outdate[uc_row] > DateTime(2000-01-01,Now()) Then
  76. MessageBox('系统提示','不合理发生时间')
  77. dw_uc.SetFocus()
  78. dw_uc.SetColumn("u_outware_outdate")
  79. Return
  80. End If
  81. If dw_uc.Object.u_outware_relint_1[uc_row] = 0 Then
  82. MessageBox('系统提示','请选择结算方式')
  83. dw_uc.SetFocus()
  84. dw_uc.SetColumn("u_outware_relint_1")
  85. Return
  86. End If
  87. If dw_uc.Update() = -1 Then
  88. Rollback;
  89. MessageBox('系统提示','保存资料失败,请重试!')
  90. Return
  91. End If
  92. String arg_msg
  93. f_setsysoplog('销售发货单','销售发货单摘要修改,code:'+dw_uc.Object.u_outware_outwarecode[uc_row],arg_msg,True)
  94. Close(Parent)
  95. end event