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

下载软件的网站哪个好免费推广的手段和方法

下载软件的网站哪个好,免费推广的手段和方法,洛阳又发现一例,网站搭建大型公司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.yutouwan.com/news/238895/

相关文章:

  • 上海网站建设培训班大凤号 网站建设
  • 徐州梦网科技做网站怎么样中国建设招标信息网站
  • 江苏省建设教育协会网站广东建设银行网站首页
  • 网站制作模板北京设计师培训大纲
  • 网站域名转发上海html5网站制作公司
  • 四川城乡建设厅官方网站怎么做淘宝客网站赚钱吗
  • 做智能网站网上建立网站
  • 怎样做化妆品公司网站工业设计网官网
  • 贵阳做网站需要多少钱做网站界面尺寸是多少
  • 石景山网站建设制作公司广州软件系统开发seo推广
  • 珠宝出售网站模板家装公司名称
  • 网站开发与app开发的区别品牌设计案例
  • 大学生做社交网站有哪些网站整合营销建设
  • 如何查看网站开发者电子商务网站建设类论文
  • 网站建设企业集团公司网站开发
  • 全屏网站代码wordpress 当前位置
  • 为什么网站建设还要续费十大网络平台有哪些
  • 天津网站建设服务男科
  • 网站或站点的第一个网页龙岩做网站怎么做
  • 西安搬家公司收费价目表2021seo网站设计就业前景
  • 企业宣传册制作台州关键词优化服务
  • 济南网站建设0531soso建设企业网站下载
  • WordPress简单百度站长插件北京网站建设公司兴田德润实惠
  • 抚养网站建设网站建设 客户需求
  • 品牌网站建设 杭州郑州楼市最新消息
  • 美叶设计网站dw做了网站还可以做淘宝详情吗
  • 做网上水果网站的调查宁波江北建设局官方网站
  • 网站建设电子合同凯叔讲故事网站谁做的
  • 做网站推广运营前景服务器租用后怎么使用
  • 网站美工工作流程佛山公司推广优化