当前位置: 首页 > news >正文

房子做水电的时候是不是要先埋网站ftp 打开wordpress

房子做水电的时候是不是要先埋网站,ftp 打开wordpress,行业网站开发公司,广州中医药资源门户网站WeihanLi.Npoi 根据模板导出ExcelIntro原来的导出方式比较适用于比较简单的导出#xff0c;每一条数据在一行#xff0c;数据列虽然自定义程度比较高#xff0c;如果要一条数据对应多行就做不到了#xff0c;于是就想支持根据模板导出#xff0c;在 1.8.0 版本中引入了根据… WeihanLi.Npoi 根据模板导出ExcelIntro原来的导出方式比较适用于比较简单的导出每一条数据在一行数据列虽然自定义程度比较高如果要一条数据对应多行就做不到了于是就想支持根据模板导出在 1.8.0 版本中引入了根据模板导出的功能使用示例示例模板模板规划的可以有三种数据Global一个是导出的时候可以指定一些参数作为 Global 参数默认参数格式使用: $(Global:PropName) 的格式Header配置的对应属性的显示名称默认是属性名称默认参数格式 $(Header:PropName)Data对应数据的属性值默认参数格式 $(Data:PropName)默认模板参数格式从 1.8.2 版本开始支持通过 TemplateHelper.ConfigureTemplateOptions 方法来自定义Global 参数 $(Global:{0})Header 参数 $(Header:{0})Data 参数 $(Data:{0})Data Begin: DataData End: /Data模板规范模板需要通过 Data Begin 和 Data End 来配置数据模板的开始和结束以识别每一个数据对应的开始行和结束行示例代码示例配置var setting ExcelHelper.SettingForTestEntity(); // ExcelSetting setting.HasAuthor(WeihanLi).HasTitle(WeihanLi.Npoi test).HasDescription(WeihanLi.Npoi test).HasSubject(WeihanLi.Npoi test); setting.HasSheetConfiguration(0, SystemSettingsList, 1, true); setting.Property(_ _.SettingId).HasColumnIndex(0); setting.Property(_ _.SettingName).HasColumnTitle(SettingName).HasColumnIndex(1); setting.Property(_ _.DisplayName).HasOutputFormatter((entity, displayName) $AAA_{entity.SettingName}_{displayName}).HasInputFormatter((entity, originVal) originVal.Split(new[] { _ })[2]).HasColumnTitle(DisplayName).HasColumnIndex(2); setting.Property(_ _.SettingValue).HasColumnTitle(SettingValue).HasColumnIndex(3); setting.Property(x x.Enabled).HasColumnInputFormatter(val 启用.Equals(val)).HasColumnOutputFormatter(v v ? 启用 : 禁用); setting.Property(HiddenProp).HasOutputFormatter((entity, val) $HiddenProp_{entity.PKID}); setting.Property(_ _.PKID).Ignored(); setting.Property(_ _.UpdatedBy).Ignored(); setting.Property(_ _.UpdatedTime).Ignored(); 根据模板导出示例代码var entities new ListTestEntity() {new TestEntity(){PKID 1,SettingId Guid.NewGuid(),SettingName Setting1,SettingValue Value1,DisplayName ddd1},new TestEntity(){PKID2,SettingId Guid.NewGuid(),SettingName Setting2,SettingValue Value2,Enabled true}, }; entities.ToExcelFileByTemplate(Path.Combine(ApplicationHelper.AppRoot, Templates, testTemplate.xlsx),ApplicationHelper.MapPath(templateTestEntities.xlsx),extraData: new{Author WeihanLi,Title 导出结果} ); 导出结果More为了方便使用增加了一些方便的扩展方法public static int ToExcelFileByTemplateTEntity([NotNull]this IEnumerableTEntity entities, string templatePath, string excelPath, int sheetIndex 0, object extraData null); public static int ToExcelFileByTemplateTEntity([NotNull]this IEnumerableTEntity entities, byte[] templateBytes, string excelPath, ExcelFormat excelFormat ExcelFormat.Xls, int sheetIndex 0, object extraData null); public static int ToExcelFileByTemplateTEntity([NotNull]this IEnumerableTEntity entities, IWorkbook templateWorkbook, string excelPath, int sheetIndex 0, object extraData null); public static byte[] ToExcelBytesByTemplateTEntity([NotNull]this IEnumerableTEntity entities, string templatePath, int sheetIndex 0, object extraData null); public static byte[] ToExcelBytesByTemplateTEntity([NotNull]this IEnumerableTEntity entities, byte[] templateBytes, ExcelFormat excelFormat ExcelFormat.Xls, int sheetIndex 0, object extraData null); public static byte[] ToExcelBytesByTemplateTEntity([NotNull]this IEnumerableTEntity entities, Stream templateStream, ExcelFormat excelFormat ExcelFormat.Xls, int sheetIndex 0, object extraData null); public static byte[] ToExcelBytesByTemplateTEntity([NotNull]this IEnumerableTEntity entities, IWorkbook templateWorkbook, int sheetIndex 0, object extraData null); public static byte[] ToExcelBytesByTemplateTEntity([NotNull]this IEnumerableTEntity entities, ISheet templateSheet, object extraData null); Referencehttps://github.com/WeihanLi/WeihanLi.Npoihttps://github.com/WeihanLi/WeihanLi.Npoi/blob/917e8fb798e9cbae52d121a7d593e37639870911/samples/DotNetCoreSample/Program.cs#L94
http://www.huolong8.cn/news/66309/

相关文章:

  • 青岛网站建设公司好找吗网络营销推广的公司
  • 箱包网站建设策划报告摄影师都在哪些网站发布作品
  • 农资销售网站建设方案做课件网站
  • 电商网站的内容设计网站下面版权代码
  • 杭州做商务网站在线设计免费签名
  • 网站规划的主要内容针对大学生推广引流
  • 在安庆哪里可以做公司网站wordpress 嵌套回复
  • 长治企业网站建设价格wordpress+免费博客平台
  • 一般做外贸上什么网站好wordpress 添加到主屏
  • 怎么看 网站开发语言网站做不好一直不交付怎么办
  • 软件销售网站模板wordpress多媒体不显示
  • 扬州广陵区城乡建设局网站文章类网站源码
  • 漯河网站建设价格大连金州区房价
  • wordpress禁止升级西安官网seo价格
  • 网站结构分析昆明公司网站优化
  • 网站推广软件免费下载安装中国建设银行官网站企业年金
  • 建设银行官方个人网站快速学会做网站
  • 网站设计模板素材教育培训机构招生方案
  • 网站制作一个人可以做吗杭州市建设职业中心网站
  • 中国建设银行网站首页u盾登入工商注册网上核名
  • 多语言网站开发设计深圳地址大全
  • 百度蜘蛛抓取网站网站建设模板软件
  • 福建设计招聘网站不关站备案wordpress 2019
  • 私做网站名电子章wordpress百度流量统计
  • 超市微信小程序怎么做济南seo优化外包
  • 网站用asp还是php后台控制网站关键词设置的详细代码
  • 河南卫生基层系统网站建设昆明最新新闻事件今天
  • 科技设计网站有哪些wordpress调用post
  • pc网站怎么做适配企业网站做app
  • 国内哪家网站建设公司好网站哪家公司做的好