Esempio n. 1
0
        private bool InnerValidate(OrderInfo order, out string errorMsg)
        {
            bool checkCustomerPass = true;

            if (order.Customer == null)
            {
                checkCustomerPass = false;
            }
            else
            {
                bool customerExist = PipelineDA.IsExistCustomer(order.Customer.SysNo);

                if (!customerExist)
                {
                    checkCustomerPass = false;
                }
            }

            if (!checkCustomerPass)
            {
                errorMsg = "您尚未登录或当前用户不存在,请您重新登录后再试";
            }
            else
            {
                errorMsg = null;
            }

            return(checkCustomerPass);
        }