public APIResponse SubmitClaim(SubmitClaimModel model)
        {
            OrderToCarClaim orderToCarClaim = new OrderToCarClaim();

            orderToCarClaim.PosMachineId       = model.PosMachineId;
            orderToCarClaim.RepairsType        = model.RepairsType;
            orderToCarClaim.CarPlateNo         = model.CarLicenseNumber;
            orderToCarClaim.HandPerson         = model.HandPerson;
            orderToCarClaim.HandPersonPhone    = model.HandPersonPhone;
            orderToCarClaim.InsuranceCompanyId = model.InsuranceCompanyId;
            orderToCarClaim.ClientRequire      = model.ClientRequire;
            IResult result = BizFactory.Order.SubmitClaim(model.UserId, model.UserId, orderToCarClaim);

            return(new APIResponse(result));
        }
예제 #2
0
        public APIResponse SubmitClaim(SubmitClaimModel model)
        {
            if (IsSaleman(model.UserId))
            {
                return(ResponseResult(ResultType.Failure, ResultCode.Failure, "该用户为业务员,不能提交订单"));
            }

            OrderToCarClaim orderToCarClaim = new OrderToCarClaim();

            orderToCarClaim.PosMachineId       = model.PosMachineId;
            orderToCarClaim.RepairsType        = model.RepairsType;
            orderToCarClaim.CarPlateNo         = model.CarLicenseNumber;
            orderToCarClaim.HandPerson         = model.HandPerson;
            orderToCarClaim.HandPersonPhone    = model.HandPersonPhone;
            orderToCarClaim.InsuranceCompanyId = model.InsuranceCompanyId;
            orderToCarClaim.ClientRequire      = model.ClientRequire;
            IResult result = BizFactory.Order.SubmitClaim(model.UserId, model.UserId, orderToCarClaim);

            return(new APIResponse(result));
        }