示例#1
0
 public void TS_Impm(Auth auth, Impm request, Impm_Logic impm_Logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/wms/impm1/enquiry") > 0)
         {
             ecr.data.results = impm_Logic.Get_Impm1_Enquiry_List(request);
         }
         else if (uri.IndexOf("/wms/impm1/transfer") > 0)
         {
             ecr.data.results = impm_Logic.Get_Impm1_Transfer_List(request);
         }
         else if (uri.IndexOf("/wms/impm1") > 0)
         {
             ecr.data.results = impm_Logic.Get_Impm1_List(request);
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }
示例#2
0
 public void TS_Impm(Auth auth, Impm request, Impm_Logic logic, CommonResponse ecr, string[] token, string uri)
 {
     if (auth.AuthResult(token, uri))
     {
         if (uri.IndexOf("/wms/impm1/putaway/update") > 0)
         {
             ecr.data.results = logic.Update_Impm1_StoreNo(request);
         }
         if (uri.IndexOf("/wms/impm1/putaway") > 0)
         {
             ecr.data.results = logic.Get_Impm1_Putaway_List(request);
         }
         ecr.meta.code    = 200;
         ecr.meta.message = "OK";
     }
     else
     {
         ecr.meta.code    = 401;
         ecr.meta.message = "Unauthorized";
     }
 }