public void AddWrongCount()
        {
            ExtraSytelineTableDb objDb;


            objDb = new ExtraSytelineTableDb();
            objDb.WrongCounts.Add(new WrongCount {
                Item = this.ItemID, OccurranceDate = DateTime.Now
            });
            objDb.SaveChanges();
        }
        public frmPackingSlipHistory()
        {
            InitializeComponent();

            db = new ExtraSytelineTableDb();

            mobjQueryTimer = new Timer();  // This timer is used to delay query until user is finished typing.
            mobjQueryTimer.Interval = 500; //1000 = 1sec
            mobjQueryTimer.Tick += new EventHandler(mobjQueryTimer_Tick);

            mobjFadingTimer = new Timer();  // This timer is used fade the messages displayed to a user.
            mobjFadingTimer.Interval = 10; //1000 = 1sec
            mobjFadingTimer.Tick += new EventHandler(mobjFadingTimer_Tick);
        }
Exemple #3
0
        public void SavePackingSlips(List <PackingSlip> objPackingSlips)
        {
            ExtraSytelineTableDb db = new ExtraSytelineTableDb();

            foreach (var objPackingSlip in objPackingSlips)
            {
                db.PackingSlips.Add(new PackingSlip
                {
                    PackingSlipNo        = objPackingSlip.PackingSlipNo,
                    OrderLinePrefix      = objPackingSlip.OrderLinePrefix,
                    CustomerOrderNumber  = objPackingSlip.CustomerOrderNumber,
                    OrderNotes           = objPackingSlip.OrderNotes,
                    CustomerAddress      = objPackingSlip.CustomerAddress,
                    CustomerNumber       = objPackingSlip.CustomerNumber,
                    CustomerOrderSuffix  = objPackingSlip.CustomerOrderSuffix,
                    ActualShipDate       = objPackingSlip.ActualShipDate,
                    GrossWeight          = objPackingSlip.GrossWeight,
                    NoOfCartons          = objPackingSlip.NoOfCartons,
                    NoOfPallets          = objPackingSlip.NoOfPallets,
                    JobNumber            = objPackingSlip.JobNumber,
                    PrintDate            = objPackingSlip.PrintDate,
                    CustomerOrderLine    = objPackingSlip.CustomerOrderLine,
                    CustomerOrderRelease = objPackingSlip.CustomerOrderRelease,
                    PromiseDate          = objPackingSlip.PromiseDate,
                    ItemID          = objPackingSlip.ItemID,
                    ItemDescription = objPackingSlip.ItemDescription,
                    QtyOrdered      = objPackingSlip.QtyOrdered,
                    QtyShipped      = objPackingSlip.QtyShipped,
                    QtyBackOrdered  = objPackingSlip.QtyBackOrdered,
                    Revision        = objPackingSlip.Revision,
                    CustomerPO      = objPackingSlip.CustomerPO
                });
            }

            db.SaveChanges();
        }
        public void SavePackingSlips(List<PackingSlip> objPackingSlips)
        {
            ExtraSytelineTableDb db = new ExtraSytelineTableDb();

            foreach (var objPackingSlip in objPackingSlips)
                db.PackingSlips.Add(new PackingSlip
                {
                    PackingSlipNo = objPackingSlip.PackingSlipNo,
                    OrderLinePrefix = objPackingSlip.OrderLinePrefix,
                    CustomerOrderNumber = objPackingSlip.CustomerOrderNumber,
                    OrderNotes = objPackingSlip.OrderNotes,
                    CustomerAddress = objPackingSlip.CustomerAddress,
                    CustomerNumber = objPackingSlip.CustomerNumber,
                    CustomerOrderSuffix = objPackingSlip.CustomerOrderSuffix,
                    ActualShipDate = objPackingSlip.ActualShipDate,
                    GrossWeight = objPackingSlip.GrossWeight,
                    NoOfCartons = objPackingSlip.NoOfCartons,
                    NoOfPallets = objPackingSlip.NoOfPallets,
                    JobNumber = objPackingSlip.JobNumber,
                    PrintDate = objPackingSlip.PrintDate,
                    CustomerOrderLine = objPackingSlip.CustomerOrderLine,
                    CustomerOrderRelease = objPackingSlip.CustomerOrderRelease,
                    PromiseDate = objPackingSlip.PromiseDate,
                    ItemID = objPackingSlip.ItemID,
                    ItemDescription = objPackingSlip.ItemDescription,
                    QtyOrdered = objPackingSlip.QtyOrdered,
                    QtyShipped = objPackingSlip.QtyShipped,
                    QtyBackOrdered = objPackingSlip.QtyBackOrdered,
                    Revision = objPackingSlip.Revision,
                    CustomerPO = objPackingSlip.CustomerPO
                });

            db.SaveChanges();
        }
        public void AddWrongCount()
        {
            ExtraSytelineTableDb objDb;

            objDb = new ExtraSytelineTableDb();
            objDb.WrongCounts.Add(new WrongCount { Item = this.ItemID, OccurranceDate = DateTime.Now });
            objDb.SaveChanges();
        }