/// <summary> /// 查询销售订单分页列表 /// </summary> /// <returns></returns> public ActionResult GetOrderList() { string CompanyID = WebUtil.GetFormValue <string>("CompanyID"); int PageIndex = WebUtil.GetFormValue <int>("PageIndex", 1); int PageSize = WebUtil.GetFormValue <int>("PageSize", 10); string OrderNum = WebUtil.GetFormValue <string>("OrderNum"); int OrderType = WebUtil.GetFormValue <int>("OrderType", 0); string CusNum = WebUtil.GetFormValue <string>("CusNum"); string CusName = WebUtil.GetFormValue <string>("CusName"); string Contact = WebUtil.GetFormValue <string>("Contact"); string Phone = WebUtil.GetFormValue <string>("Phone"); string ContractOrder = WebUtil.GetFormValue <string>("ContractOrder"); string ContractSn = WebUtil.GetFormValue <string>("ContractSn"); int AuditeStatus = WebUtil.GetFormValue <int>("AuditeStatus", -1); int Status = WebUtil.GetFormValue <int>("Status", 0); string BeginTime = WebUtil.GetFormValue <string>("BeginTime"); string EndTime = WebUtil.GetFormValue <string>("EndTime"); string BeginOrderTime = WebUtil.GetFormValue <string>("BeginOrderTime"); string EndOrderTime = WebUtil.GetFormValue <string>("EndOrderTime"); string BeginSendTime = WebUtil.GetFormValue <string>("BeginSendTime"); string EndSendTime = WebUtil.GetFormValue <string>("EndSendTime"); Bill <SaleOrderEntity, SaleDetailEntity> bill = new SaleOrder(CompanyID); SaleOrderEntity entity = new SaleOrderEntity(); entity.CompanyID = CompanyID; entity.OrderNum = OrderNum; entity.OrderType = OrderType; entity.CusNum = CusNum; entity.CusName = CusName; entity.Contact = Contact; entity.Phone = Phone; entity.ContractOrder = ContractOrder; entity.ContractSn = ContractSn; entity.AuditeStatus = AuditeStatus; entity.Status = Status; entity.BeginTime = BeginTime; entity.EndTime = EndTime; entity.BeginOrderTime = BeginOrderTime; entity.EndOrderTime = EndOrderTime; entity.BeginSendTime = BeginSendTime; entity.EndSendTime = EndSendTime; PageInfo pageInfo = new PageInfo() { PageIndex = PageIndex, PageSize = PageSize }; List <SaleOrderEntity> listResult = bill.GetList(entity, ref pageInfo); DataListResult <SaleOrderEntity> dataResult = new DataListResult <SaleOrderEntity>() { Code = (int)EResponseCode.Success, Message = "响应成功", Result = listResult, PageInfo = pageInfo }; return(Content(JsonHelper.SerializeObject(dataResult))); }