摘要: <script type="text/javascript"> $(function() { $('#tree').tree({ url: 'test.ashx' }) })</script></head><body class="easyui-layout"> <div region="north" border="false" style="overflow: hidden; height: 60px; backgr 阅读全文
posted @ 2012-10-22 17:28 (二少)在南极 阅读(248) 评论(0) 推荐(0) 编辑
摘要: DataTable dt = new DataTable(); DataColumn d1 = new DataColumn("id", System.Type.GetType("System.Int32")); DataColumn d2 = new DataColumn("text", System.Type.GetType("System.String")); DataColumn d3 = new DataColumn("Icon", System.Type.GetType(" 阅读全文
posted @ 2012-10-22 17:27 (二少)在南极 阅读(1233) 评论(0) 推荐(0) 编辑
摘要: DataTable dt = costFO.GetQueryTable(projectid, date); var newrow = from x in dt.Rows.Cast().Where(C => C.Field("CostMonthReportItem_Type") != "") select new { type = x.Field("CostMonthReportItem_Type").ToString(), name = x.Field("CostMonthReportItem_PayNext... 阅读全文
posted @ 2012-08-27 11:58 (二少)在南极 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 配置文件的 添加System.Web.Security.FormsAuthentication.SetAuthCookie(name, true);退出System.Web.Security.FormsAuthentication.SignOut(); 阅读全文
posted @ 2012-08-24 16:57 (二少)在南极 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 转眼间,来上海已经一年了,记得一年前的8月20号辞去了洛阳的一家公司,一个人来到上海,当时对这个城市充满了好多期待.但来到这一座城市,却没有太多的感觉.回想这一年的工作,比以前在其它公司的确忙录了.经常加班.但有一部分是对公司的框架不太了解,工作效率低.经常这一年学习,但还是不太熟悉.原因这一年,一直在做修改BUG,都是一些小地方的修改.并没有新做什么东西.自己一个人懒的看.感觉过去的一年自己没有太多的收获.很无助.想再换一份工作. 阅读全文
posted @ 2012-08-24 16:47 (二少)在南极 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 消息 ID: 1603 安装过程中出现错误。请执行以下步骤 原因是在以前安装过silverlight,没有安装成功或者没有彻底卸载干净,遗留了一些文件,尤其是安装时突然中断的时候会出现这个问题。 解决方法: 将 C:\windows\Installer\{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} 文件删除后重新安装就可以。 然后CMD运行 reg delete HKLM\Software\Microsoft\Silverlight /f rmdir /s /q "%ProgramFiles%\Microsoft Silverlight ... 阅读全文
posted @ 2012-07-23 14:33 (二少)在南极 阅读(1700) 评论(0) 推荐(0) 编辑
摘要: //**创建临时表,用于存储批量准备的供应商信息 准入日期是按部门经理审批的时间**//if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#Suppliertemp') and type='U') drop table #Suppliertempcreate table #Suppliertemp( ProjectId varchar(50), Supplierid varchar(50), SuplierAllowdate datetime)DECLARE 阅读全文
posted @ 2012-07-09 10:04 (二少)在南极 阅读(567) 评论(0) 推荐(0) 编辑
摘要: function ok(){ debugger try{ var obj = new ActiveXObject("Scripting.Dictionary");//创建对象 obj.Add("hello",null);//增加新项 obj.Item("hello")="Chiweiyao";//给新增添的项赋值 obj.Add("world",null); obj.Item("world")="Greate"; 获取值 alert( obj.item(& 阅读全文
posted @ 2012-06-26 23:22 (二少)在南极 阅读(14129) 评论(2) 推荐(0) 编辑
摘要: public static string CreateJsonParameters(DataTable dt) { /* /**************************************************************************** * Without goingin to the depth of the functioning of this Method, i will try to give an overview * As soon as this method gets a DataTable it starts to convert i 阅读全文
posted @ 2012-06-18 21:43 (二少)在南极 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 直接上代码:一看就懂var query = from c in ctx.Customerswhere c.City == "London"select c;,var query = from c in ctx.Customerswhere c.City.StartsWith("Lo")select c;var query = from c in ctx.Customerswhere c.City.StartsWith("L") && c.City.Contains("n")select c;var 阅读全文
posted @ 2012-06-08 14:32 (二少)在南极 阅读(1223) 评论(0) 推荐(0) 编辑