Esempio n. 1
0
        void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
        {
            ObservableCollection <T_HR_COMPANY> cmp = new ObservableCollection <T_HR_COMPANY>();

            if (e.Error != null && e.Error.Message != "")
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                // ComboBox cbxCompanyName = Utility.FindChildControl<ComboBox>(expander, "cbxCompanyName");
                AutoCompleteComboBox acbCompanyName = Utility.FindChildControl <AutoCompleteComboBox>(expander, "acbCompanyName");
                cmp = e.Result;
                T_HR_COMPANY all = new T_HR_COMPANY();
                all.COMPANYID = "companyID";
                all.CNAME     = Utility.GetResourceStr("ALL");
                if (cmp != null)
                {
                    cmp.Insert(0, all);
                }
                acbCompanyName.ItemsSource     = cmp;
                acbCompanyName.ValueMemberPath = "CNAME";
            }
        }
Esempio n. 2
0
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allCompanys = e.Result.ToList();
     }
     BindCompany();
     client.GetDepartmentActivedAsync(Common.CurrentLoginUserInfo.SysUserID);
 }
Esempio n. 3
0
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allCompanys = e.Result.ToList();
     }
     BindCompany();
     client.GetDepartmentActivedAsync(Common.CurrentLoginUserInfo.SysUserID);
 }
Esempio n. 4
0
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allCompanys = e.Result.ToList();
     }
     BindCompany();
     if (SelectedObjType != OrgTreeItemTypes.Company)
     {
         client.GetDepartmentActivedAsync(Common.CurrentLoginUserInfo.EmployeeID);
     }
 }
Esempio n. 5
0
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         allCompanys = e.Result.ToList();
     }
     BindCompany();
     if (SelectedObjType != OrgTreeItemTypes.Company)
     {
         client.GetDepartmentActivedAsync(Common.CurrentLoginUserInfo.EmployeeID);
     }
 }
Esempio n. 6
0
 /// <summary>
 /// 加载该员工可以看到的有效的公司
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         acbCompanyName.ItemsSource     = e.Result;
         acbCompanyName.ValueMemberPath = "CNAME";
     }
 }
Esempio n. 7
0
 /// <summary>
 /// 加载该员工可以看到的有效的公司
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         acbCompanyName.ItemsSource = e.Result;
         acbCompanyName.ValueMemberPath = "CNAME";
     }
 }
Esempio n. 8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void orgClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             allCompanys = e.Result.ToList();
         }
         BindCompany();
         orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
 }
Esempio n. 9
0
 void organClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             App.Current.Resources.Add("SYS_CompanyInfo", e.Result.ToList());
             string strEmployeeID = string.Empty;
             if (CurrentContext.Common.CurrentLoginUserInfo != null)
             {
                 strEmployeeID = CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
             }
             organClient.GetDepartmentActivedAsync(strEmployeeID);
         }
     }
 }
Esempio n. 10
0
        void organClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    App.Current.Resources.Add("SYS_CompanyInfo", e.Result.ToList());

                    string strOwnerId = string.Empty;
                    if (Common.CurrentLoginUserInfo != null)
                    {
                        strOwnerId = Common.CurrentLoginUserInfo.EmployeeID;
                    }
                    loadbar.setloadingMessage("获取公司信息完毕,开始获取部门公司信息......");
                    organClient.GetDepartmentActivedAsync(strOwnerId);
                }
            }
        }
Esempio n. 11
0
 void client_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     ObservableCollection<T_HR_COMPANY> ctmp = new ObservableCollection<T_HR_COMPANY>();
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         ComboBox cbxCpyName = Utility.FindChildControl<ComboBox>(expander, "cbxCpyName");
         if (e.Result != null)
         {
             ctmp = e.Result;
             T_HR_COMPANY all = new T_HR_COMPANY();
             all.COMPANYID = "companyID";
             all.CNAME = Utility.GetResourceStr("ALL");
             ctmp.Insert(0, all);
         }
         cbxCpyName.ItemsSource = ctmp;
         cbxCpyName.DisplayMemberPath = "CNAME";
     }
 }
Esempio n. 12
0
 void OrgClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         //this.FirstComany.ItemsSource = e.Result;
         foreach (var obj in e.Result)
         {
             FirstComany.Items.Add(obj as T_HR_COMPANY);
         }
         ListCompany = e.Result.ToList();
         
     }
 }
Esempio n. 13
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void orgClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             allCompanys = e.Result.ToList();
         }
         BindCompany();
         orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
     }
     else
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
     }
 }
Esempio n. 14
0
        void organClient_GetCompanyActivedCompleted(object sender, GetCompanyActivedCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    App.Current.Resources.Add("SYS_CompanyInfo", e.Result.ToList());

                    string strOwnerId = string.Empty;
                    if (Common.CurrentLoginUserInfo != null)
                    {
                        strOwnerId = Common.CurrentLoginUserInfo.EmployeeID;
                    }
                    loadbar.setloadingMessage("获取公司信息完毕,开始获取部门公司信息......");
                    organClient.GetDepartmentActivedAsync(strOwnerId);
                }
            }

        }