public static void ClearLowData() { charLowData = null; itemLowData = null; stringLowData = null; resourceLowData = null; partnerLowData = null; monsterLowData = null; npcLowData = null; nonInteractiveNpcLowData = null; NewbieData = null; skillLowData = null; dungeonData = null; etcData = null; levelLowData = null; mailLowData = null; questLowData = null; enchantLowData = null; missionLowData = null; mapLowData = null; partnerLvLowData = null; shopLowData = null; priceLowData = null; vipLowData = null; iconLowData = null; FormulaLowData = null; guildLowData = null; gatchaRewardLowData = null; loadingLowData = null; titleLowData = null; welfareLowData = null; achievementLowData = null; activeLowData = null; pvpAutoRewardLowData = null; }
public UserRoleToPartnerEvent(Guid userId, Guid walletId, string region, string province, string city, string county, PartnerLevel level) { UserId = userId; WalletId = walletId; Region = region; Province = province; City = city; County = county; Level = level; }
private void Handle(PartnerCreatedEvent evnt) { _userId = evnt.UserId; _walletId = evnt.WalletId; _region = evnt.Region; _province = evnt.Province; _city = evnt.City; _county = evnt.County; _level = evnt.Level; }
public SetToPartnerCommand(string region, string province, string city, string county, PartnerLevel level) { Region = region; Province = province; City = city; County = county; Level = level; }
/// <summary> /// 申请成为区域善心联盟 用户申请后台批复 后台可以批复单独设置某人为区域代理 /// </summary> /// <param name="region">地区</param> /// <param name="level">基本 省级 市级 县级 </param> public void ApplyToRegionPartner(string region, PartnerLevel level) { //判断申请条件,符合申请条件提交申请 //if(_storeId==Guid.Empty) //{//如果没有店铺就不符合条件 if (_ambassadorExpireTime < DateTime.Now) { //大使身份过期 throw new Exception("不是店主身份或大使身份过期,无法申请联盟"); } //} ApplyEvent(new RegionPartnerApplyedEvent(region, level)); }
public CreatePartnerCommand(Guid id, Guid userId, Guid walletId, string region, string province, string city, string county, PartnerLevel level) : base(id) { UserId = userId; WalletId = walletId; Region = region; Province = province; City = city; County = county; Level = level; }
public async Task <ActionResult> PartnerLevelList() { GridRequest request = new GridRequest(Request); int partnerId = 0; FilterRule rule = request.FilterGroup.Rules.FirstOrDefault(x => x.Field == "PartnerId"); if (rule != null) { partnerId = int.Parse(rule.Value.ToString()); request.FilterGroup.Rules.Remove(rule); } Expression <Func <PartnerLevel, bool> > predicate = FilterHelper.GetExpression <PartnerLevel>(request.FilterGroup); var data = await Task.Run(() => { Partner partner = _partnerContract.View(partnerId); List <PartnerLevel> listPartnerLevel = _partnerLevelContract.PartnerLevels.ToList(); if (partner != null) { PartnerLevel currentLevel = listPartnerLevel.FirstOrDefault(x => x.Id == partner.PartnerLevelId); if (currentLevel != null) { listPartnerLevel = listPartnerLevel.Where(x => x.Id != currentLevel.Id && x.Level > currentLevel.Level).ToList(); } } var count = 0; var list = listPartnerLevel.AsQueryable().Where <PartnerLevel, int>(predicate, request.PageCondition, out count).Select(m => new { m.Id, m.LevelName, m.Level, m.Experience, m.Price, m.CouponQuantity, m.IsDeleted, m.IsEnabled, m.Sequence, m.UpdatedTime, m.CreatedTime, }).ToList(); return(new GridData <object>(list, count, request.RequestInfo)); }); return(Json(data, JsonRequestBehavior.AllowGet)); }
public UpdatePartnerCommand( string mobile, string region, PartnerLevel level, decimal persent, decimal cashPersent, int balanceInterval, string remark, bool isLocked) { Mobile = mobile; Region = region; Level = level; Persent = persent; CashPersent = cashPersent; BalanceInterval = balanceInterval; Remark = remark; IsLocked = isLocked; }
public CreatePartnerCommand(Guid id, Guid userId, Guid walletId, string mobile, string region, PartnerLevel level, decimal persent, decimal cashPersent, int balanceInterval, string remark, bool isLocked) : base(id) { UserId = userId; WalletId = walletId; Mobile = mobile; Region = region; Level = level; Persent = persent; CashPersent = cashPersent; BalanceInterval = balanceInterval; Remark = remark; IsLocked = isLocked; }
/// <summary> /// 联盟申请已经提交 /// </summary> /// <param name="region"></param> /// <param name="level"></param> public RegionPartnerApplyedEvent(string region, PartnerLevel level) { Region = region; Level = level; }
public ActionResult View(int Id) { PartnerLevel entity = _partnerLevelContract.View(Id); return(PartialView(entity)); }
public ParentPartnerShouldAcceptNewSaleEvent(string region, decimal amount, PartnerLevel level) { Region = region; Amount = amount; Level = level; }
public static void LoadLowDataALLForTool() { charLowData = new Character(); itemLowData = new Item(); stringLowData = new Local(); resourceLowData = new Resource(); partnerLowData = new Partner(); monsterLowData = new Mob(); npcLowData = new NpcData(); nonInteractiveNpcLowData = new NonInteractiveNpcData(); skillLowData = new SkillTables(); NewbieData = new Newbie(); dungeonData = new DungeonTable(); etcData = new Etc(); levelLowData = new Level(); mailLowData = new Mail(); questLowData = new Quest(); enchantLowData = new Enchant(); missionLowData = new MissionTable(); mapLowData = new Map(); partnerLvLowData = new PartnerLevel(); shopLowData = new Shop(); priceLowData = new Price(); vipLowData = new Vip(); iconLowData = new Icon(); FormulaLowData = new Formula(); guildLowData = new Guild(); gatchaRewardLowData = new GatchaReward(); loadingLowData = new Loading(); titleLowData = new Title(); welfareLowData = new Welfare(); achievementLowData = new Achievement(); activeLowData = new ActiveReward(); pvpAutoRewardLowData = new PVP(); charLowData.LoadLowData(); itemLowData.LoadLowData(); stringLowData.LoadLowData(); resourceLowData.LoadLowData(); partnerLowData.LoadLowData(); monsterLowData.LoadLowData(); npcLowData.LoadLowData(); nonInteractiveNpcLowData.LoadLowData(); NewbieData.LoadLowData(); skillLowData.LoadLowData(); dungeonData.LoadLowData(); etcData.LoadLowData(); levelLowData.LoadLowData(); mailLowData.LoadLowData(); questLowData.LoadLowData(); enchantLowData.LoadLowData(); missionLowData.LoadLowData(); mapLowData.LoadLowData(); partnerLvLowData.LoadLowData(); shopLowData.LoadLowData(); priceLowData.LoadLowData(); vipLowData.LoadLowData(); iconLowData.LoadLowData(); FormulaLowData.LoadLowData(); guildLowData.LoadLowData(); gatchaRewardLowData.LoadLowData(); loadingLowData.LoadLowData(); titleLowData.LoadLowData(); welfareLowData.LoadLowData(); achievementLowData.LoadLowData(); activeLowData.LoadLowData(); pvpAutoRewardLowData.LoadLowData(); }
public ApplyToRegionPartnerCommand(string region, PartnerLevel level) { Region = region; Level = level; }
/// <summary> /// 设置用户为某个地区的联盟 /// </summary> /// <param name="region"></param> /// <param name="province"></param> /// <param name="city"></param> /// <param name="county"></param> /// <param name="level"></param> public void SetToPartner(string region, string province, string city, string county, PartnerLevel level) { ApplyEvent(new UserRoleToPartnerEvent(Id, _walletId, region, province, city, county, level)); }
private decimal _unBalanceAmount; //未结算数量 public Partner(Guid id, Guid userId, Guid walletId, string region, string province, string city, string county, PartnerLevel level) : base(id) { ApplyEvent(new PartnerCreatedEvent(userId, walletId, region, province, city, county, level)); }