01 2013 档案

摘要:1、首先设置datagrid属性的idField主键,这里假如为id。2、建立一个全局的javascript数组var checkedItems = [],用来存放选中checkbox的值。3、核心方法,addcheckItem()、removeAllItem(rows)、removeSingleItem(rowIndex, rowData)当选中或者取消checkbox时触发 用来将checkbox的主键值保存在checkedItems数组,或者从数组中删除对应的id值,findCheckedItem(ID)这个函数用来查找数组中 是否存在checkbox的值,存在则返回id值,不存在则.. 阅读全文
posted @ 2013-01-29 16:46 王者杂货铺 阅读(2847) 评论(0) 推荐(1)
摘要:varHidArray=newArray();//把所有的hid放到HidArraySetSettlement(0);functionSetSettlement(index){if(index<HidArray.length){varid=HidArray[index];$("#"+id).html("正在执行.........");$.ajax({type:"GET",url:"xxxxx.ashx?id="+id,cache:false,dataType:"text", async: 阅读全文
posted @ 2013-01-28 09:28 王者杂货铺 阅读(263) 评论(0) 推荐(0)
摘要:public static string GetJosnValue(string json, string key) { string result = string.Empty; if (!string.IsNullOrEmpty(json)) { key = "\"" + key.Trim('"') + "\""; int index = json.IndexOf(key) + key.Length + 1; if (i... 阅读全文
posted @ 2013-01-24 13:41 王者杂货铺 阅读(204) 评论(0) 推荐(0)
摘要:$.ajax({ type: "post", url: "?action=DownLoadExcel", data:"table='"+3+"'", beforeSend: function (XMLHttpRequest) { }, success: function (data, textStatus) { alert(data); }, complete: function (XMLHttpRequest, textStatus) { }, error: function () { } }); 阅读全文
posted @ 2013-01-24 13:11 王者杂货铺 阅读(171) 评论(0) 推荐(0)
摘要:Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06Select CONVERT(varchar(100), GETDATE(), 4): 16.05.06Select CONVERT(varchar(100), G 阅读全文
posted @ 2013-01-23 15:22 王者杂货铺 阅读(159) 评论(0) 推荐(0)
摘要:public DataSet GetAllUser(string sellnick, int pagesize, int pagecount, string sort, string order) { string orderby = "U.UserID asc"; if (!string.IsNullOrEmpty(sort)) { orderby = " " + sort + " " + order + " "; } int pagebegin = (pagesize - 1) * pagecount + 1; 阅读全文
posted @ 2013-01-22 13:12 王者杂货铺
摘要:SELECT * FROM [bookinfo] WHERE addtime> dateadd(month, - 1, getdate()) 阅读全文
posted @ 2013-01-21 14:31 王者杂货铺 阅读(530) 评论(0) 推荐(0)