public override void EndInit()
            {
                base.EndInit();

                ColumnChanged += new System.Data.DataColumnChangeEventHandler(ItemGroupDataTable_ColumnChanged);
                TableNewRow   += new System.Data.DataTableNewRowEventHandler(ItemGroupDataTable_TableNewRow);
            }
Exemple #2
0
 public override void EndInit()
 {
     base.EndInit();
     ColumnChanged += new System.Data.DataColumnChangeEventHandler(pos_trans_uploadDataTable_ColumnChanged);
     TableNewRow   += new System.Data.DataTableNewRowEventHandler(pos_trans_uploadDataTable_TableNewRow);
 }
Exemple #3
0
        private ActionsClass()
        {
            int shift = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours;
            if (shift != 4)
                _timeShift = 11;

            FamilTsdDB.DataTable.BaseDate =
                Program.Default.BaseDate;
            FamilTsdDB.DataTable.StartupPath =
                Program.Default.DatabaseStoragePath;

            btPrint = BTPrintClass.PrintClass;
            dateFormat.ShortDatePattern = "dd.MM.yyyy";
            dateFormat.FullDateTimePattern = "dd.MM.yyyy HH:mm:ss";
            dateFormat.DateSeparator = ".";
            nfi.NumberDecimalSeparator = ".";
            nfi.NumberGroupSeparator = "";

            actionsDict.Add(TSDUtils.ActionCode.NoAction, new ActOnProduct(NoActionProc));
            actionsDict.Add(TSDUtils.ActionCode.Reprice, new ActOnProduct(RepriceActionProc));
            actionsDict.Add(TSDUtils.ActionCode.Returns, new ActOnProduct(ReturnActionProc));
            actionsDict.Add(TSDUtils.ActionCode.Remove, new ActOnProduct(RemoveActionProc));
            actionsDict.Add(TSDUtils.ActionCode.QuickHelp, new ActOnProduct(RemoveActionProc));
            actionsDict.Add(TSDUtils.ActionCode.InventoryGlobal, new ActOnProduct(InventoryGlobalActionProc));
            actionsDict.Add(TSDUtils.ActionCode.SimpleIncome, new ActOnProduct(SimpleIncomeActionProc));
            actionsDict.Add(TSDUtils.ActionCode.InventoryLocal, new ActOnProduct(InventoryLocalActionProc));
            actionsDict.Add(TSDUtils.ActionCode.NotFound, new ActOnProduct(NotFoundActionProc));
            actionsDict.Add(TSDUtils.ActionCode.DocNotFound, new ActOnProduct(DocNotFoundActionProc));
            //actionsDict.Add(TSDUtils.ActionCode.BoxWProducts, new ActOnProduct(BoxWProductsActionProc));
            
            /*
            tmr = new System.Threading.Timer(
            new System.Threading.TimerCallback(OnTimer)
            , null,
            System.Threading.Timeout.Infinite,
            System.Threading.Timeout.Infinite);
            
            scannedTA =
                    new TSDServer.ScannedProductsDataSetTableAdapters.ScannedBarcodesTableAdapter(_scannedProducts);
*/
            productsTa = new ProductsDataSetTableAdapters.ProductsTblTableAdapter(this._products);
            docsTa = new ProductsDataSetTableAdapters.DocsTblTableAdapter(this._products);

            DatabaseFile =
                System.IO.Path.Combine(
                         Program.Default.DatabaseStoragePath,
                         "scannedbarcodes.txt");

            onRowChanged = new System.Data.DataRowChangeEventHandler(ScannedBarcodes_RowChanged);
            onColChanged = new System.Data.DataColumnChangeEventHandler(ScannedBarcodes_ColumnChanged);
        }