Exemple #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     //Ajax.Utility.RegisterTypeForAjax(typeof(AMS.Automotriz.DatosPropietario));// cambio realizado 1 febrero
     strDatosC = Request.Form[datosc.UniqueID];
     strDatosE = Request.Form[datose.UniqueID];
     strDatosF = Request.Form[datosf.UniqueID];
     strDatosG = Request.Form[datosg.UniqueID];
     strDatosH = Request.Form[datosh.UniqueID];
     if (!IsPostBack)
     {
         DatasToControls bind = new DatasToControls();
         bind.PutDatasIntoRadioButtonList(tipoCliente, "SELECT tpro_codigo, tpro_nombre FROM tpropietariotaller");
         bind.PutDatasIntoDropDownList(tipoPago, "SELECT ttip_codigo ,ttip_nombre FROM dbxschema.ttipopago where ttip_codigo<>'DL' and ttip_codigo <> 'DC'");
         tipoPago.Items.Insert(0, "Seleccione..");
         bind.PutDatasIntoDropDownList(datosd, "SELECT pciu_codigo AS CODIGO,pciu_nombre AS CIUDAD FROM dbxschema.pciudad ORDER BY pciu_nombre asc");
         datosd.Items.Insert(0, "Seleccione..");
         bind.PutDatasIntoDropDownList(tipid, "SELECT TNIT_TIPONIT, TNIT_NOMBRE from TNIT order by 2");
         tipid.Items.Insert(0, "");
         DatasToControls.EstablecerDefectoRadioButtonList(tipoCliente, "Propietario");
         DatasToControls.EstablecerDefectoDropDownList(tipoPago, "Efectivo");
     }
 }