Ejemplo n.º 1
0
        protected override void Page_Load(object sender, System.EventArgs e)
        {
            base.Page_Load(sender, e);

            if (Session["mode"] == null)
            {
                if (Session["PatientID"] == null)
                {
                    Response.Redirect("SessionTimedOut.aspx");
                }
            }
            DataTool dbTool = new DataTool();

            int intCnt = dbTool.getNoteStatus(Int32.Parse(Session["PatientID"].ToString()));

            if (intCnt < 1)
            {
                saveData_BL();
            }
            else
            {
                updateData_BL();
            }

            Response.Redirect("Patient.aspx");
        }