Exemple #1
0
 private void GetCustOrder(string step,string workgroup)
 {
     wsINP.IwsINPClient client = new wsINP.IwsINPClient();
     try
     {
         List<MESParameterInfo> lstParameters = new List<MESParameterInfo>();
         lstParameters.Add(new MESParameterInfo()
         {
             ParamName = "status",
             ParamValue = step,
             ParamType = "string"
         });
         lstParameters.Add(new MESParameterInfo()
         {
             ParamName = "workgroup",
             ParamValue = workgroup,
             ParamType = "string"
         });
         DataSet ds = client.GetLeftWipRecords(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>());
         ds.Tables[0].DefaultView.Sort = "custorderno asc";
         this.ucmbCustOrderNo.SetDataBinding(ds.Tables[0], "");
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.CloseWCF(client);
     }
 }