2016年4月29日

ztree编辑时默认选中

摘要: var nodes = treeobj.transformToArray(treeobj.getNodes()); if (nodes.length > 0) { for (var i = 0; i < nodes.length; i++) { if (nodes[i].Id == noid) { 阅读全文

posted @ 2016-04-29 11:26 咸菜v 阅读(1103) 评论(0) 推荐(0) 编辑

集合拼接成字符串

摘要: List<string> idlist = new List<string>(); foreach (BM item in list) { idlist.Add("'" + item.DrBh + "'"); }string IDContent = string.Join(",", idlist.T 阅读全文

posted @ 2016-04-29 11:25 咸菜v 阅读(662) 评论(0) 推荐(0) 编辑

2015年8月14日

dal层通用类

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;using System.Reflectio... 阅读全文

posted @ 2015-08-14 17:26 咸菜v 阅读(340) 评论(0) 推荐(0) 编辑

sqlHelper类

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Collections;using System.Da... 阅读全文

posted @ 2015-08-14 17:25 咸菜v 阅读(216) 评论(0) 推荐(0) 编辑

数据库分页存储过程

摘要: USE [QiuZhi_DB]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO--创建存储过程create PROCEDURE [dbo].[PageShow](---此存储过程不能排序多个字段,排序字段必须为唯一的,比如用阅读量排序就会出现异常。其他... 阅读全文

posted @ 2015-08-14 17:08 咸菜v 阅读(231) 评论(0) 推荐(0) 编辑

2015年8月13日

json数组的添加删除

摘要: listQuesParent.push(Questionslist[i]); //添加listQuesParent.splice(i, 1); //删除 阅读全文

posted @ 2015-08-13 17:57 咸菜v 阅读(192) 评论(0) 推荐(0) 编辑

2015年8月12日

在光标选中位置插入文字js

摘要: //调用方法insertText(document.getElementById('codeTextarea'), "{GD_" + name + "}")//获取文本框中光标的位置function insertText(obj, str) { if (document.selection) ... 阅读全文

posted @ 2015-08-12 17:14 咸菜v 阅读(462) 评论(0) 推荐(0) 编辑

文件操作通用类

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using Model.CMS;using System.Web;using System.Text.R... 阅读全文

posted @ 2015-08-12 14:06 咸菜v 阅读(275) 评论(0) 推荐(0) 编辑

2015年4月21日

Jquery设置光标定位到指定位置

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2015-04-21 13:47 咸菜v 阅读(17) 评论(0) 推荐(0) 编辑

2015年4月8日

将阿拉伯数字转换成中文数字

摘要: private static string[] cstr = { "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" }; //定义数组 private static string[] wstr = { "", "", "十" }; ... 阅读全文

posted @ 2015-04-08 16:37 咸菜v 阅读(395) 评论(0) 推荐(0) 编辑

导航