示例#1
0
        protected void Registrar_Click(object sender, EventArgs e)
        {
            this.LabelMen.Text = "";
            DB_AP_Inscripcion_Prod_Update data = new DB_AP_Inscripcion_Prod_Update();
            Persona per = new Persona();
            String  men = "";

            data.DB_Verificar_FORMULARIO_NEW_BENEFICIARIO(this.TextBoxCI, this.DropDownListEXT, this.TextBoxNOM, this.TextBoxPAT, this.TextBoxMAT, this.TextF1TextBoxFE_NAC, this.TextBoxTEL_FIJO, this.TextBoxTEL_MOVIL, this.RadioButtonVaron, this.RadioButtonMujer, ref per, ref men);
            if (men == "")
            {
                AP_Productor pro = new AP_Productor();
                data.DB_Verificar_FORMULARIO_NEW_UBICACION(this.DropDownListMUN, this.DropDownListCOM, this.DropDownListTipo, this.TextBoxSUP, this.TextBoxRAU, this.TextBoxCI, this.TxtObser, ref pro, ref men);
                if (men == "")
                {
                    per.Id_Persona   = this.TextBoxCI.Text;
                    pro.Id_Productor = this.HiddenFieldIDPRO.Value;
                    men = data.ACTUALIZAR_DATOS_PERSONA_AP_INS_PRO(per, pro, Convert.ToInt32(this.HiddenFieldCampanhia.Value), Convert.ToInt32(this.HiddenFieldInsOrg.Value));
                    if (men == "")
                    {
                        this.LabelMen.Text = "datos actualizados";
                    }
                }
                else
                {
                    this.LabelMen.Text = men;
                }
            }
            else
            {
                this.LabelMen.Text = men;
            }
        }
示例#2
0
        protected void INCRIPCION_PROD_PERSONA_INS_ORG(Int32 id_Campanhia, Int32 id_Org, String ci, String nom, String ApP, String ApM)
        {
            DB_AP_Inscripcion_Prod_Update List_INS_PER_ORG = new DB_AP_Inscripcion_Prod_Update();

            GVINSPROPERINSORG.DataSource = List_INS_PER_ORG.DB_Desplegar_INCRIPCIONPROD_PER_INSORG(id_Campanhia, id_Org, ci, nom, ApP, ApM);
            GVINSPROPERINSORG.DataBind();
        }
        protected void ButtonAgregar_Click(object sender, EventArgs e)
        {
            LabelMen.Text = "";
            DB_AP_Inscripcion_Prod_Update dat = new DB_AP_Inscripcion_Prod_Update();

            this.LabelMen.Text = dat.DB_validar_ASIGNAR_COORDENADAS(this.TextBoxX, this.TextBoxY, this.ListBoxNRO, this.ListBoxX, this.ListBoxY);
            if (this.LabelMen.Text == "")
            {
                this.TextBoxX.Text = ""; this.TextBoxY.Text = "";
            }
        }
        protected void ButtonReg_Click(object sender, EventArgs e)
        {
            DB_AP_Inscripcion_Prod_Update dat = new DB_AP_Inscripcion_Prod_Update();
            String men = dat.DB_validar_REGISTRAR_AP_PLANO_UBICACION_COORDENADAS(this.TextBoxParcela, this.TextBoxDoc, this.ListBoxNRO, this.ListBoxX, this.ListBoxY, this.HiddenField_ID_PRO.Value, Convert.ToInt32(this.HiddenFieldComu.Value));

            if (men == "")
            {
                LabelMen.Text = "Datos registrados";
            }
            else
            {
                LabelMen.Text = men;
            }
        }
