$PBExportHeader$w_outware_sale_mod.srw forward global type w_outware_sale_mod from w_publ_base end type type dw_uc from datawindow within w_outware_sale_mod end type type cb_1 from uo_imflatbutton within w_outware_sale_mod end type end forward global type w_outware_sale_mod from w_publ_base integer width = 2501 integer height = 1688 string title = "销售发货单修改结算方式" boolean minbox = false windowtype windowtype = response! dw_uc dw_uc cb_1 cb_1 end type global w_outware_sale_mod w_outware_sale_mod on w_outware_sale_mod.create int iCurrent call super::create this.dw_uc=create dw_uc this.cb_1=create cb_1 iCurrent=UpperBound(this.Control) this.Control[iCurrent+1]=this.dw_uc this.Control[iCurrent+2]=this.cb_1 end on on w_outware_sale_mod.destroy call super::destroy destroy(this.dw_uc) destroy(this.cb_1) end on event open;call super::open;s_edit_index_tran s_open s_open = Message.PowerObjectParm dw_uc.SetTransObject(sqlca) dw_uc.Retrieve(s_open.b_long,s_open.c_long) end event type cb_func from w_publ_base`cb_func within w_outware_sale_mod boolean visible = false end type type cb_exit from w_publ_base`cb_exit within w_outware_sale_mod integer x = 2103 integer y = 1472 end type type dw_uc from datawindow within w_outware_sale_mod integer y = 8 integer width = 2464 integer height = 1424 integer taborder = 30 boolean bringtotop = true string title = "仓审后修改结算方式" string dataobject = "dw_outware_sale_mod" boolean livescroll = true borderstyle borderstyle = stylelowered! end type type cb_1 from uo_imflatbutton within w_outware_sale_mod integer x = 1573 integer y = 1464 integer taborder = 20 boolean bringtotop = true end type event clicked;call super::clicked;Long uc_row DateTime ldt_outdate,ldt_outdate_ori,ldt_balcdate Long ll_scid,ll_outwareid,ll_storageid dw_uc.AcceptText() uc_row = dw_uc.GetRow() If uc_row <= 0 Then MessageBox('系统提示','请选定当前目标单据!') Return End If ll_scid = dw_uc.Object.u_outware_scid[uc_row] ll_outwareid = dw_uc.Object.u_outware_outwareid[uc_row] ll_storageid = dw_uc.Object.u_outware_storageid[uc_row] If Not dw_uc.Object.u_outware_outdate[uc_row] > DateTime(2000-01-01,Now()) Then MessageBox('系统提示','不合理发生时间') dw_uc.SetFocus() dw_uc.SetColumn("u_outware_outdate") Return End If If dw_uc.Object.u_outware_relint_1[uc_row] = 0 Then MessageBox('系统提示','请选择结算方式') dw_uc.SetFocus() dw_uc.SetColumn("u_outware_relint_1") Return End If If dw_uc.Update() = -1 Then Rollback; MessageBox('系统提示','保存资料失败,请重试!') Return End If String arg_msg f_setsysoplog('销售发货单','销售发货单摘要修改,code:'+dw_uc.Object.u_outware_outwarecode[uc_row],arg_msg,True) Close(Parent) end event