Exemple #1
0
 private void vl_impostocalc_Leave(object sender, EventArgs e)
 {
     if (bsImpostosNf.Current != null)
     {
         (bsImpostosNf.Current as TRegistro_ImpostosNF).Vl_basecalc = vl_basecalc.Value;
         TCN_ImpostosNF.CalcValorImposto((bsImpostosNf.Current as TRegistro_ImpostosNF), Vl_TotalNota > decimal.Zero ? Vl_TotalNota : vl_basecalc.Value, false);
         bsImpostosNf.ResetCurrentItem();
     }
 }
Exemple #2
0
 private void pc_aliquota_Leave(object sender, EventArgs e)
 {
     if (bsImpostosNf.Current != null)
     {
         (bsImpostosNf.Current as TRegistro_ImpostosNF).Pc_aliquota = pc_aliquota.Value;
         if (tp_tributiss.SelectedIndex.Equals(1))
         {
             (bsImpostosNf.Current as TRegistro_ImpostosNF).Pc_retencao = pc_aliquota.Value;
         }
         TCN_ImpostosNF.CalcValorImposto((bsImpostosNf.Current as TRegistro_ImpostosNF), Vl_TotalNota > decimal.Zero ? Vl_TotalNota : vl_basecalc.Value, false);
         bsImpostosNf.ResetCurrentItem();
     }
 }