摘要: select cast('2.123' as numeric) --字符型转数值型,取整数部分值 select cast('2.123' as decimal(18,4)) --字符型转数值型,保留小数 阅读全文
posted @ 2023-08-03 14:19 jxw_29 阅读(392) 评论(0) 推荐(0) 编辑
摘要: try { //删除临时上传的Excel文件 if (System.IO.File.Exists(path)) { FileInfo fi = new FileInfo(path); if (fi.Attributes.ToString().IndexOf("ReadOnly") != -1) fi 阅读全文
posted @ 2023-07-03 15:31 jxw_29 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 后台通过url下载文件到指定目录 string url = "https://file/Get/c76918bd-b4af-41b3-b767-32b5582d77de"; //下载地址 using (WebClient client = new WebClient()) { client.Down 阅读全文
posted @ 2023-07-03 14:55 jxw_29 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 文本框 $("#txtEDONo").prop("disabled", true); 下拉框 var dropdownlist = $("#txtChecker").data("kendoDropDownList"); dropdownlist.enable(false); 时间控件 if (vie 阅读全文
posted @ 2023-04-23 22:26 jxw_29 阅读(46) 评论(0) 推荐(0) 编辑
摘要: var arr = []; this.rows.forEach(item => { arr.push({ MaterialNumber: item.MaterialNumber, Message:item.TONumber }); }); this.mWHInterfaceResults = arr 阅读全文
posted @ 2023-04-21 11:22 jxw_29 阅读(84) 评论(0) 推荐(0) 编辑
摘要: npm config set registry http://registry.cnpmjs.org npm config delete proxynpm config delete proxy npm config delete https-proxy git config --global ur 阅读全文
posted @ 2023-04-20 15:44 jxw_29 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.注释控件代码: 应使用大括号包裹注释行, {/* ...... */} 2.注释js代码: 通用注释方式即可 阅读全文
posted @ 2023-04-10 09:41 jxw_29 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.App_Data文件夹下添加oauthconfig.json文件 [ { "Client_Key": "name", "Client_Secret": "password", "Client_IP": [], "Scope": [ "external" ] }, { "Client_Key": 阅读全文
posted @ 2023-04-06 12:01 jxw_29 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 当XML字符串中存在如&字符时,会出现无法转成XML,这是需要对&这类字符进行转换。 System.Security.SecurityElement.Escape("xxx"); 替换无效的XML字符在字符串中使用其有效的XML等效项; 阅读全文
posted @ 2023-04-04 13:48 jxw_29 阅读(193) 评论(0) 推荐(0) 编辑
摘要: /得商(不做四舍五入),%得余数; 70/100,输出0; 70%100,输出70; 阅读全文
posted @ 2023-03-31 13:11 jxw_29 阅读(141) 评论(0) 推荐(0) 编辑