Exemple #1
0
 private tinpreturn GetSingleReturn(string retsysid)
 {
     wsINP.IwsINPClient client = new wsINP.IwsINPClient();
     tinpreturn ret = null;
     try
     {
         baseForm.SetCursor();
         List<MESParameterInfo> lstParameters = new List<MESParameterInfo>();
         lstParameters.Add(new MESParameterInfo()
         {
             ParamName = "retsysid",
             ParamValue = retsysid,
             ParamType = "string"
         });
         ret = client.GetSingleReturn(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>());
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.ResetCursor();
         baseForm.CloseWCF(client);
     }
     return ret;
 }