private void vl_impostosubsttrib_Leave(object sender, EventArgs e) { if (bsImpostosNf.Current != null) { (bsImpostosNf.Current as TRegistro_ImpostosNF).Pc_reducaobasecalcsubsttrib = pc_reducaobasecalcsubstrib.Value; TCN_ImpostosNF.CalcValorImpostoSubst((bsImpostosNf.Current as TRegistro_ImpostosNF), vl_basecalcsubsttrib.Value, true); bsImpostosNf.ResetCurrentItem(); } }
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(); } }
private void pc_aliquotasubst_Leave(object sender, EventArgs e) { if (bsImpostosNf.Current != null) { (bsImpostosNf.Current as TRegistro_ImpostosNF).Pc_aliquotasubst = pc_aliquotasubst.Value; TCN_ImpostosNF.CalcValorImpostoSubst((bsImpostosNf.Current as TRegistro_ImpostosNF), vl_basecalcsubsttrib.Value, false); bsImpostosNf.ResetCurrentItem(); } }
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(); } }