Beispiel #1
0
 public void ShowEmployeeList()
 {
     wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient();
     try
     {
         baseForm.SetCursor();
         DataSet employeeDs = client.GetEmployeeRecords(baseForm.CurrentContextInfo, QueryParameters.ToArray<MESParameterInfo>());
         this.gridEmployeeList.SetDataBinding( employeeDs.Tables[0],"");
         if (employeeDs.Tables[0].Rows.Count < 1)
         {
             this.ucToolbarEmployeeList.SetToolbarWithoutRows();
         }
         else
         {
             this.ucToolbarEmployeeList.SetToolbarWithRows();
         }
         this.ucStatusBarEmployeeList.ShowText1(UtilCulture.GetString("Msg.R00006") + ": " + employeeDs.Tables[0].Rows.Count.ToString());
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         baseForm.ResetCursor();
         baseForm.CloseWCF(client);
     }
 }