コード例 #1
0
 private void CargarDatosPrestacion()
 {
     ClienteFactor.cClientePrestacion clientePrestacion = new ClienteFactor.cClientePrestacion(0);
     clientePrestacion.Consulta(this._Cliente);
     while (clientePrestacion.drReader.Read())
     {
         this.dtpFInicio.Value        = DateType.FromObject(clientePrestacion.drReader[3]);
         this.cboStatus.SelectedIndex = 0;
         this.DesplegarDatos(IntegerType.FromObject(clientePrestacion.drReader[5]), StringType.FromObject(clientePrestacion.drReader[7]), DecimalType.FromObject(clientePrestacion.drReader[6]));
     }
 }
コード例 #2
0
        private void RegistrarInformacion()
        {
            ClienteFactor.cClientePrestacion clientePrestacion = new ClienteFactor.cClientePrestacion(0);
            clientePrestacion.Borra(this._Cliente);
            int num1  = 0;
            int num2  = checked (this.dtDatos.Rows.Count - 1);
            int index = num1;

            while (index <= num2)
            {
                clientePrestacion.Registra(this._Cliente, IntegerType.FromObject(this.dgDatos[index, 2]), DecimalType.FromObject(this.dgDatos[index, 1]), this.dtpFInicio.Value, this.dtpFInicio.Value, this.cboStatus.Text, Globals.GetInstance._Usuario);
                checked { ++index; }
            }
            this.DatosSalvados = true;
            this.Close();
        }