摘要: function Copy() { //step 1 查询当前信息 var new_code = Xrm.Page.getAttribute("new_code").getValue();//促销编号 var new_name = Xrm.Page.getAttribute("new_name").getValue();//促销名称 var new_ruletypecode = Xr... 阅读全文
posted @ 2016-05-18 09:40 hambywu 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 今天一同学在QQ上问我"用SQL语句删除重复记录,如何把具有相同字段的记录删除,只留下一条。 "平时懒得想的我就在百度查了一下,发现很多都很麻烦,都要得用临时表,把重复数据复制到临时表再做处理.相当麻烦.于是还是自己写SQL语句吧.例如表frmZHProductResult里有id,zhproductid字段,如果有zhproductid相同的记录只留下一条,其余的删除。zhproductid的内... 阅读全文
posted @ 2010-04-28 11:08 hambywu 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 下载了一个PrintControl.cab(vs2008用的)然后在webconfig中设置:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<configSections>2<sectionGroupname="busines... 阅读全文
posted @ 2009-12-03 09:27 hambywu 阅读(1401) 评论(0) 推荐(1) 编辑
摘要: [代码]调用时只需要string code = RndNum(4);这样取得了4位随机数.如果需要字母随机数,则 string Vchar = "0,1,2,3,4,5,6,7,8,9,A,B";把字母加上去.同时修改int t = rand.Next(9);中的9改成Vchar的长度但可. 阅读全文
posted @ 2009-11-13 11:49 hambywu 阅读(504) 评论(5) 推荐(1) 编辑
摘要: 重建表頭,數據綁定後可見為.[代码] 阅读全文
posted @ 2009-11-06 10:50 hambywu 阅读(298) 评论(0) 推荐(2) 编辑
摘要: [代码] 阅读全文
posted @ 2009-11-06 09:47 hambywu 阅读(391) 评论(0) 推荐(0) 编辑
摘要: [代码]注意:要把PDF虚拟打印机的“不要发送字体到 Adobe PDF”去掉打钓! 今天发现一问题,那就是,我用的是vs2005的时候,不用IIS能转过来,但用了IIS后发现不能转。不真怎么样回事,有谁知道还要设置些什么东西的么?2009-6-26 阅读全文
posted @ 2009-06-25 13:25 hambywu 阅读(1597) 评论(0) 推荐(0) 编辑
摘要: 当我们直接用select top 10 [ID] ,Identity(int,1,1) as rowIndex,Title,hits into #tmp from _Tableselect * from #tmp drop table #tmp 时,会报错:无法使用 SELECT INTO 语句向表 #tmp 中添加标识列 ID.因为原来的表_Table中已经存在标识列ID.如果用set noco... 阅读全文
posted @ 2008-09-01 02:55 hambywu 阅读(2189) 评论(1) 推荐(0) 编辑
摘要: gridview 翻页后保持排序 阅读全文
posted @ 2008-05-28 17:40 hambywu 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 1window.onerror=ScriptErrorReport;2//window.onerror=ScriptErrorKill;34//**脚本错误报告**//5functionScriptErrorReport(msg,surl,lineno)6{7varstrMsg=("抱歉,网页在运行过程中出现脚本错误!\n"8+"\n错误信息:"+msg9+"\n所在行:"+lineno10+"\... 阅读全文
posted @ 2008-05-22 16:24 hambywu 阅读(617) 评论(0) 推荐(1) 编辑