public Form6()
{
InitializeComponent();
if (Program.rolActual.Equals("Cliente"))
{
cboFormaPago.Items.Remove("Efectivo");
}
//
// Carga del contenido de combos
//
txtDni.Enabled = true;
button2.Enabled = false;
SqlDataReader varTarjeta;
SqlCommand consultaColumnas = new SqlCommand();
consultaColumnas.CommandType = CommandType.Text;
consultaColumnas.CommandText = "SELECT TIPOTARJ_DESC FROM [ABSTRACCIONX4].TIPOS_TARJETAS";
consultaColumnas.Connection = Program.conexion();
varTarjeta = consultaColumnas.ExecuteReader();
while (varTarjeta.Read())
{
this.cboTipoTarjeta.Items.Add(varTarjeta.GetValue(0));
}
int anioActual = (int)Program.fechaHoy().Year;
for(int i=0;i<10;i++){
cboAnios.Items.Add(anioActual+i);
}
}