Example #1
0
        protected void btn_save_Click(object sender, EventArgs e)
        {
            tbl_eventActionsTableAdapter Actions = new tbl_eventActionsTableAdapter();
            int      actType      = Convert.ToInt32(ddl_actType.SelectedValue);
            int      ctrlType     = Convert.ToInt32(ddl_ctrlType.SelectedValue);
            DateTime fechaComp    = Convert.ToDateTime(txt_fechaComp.Text);
            int      folio        = Convert.ToInt32(txt_folio.Text);
            int      resp         = Convert.ToInt32(ddl_resp.SelectedValue);
            int      actionPlanID = Convert.ToInt32(txt_folio0.Text);

            Actions.Insert(actType, txt_acciones.Text, ctrlType, resp, fechaComp, null, "", 5, folio, actionPlanID);
            Actions.Dispose();
            grv_acciones.DataBind();
        }
Example #2
0
        protected void btn_save_Click(object sender, EventArgs e)
        {
            tbl_eventActionsTableAdapter Actions = new tbl_eventActionsTableAdapter();
            int      actType      = Convert.ToInt32(ddl_actType.SelectedValue);
            int      ctrlType     = Convert.ToInt32(ddl_ctrlType.SelectedValue);
            DateTime fechaComp    = Convert.ToDateTime(txt_fechaComp.Text);
            int      folio        = Convert.ToInt32(vosID.Text);
            int      resp         = Convert.ToInt32(ddl_resp.SelectedValue);
            int      actionPlanID = Convert.ToInt32(AcPlan.Text);

            Actions.Insert(actType, txt_acciones.Text, ctrlType, resp, fechaComp, null, "", 5, folio, actionPlanID);
            //SqlDataSource2.SelectParameters["ActPlan"].DefaultValue = AcPlan.Text;

            Response.Write("<script>alert('Guardado Correctamente');</script>");
            Panel1.Visible = false;

            ddl_actType.SelectedValue  = "0";
            ddl_ctrlType.SelectedValue = "0";
            txt_fechaComp.Text         = "";
            ddl_resp.SelectedValue     = "0";
            txt_acciones.Text          = "";
        }