摘要: 一、查找重复记录 1.查找全部重复记录单字段:Select * From 表 Where 重复字段 In (Select 重复字段 From 表 Group By 重复字段 Having Count(*)>1)多字段:select id from 表 a where id !=(select max 阅读全文
posted @ 2023-02-06 14:27 德平Zeng 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: 前端提交数据到后台的数据遇到特殊字符,特别是<>前端就会报错。 function SaveSp() { var bl = true; $('#tb1 tbody tr').each(function (i, o) { if ($(o).find("input[name^='SPItemNo']"). 阅读全文
posted @ 2022-11-16 14:06 德平Zeng 阅读(424) 评论(0) 推荐(0) 编辑
摘要: C# 导出Excel 前端:function downloadReport() { var queryParam = $.param($.bi.form.getData("form-searchBox")); if (queryParam != "") { window.open('@Url.Con 阅读全文
posted @ 2022-11-05 14:46 德平Zeng 阅读(237) 评论(0) 推荐(0) 编辑
摘要: C#中很难直接操作JsonResult类型,也没有提供更好的方法。 解决方案:序列化成Json字符串,再转换为JObject类型。 操作return Json(result);先序列化成Json字符串,再转换为JObject类型 1 ActionResult ar= em.Reject(morder 阅读全文
posted @ 2022-04-07 14:06 德平Zeng 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: GetSection方法读取的是configSections节点,这个节点在web.config配置文件中,它比较特殊,必须放 置于首节点,也就是说,在它之前不能有其它类型的节点。configSections子节点有section和sectionGroup,后者是前者的集 合节点: <configS 阅读全文
posted @ 2022-03-24 16:34 德平Zeng 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1.创建应用(https://open.dingtalk.com/document/isv/create-isvapp)2.VS2019创建WEB API项目并部署到公网可以访问的IIS上 Nuget安装System.Text.Json; using System.Net.Http; using S 阅读全文
posted @ 2022-03-16 16:30 德平Zeng 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: 1.Post方式接收json格式并查找相应带list的数据返回 /// <summary> /// 调用Lot卡打印接口 /// </summary> /// <param name="project"></param> /// <returns></returns> /// {"PN":"W**C 阅读全文
posted @ 2022-02-26 11:20 德平Zeng 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 引用@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sourcefile + ";"; 服务器端报这个错误的时候:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the 阅读全文
posted @ 2021-11-29 10:57 德平Zeng 阅读(4188) 评论(0) 推荐(0) 编辑
摘要: 如果你是用的windows cmd,还是乱码,要设置窗口的编码 输入:chcp 65001 就是换成UTF-8代码页,在命令行标题栏上点击右键,选择"属性"->"字体",将字体修改为True Type字体"Lucida Console",然后点击确定将属性应用到当前窗口 C:\Redis>redis 阅读全文
posted @ 2021-10-28 14:58 德平Zeng 阅读(4504) 评论(0) 推荐(0) 编辑
摘要: 访问修饰符 说明 public 公有访问。不受任何限制。 private 私有访问。只限于本类成员访问,子类,实例都不能访问。 protected 保护访问。只限于本类和子类访问,实例不能访问。 internal 内部访问。只限于本项目内访问,其他不能访问。 protected internal 内 阅读全文
posted @ 2021-10-16 16:09 德平Zeng 阅读(165) 评论(0) 推荐(0) 编辑