Пример #1
0
        private void btnSubir_Click(object sender, EventArgs e)
        {
            if (this.dtpFecha.EditValue == null || this.dtpFecha.EditValue.ToString() == "")
            {
                MessageBox.Show("Por favor seleccione la fecha");
                return;
            }
            String Json = JsonConvert.SerializeObject(GetTazaCambio(Convert.ToDateTime(this.dtpFecha.EditValue)));

            if (Json == "")
            {
                MessageBox.Show("No hay Tipos de Cambio Definidos para este mes, favor revisar...!");
                return;
            }

            if (TipoCambioDAC.SubirTipoCambio(Json) == true)
            {
                MessageBox.Show("Tipos de cambio actualizados.!");
            }
        }