Exemple #1
0
        protected override bool WfFormCheck()
        {
            vw_invr402 invr402Model = null;
            string     msg;

            try
            {
                invr402Model = DrMaster.ToItem <vw_invr402>();
                if (GlobalFn.varIsNull(invr402Model.ima01) &&
                    GlobalFn.varIsNull(invr402Model.ima02_s) &&
                    GlobalFn.varIsNull(invr402Model.ima02_e) &&
                    GlobalFn.varIsNull(invr402Model.ima03)
                    )
                {
                    msg = "請至少輸入一個條件!";
                    WfShowErrorMsg(msg);
                    errorProvider.SetError(ute_ima01, msg);
                    return(false);
                }

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        public FrmInvr402(YR.ERP.Shared.UserInfo pUserInfo, vw_invr402 pInvr402Model, bool pAutoExecuted, bool pCloseAfterExecute)
        {
            InitializeComponent();

            this.LoginInfo  = pUserInfo;
            this.Vw_Invr402 = pInvr402Model;
            this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute;
            this.TabMaster.IsAutoExecuted       = pAutoExecuted;
        }