public override global::System.Data.DataTable Clone() { ComprasDataTable cln = ((ComprasDataTable)(base.Clone())); cln.InitVars(); return(cln); }
//-------------------------------------------------------------------------------------------------------------------------------------- public bool Load() { Configuration(); BD = new DataBase(); BD.DataSetName = "DataBase"; BD.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; try { BD.ReadXml(DBFile); tablePresupesto = BD.Presupuesto; tableGastos = BD.Gastos; tableCompras = BD.Compras; tableVentas = BD.Ventas; tablePagos = BD.Pagos; UpdateEstadisticas(); return(true); } catch (Exception) { return(false); } }
private void InitClass() { this.DataSetName = "dtsCompras"; this.Prefix = ""; this.Namespace = "http://tempuri.org/dtsCompras.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableCompras = new ComprasDataTable(); base.Tables.Add(this.tableCompras); }
internal void InitVars(bool initTable) { this.tableCompras = ((ComprasDataTable)(base.Tables["Compras"])); if ((initTable == true)) { if ((this.tableCompras != null)) { this.tableCompras.InitVars(); } } }
//-------------------------------------------------------------------------------------------------------------------------------------- /// <summary>Carga la base de datos e inicializa todas las tablas</summary> internal static void LoadDataBase() { BD = new DBViaje(); BD.DataSetName = "DataBase"; BD.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; if( File.Exists(DatosFile) ) BD.ReadXml(DatosFile); tablePresupesto = BD.Presupuesto; tableGastos = BD.Gastos; tableCompras = BD.Compras; tableVentas = BD.Ventas; tablePagos = BD.Pagos; GetPresupuesto(); GetGastos(); GetCompras(); }
internal ComprasRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableCompras = ((ComprasDataTable)(this.Table)); }