
C#
KX_JoyK
这个作者很懒,什么都没留下…
展开
-
winform中textbox的输入设置
1.设置成只能输入正整数:private void in_amount_KeyPress(object sender, KeyPressEventArgs e) {if (e.KeyChar != '\b')//这是允许输入退格键 { int len = in_amount.Text.Length;...原创 2019-03-06 16:28:18 · 1643 阅读 · 0 评论 -
C#使用线程定期删除文件夹中的文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using static System.Net.WebRequestMethods;using System.Threading;...原创 2019-02-21 10:50:40 · 1987 阅读 · 1 评论 -
前端的table中的字段拼成json字符串传入后台循环保存
1.首先需要定义个空数组var spendlist = [];2.获取各个字段的值;3.json的格式是key:value,具体如下spendlist[0] ={ CAT:"Samples_Freight",AMONT: sam_fri}4.ajax传值去后端时,使用"&spendlist=" + JSON.stringify(spendlist)传值5.后端接收时需要将j...原创 2019-02-20 11:25:50 · 438 阅读 · 0 评论 -
在workbook的sheet中插入行的方法
private void MyInsertRowN(ISheet sheet, int aa, int count, IRow bb, DataTable dtName,int flag) { #region 批量移动行 sheet.ShiftRows( aa, ...原创 2019-01-29 13:29:43 · 6340 阅读 · 1 评论