Example #1
0
        protected override bool WfFormCheck()
        {
            vw_invr302 invr302Model = null;
            string     msg;

            try
            {
                invr302Model = DrMaster.ToItem <vw_invr302>();
                if (GlobalFn.varIsNull(invr302Model.iga01) &&
                    GlobalFn.varIsNull(invr302Model.iga02_s) &&
                    GlobalFn.varIsNull(invr302Model.iga02_e)
                    )
                {
                    msg = "請至少輸入一個條件!";
                    WfShowErrorMsg(msg);
                    errorProvider.SetError(ute_iga01, msg);
                    return(false);
                }

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #2
0
        public FrmInvr302(YR.ERP.Shared.UserInfo pUserInfo, vw_invr302 pInvr302Model, bool pAutoExecuted, bool pCloseAfterExecute)
        {
            InitializeComponent();

            this.LoginInfo  = pUserInfo;
            this.Vw_Invr302 = pInvr302Model;
            this.TabMaster.IsCloseAfterExecuted = pCloseAfterExecute;
            this.TabMaster.IsAutoExecuted       = pAutoExecuted;
        }