示例#1
0
        public EditEmployeeView(CommContracts.Employee employee = null)
        {
            InitializeComponent();

            CommClient.Department myd  = new CommClient.Department();
            CommClient.Job        myd1 = new CommClient.Job();
            CommClient.Employee   myd2 = new CommClient.Employee();

            GenderCombo.ItemsSource    = Enum.GetValues(typeof(CommContracts.GenderEnum));
            GenderCombo.SelectedItem   = CommContracts.GenderEnum.男;
            DeparmentCombo.ItemsSource = myd.getALLDepartment("");
            JobCombo.ItemsSource       = myd1.GetAllJob();
            bIsEdit = false;
            if (employee != null)
            {
                this.Employee                    = employee;
                this.NameEdit.Text               = employee.Name;
                this.GenderCombo.SelectedItem    = employee.Gender;
                this.DeparmentCombo.SelectedItem = myd2.GetCurrentDepartment(employee.ID);
                this.JobCombo.SelectedItem       = myd2.GetCurrentJob(employee.ID);
                this.LoginNameEdit.Text          = employee.LoginName;
                this.PasswordEdit.Password       = "";
                bIsEdit = true;
            }
        }
        private void updateLeaveDateToView()
        {
            this.LeaveHospitalDepartment.Text     = "";
            this.LeaveHospitalDoctor.Text         = "";
            this.LeaveHospitalDiagnosis.Text      = "";
            this.LeaveHospitalTime.SelectedDate   = null;
            this.LeaveHospitalTime.DisplayDateEnd = DateTime.Now;


            if (MyCurrentInpatient != null)
            {
                if (MyCurrentInpatient.InTime != null)
                {
                    this.LeaveHospitalTime.DisplayDateStart = MyCurrentInpatient.InTime;
                }
                if (MyCurrentInpatient.InHospitalPatientDoctors != null && MyCurrentInpatient.InHospitalPatientDoctors.Count() > 0)
                {
                    CommClient.Employee employeeClient = new CommClient.Employee();
                    this.LeaveHospitalDepartment.Text = employeeClient.GetCurrentDepartment(MyCurrentInpatient.InHospitalPatientDoctors.Last().Doctor.ID).Name;

                    this.LeaveHospitalDoctor.Text = MyCurrentInpatient.InHospitalPatientDoctors.Last().Doctor.Name;
                }
            }

            if (MyCurrentLeaveHospital != null)
            {
                this.LeaveHospitalDiagnosis.Text    = MyCurrentLeaveHospital.Diagnosis;
                this.LeaveHospitalTime.SelectedDate = MyCurrentLeaveHospital.LeaveTime;
            }
        }
示例#3
0
        private void listView1_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TreeViewItem item = MyDataNameList.SelectedItem as TreeViewItem;

            if (item == null)
            {
                return;
            }

            string strCurrentName = item.Header.ToString();

            if (strCurrentName == "科室字典")
            {
                var currentDepartment = this.listView1.SelectedItem as CommContracts.Department;
                if (currentDepartment == null)
                {
                    return;
                }

                SetMenuEnable(false);
                var vm = this.DataContext as HISGUIDoctorVM;

                CommClient.Employee employeeClient = new CommClient.Employee();
                int nCurrentDepartmentID           = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID).ID;

                if (currentDepartment.ID == nCurrentDepartmentID)
                {
                    // 只允许修改自身所在科室的信息
                    this.EditBtn.IsEnabled = true;
                }
            }
        }
示例#4
0
        // 得到所有的人员
        public List <CommContracts.Employee> GetAllEmployee(string strName = "")
        {
            CommClient.Employee myd = new CommClient.Employee();

            List <CommContracts.Employee> list = new List <CommContracts.Employee>();

            list = myd.GetAllEmployee(strName);
            return(list);
        }
        private void mnuAddDate_Click(object sender, RoutedEventArgs e)
        {
            CommClient.Employee           employeeClient = new CommClient.Employee();
            List <CommContracts.Employee> list           = employeeClient.GetAllEmployee();

            mailMerge1.SearchPath = "";

            mailMerge1.MergeObject(list.ElementAt(0));
        }
示例#6
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            CommClient.Employee myd = new CommClient.Employee();
            // 得到医生
            CommClient.EmployeeDepartmentHistory historyClient      = new CommClient.EmployeeDepartmentHistory();
            List <CommContracts.Employee>        listOfSignalSource = historyClient.GetAllDepartmentEmployee(0);

            this.listView1.ItemsSource = listOfSignalSource;
            SelectDoctor = new CommContracts.Employee();
        }
示例#7
0
        // 删除供人员
        public bool DeleteEmployee(int employeeID)
        {
            CommClient.Employee myd = new CommClient.Employee();
            if (myd.DeleteEmployee(employeeID))
            {
                return(true);
            }

            return(false);
        }
        private void InDoctorEditBtn_Click(object sender, RoutedEventArgs e)
        {
            var tempDoctor = getDoctor();

            if (tempDoctor != null)
            {
                this.InDoctorEdit.Text = tempDoctor.Name;

                CommClient.Employee employeeClient = new CommClient.Employee();
                this.InDepartmentEdit.Text = employeeClient.GetCurrentDepartment(tempDoctor.ID).Name;
            }
        }
示例#9
0
        private void ClinicManagementView_Loaded(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HISGUIDoctorVM;

            CommClient.Department myd = new CommClient.Department();

            CommClient.Employee employeeClient = new CommClient.Employee();
            this.DepartmentBlock.Text = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID).Name;

            currentManageDate = DateTime.Now.Date;
            updateDateMsg();

            updateDateClinicMsg();
        }
        private void LeaveHospitalDoctorBtn_Click(object sender, RoutedEventArgs e)
        {
            if (MyCurrentInpatient == null)
            {
                return;
            }

            var tempDoctor = getDoctor();

            if (tempDoctor != null)
            {
                this.LeaveHospitalDoctor.Text = tempDoctor.Name;
                CommClient.Employee employeeClient = new CommClient.Employee();
                this.LeaveHospitalDepartment.Text = employeeClient.GetCurrentDepartment(tempDoctor.ID).Name;
            }
        }
示例#11
0
        private List <WaitMsg> updateAllWait()
        {
            List <WaitMsg> waitList = new List <WaitMsg>();

            var vm = this.DataContext as HISGUINurseVM;

            CommClient.Employee employeeClient = new CommClient.Employee();

            var department = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID);

            if (department == null)
            {
                return(null);
            }


            // 得到该科室所有已到诊患者
            List <CommContracts.Registration> registrationList = vm?.GetOneDayRegistrationList(department.ID, DateTime.Now.Date);

            foreach (var aa in registrationList)
            {
                WaitMsg waitMsg = new WaitMsg();
                waitMsg.Department     = aa.Department.Name;
                waitMsg.ClinicVistTime = aa.SignalTime;
                //waitMsg.Doctor = doc.EmployeeID.ToString();

                var numQuery = (from u in registrationList
                                where
                                //u.SignalSourceID == doc.ID &&
                                u.ArriveTime.HasValue &&
                                u.SeeDoctorStatus == CommContracts.SeeDoctorStatusEnum.候诊中
                                select u).Count();

                waitMsg.WaitNum = numQuery;
                waitList.Add(waitMsg);
            }

            return(waitList);
        }
示例#12
0
        public bool Login(string UserName, string PassWord)
        {
            CommClient.Employee login = new CommClient.Employee();

            try
            {
                var tem = login.Authenticate(UserName, PassWord, MachineCode.GetMachineCodeString());
                if (tem == null)
                {
                    return(false);
                }
                else
                {
                    this.CurrentUser = tem;
                    return(true);
                }
            }
#pragma warning disable CS0168 // 声明了变量“ex”,但从未使用过
            catch (Exception ex)
#pragma warning restore CS0168 // 声明了变量“ex”,但从未使用过
            {
                return(false);
            }
        }
