protected override bool WfFormCheck() { vw_invr330 invr330Model = null; string msg; try { invr330Model = DrMaster.ToItem <vw_invr330>(); if (GlobalFn.varIsNull(invr330Model.ifa01) && GlobalFn.varIsNull(invr330Model.ifa02_s) && GlobalFn.varIsNull(invr330Model.ifa02_e) ) { msg = "請至少輸入一個條件!"; WfShowErrorMsg(msg); errorProvider.SetError(ute_ifa01, msg); return(false); } return(true); } catch (Exception ex) { throw ex; } }
public FrmInvr330(YR.ERP.Shared.UserInfo pUserInfo, vw_invr330 pInvr330Model, bool pAutoExecuted, bool pCloseAfterExecute) { InitializeComponent(); this.LoginInfo = pUserInfo; this.Vw_Invr330 = pInvr330Model; this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute; this.TabMaster.IsAutoExecuted = pAutoExecuted; }