• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# HandlebarsDotNet.HelperOptions类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中HandlebarsDotNet.HelperOptions的典型用法代码示例。如果您正苦于以下问题:C# HelperOptions类的具体用法?C# HelperOptions怎么用?C# HelperOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HelperOptions类属于HandlebarsDotNet命名空间,在下文中一共展示了HelperOptions类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Registrant

 private void Registrant(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     options.Template(writer, new
     {
         OrgMember.Person.Name,
         OrgMember.Organization.OrganizationName,
     });
 }
开发者ID:GSBCfamily,项目名称:bvcms,代码行数:8,代码来源:SummaryInfo.cs


示例2: IfAskTickets

 private void IfAskTickets(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskTickets)
         options.Template(writer, OrgMember);
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:5,代码来源:SummaryInfo.cs


示例3: IfAskTextQuestions

 private void IfAskTextQuestions(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskText)
         return;
     var list = Person.Text[((AskText)currentAsk).UniqueId].Where(a => a.Value.HasValue()).ToList();
     if (!list.Any())
         return;
     var lastKey = list.Last().Key;
     foreach (var item in list)
     {
         RowStyle = lastKey == item.Key ? CssStyle.BottomBorder : CssStyle.PadBottom;
         options.Template(writer, new
         {
             Question = item.Key,
             Answer = item.Value,
         });
     }
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:18,代码来源:SummaryInfo.cs


示例4: IfAskSms

 private void IfAskSms(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskSms)
         options.Template(writer, new { Person.person.ReceiveSMS });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:5,代码来源:SummaryInfo.cs


示例5: IfAskRequest

 private void IfAskRequest(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskRequest)
         return;
     options.Template(writer, new
     {
         ((AskRequest)currentAsk).Label,
         OrgMember.Request,
     });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:10,代码来源:SummaryInfo.cs


示例6: IfAskSms

 private void IfAskSms(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskSms)
         return;
     if (Person.person == null)
         Person.person = db.LoadPersonById(Person.PeopleId);
     options.Template(writer, new { Person.person.ReceiveSMS });
 }
开发者ID:clearfunction,项目名称:bvcms,代码行数:8,代码来源:SummaryInfo.cs


示例7: IfSupportMissionTrip

 private void IfSupportMissionTrip(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!SupportMissionTrip)
         return;
     var Goer = db.LoadPersonById(Person.MissionTripGoerId ?? 0);
     options.Template(writer, new
     {
         Goer,
         HasGoer = Person.MissionTripGoerId > 0,
         HasGeneralSupport = Person.MissionTripSupportGeneral > 0,
     });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:12,代码来源:SummaryInfo.cs