示例#13
0
        private List <PaiBan> updateDateClinicMsgGrid()
        {
            var vm = this.DataContext as HISGUIDoctorVM;

            CommClient.Employee employeeClient = new CommClient.Employee();

            var department = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID);

            if (department == null)
            {
                return(null);
            }
            if (department.ID < 0)
            {
                return(null);
            }

            CommClient.EmployeeDepartmentHistory historyClient = new CommClient.EmployeeDepartmentHistory();
            List <CommContracts.Employee>        DoctorList    = historyClient.GetAllDepartmentDoctor(department.ID);

            if (DoctorList == null)
            {
                return(null);
            }

            CommClient.Shift           vistTimeClient = new CommClient.Shift();
            List <CommContracts.Shift> shiftList      = vistTimeClient.GetAllShift();

            if (shiftList == null)
            {
                return(null);
            }

            DateTime monday = getMonday(currentManageDate);

            List <PaiBan> data = new List <PaiBan>();

            for (int i = 0; i < DoctorList.Count(); i++)
            {
                CommContracts.Employee employee = DoctorList.ElementAt(i);
                if (employee == null)
                {
                    continue;
                }

                List <CommContracts.WorkPlan> sourceList = vm?.GetSignalSourceList(department.ID, employee.ID, monday, monday.AddDays(6), 0);
                if (sourceList == null || sourceList.Count <= 0)
                {
                    foreach (var shift in shiftList)
                    {
                        PaiBan paiBan = new PaiBan();
                        paiBan.EmployeeID = employee.ID;
                        paiBan.Name       = employee.Name;
                        paiBan.ShiftID    = shift.ID;
                        paiBan.ShiftName  = shift.Name;
                        paiBan.MaxVistNum = 0;
                        data.Add(paiBan);
                    }
                }
                else
                {
                    foreach (var vistTime in shiftList)
                    {
                        PaiBan paiBan = new PaiBan();
                        paiBan.EmployeeID = employee.ID;
                        paiBan.Name       = employee.Name;

                        paiBan.ShiftID   = vistTime.ID;
                        paiBan.ShiftName = vistTime.Name;

                        foreach (var tem in sourceList)
                        {
                            if (tem == null)
                            {
                                continue;
                            }
                            if (tem.ShiftID != vistTime.ID)
                            {
                                continue;
                            }

                            DayOfWeek dayOfWeek = tem.WorkPlanDate.Value.DayOfWeek;

                            paiBan.WorkPlanIDList[(int)dayOfWeek]       = tem.ID;
                            paiBan.WorkPlanWorkTypeList[(int)dayOfWeek] = tem.WorkType;

                            paiBan.MaxVistNum = tem.MaxNum;
                        }
                        data.Add(paiBan);
                    }
                }
            }
            return(data);
        }
        private void updateInDateToView()
        {
            if (MyCurrentInpatient != null)
            {
                this.InHospitalNo.Text = MyCurrentInpatient.NO;
                this.CaseNo.Text       = "";
                //this.PayTypeEnumCombo.SelectedItem = MyCurrentInpatient.BaoXianEnum;
                //this.YiBaoNo.Text = MyCurrentInpatient.YiBaoNo;
                if (MyCurrentInpatient.Patient != null)
                {
                    this.Name.Text = MyCurrentInpatient.Patient.Name;
                    this.GenderCombo.SelectedItem   = MyCurrentInpatient.Patient.Gender;
                    this.BirthDay.SelectedDate      = MyCurrentInpatient.Patient.BirthDay;
                    this.IDCardNo.Text              = MyCurrentInpatient.Patient.ZhengJianNum;
                    this.VolkEnumCombo.SelectedItem = MyCurrentInpatient.Patient.Volk;
                    this.JiGuan.Text = MyCurrentInpatient.Patient.JiGuan_Sheng;
                    this.Tel.Text    = MyCurrentInpatient.Patient.Tel;
                }

                //this.MarriageEnumCombo.SelectedItem = MyCurrentInpatient.MarriageEnum;
                //this.Job.Text = MyCurrentInpatient.Job;
                //this.WorkUnitAddress.Text = MyCurrentInpatient.WorkAddress;
                //this.ConnectsName.Text = MyCurrentInpatient.ContactsName;
                //this.ConnectsTel.Text = MyCurrentInpatient.ContactsTel;
                //this.ConnectsAddress.Text = MyCurrentInpatient.ContactsAddress;
                this.InHospitalTime.SelectedDate = MyCurrentInpatient.InTime;
                //this.IllnesSstateEnumCombo.SelectedItem = MyCurrentInpatient.IllnesSstateEnum;
                this.InHospitalDiagnosis.Text = MyCurrentInpatient.Diagnosis;

                if (MyCurrentInpatient.InHospitalPatientDoctors != null && MyCurrentInpatient.InHospitalPatientDoctors.Count() > 0)
                {
                    CommClient.Employee employeeClient = new CommClient.Employee();
                    this.InDepartmentEdit.Text = employeeClient.GetCurrentDepartment(MyCurrentInpatient.InHospitalPatientDoctors.ElementAt(0).Doctor.ID).Name;

                    this.InDoctorEdit.Text = MyCurrentInpatient.InHospitalPatientDoctors.ElementAt(0).Doctor.Name;
                }

                this.InHospitalYaJin.Text = "_";

                this.InHospitalStatus.Text = MyCurrentInpatient.InHospitalStatusEnum.ToString();
                if (MyCurrentInpatient.User != null)
                {
                    this.InUserName.Text = MyCurrentInpatient.User.LoginName;
                }

                this.InHospitalTime.DisplayDateEnd = DateTime.Now;
                this.BirthDay.DisplayDateEnd       = DateTime.Now;
            }
            else
            {
                this.InHospitalNo.Text             = "";
                this.CaseNo.Text                   = "";
                this.PayTypeEnumCombo.SelectedItem = "";
                this.YiBaoNo.Text                  = "";

                this.Name.Text = "";
                this.GenderCombo.SelectedItem   = null;
                this.BirthDay.SelectedDate      = null;
                this.IDCardNo.Text              = "";
                this.VolkEnumCombo.SelectedItem = null;
                this.JiGuan.Text = "";
                this.Tel.Text    = "";

                this.MarriageEnumCombo.SelectedItem = "";
                this.Job.Text                           = "";
                this.WorkUnitAddress.Text               = "";
                this.ConnectsName.Text                  = "";
                this.ConnectsTel.Text                   = "";
                this.ConnectsAddress.Text               = "";
                this.InHospitalTime.SelectedDate        = null;
                this.IllnesSstateEnumCombo.SelectedItem = "";
                this.InHospitalDiagnosis.Text           = "";
                this.InDepartmentEdit.Text              = "";
                this.InDoctorEdit.Text                  = "";
                this.InHospitalYaJin.Text               = "";
            }
        }