示例#5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string urrl = Request.QueryString["data"];
         TSHAK.Components.SecureQueryString querystringSeguro;
         querystringSeguro = new TSHAK.Components.SecureQueryString(new Byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 8 }, urrl);
         Int32 id_Org = Convert.ToInt32(querystringSeguro["id_Org"]);
         this.HiddenFieldInsOrg.Value = Convert.ToString(id_Org); //
         Int32 id_Campanhia = Convert.ToInt32(querystringSeguro["id_Campanhia"]);
         this.HiddenFieldIDPRO.Value = Convert.ToString(querystringSeguro["id_Prod"]);
         String ci = Convert.ToString(querystringSeguro["ci"]);
         this.HiddenFieldCampanhia.Value = Convert.ToString(id_Campanhia);
         ///////////////////
         String          SIGLA     = "";
         String          PROGRAMA  = "";
         String          CAMPANHIA = "";
         DB_AP_Campanhia cam       = new DB_AP_Campanhia();
         cam.ExtraerCapanhiaID_INORG(id_Campanhia, id_Org, ref SIGLA, ref PROGRAMA, ref CAMPANHIA);
         contEncabezado21.LabelCamp = CAMPANHIA;
         contEncabezado21.LabelOrg  = SIGLA;
         contEncabezado21.LabelProg = PROGRAMA;
         ///
         DB_AP_Inscripcion_Prod_Update dataup = new DB_AP_Inscripcion_Prod_Update();
         ////
         System.Data.DataTable tabledata             = new System.Data.DataTable();
         System.Data.DataTable tabledatacom_mun_prov = new System.Data.DataTable();
         tabledata             = dataup.DB_BUSCAR_AP_INCRIPCION_PROD_PERSONA(this.HiddenFieldIDPRO.Value, ci);
         tabledatacom_mun_prov = dataup.DB_BUSCAR_COMUNIDAD_MUNICIPIO_PROVINCIA(Convert.ToInt32(tabledata.Rows[0][13]));
         ///
         String          DEP  = dataup.DB_Desplegar_REGIONAL_AP_INSCRIPCION_ORG(id_Org);
         DB_AP_Provincia data = new DB_AP_Provincia();
         data.DB_Desplegar_PROVINCIAS_DROPDOWNLIST(DEP, DropDownListPROV);
         asignaDatos(tabledata, tabledatacom_mun_prov);
         // DropDownListMUN.Enabled = false;
         //  DropDownListCOM.Enabled = false;
         //DropDownListTipo.Enabled = false;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!IsPostBack)
         {
             string urrl = Request.QueryString["data"];
             TSHAK.Components.SecureQueryString querystringSeguro;
             querystringSeguro = new TSHAK.Components.SecureQueryString(new Byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 8 }, urrl);
             Int32 id_Org = Convert.ToInt32(querystringSeguro["id_Org"]);
             this.HiddenFieldInsOrg.Value = Convert.ToString(id_Org); //
             Int32 id_Campanhia = Convert.ToInt32(querystringSeguro["id_Campanhia"]);
             this.HiddenFieldCampanhia.Value = Convert.ToString(id_Campanhia);
             Int32 id_Comu = Convert.ToInt32(querystringSeguro["id_Com"]);
             this.HiddenFieldComu.Value      = Convert.ToString(id_Comu);
             this.HiddenFieldCampanhia.Value = Convert.ToString(id_Campanhia);
             this.HiddenField_ID_PRO.Value   = Convert.ToString(querystringSeguro["id_Prod"]);
             ///////////////////
             String          SIGLA     = "";
             String          PROGRAMA  = "";
             String          CAMPANHIA = "";
             DB_AP_Campanhia cam       = new DB_AP_Campanhia();
             cam.ExtraerCapanhiaID_INORG(Convert.ToInt32(this.HiddenFieldCampanhia.Value), Convert.ToInt32(this.HiddenFieldInsOrg.Value), ref SIGLA, ref PROGRAMA, ref CAMPANHIA);
             contEncabezado21.LabelCamp = CAMPANHIA;
             contEncabezado21.LabelOrg  = SIGLA;
             contEncabezado21.LabelProg = PROGRAMA;
             //////////////////
             DB_AP_Inscripcion_Prod_Update dat          = new DB_AP_Inscripcion_Prod_Update();
             System.Data.DataTable         tabledataREG = new System.Data.DataTable();
             tabledataREG        = dat.DB_BUSCAR_COMUNIDAD_MUNICIPIO_PROVINCIA(id_Comu);
             this.LabelProv.Text = Convert.ToString(tabledataREG.Rows[0][5]);
             this.LabelDep.Text  = Convert.ToString(tabledataREG.Rows[0][6]);
         }
         ///
     }
 }