示例#1
0
 //
 //POST: /WIP/LotQuery/GetLotParam
 public async Task <ActionResult> GetLotParamWS(string lotNumber)
 {
     using (LotQueryServiceClient client = new LotQueryServiceClient())
     {
         await Task.Run(() =>
         {
             PagingConfig cfg = new PagingConfig()
             {
                 IsPaging = false,
                 Where    = string.Format(@" EXISTS(FROM LotTransaction as p
                                                 WHERE p.Key=self.Key.TransactionKey
                                                 AND p.LotNumber='{0}'
                                                 AND p.UndoFlag=0)"
                                          , lotNumber
                                          , Convert.ToInt32(EnumLotActivity.Scrap)),
                 OrderBy = "EditTime"
             };
             MethodReturnResult <IList <LotTransactionParameter> > result = client.GetTransactionParameter(ref cfg);
             if (result.Code == 0)
             {
                 ViewBag.ParamList = result.Data;
             }
         });
     }
     return(PartialView("_ParamListPartial_ws"));
 }