示例#15
0
        private void loginBtn_Click(object sender, RoutedEventArgs e)
        {
            var vm = this.DataContext as HISGUILoginVM;

            this.loginResult.Text = "";
            if (string.IsNullOrEmpty(UserNameBox.Text.Trim()))
            {
                this.loginResult.Text = "用户名不能为空";
                return;
            }

            if (string.IsNullOrEmpty(this.passbox.Password.Trim()))
            {
                this.loginResult.Text = "密码不能为空";
                return;
            }

            byte[] result = Encoding.Default.GetBytes(this.passbox.Password.Trim());
            MD5    md5    = new MD5CryptoServiceProvider();

            byte[] output      = md5.ComputeHash(result);
            string strPassWrod = BitConverter.ToString(output);
            bool?  loginResult = vm?.Login(UserNameBox.Text.Trim(), strPassWrod);

            if (!(loginResult.HasValue && loginResult.Value))
            {
                this.loginResult.Text = "用户名或者密码错误";
                return;
            }
            else
            {
                string json_out = JsonConvert.SerializeObject(vm.CurrentUser);
                vm?.MainData.SetToken("LoginUser", json_out);

                CommClient.Employee employeeColient = new CommClient.Employee();

                var job = employeeColient.GetCurrentJob(vm.CurrentUser.ID);
                if (job == null)
                {
                    return;
                }

                switch (job.PowerEnum)
                {
                case CommContracts.PowerEnum.设置模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUISetView");
                    break;
                }

                case CommContracts.PowerEnum.医生模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUIDoctorView");
                    break;
                }

                case CommContracts.PowerEnum.库存管理模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUIMedicineView");
                    break;
                }

                case CommContracts.PowerEnum.护士模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUINurseView");
                    break;
                }

                case CommContracts.PowerEnum.综合收费模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUIFeeView");
                    break;
                }

                case CommContracts.PowerEnum.就诊卡模块:
                {
                    vm?.RegionManager.RequestNavigate("DownRegion", "HISGUIPatientCardView");
                    break;
                }

                default:
                    break;
                }
            }
        }
