protected override bool WfFormCheck() { vw_manr312 manr312Model = null; string msg; try { manr312Model = DrMaster.ToItem <vw_manr312>(); if (GlobalFn.varIsNull(manr312Model.mga01) && GlobalFn.varIsNull(manr312Model.mga02_s) && GlobalFn.varIsNull(manr312Model.mga02_e) && GlobalFn.varIsNull(manr312Model.mga03) && GlobalFn.varIsNull(manr312Model.mga06) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_mga01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmManr312(YR.ERP.Shared.UserInfo pUserInfo, vw_manr312 pManr312Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Manr312 = pManr312Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }