/// <summary> /// 获取年终总结一览数据 /// </summary> /// <param name="param"></param> /// <param name="yeArrear"></param> /// <returns></returns> public ActionResult YearBalanceSearch(EasyUIGridParamModel param, YearEndArrear yeArrear) { int itemCount = 0; var YeArrearList = new YearEndArrearRule().Search(param, yeArrear, out itemCount); var showList = from ya in YeArrearList select new { ID = ya.ID, Name = ya.NAME, Money = ya.MONEY, Status = GetYearEndArrearStatus(ya.STATUS), Year = ya.YEAR, ChargeDate = ya.CHARGEDATE }; return(Json(new { total = itemCount, rows = showList }, JsonRequestBehavior.AllowGet)); }
public JsonResult CustomerDetail(string customerID) { if (!string.IsNullOrEmpty(customerID)) { // 客户信息 var customer = new CustomerRule().CustomerDetail(customerID); // 缴费项目信息 List <dynamic> chargeItemList = new ChargeItemRule().SearchChargeItem(customerID); var chargeItem = from chargeItems in chargeItemList select new { Name = chargeItems.NAME, Price = chargeItems.UNITPRICE, Count = chargeItems.COUNT, AgreeMentMoney = chargeItems.AGREEMENTMONEY, ItemCount = 0 }; // 协议信息 var agreements = new AgreementsRule().GetAgreementObjectByCustomerID(customerID); // 子客户信息 var childCustomer = new CustomerRule().GetChildrenCustomer(customerID); // 缴费历史 //int itemCount = 0; var chargeHistory = new ChargeRule().ChargeSearch(customerID); // 欠费记录 var arrearRecord = new YearEndArrearRule().GetArrearRecordByCustomerID(customerID); //chargeHistory, return(Json(new { customer, chargeItem, agreements, childCustomer, arrearRecord, chargeHistory }, JsonRequestBehavior.AllowGet)); } else { return(Json(new Ajax.Model.Customer())); } }