Esempio n. 1
0
        private void Goto_Detail_Waiting(object sender, RoutedEventArgs e)
        {
            AutherRequestConstruct  flag = (AutherRequestConstruct)waiting.SelectedItem;
            AutherRequestDetialPage autherRequestDetialPage = new AutherRequestDetialPage(flag, 1);

            autherRequestDetialPage.ShowDialog();
        }
Esempio n. 2
0
        private void Goto_Detail_History(object sender, RoutedEventArgs e)
        {
            AutherRequestConstruct  flag = (AutherRequestConstruct)history.SelectedItem;
            AutherRequestDetialPage autherRequestDetialPage = new AutherRequestDetialPage(flag, 2);

            autherRequestDetialPage.ShowDialog();
        }
Esempio n. 3
0
        public AutherRequestDetialPage(AutherRequestConstruct List, int flag)
        {
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();
            this.Info_List = List;
            switch (Info_List.Result)
            {
            case AdminResult.FAIL:
                Add_Result = "未通过";
                break;

            case AdminResult.NONE:
                Add_Result = "未处理";
                break;

            case AdminResult.PASS:
                Add_Result = "通过";
                break;

            default:
                break;
            }
            NumberTextBlock.Text     = "编号: " + Info_List.Number;
            UserTextBlock.Text       = "认证人: " + Info_List.UserID;
            TimeTextBlock.Text       = "认证时间: " + Info_List.Time;
            StateTextBlock.Text      = "认证状态: " + Info_List.State;
            ReviewTypeTextBlock.Text = "认证类型: " + Info_List.Type;
            ReviewerTextBlock.Text   = "审核人: " + Info_List.ReviewerID;
            ResultTextBlock.Text     = "认证结果: " + Add_Result;
            ContentTextBlock.Text    = "认证内容: " + Info_List.Content;
            RemarksTextBlock.Text    = "备注: " + Info_List.Remarks;

            if (flag == 1)
            {
                Thread thread = new Thread(new ThreadStart(close_window));
                thread.Start();
            }
            else
            {
                agree_button.Visibility  = Visibility.Hidden;
                refuse_button.Visibility = Visibility.Hidden;
            }
        }