Exemplo n.º 1
0
 /// <summary>
 /// 查询已配完信息或者部分配货信息
 /// </summary>
 /// <param name="packgecode"></param>
 /// <param name="ispacked"></param>
 /// <returns></returns>
 public ActionResult SearchIspack(string packgecode, int ispacked, int pageSize, int pageIndex = 1)
 {
     DBModel.Common.ComResult res = new DBModel.Common.ComResult();
     //包裹号不为空的情况下,需要判断包裹号在系统中是否存在
     if (!string.IsNullOrEmpty(packgecode))
     {
         bool isok = _service.IsPackgeInSys(packgecode);
         if (!isok)
         {
             res.Msg   = "输入的包裹号在系统中不存在,请确认";
             res.State = 0;
             return(Json(res));
         }
     }
     try
     {
         int packgecount           = 0;
         int count                 = 0;
         List <PrintSelect> list   = _service.GetPrintSelectList(packgecode, ispacked, pageSize, pageIndex, out packgecount, out count);
         MyPageList         mylist = new MyPageList();
         mylist.list      = list;
         mylist.pageCount = packgecount;
         mylist.count     = count;
         mylist.pageIndex = pageIndex;
         mylist.pageSize  = pageSize;
         return(Json(mylist));
     }
     catch (Exception ex)
     {
         res.State = 0;
         res.Msg   = ex.Message;
         return(Json(res));
     }
 }