2014年6月11日

摘要: 全屏弹出框 关闭 阅读全文
posted @ 2014-06-11 01:01 dengjd 阅读(132) 评论(0) 推荐(0) 编辑

2014年4月4日

摘要: 在使用jquery的each方法时: return false相当于break,是跳出each循环; return true相当于continue,是继续循环。 阅读全文
posted @ 2014-04-04 12:47 dengjd 阅读(101) 评论(0) 推荐(0) 编辑

2014年1月21日

摘要: var rDrag = {o:null,init:function(o){o.onmousedown = this.start;},start:function(e){var o;e = rDrag.fixEvent(e); e.preventDefault && e.preventDefault(); rDrag.o = o = this;o.x = e.clientX - rDrag.o.offsetLeft; o.y = e.clientY - rDrag.o.offsetTop;document.onmousemove = rDrag.move;document.onm 阅读全文
posted @ 2014-01-21 18:05 dengjd 阅读(124) 评论(0) 推荐(0) 编辑

2013年11月12日

摘要: 描述当前文档的编码方式:设置当前网页中的所有超链接都默认为新窗口打开: 阅读全文
posted @ 2013-11-12 23:43 dengjd 阅读(106) 评论(0) 推荐(0) 编辑

2013年10月9日

摘要: update table set table.field=( case when 条件 then 值1 else 值2 end )where 条件如:update BM_TrainingPeriod set IsValid=( case when exists(select 1 From BM_TrainingGroup y where BM_TrainingPeriod.id=y.TrainingPeriodid and IsValid=1) then 1 else 0 end ) where id=@TrainingPeriodID 阅读全文
posted @ 2013-10-09 09:45 dengjd 阅读(143) 评论(0) 推荐(0) 编辑

2013年8月8日

摘要: 阅读全文
posted @ 2013-08-08 01:00 dengjd 阅读(171) 评论(0) 推荐(0) 编辑

2013年4月23日

摘要: 用表B里的fieldb字段更新表A里的fielda字段,表B.ID=A.ID。方式一:update A set A.fielda=B.fieldb from A,B where A.ID=B.ID方式二:update A set A.field=B.field from A inner join B on A.id=b.ID 阅读全文
posted @ 2013-04-23 14:25 dengjd 阅读(111) 评论(0) 推荐(0) 编辑

2013年4月22日

摘要: 前台页面:<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EnterpriseInfoControl.ascx.cs" Inherits="UserControls_EnterpriseInfoControl" %><input type="hidden" id="TxtOrganId" name="TxtOrganId" runat="server" 阅读全文
posted @ 2013-04-22 19:31 dengjd 阅读(117) 评论(0) 推荐(0) 编辑

2013年4月17日

摘要: $(document).ready(function () { var arrObj = $("input[type='checkbox']"); arrObj.each(function () { $(this).bind("click", function () { var i = 0; arrObj.each(function () { if ($(this).attr("checked")) { i++; } }); if (i > 0) { $("#btn").attr(" 阅读全文
posted @ 2013-04-17 22:38 dengjd 阅读(329) 评论(0) 推荐(0) 编辑

2013年4月16日

摘要: protected void BtnExport_Click(object sender, EventArgs e) { EmployeeTemp bll = new EmployeeTemp(); DataTable dt = new DataTable(); try { pager.PageSize = 20; int pageCount = 0; dt = bll.pEmployeeTempSampleByCondition(pager.CurrentPageIndex, pager.PageSize, out pageCount, GetParameters()); } finally 阅读全文
posted @ 2013-04-16 18:42 dengjd 阅读(142) 评论(0) 推荐(0) 编辑

导航