protected void btnUpdateInsured_Click(object sender, EventArgs e) { string ma = Session["ThamChieu"].ToString(); string text = txtCircum.Text; bool up = cldao.UpdateC1(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "Circumstance", ma); Response.Write("<script>alert('Updated !');</script>"); load(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }
protected void btnSaveC1_Click(object sender, EventArgs e) { string ma = GETMaThamChieu(); string text = txtC1.Text; bool up = cldao.UpdateC1(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "C1", ma); Response.Write("<script>alert('Updated !');</script>"); loadAll(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }