Esempio n. 1
0
        protected void Modificar_REPRESENT_LEGAL_PROVEEDOR()
        {
            DB_AP_RepresentLegalProv RegInsRepLegProv = new DB_AP_RepresentLegalProv();
            AP_RepresentLegalProv    irlp             = new AP_RepresentLegalProv();

            irlp.Tipo_Poder     = DDLTipoPoder.SelectedItem.Text;
            irlp.Num_Testimonio = TxtNumTesti.Text;
            irlp.Fecha          = Convert.ToDateTime(TxtFechaTetim.Text);
            RegInsRepLegProv.DB_Modificar_REPRESENT_LEGAL_PROV(irlp);
        }
Esempio n. 2
0
        protected void Registrar_REPRESENT_LEGAL()
        {
            DB_AP_RepresentLegalProv RegInsRepLeg = new DB_AP_RepresentLegalProv();
            AP_RepresentLegalProv    irl          = new AP_RepresentLegalProv();

            irl.Id_InscripcionProv = Convert.ToInt32(LblIdInsProv.Text);
            irl.Id_Persona         = TxtCedula.Text;
            irl.Tipo_Poder         = DDLTipoPoder.SelectedItem.Text;
            irl.Num_Testimonio     = TxtNumTesti.Text;
            irl.Domicilio          = "";
            irl.Fecha = Convert.ToDateTime(TxtFechaTetim.Text);
            RegInsRepLeg.DB_Registrar_REPRESENT_LEGAL_PROV(irl);
        }
Esempio n. 3
0
        public AP_RepresentLegalProv DB_Buscar_REPRESENT_LEGAL_PROV(int id)
        {
            DA_AP_RepresentLegalProv data = new DA_AP_RepresentLegalProv();
            DataTable dt = new DataTable();

            dt = data.DA_Buscar_REPRESENT_LEGAL_PROV(id);
            AP_RepresentLegalProv rl = new AP_RepresentLegalProv();

            rl.Id_InscripcionProv = Convert.ToInt32(dt.Rows[0][0].ToString());
            rl.Id_Persona         = dt.Rows[0][1].ToString();
            rl.Tipo_Poder         = dt.Rows[0][2].ToString();
            rl.Num_Testimonio     = dt.Rows[0][3].ToString();
            rl.Domicilio          = dt.Rows[0][4].ToString();
            rl.Fecha = Convert.ToDateTime(dt.Rows[0][5].ToString());
            return(rl);
        }
 public void DA_Modificar_REPRESENT_LEGAL_PROV(AP_RepresentLegalProv rlp)
 {
     try
     {
         using (SqlConnection conexion = new SqlConnection(conexionString))
         {
             SqlCommand cmd = new SqlCommand("GAP_REPRESENTANTE_LEGAL_PROV_UPDATE", conexion);
             cmd.CommandType = CommandType.StoredProcedure;
             cmd.Parameters.AddWithValue("@Id_InscripcionProv", rlp.Id_InscripcionProv);
             cmd.Parameters.AddWithValue("@Tipo_Poder", rlp.Tipo_Poder);
             cmd.Parameters.AddWithValue("@Num_Testimonio", rlp.Num_Testimonio);
             cmd.Parameters.AddWithValue("@Fecha", rlp.Fecha);
             conexion.Open();
             cmd.ExecuteNonQuery();
             conexion.Close();
         }
     }
     catch (Exception err)
     {
         throw (new Exception(err.ToString() + "-" + err.Source.ToString() + "-" + err.Message.ToString()));
     }
 }
Esempio n. 5
0
        protected void Cargar_PROVEEDOR()
        {
            LnkNuevo.Visible  = false;
            LblIdInsProv.Text = Session["IdInsProv"].ToString();
            AP_InscripcionProv       ip   = new AP_InscripcionProv();
            AP_RepresentLegalProv    rp   = new AP_RepresentLegalProv();
            DB_AP_InscripcionProv    insP = new DB_AP_InscripcionProv();
            DB_AP_RepresentLegalProv rlp  = new DB_AP_RepresentLegalProv();

            ip = insP.DB_Buscar_INSCRPCION_PROV(Convert.ToInt32(LblIdInsProv.Text));
            TxtMatriculaComer.Text = ip.Matricula_Comercio;
            TxtDomicilio.Text      = ip.Domicilio;
            Buscar_PROVEEDOR(ip.Id_Proveedor.ToString());
            rp = rlp.DB_Buscar_REPRESENT_LEGAL_PROV(Convert.ToInt32(LblIdInsProv.Text));
            Buscar_PERSONA(rp.Id_Persona);
            TxtNumTesti.Text   = rp.Num_Testimonio;
            TxtFechaTetim.Text = rp.Fecha.ToString();
            DDLTipoPoder.Items.Insert(0, new ListItem(rp.Tipo_Poder, rp.Tipo_Poder, true));
            DDLTipoPoder.DataBind();
            LblEP.Text = "1";
            LblRL.Text = "1";
            LblTP.Text = "1";
        }
Esempio n. 6
0
        public void DB_Modificar_REPRESENT_LEGAL_PROV(AP_RepresentLegalProv rlp)
        {
            DA_AP_RepresentLegalProv dato = new DA_AP_RepresentLegalProv();

            dato.DA_Modificar_REPRESENT_LEGAL_PROV(rlp);
        }
Esempio n. 7
0
        public void DB_Registrar_REPRESENT_LEGAL_PROV(AP_RepresentLegalProv rl)
        {
            DA_AP_RepresentLegalProv InRL = new DA_AP_RepresentLegalProv();

            InRL.DA_Registrar_REPRESENT_LEGAL_PROV(rl);
        }