Esempio n. 1
0
 // 当用户导航到此页面时执行。
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     //获取参数
     PostID = Utility.GetUrlParamenter(e.Uri.OriginalString, "PostID");
     Utility.DisplayGridToolBarButton(ToolBar, "T_HR_RELATIONPOST", false);
     ViewTitles.TextTitle.Text = GetTitleFromURL(e.Uri.ToString());
     //Post赋值
     client.GetPostByIdAsync(PostID);
     LoadData();
 }
Esempio n. 2
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;
                }
            }
        }