Exemple #1
0
            public override global::System.Data.DataTable Clone()
            {
                VentasDataTable cln = ((VentasDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
Exemple #2
0
        //--------------------------------------------------------------------------------------------------------------------------------------
        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);
            }
        }
Exemple #3
0
 private void InitClass()
 {
     this.DataSetName             = "dsVentas";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/dsVentas.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableVentas             = new VentasDataTable();
     base.Tables.Add(this.tableVentas);
 }
Exemple #4
0
 internal void InitVars(bool initTable)
 {
     this.tableVentas = ((VentasDataTable)(base.Tables["Ventas"]));
     if ((initTable == true))
     {
         if ((this.tableVentas != null))
         {
             this.tableVentas.InitVars();
         }
     }
 }
Exemple #5
0
    //--------------------------------------------------------------------------------------------------------------------------------------
    /// <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();
      }
Exemple #6
0
 internal VentasRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableVentas = ((VentasDataTable)(this.Table));
 }
 internal VentasRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableVentas = ((VentasDataTable)(this.Table));
 }
 private void InitClass() {
     this.DataSetName = "dsVentas";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/dsVentas.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableReporte = new ReporteDataTable();
     base.Tables.Add(this.tableReporte);
     this.tableVentas = new VentasDataTable();
     base.Tables.Add(this.tableVentas);
 }
 internal void InitVars(bool initTable) {
     this.tableReporte = ((ReporteDataTable)(base.Tables["Reporte"]));
     if ((initTable == true)) {
         if ((this.tableReporte != null)) {
             this.tableReporte.InitVars();
         }
     }
     this.tableVentas = ((VentasDataTable)(base.Tables["Ventas"]));
     if ((initTable == true)) {
         if ((this.tableVentas != null)) {
             this.tableVentas.InitVars();
         }
     }
 }