public void SearchWorkCenters()
 {
     try
     {
         using (ProxyBE p = new ProxyBE())
         {
             SearchWorkCenterArgs args = new SearchWorkCenterArgs();
             args.OrderBy = "[Sequence]";
             if (!string.IsNullOrEmpty(parm.WorkCenterCode))
             {
                 args.WorkCenterCode = parm.WorkCenterCode;
             }
             if (!string.IsNullOrEmpty(parm.WorkCenterName))
             {
                 args.WorkCenterName = parm.WorkCenterName;
             }
             args.RowNumberFrom = pagingParm.RowNumberFrom;
             args.RowNumberTo   = pagingParm.RowNumberTo;
             SearchResult sr = p.Client.SearchWorkCenter(SenderUser, args);
             Response.Write(JSONHelper.Dataset2Json(sr.DataSet));
         }
     }
     catch (Exception ex)
     {
         //WriteError(ex.Message, ex);
         Response.Write(ex);
     }
 }
Example #2
0
 public SearchResult SearchWorkCenter(Sender sender, SearchWorkCenterArgs args)
 {
     try
     {
         using (ObjectProxy op = new ObjectProxy())
         {
             return(op.SearchWorkCenter(args));
         }
     }
     catch (Exception ex)
     {
         PLogger.LogError(ex);
         throw ex;
     }
 }