Exemplo n.º 1
0
        protected override bool WfFormCheck()
        {
            vw_manr311 manr311Model = null;
            string     msg;

            try
            {
                manr311Model = DrMaster.ToItem <vw_manr311>();
                if (GlobalFn.varIsNull(manr311Model.mfa01) &&
                    GlobalFn.varIsNull(manr311Model.mfa02_s) &&
                    GlobalFn.varIsNull(manr311Model.mfa02_e) &&
                    GlobalFn.varIsNull(manr311Model.mfa03) &&
                    GlobalFn.varIsNull(manr311Model.mfa06)
                    )
                {
                    msg = "請至少輸入一個條件!";
                    WfShowErrorMsg(msg);
                    errorProvider.SetError(ute_mfa01, msg);
                    return(false);
                }

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        public FrmManr311(YR.ERP.Shared.UserInfo pUserInfo, vw_manr311 pManr311Model, bool pAutoExecuted, bool pCloseAfterExecute)
        {
            InitializeComponent();

            this.LoginInfo  = pUserInfo;
            this.Vw_Manr311 = pManr311Model;
            this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute;
            this.TabMaster.IsAutoExecuted       = pAutoExecuted;
        }