예제 #1
0
        protected override bool WfFormCheck()
        {
            vw_invr401 invr401Model = null;
            string     msg;

            try
            {
                invr401Model = DrMaster.ToItem <vw_invr401>();
                if (GlobalFn.varIsNull(invr401Model.ila01) &&
                    GlobalFn.varIsNull(invr401Model.ila02_s) &&
                    GlobalFn.varIsNull(invr401Model.ila02_e) &&
                    GlobalFn.varIsNull(invr401Model.ila03)
                    )
                {
                    msg = "請至少輸入一個條件!";
                    WfShowErrorMsg(msg);
                    errorProvider.SetError(ute_ila01, msg);
                    return(false);
                }

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
        public FrmInvr401(YR.ERP.Shared.UserInfo pUserInfo, vw_invr401 pInvr401Model, bool pAutoExecuted, bool pCloseAfterExecute)
        {
            InitializeComponent();

            this.LoginInfo  = pUserInfo;
            this.Vw_Invr401 = pInvr401Model;
            this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute;
            this.TabMaster.IsAutoExecuted       = pAutoExecuted;
        }