コード例 #1
0
ファイル: frmRepairAdjust.cs プロジェクト: jimidzj/Inspect
 private DataTable GetRepairFail(string repsysid,string reasoncode)
 {
     wsINP.IwsINPClient client = new wsINP.IwsINPClient();
     DataTable dt = null;
     try
     {
         List<MESParameterInfo> lstParameters = new List<MESParameterInfo>();
         lstParameters.Add(new MESParameterInfo()
         {
             ParamName = "repsysid",
             ParamValue = repsysid,
             ParamType = "string"
         });
         lstParameters.Add(new MESParameterInfo()
         {
             ParamName = "reasoncode",
             ParamValue = reasoncode,
             ParamType = "string"
         });
         dt = client.GetRepairFailRecords(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()).Tables[0];
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.CloseWCF(client);
     }
     return dt;
 }