示例#16
0
        private void MyDataNameList_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
        {
            TreeViewItem item = MyDataNameList.SelectedItem as TreeViewItem;

            if (item == null)
            {
                return;
            }

            if (item.Header == null)
            {
                return;
            }

            if (this.listView1 == null)
            {
                return;
            }

            string strCurrentName = item.Header.ToString();

            SetMenuEnable(false);

            if (strCurrentName == "值班时段字典")
            {
                this.listView1.View = this.Resources["ChuZhenShiDuan"] as GridView;
                var vm = this.DataContext as HISGUIDoctorVM;

                CommClient.Shift           client = new CommClient.Shift();
                List <CommContracts.Shift> list   = client.GetAllShift();
                this.listView1.ItemsSource = list;
            }
            //else if (strCurrentName == "号别字典")
            //{
            //    this.listView1.View = this.Resources["HaoBie"] as GridView;
            //    var vm = this.DataContext as HISGUIDoctorVM;

            //    CommClient.SignalItem client = new CommClient.SignalItem();
            //    List<CommContracts.SignalType> list = client.GetAllSignalItem();
            //    this.listView1.ItemsSource = list;
            //}
            else if (strCurrentName == "科室字典")
            {
                this.listView1.View = this.Resources["KeShi"] as GridView;
                var vm = this.DataContext as HISGUIDoctorVM;

                CommClient.Department           client = new CommClient.Department();
                List <CommContracts.Department> list   = client.getALLDepartment(CommContracts.DepartmentEnum.临床科室);
                this.listView1.ItemsSource = list;
            }
            else if (strCurrentName == "医生字典")
            {
                this.listView1.View = this.Resources["YiSheng"] as GridView;
                SetMenuEnable(true);

                var vm = this.DataContext as HISGUIDoctorVM;

                CommClient.Employee employeeClient = new CommClient.Employee();
                int nCurrentDepartmentID           = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID).ID;
                CommClient.EmployeeDepartmentHistory historyClient = new CommClient.EmployeeDepartmentHistory();

                List <CommContracts.Employee> list = historyClient.GetAllDepartmentEmployee(nCurrentDepartmentID);
                this.listView1.ItemsSource = list;
            }
        }
示例#17
0
        /// <summary>
        /// 从界面中得到需要保存的排班记录列表
        /// 注意:界面上是从周一到周日分别对应的是0-6
        ///       然而,外国的一周是从周日开始的,所以枚举类型DayOfWeek是周日到周一对应0-6
        ///       会造成Bug
        /// </summary>
        /// <returns></returns>
        private List <CommContracts.WorkPlan> getSignalsFromView()
        {
            var vm = this.DataContext as HISGUIDoctorVM;

            CommClient.Employee employeeClient = new CommClient.Employee();

            var department = employeeClient.GetCurrentDepartment(vm.CurrentUser.ID);

            if (department == null)
            {
                return(null);
            }
            if (department.ID < 0)
            {
                return(null);
            }

            List <PaiBan> list = this.DateClinicMsgGrid.ItemsSource as List <PaiBan>;

            if (list == null)
            {
                return(null);
            }

            List <CommContracts.WorkPlan> sourceList = new List <CommContracts.WorkPlan>();

            for (int i = 0; i < list.Count; i++)
            {
                PaiBan paiBan = list.ElementAt(i);
                if (paiBan == null)
                {
                    continue;
                }

                if (paiBan.EmployeeID <= 0)
                {
                    continue;
                }

                for (int week = 0; week < 7; week++)
                {
                    if (paiBan.WorkPlanWorkTypeList[week] != null)
                    {
                        if (paiBan.WorkPlanWorkTypeList[week].ID == 0)
                        {
                            continue;
                        }

                        CommContracts.WorkPlan signalSource = new CommContracts.WorkPlan();
                        signalSource.ID           = paiBan.WorkPlanIDList[week];
                        signalSource.DepartmentID = department.ID;
                        signalSource.EmployeeID   = paiBan.EmployeeID;
                        signalSource.WorkTypeID   = paiBan.WorkPlanWorkTypeList[week].ID;
                        signalSource.ShiftID      = paiBan.ShiftID;
                        signalSource.MaxNum       = paiBan.MaxVistNum;


                        if (week == 0)
                        {
                            signalSource.WorkPlanDate = getMonday(currentManageDate).AddDays(6);
                        }
                        else
                        {
                            signalSource.WorkPlanDate = getMonday(currentManageDate).AddDays(week - 1);
                        }


                        if (signalSource.WorkPlanDate.Value.Date >= DateTime.Now.Date)
                        {
                            sourceList.Add(signalSource);
                        }
                    }
                }
            }
            return(sourceList);
        }
