- 博客(41)
- 资源 (16)
- 收藏
- 关注
原创 JS异常:Uncaught TypeError: Cannot read property ‘parameters‘ of null
swagger报错:swagger-ui-min-js:formatted:11220 Uncaught TypeError: Cannot read property 'parameters' of null
2021-04-27 09:57:06
411
原创 ORM对象关系映射
SqlHelper帮助类,通过反射生成/// <summary> /// 数据库查询帮助类库--自动生成Sql--通用 /// </summary> public class SqlHelper { /// <summary> /// 通用主键查询操作 /// </summary> /// <typeparam name="T"></ty...
2020-05-19 18:12:09
261
原创 云开发平台: 降本提效利器
云开发平台核心优势(面向开发者打造的一站式、全云端的研发工作平台,打开浏览器就可以开发、调试、上线,所测即所得,并结合无服务器的模式重新定义云原生时代的研发工作方法论。)1:0门槛全云端开发;2:统一的团队业务环境;3:一致的Serverless服务;4:本地化的IDE特性和体验;使用步骤:1:用淘宝账号(注册)登录精灵平台创建「技能X」https://www.alige...
2020-04-30 11:03:06
475
原创 Log4Net日志
AssemblyInfo.cs配置 private static readonly ILog _Log = LogManager.GetLogger(typeof(GiftSettlementService));得到: private static readonly ILog _Log = LogManager.GetLogger(typeof(GiftSettlementSer
2017-09-11 15:47:18
315
原创 删除文件session失效问题
// 在应用程序启动时运行的代码 System.Reflection.PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", System.Reflection.BindingFlags.NonPublic | System.Reflection.Bindi
2016-09-09 16:59:22
297
原创 大文件上传
HttpUploadModule.csusing System;using System.Collections;using System.Collections.Specialized;using System.Globalization;using System.IO;using System.Text;using System.Web;using Syst
2016-09-02 16:59:23
411
原创 IIS请求筛选模块被配置为拒绝超过请求内容长度的请求
HTTP错误404.13 - Not Found 请求筛选模块被配置为拒绝超过请求内容长度的请求,原因是Web服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值(IIS 7 默认文件上传大小时30M)。要解决方法即是更改ASP.NET文件上传大小限制:1. 修改IIS的applicationhost.config文件位置: %windir%/system
2016-09-02 16:46:15
608
原创 序列化
//#region 保存按钮,保存为草稿 $(".saveButton").click(function () { var MaintenanceOrPartsNo = $('#MaintenanceOrPartsNo').val(); $.messager.confirm('确认','您确认保存吗?',function (r) {
2016-09-01 15:29:00
223
原创 Post提交不乱码
//产品编号移出事件 $("#ProductNo").blur(function () { //绑定产品数据 var ProductModel = $('#ProductModel').combobox("getValue"); $("#dgProductCount").datagrid({ me
2016-09-01 15:28:19
295
原创 Sql groupby分组和stuff
beginwith aaas(select distincta.MaintenanceOrderNo,b.BusinessTypefrom PartsLibraryaleft joinMaintenanceOrPartsOrder bon a.MainNo=b.MaintenanceOrPartsNowhere a.PartsIDin('0627
2016-09-01 15:26:37
1426
原创 时间人格式
wmode="transparent"src="http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.swf"quality="high" bgcolor="#ffffff" width="160"height="70" name="honehoneclock" align="middle"allowscrip
2016-09-01 15:26:04
329
原创 自动点击按钮
// 两秒后模拟点击setTimeout(function() { // IE if(document.all) { document.getElementById("clickMe").click(); } //
2016-09-01 15:25:31
705
原创 WinForm视频图片加载播放
private voidForm1_Load(object sender, EventArgse) { this.axWindowsMediaPlayer1.currentPlaylist.clear(); DirectoryInfo file =new DirectoryInfo(VideoAddress);//遍
2016-09-01 15:24:46
2000
2
原创 WinForm弹出字体样式
System.Windows.Forms.ColorDialog cd=newSystem.Windows.Forms.ColorDialog();cd.ShowDialog();Font font = newSystem.Drawing.Font(name, size, style);//选择的样式 Form1 fr =new Form1(textBox
2016-09-01 15:23:00
752
原创 读取xml文件
DirectoryInfo fileReader = newDirectoryInfo(TitleAddress);//遍历指定文件夹下的文件 //1、创建XmlDocument对象 XmlDocument xmlDoc = new XmlDocument(); //2、加载源文件 foreach (F
2016-09-01 15:22:24
319
原创 把文件写入xml和更新xml的数据
/// /// 生成安全模式xml并放进文件夹中 /// /// /// public string WriteXml(string regionIds) { string isResult ="{\"locked\":false,\"safe\":\"0\"}";
2016-09-01 15:21:15
1946
原创 easyUI textBox事件
$('#unitPriceAdd').textbox('textbox').keyup(function (e) { //if(e.keyCode == 13) { alert('enter'); //}});//blur事件$("input",$("#loginName").next("span")).blur(functi
2016-09-01 15:20:30
1270
原创 easyUI datagrid增删改查
$(function () { //绑定配件在库数据 vareditRow = undefined; $("#dgMaster").datagrid({ method: 'get', queryParams: queryParams, url:locationAddress + "/AccessoriesMaste
2016-09-01 15:19:28
719
原创 保存当前登录的用户
/// ///设置当前登录用户信息 /// publicstaticSysUser NowUser { get{ if (HttpContext.Current.Session!=null && HttpContext.Current.Session["user"]
2016-09-01 15:18:28
346
原创 把json转为实体对象
$.ajax({ type:"POST", url: "/AsArchivesManagement/AsArchivesInputEdit", dataType: "json", data:dataDYJson, contentType: "application/json; charset=utf-8",
2016-09-01 15:17:09
463
原创 页面验证和业务字典
//#region 页面验证类型$(function () { ///页面验证类型 $.extend($.fn.validatebox.defaults.rules, { minLength: { // 判断最小长度 validator: function (value, param) { retu
2016-09-01 15:16:10
333
原创 select赋值和取值
//加载页面维修费用分类数据到下拉框 varall_optionsC = document.getElementById("classificationEdit").options; for(i = 0; i if(all_optionsC[i].text == classification) { al
2016-09-01 15:15:02
456
原创 获取下拉框文本的值
varobj=document.getElementById('select_template'); vartext=obj.options[obj.selectedIndex].text;//获取文本 varobj=document.getElementById("select_template"); for(i=0;i if(obj[i]
2016-09-01 15:14:21
482
原创 选中页面出现的值
//权限选中页面出现的值 varroleOpts = roleIDedits.split(','); for(vari = 0; i if(roleOpts.length > 0) { for(varj = 0; j if (authoritys[i].value == roleOpts[j]){
2016-09-01 15:13:21
237
原创 动态添加复选框
//把值填充到复选框 varfrole = document.getElementById("roleIDedit"); frole.innerHTML = ''; for(vari = 0; i frole.innerHTML += ' +authoritys[i].value +'" id="'+ authoritys[i].value +
2016-09-01 15:12:41
814
原创 把json格式赋给一个数组
//角色管理获取ID $.post(locationAddress + "/SysUser/RoleListID",function(data) { a =eval(data); varxrole = new Array();//声明权限下拉框 xrole.push({ "value": 0,"text": "-------请
2016-09-01 15:11:40
1083
原创 easyui增删改查全部代码
//dataGrid自适应$(window).resize(function() { $('#dgUser').datagrid('resize')});var businessTypes = [{ "value": "1","text":"电音" }, {"value": "2","text": "管乐器" }, {"value": "3","t
2016-09-01 15:09:31
2342
原创 easyUI自动填充复选框
{ field: 'op',title: '',width: 30, formatter: function (value, rec, rowIndex) { return""; }, },
2016-09-01 15:07:05
1104
原创 easyUI吧复选框选中的value值返回
var businessTypeValue = ""; var obj =document.getElementsByName("businessType"); for (var i= 0; i if(obj[i].checked) { businessTypeValue += obj[i].value
2016-09-01 15:05:59
1761
原创 easuUI设置
输入value和文本值alert(obj[i].value + "," +obj[i].nextSibling.nodeValue);//输出文本的值easyUI多个combobox得到的值截取//varauthorityValue =$('#authority').combobox('getValues').join(',');easyUI修改和删除连接{ fiel
2016-09-01 15:02:25
849
原创 字符截取
自动去掉最后空格string[] roleIDs = roleID.Split(newchar[]{','},StringSplitOptions.RemoveEmptyEntries);截掉最后一个字符roleID = roleID.substring(0, roleID.length - 1);
2016-09-01 15:00:07
267
原创 读写文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace StreamWrite{ class Program { static void Main(string[] args
2016-09-01 14:59:01
264
原创 The type of the file system is ntfs
按住windows徽标键同时按住字母R,打开运行对话框,输入regedit点击确定打开注册表编辑器,找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager子键右侧窗口找BootExecute键值项,并其数值清空,下次开机时就不会出现啦
2016-09-01 14:45:39
13157
原创 删除文件和文件夹
/// ///删除文件夹和文件 /// ///dirFile">需要删除的路径 publicvoiddelFile(string dirFile) { //获取文件夹 stringpath = WebSite.IMAGESERVER_LOCALPATH
2016-09-01 14:33:49
640
原创 C#压缩包下载
/// ///流方式下载压缩文件 /// ///dirFile">要下载的文件路径 publicvoidXiaZai(string dirFile) { try { string fileName = dirFile +"
2016-09-01 14:28:21
457
原创 多个文件和文件夹生成压缩包
#region GQY 生成多个文件夹压缩包 string zipFilePath =string.Empty; if (dirPath.EndsWith("\\")) { zipFilePath =dirPath.Subst
2016-09-01 14:27:30
661
原创 文件夹和文件压缩
/// ///功能:压缩文件(暂时只压缩文件夹下一级目录中的文件,文件夹及其子级被忽略) /// ///dirPath">被压缩的文件夹夹路径 ///zipFilePath">生成压缩文件的路径,为空则默认与被压缩文件夹同一级目录,名称为:文件夹名+.zip ///err">出错信息 ///
2016-09-01 14:24:26
373
原创 C#图片合成
/// ///合成图片 /// ///muban">要合成图片的主图片 ///fileFoldUrl">需要合成图片的根目录,去循环里面的图片 publicvoidSynthesisPhoto(string muban,stringfileFoldUrl) { //
2016-09-01 14:19:45
2302
20191204Architect01Course003ORMExplore.rar
2020-05-19
Python机器学习经典实例
2018-06-29
.net之美书籍
2018-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人