Exemple #1
0
 public void ShowCustomerList()
 {
     wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient();
     try
     {
         baseForm.SetCursor();
         DataSet ds = client.GetCustomerRecords(baseForm.CurrentContextInfo, QueryParameters.ToArray<MESParameterInfo>());
         this.gridCustomerList.SetDataBinding(ds.Tables[0],"");
         if (ds.Tables[0].Rows.Count < 1)
         {
             this.ucToolbarCustomerList.SetToolbarWithoutRows();
         }
         else
         {
             this.ucToolbarCustomerList.SetToolbarWithRows();
         }
         this.ucStatusBarCustomerList.ShowText1(UtilCulture.GetString("Msg.R00006") + ": " + ds.Tables[0].Rows.Count.ToString());
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.ResetCursor();
         baseForm.CloseWCF(client);
     }
 }
Exemple #2
0
 private DataSet GetAllCustomer()
 {
     wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient();
     DataSet ds = null;
     try
     {
         baseForm.SetCursor();
         List<MESParameterInfo> lstParameters = new List<MESParameterInfo>();
         ds = client.GetCustomerRecords(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>());
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.ResetCursor();
         baseForm.CloseWCF(client);
     }
     return ds;
 }