protected override bool WfFormCheck() { vw_stpr200 stpr200Model = null; string msg; try { stpr200Model = DrMaster.ToItem <vw_stpr200>(); if (GlobalFn.varIsNull(stpr200Model.sea01) && GlobalFn.varIsNull(stpr200Model.sea02_s) && GlobalFn.varIsNull(stpr200Model.sea02_e) && GlobalFn.varIsNull(stpr200Model.sea03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_sea01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmStpr200(YR.ERP.Shared.UserInfo pUserInfo, vw_stpr200 pStpr200Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Stpr200 = pStpr200Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }