private void btnsave_Click(object sender, EventArgs e)
        {
            Guard_Employment_Records.UPDATE_GUARD_RELATIVE_DETAILS("UPDATE_GUARD_RELATIVE_DETAILS", txt_guard_number.Text, txt_relative_1_name.Text, txt_relative_1_phone.Text, //function updates father details...although arguments remain unchanged
                                                                   txt_relative_1_occupation.Text, txt_relative_2_name.Text, txt_relative_2_phone.Text, txt_relative_2_occupation.Text, txt_next_kin_name.Text,
                                                                   txt_next_kin_adress.Text, cbo_next_kin_relationship.Text, txt_next_kin_phone.Text, txt_next_kin_national_id.Text);

            RETURN_GUARD_DETAILS(txt_guard_number.Text);
        }
예제 #2
0
 private void btnsave_Click(object sender, EventArgs e)
 {
     Guard_Employment_Records.UPDATE_GUARD_RELATIVE_DETAILS("UPDATE_GUARD_RELATIVE_DETAILS", this.txt_guard_number.Text, this.txt_relative_1_name.Text, this.txt_relative_1_phone.Text, this.txt_relative_1_occupation.Text, this.txt_relative_2_name.Text, this.txt_relative_2_phone.Text, this.txt_relative_2_occupation.Text, this.txt_next_kin_name.Text, this.txt_next_kin_adress.Text, this.cbo_next_kin_relationship.Text, this.txt_next_kin_phone.Text, this.txt_next_kin_national_id.Text);
     this.RETURN_GUARD_DETAILS(this.txt_guard_number.Text);
 }