protected override bool WfFormCheck() { vw_manr210 manr210Model = null; string msg; try { manr210Model = DrMaster.ToItem <vw_manr210>(); if (GlobalFn.varIsNull(manr210Model.mea01) && GlobalFn.varIsNull(manr210Model.mea02_s) && GlobalFn.varIsNull(manr210Model.mea02_e) && GlobalFn.varIsNull(manr210Model.mea03) && GlobalFn.varIsNull(manr210Model.mea20) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_mea01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmManr210(YR.ERP.Shared.UserInfo pUserInfo, vw_manr210 pManr210Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Manr210 = pManr210Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }