protected override bool WfFormCheck() { vw_stpr500 stpr500Model = null; string msg; try { stpr500Model = DrMaster.ToItem <vw_stpr500>(); if (GlobalFn.varIsNull(stpr500Model.sha01) && GlobalFn.varIsNull(stpr500Model.sha02_s) && GlobalFn.varIsNull(stpr500Model.sha02_e) && GlobalFn.varIsNull(stpr500Model.sha03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_sha01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmStpr500(YR.ERP.Shared.UserInfo pUserInfo, vw_stpr500 pStpr500Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Stpr500 = pStpr500Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }