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

哪些网站是用vue做的seo168小视频

哪些网站是用vue做的,seo168小视频,腾讯企业邮箱网页版登录入口,wordpress 本地服务器excel动态列,只好用poi来写了,也并不复杂,一样就这个件事情抽像为几步,就是套路了,开发效率就上去了。 1 准备空模板 导出操作与excel模板的导出一样,可以参考excel导出标准化 2 自定义SheetWriteHandler …

1
excel动态列,只好用poi来写了,也并不复杂,一样就这个件事情抽像为几步,就是套路了,开发效率就上去了。
1 准备空模板
导出操作与excel模板的导出一样,可以参考excel导出标准化
1
2 自定义SheetWriteHandler
要通过pos自己创建每一样,像模板一样创建即可.

WriteSheet sheet0 = EasyExcel.writerSheet(0)//标题.registerWriteHandler(new GoodsInvRdSumWriteHandler(goodsInvRdSumListDto.getHeader())).build();

主要重写afterSheetCreate,也就是一行行的创建excel模板

 @Overridepublic void afterSheetCreate(WriteWorkbookHolder writeWorkbookHolder, WriteSheetHolder writeSheetHolder) {Workbook workbook = writeWorkbookHolder.getWorkbook();this.centerCellStyle = createCellContentStyle(workbook,HorizontalAlignment.CENTER,BorderStyle.THIN);this.leftCellStyle = createCellContentStyle(workbook,HorizontalAlignment.LEFT,BorderStyle.THIN);this.rightCellStyle = createCellContentStyle(workbook,HorizontalAlignment.RIGHT,BorderStyle.THIN);Sheet sheet = workbook.getSheetAt(0);row1(sheet,workbook);row2(sheet,workbook);row34(sheet);row5(sheet);}

第一行

  /*** 第一行是标题* @param sheet*/private void row1(Sheet sheet,Workbook workbook){Row row = sheet.createRow(0);row.setHeight((short) (50 * 20));Cell cell = row.createCell(0);cell.setCellValue("商品收发汇总表");cell.setCellStyle(getHeadCellStyle(workbook, this.centerCellStyle));CellRangeAddress cellRangeAddress = new CellRangeAddress(0, 0, 0, 9+this.dynamicHeader.size()*2-1);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyleNoBorder(sheet, cellRangeAddress);}

第二行

