protected void btnSaveC3_Click(object sender, EventArgs e) { string ma = GETMaThamChieu(); string text = txtC3.Text; bool up = cldao.UpdateC3(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "C3", ma); Response.Write("<script>alert('Updated !');</script>"); loadAll(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }
protected void btnUpdateIR_Click(object sender, EventArgs e) { string ma = Session["ThamChieu"].ToString(); string text = txtIR.Text; bool up = cldao.UpdateC3(ma, text); if (up == true) { sm.sendNoiDungClaim("Report_Update", TenGDV(), text, "Cause Of Loss - IR", ma); Response.Write("<script>alert('Updated !');</script>"); load(ma); } else { Response.Write("<script>alert('Update Fail!');</script>"); } }