protected override bool WfFormCheck() { vw_purr500 purr500Model = null; string msg; try { purr500Model = DrMaster.ToItem <vw_purr500>(); if (GlobalFn.varIsNull(purr500Model.pha01) && GlobalFn.varIsNull(purr500Model.pha02_s) && GlobalFn.varIsNull(purr500Model.pha02_e) && GlobalFn.varIsNull(purr500Model.pha03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_pha01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmPurr500(YR.ERP.Shared.UserInfo pUserInfo, vw_purr500 pPurr500Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Purr500 = pPurr500Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }