protected override bool WfFormCheck() { vw_purr200 purr200Model = null; string msg; try { purr200Model = DrMaster.ToItem <vw_purr200>(); if (GlobalFn.varIsNull(purr200Model.pea01) && GlobalFn.varIsNull(purr200Model.pea02_s) && GlobalFn.varIsNull(purr200Model.pea02_e) && GlobalFn.varIsNull(purr200Model.pea03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_pea01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmPurr200(YR.ERP.Shared.UserInfo pUserInfo, vw_purr200 pPurr200Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Purr200 = pPurr200Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }