/// <summary>
        /// 初始化数据
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InitDataGridView(object sender, EventArgs_Student e)
        {
            this.myEventArgs_Student = e;
            Class_DataControlBind.InitializeDataGridView(this.dataGridView_Data, Enum_DataTable.SubjectPositionResult.ToString(), false);
            if (this.dataGridView_Data.DataSource != null)
            {
                if (this.myEventArgs_Student.bool_GXTheory == false)
                {
                    ((DataView)this.dataGridView_Data.DataSource).RowFilter = string.Format("ExaminingNo='{0}'", this.myEventArgs_Student.str_ExaminingNo);
                }
                else
                {
                }
            }
            this.label_Data.Text = string.Format("考试项目,({0}):", this.dataGridView_Data.RowCount);

            if (this.tabControl_Auxiliary.SelectedTab.Text == "考试记录")
            {
                this.userControl_WelderExamBase1.InitDataGridView(this.myEventArgs_Student.str_IdentificationCard);
            }

            Class_Data myClass_Data;

            Class_DataControlBind.InitializeDataGridView(this.dataGridView_TestCommitteeRegistrationNo, Enum_DataTable.WelderTestCommitteeRegistrationNo.ToString(), false);
            myClass_Data = (Class_Data)Class_Public.myHashtable[Enum_DataTable.WelderTestCommitteeRegistrationNo.ToString()];
            myClass_Data.SetFilter(string.Format("IdentificationCard ='{0}'", this.myEventArgs_Student.str_IdentificationCard));
            this.dataGridView_TestCommitteeRegistrationNo.DataSource = null;
            myClass_Data.RefreshData(false);
            this.dataGridView_TestCommitteeRegistrationNo.DataSource = new DataView(myClass_Data.myDataTable.Copy());
            ((DataView)this.dataGridView_TestCommitteeRegistrationNo.DataSource).Sort = myClass_Data.myDataView.Sort;
            this.label_TestCommitteeRegistrationNo.Text = string.Format("存档组织编号,({0}):", this.dataGridView_TestCommitteeRegistrationNo.RowCount);

            this.pictureBox_Welder.Image = Class_Welder.GetWelderPicture(this.myEventArgs_Student.str_IdentificationCard);
        }
Ejemplo n.º 2
0
 private void InitstatusStrip(object sender, EventArgs_Student e)
 {
     this.toolStripStatusLabel_ExaminingNo.Text = string.Format("¸ÖÓ¡ºÅ£º{0}", e.str_ExaminingNo);
 }