willstier

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年6月5日

摘要: /// <summary> /// if Type is 99,will show all departments, /// type must be given value; /// </summary> public partial class DepartmentDropDownList : System.Web.UI.UserControl{private ... 阅读全文
posted @ 2013-06-05 01:14 willstier 阅读(448) 评论(0) 推荐(1) 编辑

摘要: 今天下午算是写了第一个自定义控件。因为部门表存在无限级的可能。因此如何在页面中较好的呈现就出现了很大的问题。下面是部门表---部门,可以无限级别嵌套--Create Table Departments(DepartmentId int identity primary key,DepartmentName nvarchar(50) not null,DepartmentNu... 阅读全文
posted @ 2013-06-05 01:02 willstier 阅读(420) 评论(0) 推荐(0) 编辑

2013年6月2日

摘要: grdList.DataSource=(frompinDepartmentManager.GetAll()fromqinDepartmentManager.GetAll()wherep.UpDepartmentId==q... 阅读全文
posted @ 2013-06-02 22:36 willstier 阅读(236) 评论(0) 推荐(0) 编辑

2013年5月28日

摘要: TreeView默认情况下子节点相对父节点总是右移一些像素。想通过CSS做,不成功,找TreeView属性也没有找到。实在没有办法了,分析前台显示源码,发现子节点前有一个div,如下图 于是只好通过js来将这个div隐藏。<scripttype="text/javascript"> $(document).ready(function(){... 阅读全文
posted @ 2013-05-28 11:11 willstier 阅读(415) 评论(0) 推荐(0) 编辑

2013年5月23日

摘要: 写的不知道是否有问题,才学习C#,请指正///<summary> ///一些通用的数据操作方法 ///</summary> publicclassConvertHelper<T>whereT:new(){///<summary> ///conve... 阅读全文
posted @ 2013-05-23 12:13 willstier 阅读(477) 评论(0) 推荐(0) 编辑