public military Insert_military_select(int ID) { military = military.Select(ID); Insert_case_id_txt.Text = Convert.ToString(military.case_id); Insert_client_id_txt.Text = Convert.ToString(military.client_id); Insert_discharge_date_txt.Text = Convert.ToString(military.discharge_date); Insert_enlistment_date_txt.Text = Convert.ToString(military.enlistment_date); Insert_military_branch_txt.Text = Convert.ToString(military.military_branch); Insert_serial_num_txt.Text = Convert.ToString(military.serial_num); return(military); }
public military Insert_military_select(int ID) { military = military.Select(ID); Insert_case_id_txt.Text = Convert.ToString(military.case_id); Insert_client_id_txt.Text = Convert.ToString(military.client_id); Insert_discharge_date_txt.Text = Convert.ToString(military.discharge_date); Insert_enlistment_date_txt.Text = Convert.ToString(military.enlistment_date); Insert_military_branch_txt.Text = Convert.ToString(military.military_branch); Insert_serial_num_txt.Text = Convert.ToString(military.serial_num); return military; }
public military military_insert() { military.case_id = Convert.ToInt32(Insert_case_id_txt.Text); military.client_id = Convert.ToInt32(Insert_client_id_txt.Text); military.discharge_date = Convert.ToDateTime(Insert_discharge_date_txt.Text); military.enlistment_date = Convert.ToDateTime(Insert_enlistment_date_txt.Text); military.military_branch = Insert_military_branch_txt.Text; military.serial_num = Convert.ToInt32(Insert_serial_num_txt.Text); military = military.Insert(military); Insert_military_GridView.DataBind(); Update_military_GridView.DataBind(); Delete_military_GridView.DataBind(); return(military); }
public military military_update(int ID) { military = military.Select(ID); military.military_id = Convert.ToInt32(Update_military_id_txt.Text); military.case_id = Convert.ToInt32(Update_case_id_txt.Text); military.client_id = Convert.ToInt32(Update_client_id_txt.Text); military.discharge_date = Convert.ToDateTime(Update_discharge_date_txt.Text); military.enlistment_date = Convert.ToDateTime(Update_enlistment_date_txt.Text); military.military_branch = Update_military_branch_txt.Text; military.serial_num = Convert.ToInt32(Update_serial_num_txt.Text); military.Update(military); Insert_military_GridView.DataBind(); Update_military_GridView.DataBind(); Delete_military_GridView.DataBind(); return(military); }
public military military_update(int ID) { military = military.Select(ID); military.military_id = Convert.ToInt32(Update_military_id_txt.Text); military.case_id = Convert.ToInt32(Update_case_id_txt.Text); military.client_id = Convert.ToInt32(Update_client_id_txt.Text); military.discharge_date = Convert.ToDateTime(Update_discharge_date_txt.Text); military.enlistment_date = Convert.ToDateTime(Update_enlistment_date_txt.Text); military.military_branch = Update_military_branch_txt.Text; military.serial_num = Convert.ToInt32(Update_serial_num_txt.Text); military.Update(military); Insert_military_GridView.DataBind(); Update_military_GridView.DataBind(); Delete_military_GridView.DataBind(); return military; }
public military military_insert() { military.case_id = Convert.ToInt32(Insert_case_id_txt.Text); military.client_id = Convert.ToInt32(Insert_client_id_txt.Text); military.discharge_date = Convert.ToDateTime(Insert_discharge_date_txt.Text); military.enlistment_date = Convert.ToDateTime(Insert_enlistment_date_txt.Text); military.military_branch = Insert_military_branch_txt.Text; military.serial_num = Convert.ToInt32(Insert_serial_num_txt.Text); military = military.Insert(military); Insert_military_GridView.DataBind(); Update_military_GridView.DataBind(); Delete_military_GridView.DataBind(); return military; }
protected void Update_Select_Record(object sender, EventArgs e) { military = Update_military_select(Convert.ToInt32(Update_military_GridView.SelectedValue)); }
protected void UPDATE(object sender, EventArgs e) { military = military_update(Convert.ToInt32(Update_military_GridView.SelectedValue)); }
protected void Insert_Select_Record(object sender, EventArgs e) { military = Insert_military_select(Convert.ToInt32(Insert_military_GridView.SelectedValue)); }
protected void INSERT(object sender, EventArgs e) { military = military_insert(); }
protected void Save_military_info() { clientMilitary.military_branch = TxtMilbranch.Text; clientMilitary.serial_num = Convert.ToInt32(Txtmilserialnum.Text); clientMilitary.military_id = GlobalVariables.MilitaryID; if (TxtmilEnlistdATE.Text != "") { clientMilitary.enlistment_date = Convert.ToDateTime(TxtmilEnlistdATE.Text); } else { clientMilitary.enlistment_date = Convert.ToDateTime("9/9/9999"); } if (TxtmildschrgDate.Text != "") { clientMilitary.discharge_date = Convert.ToDateTime(TxtmildschrgDate.Text); } else { clientMilitary.discharge_date = Convert.ToDateTime("9/9/9999"); } clientMilitary.client_id = clientperson.person_id; clientMilitary.case_id = clientCase_intake.case_id; if (clientMilitary.military_id == 0) { clientMilitary = clientMilitary.Insert(clientMilitary); } else { clientMilitary.Update(clientMilitary); } }