/// <summary> /// 搜索制作结算列表 /// </summary> /// <returns></returns> public JsonResult MakeCost_search(string id, string contractID, string channel, string state, string begin, string end) { DaMakeCostAccount dal = new DaMakeCostAccount(); IList<MakeCost> list = dal.getList(id, contractID, channel, state, begin, end); double money = 0.0; foreach (MakeCost en in list) money += en.money; var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = list.Count, rows = list, money = money }; return result; }
/// <summary> /// 获取制作结算列表 /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult Order_getMakeCostList(string id) { DaMakeCostAccount dal = new DaMakeCostAccount(); IList<MakeCost> list = dal.getList(id); var result = new CustomJsonResult(); result.Data = new { total = list.Count, rows = list }; return result; }
/// <summary> /// 获取制作结算列表 /// </summary> /// <returns></returns> public JsonResult MakeCost_getList() { DaMakeCostAccount dal = new DaMakeCostAccount(); IList<MakeCost> list = dal.getList(); double money = 0.0; foreach (MakeCost en in list) money += en.money; var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = list.Count, rows = list, money = money }; return result; }