protected override bool WfFormCheck() { vw_purr300 purr300Model = null; string msg; try { purr300Model = DrMaster.ToItem <vw_purr300>(); if (GlobalFn.varIsNull(purr300Model.pfa01) && GlobalFn.varIsNull(purr300Model.pfa02_s) && GlobalFn.varIsNull(purr300Model.pfa02_e) && GlobalFn.varIsNull(purr300Model.pfa03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_pfa01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmPurr300(YR.ERP.Shared.UserInfo pUserInfo, vw_purr300 pPurr300Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Purr300 = pPurr300Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }