当前位置: 首页 > news >正文

InsuranceclaimsController

目录

1、 InsuranceclaimsController

1.1、 判断是否存在索赔单据

1.1.1、 //结算状态名称

1.1.2、 //维修单号

1.1.3、 //保单金额

  1. InsuranceclaimsController 

using QXQPS.Models;

using QXQPS.Vo;

using System;

using System.Collections;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.Mvc;

namespace QXQPS.Areas.MechanicsManagment.Controllers

{

    public class InsuranceclaimsController : Controller

    {

        // GET: MechanicsManagment/Insuranceclaims

        Models.QXQPEntities myModels = new Models.QXQPEntities();

    1. 判断是否存在索赔单据

        public ActionResult SelectInsuranceData(int InsuranceDetailID)//判断是否存在索赔单据

        {

            try

            {

                var lingItem = (from tbInsurance in myModels.PW_Insurance

                                join tbInsuranceDetail in myModels.SYS_InsuranceDetail on tbInsurance.InsuranceDetailID equals tbInsuranceDetail.InsuranceDetailID

                                join tbReception in myModels.PW_Reception on tbInsuranceDetail.ReceptionID equals tbReception.ReceptionID

                                join tbInsuranceCom in myModels.SYS_InsuranceCom on tbInsuranceDetail.InsuranceComID equals tbInsuranceCom.InsuranceComID

                                join tbRepair in myModels.SYS_Repair on tbReception.RepairID equals tbRepair.RepairID

                                join tbDocumentState in myModels.SYS_DocumentState on tbReception.DocumentStateID equals tbDocumentState.DocumentStateID

                                join tbBalanceState in myModels.SYS_BalanceState on tbReception.BalanceStateID equals tbBalanceState.BalanceStateID

                                join tbCustomerSou in myModels.SYS_CustomerSou on tbReception.CustomerSouID equals tbCustomerSou.CustomerSouID

                                where tbInsurance.InsuranceDetailID == InsuranceDetailID

                                select new ReceptionVo

                                {

                                    CustomerNum = tbReception.CustomerNum.Trim(),//客户编号

                                    ReceptionID = tbReception.ReceptionID,//客户接待ID

                                    DocumentStateID = tbDocumentState.DocumentStateID,//单据状态ID

                                    DocumentState = tbDocumentState.DocumentState.Trim(),//单据状态名称

                                    BalanceStateID = tbBalanceState.BalanceStateID,//结算状态ID

                                    BalanceState = tbBalanceState.BalanceState.Trim(),

      1. //结算状态名称

                                    CarNum = tbReception.CarNum.Trim(),//车牌

                                    VehicleType = tbReception.VehicleType.Trim(),//车型

                                    MaintenanceNum = tbReception.MaintenanceNum.Trim(),

      1. //维修单号

                                    Owner = tbReception.Owner.Trim(),//车主

                                    OpenDates = tbInsurance.OpenDate.ToString(),//开单日期

                                    balanceDates = tbInsurance.BalanceDate.ToString(),//结算日期

                                    ToAudit = tbInsurance.ToAudit,//审核否

                                    InsuranceID = tbInsurance.InsuranceID,//三包ID

                                    InsuranceDetailID = tbInsuranceDetail.InsuranceDetailID,//三包明细ID

                                    InsuranceComID = tbInsuranceCom.InsuranceComID,//索赔厂家ID

                                    ClaimStaff = tbInsurance.ClaimsStaff.Trim(),//索赔员工

                                    ToTicket = tbInsurance.ToTicket != true ? "false" : "true",//是否开票

                                    InsuranceNum = tbInsurance.InsuranceNum.Trim(),//索赔单号

                                    ReportNum = tbInsuranceDetail.ReportNum,//报案编号

                                    PolicyNum = tbInsuranceDetail.PolicyNum,//保单号

                                    PolicyMoney = (decimal)tbInsuranceDetail.PolicyMoney,

      1. //保单金额

                                    Amount = tbInsurance.Amount,//总金额

                                    Describe = tbInsurance.Remark.Trim(),//备注

                                }).Single();

                return Json(lingItem, JsonRequestBehavior.AllowGet);

            }

            catch (Exception)

            {

                return Json(false, JsonRequestBehavior.AllowGet);

            }

        }


http://www.mrgr.cn/news/64543.html

相关文章:

  • 数字信号处理:自动增益控制(AGC)
  • Oracle OCP认证考试考点详解082系列11
  • 硬件在环仿真建模之电路拓扑建模与数学建模
  • 【elkb】创建用户和角色
  • UOS 安装usb wifi 网卡驱动
  • word mathml 创建粗体字母快捷键
  • 【k8s】-运维技巧-1
  • ngxin系列--(二)--stream模块的加载、accept、read/write
  • 利士策分享,青年心向新潮,未来可期
  • 大模型入门(二)—— PEFT
  • 【JavaEE初阶 — 多线程】Thread的常见构造方法&属性
  • 【Python】全面解析Python中的GIL(全局解释器锁):多线程与多进程的实战与抉择
  • asrpro 库制作
  • 样本不均衡与异常点检测处理|SMOTE|LOF|IForest
  • SVN 提交操作
  • 【语义分割|代码解析】CMTFNet-4: CNN and Multiscale Transformer Fusion Network 用于遥感图像分割!
  • 非线性数据结构之图
  • Python编程风格:保持逻辑完整性
  • Linux运行Java程序,并按天输出日志
  • 【Orange Pi 5 Linux 5.x 内核编程】-设备驱动中的sysfs
  • 【单片机C51两个按键K1、K2控制8个LED灯,初始值0xFE。摁下一次K1,LED灯左移;摁下一次K2,LED灯右移;】2022-1-5
  • 再学FreeRTOS---(中断管理)
  • 智能指针、移动语义、完美转发、lambda
  • 数字信号处理Python示例(3)生成三相正弦信号
  • 鸿蒙开发案例:分贝仪
  • Android中的Handle底层原理