示例#18
0
 public bool Logout(CommContracts.Employee user)
 {
     CommClient.Employee myd = new CommClient.Employee();
     return(myd.Logout(user, MachineCode.GetMachineCodeString()));
 }
示例#19
0
        private void SaveBtn_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(this.NameEdit.Text.Trim()))
            {
                return;
            }

            if (this.GenderCombo.SelectedItem == null)
            {
                return;
            }

            if (this.DeparmentCombo.SelectedItem == null)
            {
                return;
            }

            if (this.JobCombo.SelectedItem == null)
            {
                return;
            }

            int nCurrentSelectDepartment = ((CommContracts.Department) this.DeparmentCombo.SelectedItem).ID;
            int nCurrentSelectJob        = ((CommContracts.Job) this.JobCombo.SelectedItem).ID;

            bool bIsOk      = true;
            int  employeeID = 0;

            if (bIsEdit)
            {
                employeeID         = Employee.ID;
                Employee.Name      = this.NameEdit.Text.Trim();
                Employee.Gender    = (CommContracts.GenderEnum) this.GenderCombo.SelectedItem;
                Employee.LoginName = this.LoginNameEdit.Text;

                if (this.IsEditPassword.IsChecked.Value)
                {
                    Employee.Password = MyMD5.strToMD5Str(this.PasswordEdit.Password.Trim());
                }

                CommClient.Employee myd = new CommClient.Employee();
                if (!myd.UpdateEmployee(Employee))
                {
                    bIsOk = false;
                }

                if (bIsOk)
                {
                    if (nCurrentSelectDepartment != myd.GetCurrentDepartment(employeeID).ID)
                    {
                        bIsOk = UpdateEmployeeDepartmentHistory(employeeID, nCurrentSelectDepartment);
                    }
                }

                if (bIsOk)
                {
                    if (nCurrentSelectJob != myd.GetCurrentJob(employeeID).ID)
                    {
                        bIsOk = UpdateEmployeeJobHistory(employeeID, nCurrentSelectJob);
                    }
                }
            }
            else
            {
                CommContracts.Employee employee = new CommContracts.Employee();
                employee.Name      = this.NameEdit.Text.Trim();
                employee.Gender    = (CommContracts.GenderEnum) this.GenderCombo.SelectedItem;
                employee.LoginName = this.LoginNameEdit.Text;

                if (this.IsEditPassword.IsChecked.Value)
                {
                    employee.Password = MyMD5.strToMD5Str(this.PasswordEdit.Password.Trim());
                }

                CommClient.Employee myd = new CommClient.Employee();

                if (!myd.SaveEmployee(employee, ref employeeID))
                {
                    bIsOk = false;
                }

                if (bIsOk)
                {
                    bIsOk = UpdateEmployeeDepartmentHistory(employeeID, nCurrentSelectDepartment);
                }

                if (bIsOk)
                {
                    bIsOk = UpdateEmployeeJobHistory(employeeID, nCurrentSelectJob);
                }
            }


            if (bIsOk)
            {
                (this.Parent as Window).DialogResult = true;
                (this.Parent as Window).Close();
            }
        }