コード例 #1
0
ファイル: Employee.xaml.cs プロジェクト: vazeele/MDM
        private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!(e.Source is TabControl))
            {
                return;
            }

            if (tb_Employee.IsSelected)
            {
                if (employee == null)
                    employee = new EmployeeModel(this);
            }
            else if (tb_EmployeePD.IsSelected)
            {
                if (pd == null)
                    pd = new EmployeePDModel(this);
            }
            else if (tb_EmployeeJI.IsSelected)
            {
                if (ji == null)
                    ji = new EmployeeJIModel(this);
            }
            else if (tb_EmployeeJS.IsSelected)
            {
                if (js == null)
                    js = new EmployeeJSModel(this);
            }
            else if (tb_EmployeeTD.IsSelected)
            {
                if (td == null)
                    td = new EmployeeTDModel(this);
            }
            else if (tb_EmployeePC.IsSelected)
            {
                if (pc == null)
                    pc = new EmployeePCModel(this);
            }
            else if (tb_EmployeeCDWD.IsSelected)
            {
                if (cdwd == null)
                    cdwd = new EmployeeCDWDModel(this);
            }
            else if (tb_EmployeeOC.IsSelected)
            {
                if (oc == null)
                    oc = new EmployeeOCModel(this);
            }
            else if (tb_EmployeeEIMWS.IsSelected)
            {
                if (eimws == null)
                    eimws = new EmployeeEIMWSModel(this);
            }
        }
コード例 #2
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);
     }
 }
コード例 #3
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);
     }
 }
コード例 #4
0
        private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!(e.Source is TabControl))
            {
                return;
            }

            if (tb_Employee.IsSelected)
            {
                if (employee == null)
                {
                    employee = new EmployeeModel(this);
                }
            }
            else if (tb_EmployeePD.IsSelected)
            {
                if (pd == null)
                {
                    pd = new EmployeePDModel(this);
                }
            }
            else if (tb_EmployeeJI.IsSelected)
            {
                if (ji == null)
                {
                    ji = new EmployeeJIModel(this);
                }
            }
            else if (tb_EmployeeJS.IsSelected)
            {
                if (js == null)
                {
                    js = new EmployeeJSModel(this);
                }
            }
        }