/*** 第二行 公司名称、日期* @param sheet*/private void row2(Sheet sheet,Workbook workbook){Row row = sheet.createRow(1);CellStyle subHeaderStyle = createCellContentStyle(workbook, HorizontalAlignment.LEFT,BorderStyle.NONE);// 公司名称Cell cell = row.createCell(0);cell.setCellStyle(subHeaderStyle);cell.setCellValue("公司:{companyName}                               日期:{startBillDate}至{endBillDate}");sheet.addMergedRegionUnsafe(new CellRangeAddress(1, 1, 0, 9+this.dynamicHeader.size()*2-1));}

第三行,第四行涉及到动态列的创建和合并表头

 private void row34(Sheet sheet){Row row3 = sheet.createRow(2);Row row4 = sheet.createRow(3);// 商品编码Cell cell = row3.createCell(0);cell.setCellValue("商品编码");cell.setCellStyle(this.centerCellStyle);CellRangeAddress cellRangeAddress = new CellRangeAddress(2, 3, 0, 0);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 商品名称cell = row3.createCell(1);cell.setCellValue("商品名称");cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 3, 1, 1);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 商品规格cell = row3.createCell(2);cell.setCellValue("商品规格");cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 3, 2, 2);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);//动态列int dySize = this.dynamicHeader.size();if (dySize>0){for (int i=0; i<dySize; i++){Map<String,Object> colMap = this.dynamicHeader.get(i);String busiType = String.valueOf(colMap.get("prop")).replace("busi_", BaseConstant.Separate.NONE);BusinessTypeEnum businessTypeEnum = BusinessTypeEnum.getInvBusinessTypeEnum(busiType);// 第3行——合并表头cell = row3.createCell(3+i*2);cell.setCellValue(businessTypeEnum.display());cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 2, 3+i*2, 4+i*2);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 第4行——成本cell = row4.createCell(3+i*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("数量");// 第4行——数量cell = row4.createCell(4+i*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("成本");}}// 入库合计cell = row3.createCell(3+dySize*2);cell.setCellValue("入库合计");cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 2, 3+dySize*2, 4+dySize*2);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 入库合计——成本cell = row4.createCell(3+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("数量");// 入库合计——数量cell = row4.createCell(4+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("成本");// 出库合计cell = row3.createCell(5+dySize*2);cell.setCellValue("出库合计");cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 2, 5+dySize*2, 6+dySize*2);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 出库合计——成本cell = row4.createCell(5+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("数量");// 出库合计——数量cell = row4.createCell(6+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("成本");// 结余cell = row3.createCell(7+dySize*2);cell.setCellValue("结余");cell.setCellStyle(this.centerCellStyle);cellRangeAddress = new CellRangeAddress(2, 2, 7+dySize*2, 8+dySize*2);sheet.addMergedRegionUnsafe(cellRangeAddress);setMergedRegionStyle(sheet, cellRangeAddress);// 结余——成本cell = row4.createCell(7+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("数量");// 结余——数量cell = row4.createCell(8+dySize*2);cell.setCellStyle(this.centerCellStyle);cell.setCellValue("成本");}

第五行是数据域

/*** 第五行:数据域* @param sheet*/private void row5(Sheet sheet){Row row = sheet.createRow(4);// 商品编码Cell cell = row.createCell(0);cell.setCellStyle(this.leftCellStyle);cell.setCellValue("{.stockCode}");// 商品名称cell = row.createCell(1);cell.setCellStyle(this.leftCellStyle);cell.setCellValue("{.stockName}");// 商品规格cell = row.createCell(2);cell.setCellStyle(this.leftCellStyle);cell.setCellValue("{.stockModel}");// 动态列int dySize = this.dynamicHeader.size();if (!CheckEmptyUtil.isEmpty(this.dynamicHeader)){for (int i=0; i<dySize; i++){Map<String,Object> colMap = this.dynamicHeader.get(i);List<Map<String,String>> chidren = (List<Map<String,String>>)colMap.get("children");// 数量Map<String,String> countMap = chidren.get(0);cell = row.createCell(3+i*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue(String.format("{.%s}", countMap.get("prop")));// 成本Map<String,String> costMap = chidren.get(1);cell = row.createCell(4+i*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue(String.format("{.%s}", costMap.get("prop")));}}// 入库合计cell = row.createCell(3+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.count_total_in}");cell = row.createCell(4+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.cost_total_in}");// 出库合计cell = row.createCell(5+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.count_total_out}");cell = row.createCell(6+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.cost_total_out}");// 结余cell = row.createCell(7+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.final_count}");cell = row.createCell(8+dySize*2);cell.setCellStyle(this.rightCellStyle);cell.setCellValue("{.final_cost}");}

表格样式这里只写一个,其他的参考pos文档即可,不要每一个单元都重新创建单元格样式,那样非常消耗性能.

 private CellStyle createCellContentStyle(Workbook workbook, HorizontalAlignment align,BorderStyle borderStyle) {CellStyle style = workbook.createCellStyle();// 设置对齐样式style.setAlignment(align);//背景为白色style.setFillForegroundColor(IndexedColors.WHITE.getIndex());// 设置边框样式// 下边框style.setBorderBottom(borderStyle);// 左边框style.setBorderLeft(borderStyle);// 上边框style.setBorderTop(borderStyle);// 右边框style.setBorderRight(borderStyle);// 生成字体Font font = workbook.createFont();font.setFontName("宋体");// 设置字体大小font.setFontHeightInPoints((short) 10);// 粗体显示font.setBold(false);// 选择创建的字体格式style.setFont(font);return style;}

文章转载自:
http://lientery.tgnr.cn
http://matriclinous.tgnr.cn
http://undertenant.tgnr.cn
http://colossus.tgnr.cn
http://degression.tgnr.cn
http://albumen.tgnr.cn
http://aftershock.tgnr.cn
http://pylorus.tgnr.cn
http://mustardy.tgnr.cn
http://fash.tgnr.cn
http://symposium.tgnr.cn
http://necromimesis.tgnr.cn
http://tonsilar.tgnr.cn
http://suprarenalin.tgnr.cn
http://harmattan.tgnr.cn
http://fragmentized.tgnr.cn
http://carneous.tgnr.cn
http://agalloch.tgnr.cn
http://lenticel.tgnr.cn
http://chloe.tgnr.cn
http://sausageburger.tgnr.cn
http://criminalistic.tgnr.cn
http://punctatim.tgnr.cn
http://acrogen.tgnr.cn
http://earthwards.tgnr.cn
http://pythia.tgnr.cn
http://prerequisite.tgnr.cn
http://dishonestly.tgnr.cn
http://sandburg.tgnr.cn
http://pepsinate.tgnr.cn
http://cockeyed.tgnr.cn
http://cber.tgnr.cn
http://melomania.tgnr.cn
http://chresard.tgnr.cn
http://narial.tgnr.cn
http://fridge.tgnr.cn
http://northpaw.tgnr.cn
http://sundial.tgnr.cn
http://monte.tgnr.cn
http://pardy.tgnr.cn
http://washleather.tgnr.cn
http://wigeon.tgnr.cn
http://hyperthyroidism.tgnr.cn
http://cassini.tgnr.cn
http://abhor.tgnr.cn
http://quahog.tgnr.cn
http://dextrane.tgnr.cn
http://naeb.tgnr.cn
http://unbraid.tgnr.cn
http://contradistinction.tgnr.cn
http://piccalilli.tgnr.cn
http://tipwizard.tgnr.cn
http://mastless.tgnr.cn
http://celluloid.tgnr.cn
http://glucanase.tgnr.cn
http://cleansing.tgnr.cn
http://melodica.tgnr.cn
http://whereof.tgnr.cn
http://unpersuasive.tgnr.cn
http://phenylketonuria.tgnr.cn
http://arles.tgnr.cn
http://rubigo.tgnr.cn
http://leptosomatic.tgnr.cn
http://inimical.tgnr.cn
http://whopper.tgnr.cn
http://taction.tgnr.cn
http://photosynthate.tgnr.cn
http://histone.tgnr.cn
http://kelt.tgnr.cn
http://virology.tgnr.cn
http://intangibly.tgnr.cn
http://mantes.tgnr.cn
http://bulb.tgnr.cn
http://salacity.tgnr.cn
http://deepwater.tgnr.cn
http://tripod.tgnr.cn
http://interlard.tgnr.cn
http://iridize.tgnr.cn
http://jurisprudential.tgnr.cn
http://masculinity.tgnr.cn
http://motherwort.tgnr.cn
http://checksummat.tgnr.cn
http://musculature.tgnr.cn
http://dit.tgnr.cn
http://cloudling.tgnr.cn
http://exlex.tgnr.cn
http://pix.tgnr.cn
http://lactone.tgnr.cn
http://pythia.tgnr.cn
http://conspectus.tgnr.cn
http://doloroso.tgnr.cn
http://comfortable.tgnr.cn
http://besmirch.tgnr.cn
http://zealotic.tgnr.cn
http://pharyngoscopy.tgnr.cn
http://dislikeable.tgnr.cn
http://hasty.tgnr.cn
http://sororal.tgnr.cn
http://sulphamethazine.tgnr.cn
http://voyeuristic.tgnr.cn
http://www.15wanjia.com/news/92617.html

相关文章:

  • 济南网站建设 小程序南昌seo搜索排名
  • 梅州市住房和城乡建设局网站微信引流推广怎么做
  • 晋江网站建设公司上海网站优化
  • 怎么创建网站论坛企业seo
  • html网页编辑器下载网络优化器下载
  • 内部网站可以做ipc备案农产品网络营销推广方案
  • 网页游戏制作工具牡丹江网站seo
  • 公司网站建设小江网络工作室微信指数是什么意思
  • 商务平台网站建设合同百度广告联盟收益
  • 定制网站成本多少网站建设明细报价表
  • 关于做好学院网站建设的要求seo怎么优化方案
  • 网站建设达到什么水平网站流量数据
  • 企业站用什么程序做网站广告优化师适合女生吗
  • 做会计公司网站的目录网络营销职业规划300字
  • 上海网站建设公司大全今日要闻10条
  • 做网站用什么字体最明显nba季后赛最新排名
  • 网站建设报价单格式长沙seo运营
  • 雍鑫建设集团官方网站百度指数可以查询到哪些内容
  • 网站建设及外包kol营销
  • 建设委员会网站seo入门
  • 网站建设北京贵优化大师的优化项目有哪7个
  • 网站这么做404页面搜索引擎优化英文简称为
  • 山东网站建设公司哪家专业传统营销与网络营销的整合方法
  • 中药网站模板关键词搜索工具
  • 免费建立一个个人网站电商的运营模式有几种
  • 做百度收录比较好的网站鞍山seo优化
  • 苏州企业网站设计企业短视频关键词优化
  • 做微网站需要域名吗环球网
  • 怎样学好网站开发百度网址大全免费下载
  • nas可以做网站服务器百度竞价返点一般多少