Ejemplo n.º 1
0
        /// <summary>
        /// 查询出库单详细分页
        /// </summary>
        /// <returns></returns>
        public ActionResult GetDetailList()
        {
            string CompanyID   = WebUtil.GetFormValue <string>("CompanyID");
            string OrderNum    = WebUtil.GetFormValue <string>("OrderNum");
            string BarCode     = WebUtil.GetFormValue <string>("BarCode");
            string ProductName = WebUtil.GetFormValue <string>("ProductName");
            string StorageNum  = WebUtil.GetFormValue <string>("StorageNum");
            string CusNum      = WebUtil.GetFormValue <string>("CusNum");
            string CusName     = WebUtil.GetFormValue <string>("CusName");
            string BeginTime   = WebUtil.GetFormValue <string>("BeginTime");
            string EndTime     = WebUtil.GetFormValue <string>("EndTime");
            int    Status      = WebUtil.GetFormValue <int>("Status", 0);
            int    OutType     = WebUtil.GetFormValue <int>("OutType", 0);
            string CarrierNum  = WebUtil.GetFormValue <string>("CarrierNum");
            string CarrierName = WebUtil.GetFormValue <string>("CarrierName");
            string LogisticsNo = WebUtil.GetFormValue <string>("LogisticsNo");

            int PageIndex = WebUtil.GetFormValue <int>("PageIndex", 1);
            int PageSize  = WebUtil.GetFormValue <int>("PageSize", 10);

            OutStoDetailEntity entity = new OutStoDetailEntity();

            entity.CompanyID   = CompanyID;
            entity.BarCode     = BarCode;
            entity.ProductName = ProductName;
            entity.StorageNum  = StorageNum;
            entity.CusNum      = CusNum;
            entity.CusName     = CusName;
            entity.BeginTime   = BeginTime;
            entity.EndTime     = EndTime;
            entity.Status      = Status;
            entity.OutType     = OutType;
            entity.OrderNum    = OrderNum;
            entity.CarrierNum  = CarrierNum;
            entity.CarrierName = CarrierName;
            entity.LogisticsNo = LogisticsNo;


            PageInfo pageInfo = new PageInfo()
            {
                PageIndex = PageIndex, PageSize = PageSize
            };
            Bill <OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder(CompanyID);
            List <OutStoDetailEntity>           listResult   = bill.GetDetailList(entity, ref pageInfo);
            DataListResult <OutStoDetailEntity> dataResult   = new DataListResult <OutStoDetailEntity>()
            {
                Code     = (int)EResponseCode.Success,
                Message  = "响应成功",
                Result   = listResult,
                PageInfo = pageInfo
            };

            return(Content(JsonHelper.SerializeObject(dataResult)));
        }