摘要: #region 加载数据到DataGraidView private void button1_Click(object sender, EventArgs e) { string excelPath = textBox1.Text.Trim(); //string excelPath = "测试.xlsx"; /... 阅读全文
posted @ 2018-03-07 15:51 enych 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 字段名 说明 类型 DictID 字典id Int ParentID 父ID Int DictType 字典类型 Nvarhcar50 DictValue 字典值 Nvarhcar50 Remark 备注 Nvarhcar1000 CreateUserID 创建用户id Int CreateTime 阅读全文
posted @ 2018-03-07 15:26 enych 阅读(115) 评论(0) 推荐(0) 编辑
摘要: [HttpPost] public ActionResult Layedit() { var files = Request.Files; //获得所上传的所有文件 if (files.Count > 0) { HttpPostedFileBase fil... 阅读全文
posted @ 2018-03-07 15:16 enych 阅读(285) 评论(0) 推荐(0) 编辑
摘要: dt = new DataTable(); dt.Columns.Add("a"); dt.Columns.Add("b"); dt.Rows.Add(1); object[] iis = new object[2]; iis[0] = 1; iis[1] = 2; dt.Rows.Add(iis) 阅读全文
posted @ 2018-03-07 15:11 enych 阅读(3701) 评论(0) 推荐(1) 编辑
摘要: 使用 return Json(pageList, JsonRequestBehavior.AllowGet); 返回object 使用 return Content(JsonConvert.SerializeObject(pageList, timeConverter)); //返回json字符串 阅读全文
posted @ 2018-03-07 15:05 enych 阅读(272) 评论(0) 推荐(0) 编辑
摘要: var filename = ""; //去掉扩展名 if (file.FileName.LastIndexOf(".") != -1) { filename = file.FileName.Substring(0, file.FileName.LastIndexOf(".")); } else { 阅读全文
posted @ 2018-03-07 15:00 enych 阅读(2829) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-07 14:42 enych 阅读(441) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string str1,str 阅读全文
posted @ 2018-03-07 13:49 enych 阅读(772) 评论(0) 推荐(0) 编辑
摘要: select @PageSize * from tets SELECT 在WHERE 之前都不能参数化. TOP 只能做字符串运行. 阅读全文
posted @ 2018-03-07 09:08 enych 阅读(486) 评论(0) 推荐(0) 编辑