摘要: 遍历方法1 var dt =new DataTable(); foreach (DataRow item in dt.Rows) { var id = Convert.ToInt32(item["id"]); } 添加列 //1、添加列 dt.Columns.Add("Name", typeof(s 阅读全文
posted @ 2022-04-20 17:01 贾平凡 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 引入 NuGet包Ionic.Zip; using Ionic.Zip; public FileResult ExportAll(int gradeId) { //获取dt数据集 var dt= _scoreImportService.ExportAll(gradeId); using var zi 阅读全文
posted @ 2022-04-20 16:57 贾平凡 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 1、准备好js文件 jquery.PrintArea.js 2.引入js文件 <script src="~/javaScript/jquery.PrintArea.js"></script> 3.定义一个方法 doPrint() {// 获取echarts图表 var myChart1 = echa 阅读全文
posted @ 2022-04-07 16:13 贾平凡 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 自己写一个类继承BackgroundService 1 2 3 4 5 6 7 8 9 10 11 internal class RefreshService : BackgroundService { protected override async Task ExecuteAsync(Cance 阅读全文
posted @ 2022-04-02 17:39 贾平凡 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一 竖表转横表 1. 首先创建竖表 create table student ( id varchar(32) primary key, name varchar (50) not null, subject varchar(50) not null, result int); 2. 插入数据 in 阅读全文
posted @ 2022-03-18 16:08 贾平凡 阅读(2021) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示