private DataTable GetPackingRecDtl() { wsINP.IwsINPClient client = new wsINP.IwsINPClient(); DataTable dt = null; try { List<MESParameterInfo> lstParams = new List<MESParameterInfo>() { new MESParameterInfo(){ParamName="pktype",ParamValue=MES_PackingType.Packing.ToString()} }; DataSet ds = client.GetPackingRecDtlRecords(baseForm.CurrentContextInfo, lstParams.ToArray<MESParameterInfo>()); dt = ds.Tables[0]; ds.Tables.Clear(); } catch (Exception ex) { throw ex; } finally { baseForm.CloseWCF(client); } return dt; }