Пример #1
0
        private void GetDepartmentNameByDepartmentID(string StrDepartmentID)
        {
            OrganizationServiceClient Organ = new OrganizationServiceClient();

            Organ.GetDepartmentByIdCompleted += new EventHandler <GetDepartmentByIdCompletedEventArgs>(Organ_GetDepartmentByIdCompleted);
            Organ.GetDepartmentByIdAsync(StrDepartmentID);
        }
Пример #2
0
        private void GetDepartmentNameByDepartmentID(string StrDepartmentID)
        {
            OrganizationServiceClient Organ = new OrganizationServiceClient();
            Organ.GetDepartmentByIdCompleted += new EventHandler<GetDepartmentByIdCompletedEventArgs>(Organ_GetDepartmentByIdCompleted);
            Organ.GetDepartmentByIdAsync(StrDepartmentID);

        }
Пример #3
0
        /// <summary>
        /// 提交审核时,加载月度考勤对应机构及其类型
        /// </summary>
        private void SetBalanceObject()
        {
            if (cbxkAssignedObjectType.Items.Count() > 0)
            {
                for (int i = 0; i < cbxkAssignedObjectType.Items.Count(); i++)
                {
                    var entDic = cbxkAssignedObjectType.Items[i] as T_SYS_DICTIONARY;

                    if (entDic == null)
                    {
                        continue;
                    }

                    if (entDic.DICTIONARYVALUE == null)
                    {
                        continue;
                    }

                    if (entDic.DICTIONARYVALUE.Value.ToString() == AttendMonthlyBatchBalance.BALANCEOBJECTTYPE)
                    {
                        cbxkAssignedObjectType.SelectedIndex = i;
                        break;
                    }
                }

                switch (AttendMonthlyBatchBalance.BALANCEOBJECTTYPE)
                {
                case "1":
                    orgClient.GetCompanyByIdAsync(BalanceObjectValue);
                    break;

                case "2":
                    orgClient.GetDepartmentByIdAsync(BalanceObjectValue);
                    break;

                case "3":
                    orgClient.GetPostByIdAsync(BalanceObjectValue);
                    break;
                }
            }
        }
Пример #4
0
 /// <summary>
 /// 获取部门信息
 /// </summary>
 /// <param name="StrDepartmentID"></param>
 void GetDepartmentNameByDepartmentID(string StrDepartmentID)
 {
     Organ.GetDepartmentByIdCompleted += new EventHandler <GetDepartmentByIdCompletedEventArgs>(Organ_GetDepartmentByIdCompleted);
     Organ.GetDepartmentByIdAsync(StrDepartmentID);
 }