Git Product home page Git Product logo

excelclaim's Introduction

excelclaim

包装了excelize简化表格的生成。

使用

  • 生成交通补贴
sheet := excel.NewSheet(xlsx, "加班交通费", 7, 28)
sheet.SetAllColsWidth(7, 14, 10, 11, 12, 8, 8)
excelStyle := excel.NewExcelStyle(11, 0, false);
sheet.ApplyRows(excelStyle, 6);

excelStyle2 := excel.NewExcelStyle(11, 0, true);

sheet.WriteRow("市内交通费报销明细").SetRowHeight(34)
sheet.WriteRow("月份", "6", "姓名", "wwww", "部门", "", "研发部")
sheet.WriteRow("序号", "日期", "出发地", "到达地", "公务事由", "金额", "备注")
sheet.ApplyRowsRange(excelStyle2, 1, 3)

sheet.WriteRow("1", "2018.06.07", "公司", "宝安", "加班", "80.00", "").ApplyItem(1, excelStyle2)
sheet.WriteRow("2", "2018.06.07", "公司", "宝安", "加班", "80.00", "").ApplyItem(1, excelStyle2)
sheet.WriteRow("", "", "", "", "金额合计", "160.00")

excelclaim

  • 生成加班补贴
sheet := excel.NewSheet(xlsx, "加班餐费", 6, 22)
sheet.SetAllColsWidth(7, 14, 8, 11, 8, 12)

sheet.WriteRow("加班餐费明细")
sheet.WriteRow("月份", "2018年06月", "姓名", "wwww", "部门", "研发部")
sheet.WriteRow("序号", "日期", "事由", "中餐/晚餐", "金额", "备注")
sheet.WriteRow("1", "2018-06-01", "加班", "晚餐", "20", "21:05")
sheet.WriteRow("2", "2018-06-02", "加班", "晚餐", "20", "21:05")
sheet.WriteRow("3", "2018-06-01", "加班", "晚餐", "20", "21:05")
sheet.WriteRow("4", "2018-06-02", "加班", "晚餐", "20", "21:05")
sheet.WriteRow("", "", "", "", "金额合计", "80.00", "")
sheet.Apply(excel.NewExcelStyle(10, -1, false));

excelclaim

excelclaim's People

Contributors

zuijinbuzai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.