/// <summary> /// Initializes a new instance of the <see cref="AgendaItemDto"/> class. /// </summary> /// <param name="id">Agenda Item Id.</param> /// <param name="meetingId">Meeting Id.</param> /// <param name="parentId">Parent Agenda Item Id.</param> /// <param name="elderSiblingId">Elder Sibling Agenda Item Id.</param> /// <param name="text">Text.</param> /// <param name="agendaItemType">Agenda Item Type.</param> /// <param name="childNumberingType">Child Numbering Type.</param> public AgendaItemDto( Guid id, Guid meetingId, Guid?parentId, Guid?elderSiblingId, string text, AgendaItemType agendaItemType, NumberingType childNumberingType) { this.Id = id; this.MeetingId = meetingId; this.ParentId = parentId; this.ElderSiblingId = elderSiblingId; this.Text = text; this.AgendaItemType = agendaItemType; this.ChildNumberingType = childNumberingType; }
private void AddAgendaItemWithPricintOptions(AgendaItemType type, int? earlyRegLimit, DateTime? earlyDatetime, DateTime lateDatetime) { BuilderMgr.ClickAddAgendaItem(); BuilderMgr.AGMgr.SetName(type.ToString()); BuilderMgr.AGMgr.SetTypeWithDefaults(AgendaItemManager.AgendaItemType.CheckBox); BuilderMgr.AGMgr.FeeMgr.ExpandOption(); BuilderMgr.AGMgr.FeeMgr.SetStandardPrice(StandardPrice); switch (type) { case AgendaItemType.EarlyPriceTime: case AgendaItemType.LatePriceTime: case AgendaItemType.StandardPriceTime: BuilderMgr.AGMgr.FeeMgr.Pricing.SetEarlyPricingSchedule(EarlyPrice, earlyDatetime.Value); break; case AgendaItemType.PriceSwitch: BuilderMgr.AGMgr.FeeMgr.Pricing.SetEarlyPricingSchedule(EarlyPrice, earlyDatetime.Value); this.priceSwitchItemSettingTime = DateTime.Now; break; case AgendaItemType.EarlyPriceRegistration: BuilderMgr.AGMgr.FeeMgr.Pricing.SetEarlyPricingSchedule(EarlyPrice, earlyRegLimit.Value); break; default: break; } BuilderMgr.AGMgr.FeeMgr.Pricing.SetLatePricingSchedule(LatePrice, lateDatetime); BuilderMgr.AGMgr.ClickSaveItem(); this.GetAgendaCFid((int)type); }
public static int GetTypeInNetTiersEntity(AgendaItemType category) { Type type = category.GetType(); FieldInfo fi = type.GetField(category.ToString()); AgendaItemTypeInNetTiersEntityAttribute[] attrs = fi.GetCustomAttributes(typeof(AgendaItemTypeInNetTiersEntityAttribute), false) as AgendaItemTypeInNetTiersEntityAttribute[]; return attrs[0].typeInNetTiersEntity; }
public void SetTypeWithDefaults(AgendaItemType type) { this.SetType(type); switch (type) { case AgendaItemType.RadioButton: this.AddPredefinedMultiChoiceItem(AgendaPredefinedMultiChoiceItemManager.PredefinedItemType.YesOrNo); break; case AgendaItemType.Dropdown: this.AddPredefinedMultiChoiceItem(AgendaPredefinedMultiChoiceItemManager.PredefinedItemType.Agreement); break; case AgendaItemType.Number: this.SetOneLineLength(DefaultOneLineNumericLength); break; case AgendaItemType.OneLineText: this.SetOneLineLength(DefaultOneLineTextLength); break; case AgendaItemType.Paragraph: this.SetParagraphCharacterLimit(DefaultParagraphCharacterLimit); break; case AgendaItemType.Contribution: this.SetVariableMinMax( (int)Math.Round(new Random((int)DateTime.Now.Ticks).NextDouble() * 50 + 1, 2), (int)Math.Round(new Random((int)DateTime.Now.Ticks).NextDouble() * 1000 + 50 + 1, 2)); break; default: break; } }
public void SetType(AgendaItemType type) { this.SelectType(StringEnum.GetStringValue(type)); }
private void VerifyPriceHistory(AgendaItemType type, double standardPrice, double earlyPrice, int? regLimit, DateTime? earlyDatetime, double latePrice, DateTime lateDatetime) { BuilderMgr.AGMgr.OpenAgendaInListByOrder((int)type); BuilderMgr.AGMgr.FeeMgr.ExpandOption(); BuilderMgr.AGMgr.FeeMgr.VerifyStandardPrice(standardPrice); if (type == AgendaItemType.EarlyPriceRegistration) { BuilderMgr.AGMgr.FeeMgr.Pricing.VerifyEarlyPricingOptions(earlyPrice, regLimit.Value); } else { BuilderMgr.AGMgr.FeeMgr.Pricing.VerifyEarlyPricingOptions(earlyPrice, earlyDatetime.Value); } BuilderMgr.AGMgr.FeeMgr.Pricing.VerifyLatePricingOptions(latePrice, lateDatetime); BuilderMgr.AGMgr.ClickCancel(); }
private void DeleteAgendaEarlyLateDatetime(AgendaItemType type) { BuilderMgr.AGMgr.OpenAgendaInListByOrder((int)type); BuilderMgr.AGMgr.FeeMgr.ExpandOption(); BuilderMgr.AGMgr.FeeMgr.Pricing.ClearEarlyPricingSchedule(); BuilderMgr.AGMgr.FeeMgr.Pricing.ClearLatePricingSchedule(); BuilderMgr.AGMgr.ClickSaveItem(); }
private void CreateRegistration(AgendaItemType type, double agendaFeeToVerify) { RegisterMgr.OpenRegisterPage(eventID); RegisterMgr.Checkin(); RegisterMgr.Continue(); RegisterMgr.EnterProfileInfo(); RegisterMgr.Continue(); RegisterMgr.SelectAgendaItem(this.cfIDs[(int)type]); RegisterMgr.Continue(); RegisterMgr.PayMoneyAndVerify(agendaFeeToVerify, RegisterManager.PaymentMethod.Check); RegisterMgr.FinishRegistration(); RegisterMgr.ConfirmRegistration(); }
private void ChangeAgendaItemPricingOptions(AgendaItemType type, double standardPrice, double earlyPrice, DateTime earlyDatetime, double latePrice, DateTime lateDatetime) { BuilderMgr.AGMgr.OpenAgendaInListByOrder((int)type); BuilderMgr.AGMgr.FeeMgr.ExpandOption(); BuilderMgr.AGMgr.FeeMgr.SetStandardPrice(standardPrice); BuilderMgr.AGMgr.FeeMgr.Pricing.SetEarlyPricingSchedule(earlyPrice, earlyDatetime); BuilderMgr.AGMgr.FeeMgr.Pricing.SetLatePricingSchedule(latePrice, lateDatetime); BuilderMgr.AGMgr.ClickSaveItem(); }
private void ChangeAgendaEarlyLateDatetime(AgendaItemType type, DateTime earlyDate, DateTime lateDate) { BuilderMgr.AGMgr.OpenAgendaInListByOrder((int)type); BuilderMgr.AGMgr.FeeMgr.ExpandOption(); BuilderMgr.AGMgr.FeeMgr.Pricing.SetEarlyDateTime(earlyDate); BuilderMgr.AGMgr.FeeMgr.Pricing.SetLateDateTime(lateDate); BuilderMgr.AGMgr.ClickSaveItem(); }