Exemple #1
0
        private static void ProductNotAutoSetVirtualUpdate(ProductNotAutoSetVirtualEntity entity
                                                           , SecKillEntity oCountdown)
        {
            int ProductSysNo = entity.ProductSysNo;

            //作废禁设虚库记录
            SecKillDA.ProductNotAuto_SetVirtualUpdate(entity);

            if (!IsExistsNotAutoSetVirtual(ProductSysNo))
            {
                //更新总仓,分仓虚库数量
                //自动设虚库 20091214和shadow确认:先进行自动设虚库,在更改inventory的虚拟库存
                //SecKillDA.AotuSetStockVirtualQty(ProductSysNo);

                //把51+配置里的分仓的虚拟库存之和更新到inventory表的虚拟库存上
                //SecKillDA.Update_Inventory_VirtualQty(ProductSysNo);
            }
        }
Exemple #2
0
        public static void SetVirtualQty_CountDownFinish(SecKillEntity countDown, int SysNo)
        {
            if (SysNo != -999 && SysNo > 0)
            {
                ProductNotAutoSetVirtualEntity entity = new ProductNotAutoSetVirtualEntity();

                entity.SysNo            = SysNo;
                entity.ProductSysNo     = countDown.ProductSysNo;
                entity.Note             = "CountDown  Interupted/Finished";
                entity.Status           = -1;
                entity.AbandonTime      = DateTime.Now;
                entity.AbandonUserSysNo = 493;
                entity.CountDownSysNo   = countDown.SysNo;
                SecKillDA.ProductNotAuto_SetVirtualUpdate(entity);
                //BatchUpdateStockVirtual_AfterRun(countDown);
                //ProductNotAutoSetVirtualUpdate(entity, countDown);
            }
        }
Exemple #3
0
        public static void SetVirtualQty_WhenCountDownAbandon(SecKillEntity countDown, int SysNo)
        {
            if (SysNo != -999 && SysNo > 0)
            {
                ProductNotAutoSetVirtualEntity entity = new ProductNotAutoSetVirtualEntity();

                entity.SysNo            = SysNo;
                entity.ProductSysNo     = countDown.ProductSysNo;
                entity.Note             = "CountDown  Abandon";
                entity.Status           = -1;
                entity.AbandonTime      = DateTime.Now;
                entity.AbandonUserSysNo = 493;
                entity.CountDownSysNo   = countDown.SysNo;

                //作废禁设虚库记录
                SecKillDA.ProductNotAuto_SetVirtualUpdate(entity);
                //更新总仓,分仓虚库数量
                //SecKillDA.UpdateInventoryVirtualQty(countDown.ProductSysNo);
                //SecKillDA.AotuSetStockVirtualQty(countDown.ProductSysNo);
            }
        }