/// <summary>
        /// This piece of a static constructor was made available as a migration step,
        /// Once all the Hubs are up to speed on this, we need to clear out this code.
        /// </summary>
        public InventoryPeriod()
        {
            // check if the current enventory period is null, if it is .. set it to last years' period
               this.FlushData();

            // Insert the Inventory Status Codes if those don't exist.
            InventoryStatus status = new InventoryStatus();
            status.LoadAll();
            if(status.RowCount == 0)
            {
                status.AddNew();
                status.Name = "Begin Inventory";

                status.AddNew();
                status.Name = "Print Count Sheet";

                status.AddNew();
                status.Name = "Draft Inventory Saved";

                status.Save();
            }
        }
Esempio n. 2
0
        /// <summary>
        /// This piece of a static constructor was made available as a migration step,
        /// Once all the Hubs are up to speed on this, we need to clear out this code.
        /// </summary>
        public InventoryPeriod()
        {
            // check if the current enventory period is null, if it is .. set it to last years' period
            this.FlushData();

            // Insert the Inventory Status Codes if those don't exist.
            InventoryStatus status = new InventoryStatus();

            status.LoadAll();
            if (status.RowCount == 0)
            {
                status.AddNew();
                status.Name = "Begin Inventory";

                status.AddNew();
                status.Name = "Print Count Sheet";

                status.AddNew();
                status.Name = "Draft Inventory Saved";

                status.Save();
            }
        }