示例#1
0
        private void Buscar_ORGANIZACION(int id)
        {
            AP_Organizacion    o  = new AP_Organizacion();
            DB_AP_Organizacion no = new DB_AP_Organizacion();

            o = no.DB_Buscar_ORG(id);
            if (o.Id_Organizacion == id)
            {
                DDLDepartamento.Items.Insert(0, new ListItem(o.Departamento, o.Departamento, true));
                DDLDepartamento.DataBind();
                TxtSigla.Text = o.Sigla;
                DDLSigla.Items.Insert(0, new ListItem(o.Sigla, o.Id_Organizacion.ToString(), true));
                DDLSigla.DataBind();

                TxtPersonJuridi.Text = o.Personeria_Juridica;
                DDLTipoOrg.Items.Insert(0, new ListItem(o.Tipo, o.Tipo, true));
                DDLTipoOrg.DataBind();
                TxtNumResolucion.Text = o.Resolucion_Prefect;
                TxtFechCreacion.Text  = o.Fecha_Creacion.ToString("dd/MM/yyyy");
                TxtDomicilio.Text     = o.DomicilioOrg;
                //TxtSigla.Text = DDLSigla.SelectedItem.Text;
                LblEstadoO.Text = "siorg";
            }
            else
            {
                LblEstadoO.Text = "noorg";
            }
        }
 private void Buscar_ORGANIZACION(int id)
 {
     AP_Organizacion o = new AP_Organizacion();
     DB_AP_Organizacion no = new DB_AP_Organizacion();
     o = no.DB_Buscar_ORG(id);
     if (o.Id_Organizacion == id)
     {
         DDLDepartamento.Items.Insert(0, new ListItem(o.Departamento, o.Departamento, true));
         DDLDepartamento.DataBind();
         TxtSigla.Text = o.Sigla;
         TxtPersonJuridi.Text = o.Personeria_Juridica;
         DDLTipoOrg.Items.Insert(0, new ListItem(o.Tipo, o.Tipo, true));
         DDLTipoOrg.DataBind();
         TxtNumResolucion.Text = o.Resolucion_Prefect;
         TxtFechCreacion.Text = o.Fecha_Creacion.ToString();
         TxtDomicilio.Text = o.DomicilioOrg;
     }
 }
示例#3
0
        private void Buscar_PROVEEDOR(string valor)
        {
            AP_Proveedor    p  = new AP_Proveedor();
            DB_AP_Proveedor np = new DB_AP_Proveedor();

            p = np.DB_Buscar_PROVEEDOR(valor);
            if (p.NIT == TxtNIT.Text || p.Id_Proveedor == Convert.ToInt32(valor))
            {
                TxtNIT.Text          = p.NIT;
                TxtRazonSocial.Text  = p.Razon_Social;
                TxtNumTestim.Text    = p.Num_Testimonio;
                TxtFechCreacion.Text = p.Fecha_Creacion.ToString();
                DDLDepartamento.Items.Insert(0, new ListItem(p.Departamento, p.Departamento, true));
                DDLDepartamento.DataBind();
            }
            else
            {
                //LblEstadoP.Text = "noper";
                //limparCampos_PERSONA();
            }
        }