protected override bool WfFormCheck() { vw_manr411 manr411Model = null; string msg; try { manr411Model = DrMaster.ToItem <vw_manr411>(); if (GlobalFn.varIsNull(manr411Model.mha01) && GlobalFn.varIsNull(manr411Model.mha02_s) && GlobalFn.varIsNull(manr411Model.mha02_e) && GlobalFn.varIsNull(manr411Model.mha03) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_mha01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmManr411(YR.ERP.Shared.UserInfo pUserInfo, vw_manr411 pManr411Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Manr411 = pManr411Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }