public void GuardarAsientoContable(int IDTipoComprobante, int NComprobante, string DocReferencia, string ConceptoGeneral, List <ClassDatoCuentaAgregar> ListDatos, DateTime Fecha) { GuardarAsiento = new CADAsientoDetalle(); GuardarCuenta = new CADAsientoCuenta(); int IDAsiento = GuardarAsiento.InsertAsientoDetalle(IDTipoComprobante, NComprobante, DocReferencia, ConceptoGeneral, Fecha); for (int i = 0; i < ListDatos.Count; i++) { GuardarCuenta.InsertAsientoCuenta(IDAsiento, ListDatos[i].IDCuentaMovimiento, ListDatos[i].Concepto.ToUpper(), ListDatos[i].Debe, ListDatos[i].Haber); } }
public void DeleteAsiento(int IDAsiento) { CADCuenta = new CADAsientoCuenta(); CADCuenta.DeleteAsientoCuenta(IDAsiento); adapter.DeleteAsientoDetalle(IDAsiento); }