11 2015 档案
delphi 数据连接规范
摘要:建议大家采用另外一种编码风格,不要在程序中到处都有这种LZ程序生成的代码: begin with qryMain do begin try Close; SQL.Clear; SQL.Add('Delete From MONTASK where TASKID=:TASKID'); Pa... 阅读全文
posted @ 2015-11-25 20:34 雪夜 阅读(260) 评论(0) 推荐(0) 编辑
删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录
摘要:1、 SELECT from Ex_PlanPerson where isconfirm 1 AND plan_id=12 AND user_id in (select user_id from Ex_PlanPerson WHERE plan_id=12 group by user_id havi 阅读全文
posted @ 2015-11-18 19:21 雪夜 阅读(472) 评论(0) 推荐(0) 编辑
设置或者得到CheckBoxList选中了的值
摘要:checkboxlist for (int i = 0; i <cblexam_type.Items.Count ; i++) { if (cblexam_type.Items[i].Selected) { } } region //处理基本设施 string sBasicTools = ""... 阅读全文
posted @ 2015-11-16 15:24 雪夜 阅读(837) 评论(0) 推荐(0) 编辑
Gridview中Datakeys 通过主键取得各列的值。
摘要:1. 首先在初始化Gridview时候定义主键的数组。 GridViewTeacherStudent.DataKeyNames=new string[] {"courseId","studentId","type","level","unit"};2. 在进行删除操作,或者对某行进行操作获得列中的值... 阅读全文
posted @ 2015-11-02 10:40 雪夜 阅读(642) 评论(0) 推荐(0) 编辑
如何直接在网页中显示PDF文件
摘要:<! 1、<embed width="800" height="600" src="test_pdf.pdf" </embed 通过的浏览器:360、Firefox、IE、Chrome 2、<object classid="clsid:CA8A9780 280D 11CF A24D 44455354... 阅读全文
posted @ 2015-11-02 09:06 雪夜 阅读(1141) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示