public ScannedBarcodesTableAdapter(TSDServer.ScannedProductsDataSet scannedproductsDataset) { FamilTsdDB.DataTable.BaseDate = TSDServer.Properties.Settings.Default.BaseDate; FamilTsdDB.DataTable.StartupPath = Properties.Settings.Default.LocalFilePath; _scannedproductsDataset = scannedproductsDataset; table = new FamilTsdDB.DataTable(_scannedproductsDataset.ScannedBarcodes); table.AddIndex( new System.Data.DataColumn[] { _scannedproductsDataset.ScannedBarcodes.Columns["Barcode"], _scannedproductsDataset.ScannedBarcodes.Columns["DocId"] }); //table.ReadTableDef(); }
public void Update(TSDServer.ScannedProductsDataSet scannedproductsDataset) { if (table == null) { table = new FamilTsdDB.DataTable(scannedproductsDataset.ScannedBarcodes); table.AddIndex( new System.Data.DataColumn[] { _scannedproductsDataset.ScannedBarcodes.Columns["Barcode"], _scannedproductsDataset.ScannedBarcodes.Columns["DocId"] }); } table.Write(); }
public ProductsTblTableAdapter(TSDServer.ProductsDataSet productsDataset) { _productsDataset = productsDataset; FamilTsdDB.DataTable.BaseDate = TSDServer.Properties.Settings.Default.BaseDate; FamilTsdDB.DataTable.StartupPath = Properties.Settings.Default.LocalFilePath; table = new FamilTsdDB.DataTable(productsDataset.ProductsTbl); table.AddIndex(new System.Data.DataColumn[] { productsDataset.ProductsTbl.NavCodeColumn } ); //table.ReadTableDef(); }