protected override void On_SyncRunned(ChannelProductEntity entity) { WriteLog(string.Format("“指定库存”商品:{0}({1}),库存:{2},渠道:{3} 同步成功", entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty, entity.ChannelSysNo)); ChannelInventoryDA.ChangeAppointSynStatus(entity.ProductSysNo, entity.ChannelSysNo, "N", Config.UserLoginName); ChannelProductAppointEntity appointEntity = entity as ChannelProductAppointEntity; if (appointEntity != null && appointEntity.IsClearInventory == "Y") { WriteLog(string.Format("正在回写“指定库存”商品:{0}({1}),库存:{2},渠道:{3} 在Content的状态。", entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty, entity.ChannelSysNo)); CommonDA.UpdateECommerceStatus(entity.ProductSysNo, entity.ChannelSysNo, "N"); WriteLog(string.Format("回写“指定库存”商品:{0}({1}),库存:{2},渠道:{3} 在Content的状态成功。", entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty, entity.ChannelSysNo)); } }
protected override void On_SyncRunned(ChannelProductEntity entity) { WriteLog(string.Format("{0}:“非指定库存”商品:{1}({2}),库存:{3} 同步成功", entity.ChannelSysNo, entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty)); ChannelProductPercentEntity percentEntity = entity as ChannelProductPercentEntity; if (percentEntity != null && percentEntity.IsClearInventory == "Y") { WriteLog(string.Format("{0}:正在回写“非指定库存”商品:{1}({2}),库存:{3} 在Content的状态。", entity.ChannelSysNo, entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty)); CommonDA.UpdateECommerceStatus(entity.ProductSysNo, entity.ChannelSysNo, "N"); WriteLog(string.Format("{0}:回写“非指定库存”商品:{0}({1}),库存:{2} 在Content的状态成功。", entity.ChannelSysNo, entity.ProductSysNo, entity.SynProductID, entity.SynChannelQty)); } if (percentEntity != null) { ChannelInventoryDA.ChangePercentSynQty(percentEntity, Config.UserLoginName); } }
protected override List <ChannelProductEntity> GetChannelProductList(int page, int pageSize) { List <ChannelProductPercentEntity> list = ChannelInventoryDA.GetAllPercentListByChannelSysNo(page, pageSize, 300); return(Transfomer(list)); }
protected override int GetRecordsCount() { return(ChannelInventoryDA.GetPercentListCountByChannelSysNo(300)); }
protected override List <ChannelProductEntity> GetChannelProductList(int page, int pageSize) { List <ChannelProductAppointEntity> list = ChannelInventoryDA.GetAllAppointList(page, pageSize); return(Transfomer(list)); }
protected override int GetRecordsCount() { return(ChannelInventoryDA.GetAppointListCount()); }