private void bindDropDownLists() { #region Bind Default Child Data msClass.Items.Add(new ListItem("Null", "Null")); DojoClassManager _classManager = new DojoClassManager(); DojoClassCollection _classCollection = _classManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoClass _class in _classCollection) { ListItem i = new ListItem(_class.ToString(), _class.ID.ToString()); msClass.Items.Add(i); } msMember.Items.Add(new ListItem("Null", "Null")); DojoMemberManager memberManager = new DojoMemberManager(); DojoMemberCollection memberCollection = memberManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMember member in memberCollection) { ListItem i = new ListItem(member.ToString(), member.ID.ToString()); msMember.Items.Add(i); } msRank.Items.Add(new ListItem("Null", "Null")); DojoRankManager rankManager = new DojoRankManager(); DojoRankCollection rankCollection = rankManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoRank rank in rankCollection) { ListItem i = new ListItem(rank.ToString(), rank.ID.ToString()); msRank.Items.Add(i); } #endregion }
private void bind() { #region Bind Default Child Data DojoRankManager dojoRankManager = new DojoRankManager(); DojoRankCollection dojoRankCollection = dojoRankManager.GetCollection(string.Empty, string.Empty); ddPromotionRank.Items.Add(new ListItem(" ", "null")); foreach (DojoRank itemObject in dojoRankCollection) ddPromotionRank.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString())); #endregion #region Bind Rappahanock Child Data RHItemManager rHItemManager = new RHItemManager(); RHItemCollection rHItemCollection = rHItemManager.GetCollection(string.Empty, string.Empty); ddItem.Items.Add(new ListItem(" ", "null")); foreach (RHItem itemObject in rHItemCollection) ddItem.Items.Add(new ListItem(itemObject.ToString(), itemObject.ID.ToString())); #endregion }
private void bindDropDownLists() { DojoMemberCollection members = new DojoMemberManager().GetCollection(string.Empty, "LastName, FirstName, MiddleName", DojoMemberFlags.PrivateContact); foreach (DojoMember member in members) { ListItem i = new ListItem(member.PrivateContact.ConstructName("L, FM."), member.iD.ToString()); if (editDojoBulkAttendanceEntry != null) { if (editDojoBulkAttendanceEntry.Member != null) { i.Selected = member.iD == editDojoBulkAttendanceEntry.Member.ID; } } ddMember.Items.Add(i); } DojoRankManager rankManager = new DojoRankManager(); DojoRankCollection ranks = rankManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoRank rank in ranks) { ddRank.Items.Add(new ListItem(rank.Name, rank.ID.ToString())); } }
private void bindDropDownLists() { #region Bind Default Child Data msPromotionRank.Items.Add(new ListItem("Null", "Null")); DojoRankManager promotionRankManager = new DojoRankManager(); DojoRankCollection promotionRankCollection = promotionRankManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoRank promotionRank in promotionRankCollection) { ListItem i = new ListItem(promotionRank.ToString(), promotionRank.ID.ToString()); msPromotionRank.Items.Add(i); } #endregion #region Bind Rappahanock Child Data msItem.Items.Add(new ListItem("Null", "Null")); RHItemManager itemManager = new RHItemManager(); RHItemCollection itemCollection = itemManager.GetCollection(string.Empty, string.Empty, null); foreach (RHItem item in itemCollection) { ListItem i = new ListItem(item.ToString(), item.ID.ToString()); msItem.Items.Add(i); } #endregion }
private void bindDropDownLists() { #region Bind Default Child Data msMember.Items.Add(new ListItem("Null", "Null")); DojoMemberManager memberManager = new DojoMemberManager(); DojoMemberCollection memberCollection = memberManager.GetCollection(string.Empty, string.Empty, null); foreach(DojoMember member in memberCollection) { ListItem i = new ListItem(member.ToString(), member.ID.ToString()); msMember.Items.Add(i); } msTest.Items.Add(new ListItem("Null", "Null")); DojoTestManager testManager = new DojoTestManager(); DojoTestCollection testCollection = testManager.GetCollection(string.Empty, string.Empty, null); foreach(DojoTest test in testCollection) { ListItem i = new ListItem(test.ToString(), test.ID.ToString()); msTest.Items.Add(i); } msPromotionRank.Items.Add(new ListItem("Null", "Null")); DojoRankManager promotionRankManager = new DojoRankManager(); DojoRankCollection promotionRankCollection = promotionRankManager.GetCollection(string.Empty, string.Empty, null); foreach(DojoRank promotionRank in promotionRankCollection) { ListItem i = new ListItem(promotionRank.ToString(), promotionRank.ID.ToString()); msPromotionRank.Items.Add(i); } msLastRank.Items.Add(new ListItem("Null", "Null")); DojoRankManager lastRankManager = new DojoRankManager(); DojoRankCollection lastRankCollection = lastRankManager.GetCollection(string.Empty, string.Empty, null); foreach(DojoRank lastRank in lastRankCollection) { ListItem i = new ListItem(lastRank.ToString(), lastRank.ID.ToString()); msLastRank.Items.Add(i); } msStatus.Items.Add(new ListItem("Null", "Null")); DojoPromotionStatusManager statusManager = new DojoPromotionStatusManager(); DojoPromotionStatusCollection statusCollection = statusManager.GetCollection(string.Empty, string.Empty); foreach(DojoPromotionStatus status in statusCollection) { ListItem i = new ListItem(status.ToString(), status.ID.ToString()); msStatus.Items.Add(i); } #endregion }
protected override void RenderContent(HtmlTextWriter output) { // Get Membership DojoMemberManager mm = new DojoMemberManager(connectionString); DojoMemberCollection members = mm.GetMemberList(DojoMemberManager.MemberListType.Active); int[] rankValue int[] rankCounts = new int[20] DojoRankManager rm = new DojoRankManager(connectionString); DojoRankCollection ranks = rm.GetCollection(string.Empty, string.Empty); TableGraph1.RenderControl(output); }
private void bind() { #region Bind Default Child Data DojoClassManager _classManager = new DojoClassManager(); DojoClassCollection _classCollection = _classManager.GetCollection(string.Empty, string.Empty, null); ComponentArt.Web.UI.ComboBoxItem ClassNullItem = new ComponentArt.Web.UI.ComboBoxItem(); ClassNullItem.Text = "Null"; ClassNullItem.Value = "Null"; comboClass.Items.Add(ClassNullItem); foreach (DojoClass _class in _classCollection) { ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem(); i.Text = _class.ToString(); i.Value = _class.ID.ToString(); comboClass.Items.Add(i); } DojoMemberManager memberManager = new DojoMemberManager(); DojoMemberCollection memberCollection = memberManager.GetCollection(string.Empty, string.Empty, null); ComponentArt.Web.UI.ComboBoxItem MemberNullItem = new ComponentArt.Web.UI.ComboBoxItem(); MemberNullItem.Text = "Null"; MemberNullItem.Value = "Null"; comboMember.Items.Add(MemberNullItem); foreach (DojoMember member in memberCollection) { ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem(); i.Text = member.ToString(); i.Value = member.ID.ToString(); comboMember.Items.Add(i); } DojoRankManager rankManager = new DojoRankManager(); DojoRankCollection rankCollection = rankManager.GetCollection(string.Empty, string.Empty, null); ComponentArt.Web.UI.ComboBoxItem RankNullItem = new ComponentArt.Web.UI.ComboBoxItem(); RankNullItem.Text = "Null"; RankNullItem.Value = "Null"; comboRank.Items.Add(RankNullItem); foreach (DojoRank rank in rankCollection) { ComponentArt.Web.UI.ComboBoxItem i = new ComponentArt.Web.UI.ComboBoxItem(); i.Text = rank.ToString(); i.Value = rank.ID.ToString(); comboRank.Items.Add(i); } #endregion }
/// <summary> /// Render this control to the output parameter specified. /// </summary> /// <param name="output"> The HTML writer to write out to </param> protected override void RenderContent(HtmlTextWriter output) { DojoRankManager m = new DojoRankManager(); DojoRankCollection dojoRankCollection = m.GetCollection(string.Empty, string.Empty, null); // Render Header Row this.headerLockEnabled = true; RenderRow(this.HeaderRowCssClass, ); bool rowflag = false; string rowCssClass; // // Render Records // foreach (DojoRank dojoRank in dojoRankCollection) { if (rowflag) { rowCssClass = defaultRowCssClass; } else { rowCssClass = alternateRowCssClass; } rowflag = !rowflag; output.WriteBeginTag("tr"); output.WriteAttribute("i", dojoRank.ID.ToString()); output.WriteLine(HtmlTextWriter.TagRightChar); output.Indent++; output.Indent--; output.WriteEndTag("tr"); output.WriteLine(); } }
public void LoadDefaults() { DojoAccessControlGroupCollection accessControls; DojoAttendanceEntryCollection attendanceEntries; DojoBulkAttendanceEntryCollection bulkAttendances; DojoClassCollection classes; DojoClassDefinitionCollection classDefinitions; DojoMemberCollection members; DojoMembershipCollection memberships; DojoMembershipTemplateCollection membershipTemplates; DojoMemberTypeCollection memberTypes; DojoMemberTypeTemplateCollection memberTypeTemplates; DojoOrganizationCollection organizations; DojoPromotionCollection promotions; DojoPromotionFlagCollection promotionFlags; DojoPromotionStatusCollection promotionStatuses; DojoRankCollection ranks; DojoTestCollection tests; DojoTestListCollection testLists; DojoTestListJournalEntryCollection testListJournalEntries; DojoTestListJournalEntryTypeCollection testListJournalEntryTypes; DojoTestListStatusCollection testListStatuses; DojoSeminarCollection seminars; DojoSeminarOptionCollection seminarOptions; DojoSeminarRegistrationCollection seminarRegistrations; DojoSeminarRegistrationOptionCollection seminarRegistrationOptions; GreyFoxContactCollection locations; accessControls = new DojoAccessControlGroupCollection(); attendanceEntries = new DojoAttendanceEntryCollection(); bulkAttendances = new DojoBulkAttendanceEntryCollection(); classes = new DojoClassCollection(); classDefinitions = new DojoClassDefinitionCollection(); members = new DojoMemberCollection(); memberships = new DojoMembershipCollection(); membershipTemplates = new DojoMembershipTemplateCollection(); memberTypes = new DojoMemberTypeCollection(); memberTypeTemplates = new DojoMemberTypeTemplateCollection(); organizations = new DojoOrganizationCollection(); promotions = new DojoPromotionCollection(); promotionFlags = new DojoPromotionFlagCollection(); promotionStatuses = new DojoPromotionStatusCollection(); ranks = new DojoRankCollection(); tests = new DojoTestCollection(); testLists = new DojoTestListCollection(); testListJournalEntries = new DojoTestListJournalEntryCollection(); testListJournalEntryTypes = new DojoTestListJournalEntryTypeCollection(); testListStatuses = new DojoTestListStatusCollection(); seminars = new DojoSeminarCollection(); seminarOptions = new DojoSeminarOptionCollection(); seminarRegistrations = new DojoSeminarRegistrationCollection(); seminarRegistrationOptions = new DojoSeminarRegistrationOptionCollection(); locations = new GreyFoxContactCollection(); organizations = new DojoOrganizationManager().GetCollection(string.Empty, string.Empty, null); memberTypes = new DojoMemberTypeManager().GetCollection(string.Empty, string.Empty); memberTypeTemplates = new DojoMemberTypeTemplateManager().GetCollection(string.Empty, string.Empty, null); ranks = new DojoRankManager().GetCollection(string.Empty, string.Empty, null); membershipTemplates = new DojoMembershipTemplateManager().GetCollection(string.Empty, string.Empty, null); Dictionary <string, DojoMemberType> memberTypesDictionary = new Dictionary <string, DojoMemberType>(); foreach (DojoMemberType memberType in memberTypes) { memberTypesDictionary.Add(memberType.Name, memberType); } Dictionary <string, DojoMemberTypeTemplate> memberTypeTemplatesDictionary = new Dictionary <string, DojoMemberTypeTemplate>(); foreach (DojoMemberTypeTemplate typeTemplate in memberTypeTemplates) { memberTypeTemplatesDictionary.Add(typeTemplate.Name, typeTemplate); } Dictionary <string, DojoRank> ranksDictionary = new Dictionary <string, DojoRank>(); foreach (DojoRank rank in ranks) { ranksDictionary.Add(rank.Name, rank); } Dictionary <string, DojoMembershipTemplate> membershipTemplatesDictionary = new Dictionary <string, DojoMembershipTemplate>(); foreach (DojoMembershipTemplate template in membershipTemplates) { membershipTemplatesDictionary.Add(template.Name, template); } CsvParser.CsvStream csv = CsvParser.StreamParse(Localization.Defaults.Defaults_en_US, false); string rowType; string[] r = csv.GetNextRow(); while (r != null) { rowType = r[0]; if (rowType == Localization.Defaults.CSVMembershipTemplate) { DojoMembershipTemplate template = TessenFactory.MembershipTemplate( r[1], r[2], bool.Parse(r[3]), bool.Parse(r[4]), bool.Parse(r[5]), decimal.Parse(r[6]), decimal.Parse(r[7]), (DojoMembershipDayType)Enum.Parse(typeof(DojoMembershipDayType), r[8]), (DojoMembershipDayType)Enum.Parse(typeof(DojoMembershipDayType), r[9]), DojoOrganization.NewPlaceHolder(0), 1, int.Parse(r[11]), int.Parse(r[12]), decimal.Parse(r[13]), (DojoMembershipDayType)Enum.Parse(typeof(DojoMembershipDayType), r[14]), int.Parse(r[15]), int.Parse(r[16]), decimal.Parse(r[17]), (DojoMembershipDayType)Enum.Parse(typeof(DojoMembershipDayType), r[18]), int.Parse(r[19]), int.Parse(r[20]), decimal.Parse(r[21]), (DojoMembershipDayType)Enum.Parse(typeof(DojoMembershipDayType), r[22]), int.Parse(r[23]), int.Parse(r[24]), int.Parse(r[25]), int.Parse(r[26]), ranksDictionary.ContainsKey(r[27]) ? ranksDictionary[r[27]] : null, ranksDictionary.ContainsKey(r[28]) ? ranksDictionary[r[28]] : null); membershipTemplates.Add(template); membershipTemplatesDictionary.Add(template.Name, template); template.Save(); } else if (rowType == Localization.Defaults.CSVMemberTypeTemplate) { DojoMemberTypeTemplate template = TessenFactory.MemberTypeTemplate( r[1], r[2], memberTypeTemplatesDictionary.ContainsKey(r[3].ToString()) ? memberTypeTemplatesDictionary[r[3]] : null, memberTypesDictionary.ContainsKey(r[4]) ? memberTypesDictionary[r[4]] : null, bool.Parse(r[5]), bool.Parse(r[6]), bool.Parse(r[7]), bool.Parse(r[8]), int.Parse(r[9]), int.Parse(r[10]), int.Parse(r[11]), int.Parse(r[12]), ranksDictionary.ContainsKey(r[13]) ? ranksDictionary[r[13]] : null, ranksDictionary.ContainsKey(r[14]) ? ranksDictionary[r[14]] : null, membershipTemplatesDictionary.ContainsKey(r[15]) ? membershipTemplatesDictionary[r[15]] : null, membershipTemplatesDictionary.ContainsKey(r[16]) ? membershipTemplatesDictionary[r[16]] : null, membershipTemplatesDictionary.ContainsKey(r[17]) ? membershipTemplatesDictionary[r[17]] : null, membershipTemplatesDictionary.ContainsKey(r[18]) ? membershipTemplatesDictionary[r[18]] : null, membershipTemplatesDictionary.ContainsKey(r[19]) ? membershipTemplatesDictionary[r[19]] : null); memberTypeTemplates.Add(template); memberTypeTemplatesDictionary.Add(template.Name, template); template.Save(); } r = csv.GetNextRow(); } }
private void bindDropDownLists() { #region Bind General Child Data msMemberType.Items.Add(new ListItem("Null", "Null")); DojoMemberTypeManager memberTypeManager = new DojoMemberTypeManager(); DojoMemberTypeCollection memberTypeCollection = memberTypeManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMemberType memberType in memberTypeCollection) { ListItem i = new ListItem(memberType.ToString(), memberType.ID.ToString()); msMemberType.Items.Add(i); } msPublicContact.Items.Add(new ListItem("Null", "Null")); GreyFoxContactManager publicContactManager = new GreyFoxContactManager("kitTessen_Members_PublicContacts"); GreyFoxContactCollection publicContactCollection = publicContactManager.GetCollection(string.Empty, string.Empty); foreach (GreyFoxContact publicContact in publicContactCollection) { ListItem i = new ListItem(publicContact.ToString(), publicContact.ID.ToString()); msPublicContact.Items.Add(i); } msParentMember.Items.Add(new ListItem("Null", "Null")); DojoMemberManager parentMemberManager = new DojoMemberManager(); DojoMemberCollection parentMemberCollection = parentMemberManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMember parentMember in parentMemberCollection) { ListItem i = new ListItem(parentMember.ToString(), parentMember.ID.ToString()); msParentMember.Items.Add(i); } #endregion #region Bind Membership Child Data msPrimaryOrgMembership.Items.Add(new ListItem("Null", "Null")); DojoMembershipManager primaryOrgMembershipManager = new DojoMembershipManager(); DojoMembershipCollection primaryOrgMembershipCollection = primaryOrgMembershipManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMembership primaryOrgMembership in primaryOrgMembershipCollection) { ListItem i = new ListItem(primaryOrgMembership.ToString(), primaryOrgMembership.ID.ToString()); msPrimaryOrgMembership.Items.Add(i); } msParentOrgMembership.Items.Add(new ListItem("Null", "Null")); DojoMembershipManager parentOrgMembershipManager = new DojoMembershipManager(); DojoMembershipCollection parentOrgMembershipCollection = parentOrgMembershipManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMembership parentOrgMembership in parentOrgMembershipCollection) { ListItem i = new ListItem(parentOrgMembership.ToString(), parentOrgMembership.ID.ToString()); msParentOrgMembership.Items.Add(i); } #endregion #region Bind Attendance Child Data msInstructor1.Items.Add(new ListItem("Null", "Null")); DojoMemberManager instructor1Manager = new DojoMemberManager(); DojoMemberCollection instructor1Collection = instructor1Manager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMember instructor1 in instructor1Collection) { ListItem i = new ListItem(instructor1.ToString(), instructor1.ID.ToString()); msInstructor1.Items.Add(i); } msInstructor2.Items.Add(new ListItem("Null", "Null")); DojoMemberManager instructor2Manager = new DojoMemberManager(); DojoMemberCollection instructor2Collection = instructor2Manager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMember instructor2 in instructor2Collection) { ListItem i = new ListItem(instructor2.ToString(), instructor2.ID.ToString()); msInstructor2.Items.Add(i); } msInstructor3.Items.Add(new ListItem("Null", "Null")); DojoMemberManager instructor3Manager = new DojoMemberManager(); DojoMemberCollection instructor3Collection = instructor3Manager.GetCollection(string.Empty, string.Empty, null); foreach (DojoMember instructor3 in instructor3Collection) { ListItem i = new ListItem(instructor3.ToString(), instructor3.ID.ToString()); msInstructor3.Items.Add(i); } #endregion #region Bind Activity Child Data msPromotionFlags.Items.Add(new ListItem("Null", "Null")); DojoPromotionFlagManager promotionFlagsManager = new DojoPromotionFlagManager(); DojoPromotionFlagCollection promotionFlagsCollection = promotionFlagsManager.GetCollection(string.Empty, string.Empty); foreach (DojoPromotionFlag promotionFlags in promotionFlagsCollection) { ListItem i = new ListItem(promotionFlags.ToString(), promotionFlags.ID.ToString()); msPromotionFlags.Items.Add(i); } msRank.Items.Add(new ListItem("Null", "Null")); DojoRankManager rankManager = new DojoRankManager(); DojoRankCollection rankCollection = rankManager.GetCollection(string.Empty, string.Empty, null); foreach (DojoRank rank in rankCollection) { ListItem i = new ListItem(rank.ToString(), rank.ID.ToString()); msRank.Items.Add(i); } #endregion #region Bind Security Child Data #endregion #region Bind Rappahanock Child Data msCustomer.Items.Add(new ListItem("Null", "Null")); RHCustomerManager customerManager = new RHCustomerManager(); RHCustomerCollection customerCollection = customerManager.GetCollection(string.Empty, string.Empty, null); foreach (RHCustomer customer in customerCollection) { ListItem i = new ListItem(customer.ToString(), customer.ID.ToString()); msCustomer.Items.Add(i); } #endregion }
private void bindDropDownLists() { DojoMemberCollection members = new DojoMemberManager().GetCollection("IsPrimaryOrgActive=true", "LastName, FirstName, MiddleName", DojoMemberFlags.PrivateContact); foreach (DojoMember member in members) { ListItem i = new ListItem(member.PrivateContact.ConstructName("L, FM."), member.iD.ToString()); if (editDojoPromotion != null) { if (editDojoPromotion.Member != null) { i.Selected = member.iD == editDojoPromotion.Member.ID; } } ddMember.Items.Add(i); } DojoTestManager tm = new DojoTestManager(); DojoTestCollection tests = tm.GetCollection(string.Empty, "TestDate", null); ddTest.Items.Add(new ListItem("None", "-1")); foreach (DojoTest test in tests) { ListItem i = new ListItem(test.Name + " (" + test.TestDate.ToShortDateString() + ")", test.ID.ToString()); if (editDojoPromotion != null) { if (editDojoPromotion.Test != null) { i.Selected = test.ID == editDojoPromotion.Test.ID; } } ddTest.Items.Add(i); } DojoRankManager rm = new DojoRankManager(); DojoRankCollection ranks = rm.GetCollection(string.Empty, "Name", null); foreach (DojoRank rank in ranks) { ListItem i = new ListItem(rank.Name, rank.ID.ToString()); if (editDojoPromotion != null) { if (editDojoPromotion.PromotionRank != null) { i.Selected = rank.ID == editDojoPromotion.PromotionRank.ID; } } ddPromotionRank.Items.Add(i); } ddLastRank.Items.Add(new ListItem("Current Rank", "-1")); foreach (DojoRank rank in ranks) { ListItem i = new ListItem(rank.Name, rank.ID.ToString()); if (editDojoPromotion != null) { if (editDojoPromotion.LastRank != null) { i.Selected = rank.ID == editDojoPromotion.LastRank.ID; } } ddLastRank.Items.Add(i); } }
/// <summary> /// Render this control to the output parameter specified. /// </summary> /// <param name="output"> The HTML writer to write out to </param> protected override void RenderContent(HtmlTextWriter output) { EnsureChildControls(); DojoRankManager m = new DojoRankManager(); DojoRankCollection ranks = m.GetCollection(string.Empty, string.Empty, null); bool rowflag = false; string rowCssClass; // // Render Records // foreach (DojoRank rank in ranks) { if (rowflag) { rowCssClass = this.defaultRowCssClass; } else { rowCssClass = this.alternateRowCssClass; } rowflag = !rowflag; output.WriteBeginTag("tr"); output.WriteAttribute("i", rank.iD.ToString()); output.WriteLine(HtmlTextWriter.TagRightChar); output.Indent++; // // Render OrderNum of Record // output.WriteBeginTag("td"); output.WriteAttribute("class", rowCssClass); output.Write(HtmlTextWriter.TagRightChar); output.Write(rank.orderNum); output.WriteEndTag("td"); output.WriteLine(); // // Render Main Representation of Record // output.WriteBeginTag("td"); output.WriteAttribute("valign", "top"); output.WriteAttribute("class", rowCssClass); output.Write(HtmlTextWriter.TagRightChar); output.Write(rank.name); output.WriteEndTag("td"); output.WriteLine(); // // Render Promotion Rank // output.WriteBeginTag("td"); output.WriteAttribute("class", rowCssClass); output.WriteAttribute("valign", "top"); output.Write(HtmlTextWriter.TagRightChar); if (rank.PromotionRank != null) { output.Write(rank.PromotionRank.Name); } else { output.Write("None"); } output.WriteEndTag("td"); output.WriteLine(); // // Render Promotion Time From Last Test // output.WriteBeginTag("td"); output.WriteAttribute("class", rowCssClass); output.WriteAttribute("valign", "top"); output.Write(HtmlTextWriter.TagRightChar); output.Write(rank.PromotionTimeFromLastTest.TotalDays); output.Write(" days"); output.WriteEndTag("td"); output.WriteLine(); // // Render Promotion Time In Rank // output.WriteBeginTag("td"); output.WriteAttribute("class", rowCssClass); output.WriteAttribute("valign", "top"); output.Write(HtmlTextWriter.TagRightChar); output.Write(rank.PromotionTimeInRank.TotalHours); output.Write(" hrs."); output.WriteEndTag("td"); output.WriteLine(); output.Indent--; output.WriteEndTag("tr"); output.WriteLine(); } }