示例8: IfHasAgeGroups

 private void IfHasAgeGroups(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (Person.setting.AgeGroups.Count == 0)
         return;
     options.Template(writer, new { AgeGroup = Person.AgeGroup() });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:6,代码来源:SummaryInfo.cs


示例9: IfAskGradeOptions

 private void IfAskGradeOptions(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskGradeOptions)
         options.Template(writer, new { GradeOption = Person.GradeOptions(currentAsk)[Person.gradeoption ?? "00"] });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:5,代码来源:SummaryInfo.cs


示例10: IfAskDropdown

 private void IfAskDropdown(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskDropdown)
         options.Template(writer, new
         {
             OptionsLabel = Util.PickFirst(((AskDropdown)currentAsk).Label, "Options"),
             SubGroupChoice = ((AskDropdown)currentAsk).SmallGroupChoice(Person.option).Description,
         });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:9,代码来源:SummaryInfo.cs


示例11: IfAskChurch

 private void IfAskChurch(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskChurch)
         return;
     var recReg = OrgMember.Person.GetRecReg();
     options.Template(writer, new
     {
         ShowNotMember = recReg.Member == true ? "" : "Not",
         ShowNotActive = recReg.ActiveInAnotherChurch == true ? "" : "Not",
     });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:11,代码来源:SummaryInfo.cs


示例12: Checkboxes

 private void Checkboxes(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskCheckboxes)
         return;
     var list = ((AskCheckboxes)currentAsk).CheckboxItemsChosen(Person.Checkbox).ToList();
     if (!list.Any())
         return;
     var lastDesc = list.Last().Description;
     foreach (var item in list)
     {
         RowStyle = lastDesc == item.Description ? "" : CssStyle.PadBottom;
         options.Template(writer, new
         {
             DisplayDescription = item.Fee > 0
                 ? $"{item.Description} (${item.Fee.ToString2("N2")}<br/>({item.SmallGroup})"
                 : $"{item.Description}<br/>({item.SmallGroup})",
         });
     }
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:19,代码来源:SummaryInfo.cs


示例13: AskItems

 private void AskItems(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (SupportMissionTrip)
         return;
     var list = Person.setting.AskItems;
     if (!list.Any())
         return;
     foreach (var item in list)
     {
         currentAsk = item;
         options.Template(writer, item);
     }
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:13,代码来源:SummaryInfo.cs


示例14: IfShowTransaction

        private void IfShowTransaction(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
        {
            var ti = db.Transactions.SingleOrDefault(tt => tt.Id == OrgMember.TranId);
            if (ti == null || (ti.Amt ?? 0) == 0)
                return;
            var ts = OrgMember.TransactionSummary(db);
            var amtFee = (ts.IndPaid + ts.IndDue);
            var amtDonation = ts.IndAmt - amtFee;
            var info = new
            {
                AmtFee = amtFee.ToString2("c"),
                AmtDonation = amtDonation.ToString2("c"),
                AmtPaid = OrgMember.AmountPaidTransactions(db).ToString2("c"),
                AmtDue = OrgMember.AmountDueTransactions(db).ToString2("c"),

                HasDonation = amtDonation.HasValue,
            };
            options.Template(writer, info);
        }
开发者ID:camazorro,项目名称:bvcms,代码行数:19,代码来源:SummaryInfo.cs


示例15: IfAskTylenolEtc

 private void IfAskTylenolEtc(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskTylenolEtc)
         options.Template(writer, new
         {
             Tylenol = Person.tylenol == true ? "Yes" : "No",
             Advil = Person.advil == true ? "Yes" : "No",
             Maalox = Person.maalox == true ? "Yes" : "No",
             Robitussin = Person.robitussin == true ? "Yes" : "No",
         });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:11,代码来源:SummaryInfo.cs


示例16: IfAskYesNoQuestions

 private void IfAskYesNoQuestions(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskYesNoQuestions)
         return;
     var list = ((AskYesNoQuestions)currentAsk).list
         .Where(a => Person.YesNoQuestion.ContainsKey(a.SmallGroup)).ToList();
     if (!list.Any())
         return;
     var lastKey = list.Last().Question;
     foreach (var item in list)
     {
         RowStyle = lastKey == item.Question ? CssStyle.BottomBorder : CssStyle.PadBottom;
         options.Template(writer, new
         {
             item.Question,
             Answer = Person.YesNoQuestion[item.SmallGroup] == true ? "Yes" : "No",
         });
     }
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:19,代码来源:SummaryInfo.cs


示例17: IfAskInstruction

 private void IfAskInstruction(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskInstruction)
         options.Template(writer, new { ((AskInstruction)currentAsk).Label });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:5,代码来源:SummaryInfo.cs


示例18: IfShowTransaction

 private void IfShowTransaction(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     var ti = db.Transactions.SingleOrDefault(tt => tt.Id == OrgMember.TranId);
     if (ti == null || (ti.Amt ?? 0) == 0)
         return;
     var ts = OrgMember.TransactionSummary(db);
     options.Template(writer, new
     {
         IndAmt = ts.IndAmt.ToString2("c"),
         TotPaid = OrgMember.TotalPaid(db).ToString("c"),
         AmountDue = OrgMember.AmountDue(db).ToString("c"),
     });
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:13,代码来源:SummaryInfo.cs


示例19: IfAskMenu

 private void IfAskMenu(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (currentAsk.IsAskMenu)
         options.Template(writer, (object)context);
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:5,代码来源:SummaryInfo.cs


示例20: MenuItems

 private void MenuItems(TextWriter writer, HelperOptions options, dynamic context, params object[] args)
 {
     if (!currentAsk.IsAskMenu || Person.MenuItem == null)
         return;
     var obj = (AskMenu)currentAsk;
     var list = obj.MenuItemsChosen(Person.MenuItem[obj.UniqueId]).ToList();
     if (!list.Any())
         return;
     if (Person.MenuItem == null)
         return;
     var lastDesc = list.Last().desc;
     var TopLabel = "Choices";
     foreach (var item in list)
     {
         RowStyle = lastDesc == item.desc ? CssStyle.BottomBorder : CssStyle.PadBottom;
         options.Template(writer, new
         {
             TopLabel,
             Number = item.number,
             Desc = item.desc,
             HasAmt = item.amt > 0,
             DispAmt = item.amt.ToString("N2"),
         });
         Debug.Write(this.TopLabel);
         this.TopLabel = "";
     }
 }
开发者ID:peclecl,项目名称:bvcms,代码行数:27,代码来源:SummaryInfo.cs



注:本文中的HandlebarsDotNet.HelperOptions类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TaskbarNotification.TaskbarIcon类代码示例发布时间:2022-05-26
下一篇:
C# Xml.NodeIndex类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap