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值,不存在则..
阅读全文
摘要: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:
阅读全文
摘要: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...
阅读全文
摘要:$.ajax({ type: "post", url: "?action=DownLoadExcel", data:"table='"+3+"'", beforeSend: function (XMLHttpRequest) { }, success: function (data, textStatus) { alert(data); }, complete: function (XMLHttpRequest, textStatus) { }, error: function () { } });
阅读全文
摘要: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
阅读全文
摘要: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())
阅读全文

浙公网安备 33010602011771号