目录
1、 SettlementfactoryController
1.1、 查询结算明细信息
1.1.1、 //SYS_RecRepairItemDetail修理项目明细表
1.1.2、 //SYS_CollageDetai领料明细表
1.1.3、 //SYS_RecOtherCostDetail其他费用明细表
1.1.4、 //SYS_InsuranceDetail保险理赔明细表
1.1.5、 //SYS_ThreePacksDetail三包索赔明细表
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 SettlementfactoryController : Controller
{
// GET: MechanicsManagment/Settlementfactory
Models.QXQPEntities myModels = new Models.QXQPEntities();
public ActionResult SelectBalanceDetail(int ReceptionID)//查询结算明细信息
{
ArrayList lists = new ArrayList();
try
{
-
-
- //SYS_RecRepairItemDetail修理项目明细表
-
var listRecRepairItemDetail = myModels.SYS_RecRepairItemDetail.Where(m => m.ReceptionID == ReceptionID).ToList();
-
-
- //SYS_CollageDetai领料明细表
-
var listCollageDetai = (from tbCollage in myModels.PW_Collage
join tbCollageDetai in myModels.SYS_CollageDetai on tbCollage.CollageID equals tbCollageDetai.CollageID
where tbCollage.ReceptionID == ReceptionID
select tbCollageDetai).ToList();
-
-
- //SYS_RecOtherCostDetail其他费用明细表
-
var listRecOtherCostDetail = myModels.SYS_RecOtherCostDetail.Where(m => m.ReceptionID == ReceptionID).ToList();
-
-
- //SYS_InsuranceDetail保险理赔明细表
-
var listInsuranceDetail = myModels.SYS_InsuranceDetail.Where(m => m.ReceptionID == ReceptionID).ToList();
-
-
- //SYS_ThreePacksDetail三包索赔明细表
-
var listThreePacksDetail = myModels.SYS_ThreePacksDetail.Where(m => m.ReceptionID == ReceptionID).ToList();
lists.Add(listRecRepairItemDetail);
lists.Add(listCollageDetai);
lists.Add(listRecOtherCostDetail);
lists.Add(listInsuranceDetail);
lists.Add(listThreePacksDetail);
}
catch (Exception)
{
throw;
}
return Json(lists, JsonRequestBehavior.AllowGet);
}