protected override bool WfFormCheck() { vw_purr400 purr400Model = null; string msg; try { purr400Model = DrMaster.ToItem <vw_purr400>(); if (GlobalFn.varIsNull(purr400Model.pga01) && GlobalFn.varIsNull(purr400Model.pga02_s) && GlobalFn.varIsNull(purr400Model.pga02_e) && GlobalFn.varIsNull(purr400Model.pga03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_pga01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmPurr400(YR.ERP.Shared.UserInfo pUserInfo, vw_purr400 pPurr400Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Purr400 = pPurr400Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }