/// <summary> /// 获取企业信息完善的数据源 /// </summary> /// <param name="form"></param> /// <returns></returns> public ActionResult GetUnitPerfectSoure(FormCollection form) { int rows = int.Parse(form["rows"]); int page = int.Parse(form["page"]); int user_id = operateContext.Usr.user_id; List <B01> unitList = operateContext.bllSession.B01.GetPerUnitByUserID(user_id); if (!string.IsNullOrEmpty(form["txtSearchName"])) { string unitName = form["txtSearchName"]; unitList = unitList.Where(o => o.UnitName.Contains(unitName)).ToList(); } HCQ2_Model.ViewModel.TableModel modle = new HCQ2_Model.ViewModel.TableModel { rows = unitList.Skip((rows * page) - rows).Take(rows), total = unitList.Count }; return(Json(modle, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 获取欠薪人数、金额统计的详细信息 /// </summary> /// <param name="form"></param> /// <returns></returns> public ActionResult GetQXTJSoure(FormCollection form) { var data = operateContext.bllSession.View_QXTJ.GetMainWagePerson( HCQ2UI_Helper.OperateContext.Current.Usr.user_id); int rows = int.Parse(form["rows"]); int page = int.Parse(form["page"]); if (!string.IsNullOrEmpty(form["project_name"])) { string project_name = form["project_name"]; data = data.Where(o => o.B0001Name.Contains(project_name)).ToList(); } var viewData = data.Skip((rows * page) - rows).Take(rows); HCQ2_Model.ViewModel.TableModel modle = new HCQ2_Model.ViewModel.TableModel { total = data.Count(), rows = viewData }; return(Json(modle, JsonRequestBehavior.AllowGet)); }