/// <summary>
        /// 根据ID获取部门字典
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void client_GetDepartmentDictionaryByIdCompleted(object sender, GetDepartmentDictionaryByIdCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result == null)
                {
                    ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"),
                                                   Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                    return;
                }
                DepartmentDictionary = e.Result;
                if (DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.Approving).ToString() || DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.Approved).ToString())
                {
                    SetOnlyBrowse();
                }
                else if (FormType == FormTypes.Resubmit)
                {
                    DepartmentDictionary.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                    DepartmentDictionary.EDITSTATE  = Convert.ToInt32(EditStates.UnActived).ToString();
                }
                if (DepartmentDictionary.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    EnableControl();
                }



                if (DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.Approved).ToString() ||
                    DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.UnApproved).ToString())
                {
                    RefreshUI(RefreshedTypes.AuditInfo);
                    SetToolBar();
                    RefreshUI(RefreshedTypes.HideProgressBar);
                }
                else
                {
                    System.Collections.ObjectModel.ObservableCollection <string> CreateUserIDs = new System.Collections.ObjectModel.ObservableCollection <string>();
                    CreateUserIDs.Add(DepartmentDictionary.CREATEUSERID);
                    personClient.GetEmployeeToEngineAsync(CreateUserIDs);
                }
                foreach (SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY item in cbxDepartmentType.ItemsSource)
                {
                    if (item.DICTIONARYVALUE.ToString() == DepartmentDictionary.DEPARTMENTTYPE)
                    {
                        cbxDepartmentType.SelectedItem = item;
                        break;
                    }
                }
            }
        }
 /// <summary>
 /// 根据ID获取部门字典
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_GetDepartmentDictionaryByIdCompleted(object sender, GetDepartmentDictionaryByIdCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                    Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result == null)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"),
               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         DepartmentDictionary = e.Result;
         if (FormType == FormTypes.Resubmit)
         {
             DepartmentDictionary.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
             DepartmentDictionary.EDITSTATE = Convert.ToInt32(EditStates.UnActived).ToString();
         }
         if (DepartmentDictionary.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
         {
             EnableControl();
         }
         if (DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.Approved).ToString()
            || DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.UnApproved).ToString())
         {
             RefreshUI(RefreshedTypes.AuditInfo);
             SetToolBar();
             RefreshUI(RefreshedTypes.HideProgressBar);
         }
         else
         {
             System.Collections.ObjectModel.ObservableCollection<string> CreateUserIDs = new System.Collections.ObjectModel.ObservableCollection<string>();
             CreateUserIDs.Add(DepartmentDictionary.CREATEUSERID);
             personClient.GetEmployeeToEngineAsync(CreateUserIDs);
         }
         foreach (SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY item in cbxDepartmentType.ItemsSource)
         {
             if (item.DICTIONARYVALUE.ToString() == DepartmentDictionary.DEPARTMENTTYPE)
             {
                 cbxDepartmentType.SelectedItem = item;
                 break;
             }
         }
     }
 }