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

                cln.InitVars();
                return(cln);
            }
Beispiel #2
0
 private void InitClass()
 {
     this.DataSetName             = "dbProducto";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/dbProducto.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableProductos          = new ProductosDataTable();
     base.Tables.Add(this.tableProductos);
 }
Beispiel #3
0
 internal void InitVars(bool initTable)
 {
     this.tableProductos = ((ProductosDataTable)(base.Tables["Productos"]));
     if ((initTable == true))
     {
         if ((this.tableProductos != null))
         {
             this.tableProductos.InitVars();
         }
     }
 }
Beispiel #4
0
        public static ENTProducto SelectProductoByIDProducto(int IDProducto)
        {
            ENTProducto        miProducto = null;
            ProductosDataTable miTabla    = adaptador.SelectProductoByIDProducto(IDProducto);

            if (miTabla.Rows.Count == 0)
            {
                return(miProducto);
            }
            ProductosRow miRegistro = (ProductosRow)miTabla.Rows[0];

            miProducto = new ENTProducto
            {
                IDProducto     = miRegistro.IDProducto,
                IDCategoria    = miRegistro.IDCategoria,
                Cantidad       = (float)miRegistro.Cantidad,
                Articulo       = miRegistro.Articulo,
                Descripcion    = miRegistro.Descripcion,
                Precio         = miRegistro.Precio,
                IDPresentacion = miRegistro.IDPresentacion,
            };

            return(miProducto);
        }
Beispiel #5
0
 internal ProductosRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableProductos = ((ProductosDataTable)(this.Table));
 }
 internal ProductosRow(global::System.Data.DataRowBuilder rb) : 
         base(rb) {
     this.tableProductos = ((ProductosDataTable)(this.Table));
 }
 private void InitClass() {
     this.DataSetName = "DBDataSet";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/DBDataSet.xsd";
     this.EnforceConstraints = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableProductos = new ProductosDataTable();
     base.Tables.Add(this.tableProductos);
 }
 internal void InitVars(bool initTable) {
     this.tableProductos = ((ProductosDataTable)(base.Tables["Productos"]));
     if ((initTable == true)) {
         if ((this.tableProductos != null)) {
             this.tableProductos.InitVars();
         }
     }
 }