コード例 #1
0
ファイル: Employee.xaml.cs プロジェクト: vazeele/MDM
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     if (tb_Employee.IsSelected)
     {
         ESearchControl.ResetSearchControl();
         employee = new EmployeeModel(this);
     }
     else if (tb_EmployeePD.IsSelected)
     {
         PDSearchControl.ResetSearchControl();
         pd = new EmployeePDModel(this);
     }
     else if (tb_EmployeeJI.IsSelected)
     {
         JISearchControl.ResetSearchControl();
         ji = new EmployeeJIModel(this);
     }
     else if (tb_EmployeeJS.IsSelected)
     {
         JSSearchControl.ResetSearchControl();
         js = new EmployeeJSModel(this);
     }
     else if (tb_EmployeeTD.IsSelected)
     {
         TDSearchControl.ResetSearchControl();
         td = new EmployeeTDModel(this);
     }
     else if (tb_EmployeePC.IsSelected)
     {
         PCSearchControl.ResetSearchControl();
         pc = new EmployeePCModel(this);
     }
     else if (tb_EmployeeCDWD.IsSelected)
     {
         CDWDSearchControl.ResetSearchControl();
         cdwd = new EmployeeCDWDModel(this);
     }
     else if (tb_EmployeeOC.IsSelected)
     {
         OCSearchControl.ResetSearchControl();
         oc = new EmployeeOCModel(this);
     }
     else if (tb_EmployeeEIMWS.IsSelected)
     {
         EIMWSSearchControl.ResetSearchControl();
         eimws = new EmployeeEIMWSModel(this);
     }
 }
コード例 #2
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     if (tb_Employee.IsSelected)
     {
         ESearchControl.ResetSearchControl();
         employee = new EmployeeModel(this);
     }
     else if (tb_EmployeePD.IsSelected)
     {
         PDSearchControl.ResetSearchControl();
         pd = new EmployeePDModel(this);
     }
     else if (tb_EmployeeJI.IsSelected)
     {
         JISearchControl.ResetSearchControl();
         ji = new EmployeeJIModel(this);
     }
     else if (tb_EmployeeJS.IsSelected)
     {
         JSSearchControl.ResetSearchControl();
         js = new EmployeeJSModel(this);
     }
 }