Esempio n. 1
0
        private DataTable GetRepairInfoForInspectRpt(string customerid,string custorderno)
        {
            wsINP.IwsINPClient client = new wsINP.IwsINPClient();
            DataTable dt = null;
            try
            {
                List<MESParameterInfo> lstParams = new List<MESParameterInfo>() {
                            new MESParameterInfo(){ParamName="customerid",ParamValue=customerid},
                            new MESParameterInfo(){ParamName="custorderno",ParamValue=custorderno}
                        };
                dt = client.GetRepairInfoForInspectRpt(baseForm.CurrentContextInfo, lstParams.ToArray<MESParameterInfo>()).Tables[0];

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                baseForm.CloseWCF(client);
            }
            return dt;
        }