/// <summary> /// 获取下单列表 /// </summary> /// <returns></returns> public JsonResult OrderList_getList() { DaOrderInfo dal = new DaOrderInfo(); IList<OrderInfo> contracts = dal.getList(BaseHelper.getCookie().id.ToString()); var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = contracts.Count, rows = contracts }; return result; }
/// <summary> /// 搜索下单列表 /// </summary> /// <returns></returns> public JsonResult OrderList_search(string order, string contract, string begin, string end, string person, string adTarget, string makeTarget) { DaOrderInfo dal = new DaOrderInfo(); IList<OrderInfo> contracts = dal.getList(order, contract, begin, end, person, adTarget, makeTarget, BaseHelper.getCookie().id.ToString()); var result = new CustomJsonResult(); result.dateFormat = "yyyy-MM-dd"; result.Data = new { total = contracts.Count, rows = contracts }; return result; }
/// <summary> /// 获取订单列表 /// </summary> /// <returns></returns> public JsonResult Order_getList() { DaOrderInfo dal = new DaOrderInfo(); IList<OrderInfo> orders = dal.getList(BaseHelper.getCookie().id.ToString()); var result = new CustomJsonResult(); result.Data = new { total = orders.Count, rows = orders }; return result; }