protected override bool WfFormCheck() { vw_invr301 invr301Model = null; string msg; try { invr301Model = DrMaster.ToItem <vw_invr301>(); if (GlobalFn.varIsNull(invr301Model.iga01) && GlobalFn.varIsNull(invr301Model.iga02_s) && GlobalFn.varIsNull(invr301Model.iga02_e) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_iga01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmInvr301(YR.ERP.Shared.UserInfo pUserInfo, vw_invr301 pInvr301Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Invr301 = pInvr301Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }