Professional Documents
Culture Documents
Practical Prelim Examination
Practical Prelim Examination
DESIGNER REPORT
frmEmployeeInfo: Personal Data Tab
FORM SPECIFICATIONS
Control Type Control Name Control Text or Output Remarks
Label label1 Employee No.
label2 Employee Name
label3 Last Name
label4 First Name
label5 Middle Name
label6 Present Address
label7 Permanent Address
label8 Contact No.
label9 Date of Birth
label10 Age
label11 Sex
label12 Civil Status
label13 If Married
label14 Name of Spouse
label15 No. of Children
label16 Blood Type
label17 Height
label18 Weight
label19 Religion
label20 Citizenship
label21 Date Hired
label22 Position
label23 Salary Grade
TextBox textBox1 Employee No. Required
textBox2 Last Name
textBox3 First Name
textBox4 Middle Name
textBox5 Present Address
textBox6 Permanent Address
textBox7 Contact No.
textBox8 Date of Birth
textBox9 Age
textBox10 Name of Spouse
textBox11 No. of Children
textBox12 Height
textBox13 Weight
textBox14 Religion
textBox15 Citizenship
textBox16 Date Hired
textBox17 Position
textBox18 Salary Grade
ComboBox comboBox1 Sex Required
comboBox2 Civil Status
comboBox3 Blood Type
Button button1 Browse Photo Required
button2 New
button3 Save
button4 Update
button5 Search
button15 Exit
button18 Delete
PictureBox pictureBox1 Employee Image Required
TabControl tabControl1 Required
TabPage tabPage1 Personal Data Required
tabPage2 Educational
tabPage3 Background
Document
Requirements
DataGrid dataGridView1 Data from MySQL Required
tblpersonaldata
PROGRAMMERS’ REPORT
frmEmployeeInfo: Personal Data Tab
DisplayRecord1();
DisplayRecord2();
DisplayRecord3();
}
if (MyReadRecord.Read())
{
this.textBox1.Text = MyReadRecord["EmpNo"].ToString();
this.textBox2.Text = MyReadRecord["LastName"].ToString();
this.textBox3.Text = MyReadRecord["FirstName"].ToString();
this.textBox4.Text = MyReadRecord["MiddleName"].ToString();
this.textBox5.Text = MyReadRecord["PresentAddress"].ToString();
this.textBox6.Text = MyReadRecord["PermanentAddress"].ToString();
this.textBox7.Text = MyReadRecord["ContactNo"].ToString();
this.textBox8.Text = MyReadRecord["DOB"].ToString();
this.textBox9.Text = MyReadRecord["Age"].ToString();
this.textBox10.Text = MyReadRecord["SpouseName"].ToString();
this.textBox11.Text = MyReadRecord["NoOfChildren"].ToString();
this.textBox12.Text = MyReadRecord["Height"].ToString();
this.textBox13.Text = MyReadRecord["Weight"].ToString();
this.textBox14.Text = MyReadRecord["Religion"].ToString();
this.textBox15.Text = MyReadRecord["Citizenship"].ToString();
this.textBox16.Text = MyReadRecord["DateHired"].ToString();
this.textBox17.Text = MyReadRecord["Position"].ToString();
this.textBox18.Text = MyReadRecord["SalaryGrade"].ToString();
this.comboBox1.Text = MyReadRecord["Sex"].ToString();
this.comboBox2.Text = MyReadRecord["CivilStatus"].ToString();
this.comboBox3.Text = MyReadRecord["BloodType"].ToString();
DisplayRecord1();
}
conn.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
if (conn.State == ConnectionState.Open)
{
conn.Close();
}
}
}
dataGridView1.RowTemplate.Height = 60;
dataGridView1.AutoResizeRows(DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);
dataGridView1.DataSource = dTable;
DESIGNER REPORT
frmEmployeeInfo: Educational Background Tab
FORM SPECIFICATIONS
Control Type Control Name Control Text Remarks
Label Label24 Employee No.
label25 Educational Level
label26 School Name
label27 School Address
label28 Course
label29 Year Graduated
TextBox textBox19 Employee No. Required
textBox20 School Name
textBox21 School Address
textBox22 Course
textBox23 Year Graduated
ComboBox comboBox4 Educational Level Required
Button button1 Browse Photo Required
button6 New
button7 Save
button8 Update
button9 Search
button15 Exit
PictureBox pictureBox1 Employee Image Required
TabControl tabControl1 Required
TabPage tabPage1 Personal Data Required
tabPage2 Educational
tabPage3 Background
Document
Requirements
DataGrid dataGridView2 Data from MySQL Required
tbleducationalbg
PROGRAMMERS’ REPORT
frmEmployeeInfo: Educational Background Tab
dataGridView2.RowTemplate.Height = 60;
dataGridView2.AutoResizeRows(DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);
dataGridView2.DataSource = dTable;
DESIGNER REPORT
frmEmployeeInfo: Document Requirements Tab
FORM SPECIFICATION
Control Type Control Name Control Text Remarks
Label label30 Employee No.
label31 Credential ID
TextBox textBox24 Employee No. Required
textBox25 Credential ID
Button button1 Browse Photo Required
button10 Upload Credential Image
button11 New
button12 Save
button13 Update
button14 Search
button15 Exit
PictureBox pictureBox2 Credential Image Required
TabControl tabControl1 Required
TabPage tabPage1 Personal Data Required
tabPage2 Educational Background
tabPage3 Document Requirements
DataGrid dataGridView3 Data from MySQL Required
tblcredentials
PROGRAMMERS’ REPORT
frmEmployeeInfo: Document Requirements Tab
if (MyReadRecord.Read())
{
this.textBox24.Text = MyReadRecord["EmployeeNo"].ToString();
this.textBox25.Text = MyReadRecord["CredentialID"].ToString();
conn.Close();
}
DisplayRecord3();
}
conn.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
if (conn.State == ConnectionState.Open)
{
conn.Close();
}
}
}
dataGridView3.RowTemplate.Height = 80;
dataGridView3.AutoResizeRows(DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders);
dataGridView3.DataSource = dTable;
ADDITIONAL CODES
using System.IO;
using MySql.Data.MySqlClient;