2014年7月27日
摘要: 之前找的数据库字典生成工具基本上都依赖于 Office Com 组件,在不安装 Office的情况下无法使用。怒,于是自己用C# 写了一个。 特征如下: 一、支持的数据库 MS SQL Server 2005+、My Sql、Oracle 二、支持的文档类型 Html、CHM、Docx 三、无需安装 阅读全文
posted @ 2014-07-27 16:39 justconnor 阅读(19804) 评论(21) 推荐(2) 编辑
  2013年6月30日
摘要: 最近做的项目需要一个日程插件,在网上找了一些插件觉的fullcalendar 比较好用,总结一下以备后用。效果图如下: 1 var calendar = null; 2 function ShowCalendar() { 3 if (calendar != null) { 4 return; 5 } 6 var date = new Date(); 7 var d = date.getDate(); 8 var m = date.getMonth(); 9 var y = date.getFullYear();10... 阅读全文
posted @ 2013-06-30 20:18 justconnor 阅读(717) 评论(0) 推荐(0) 编辑
  2013年4月7日
摘要: 1.自动生成版权信息设置现在大多数公司都规定程序员在程序文件的头部加上版权信息如下:/******************************************************************* Copyright (C): **公司* NameSpace: Test* FileName: WebForm4* Create By:Connor 2013/4/7 21:02:15* Description:* Update By:* Update Description:************************************************** 阅读全文
posted @ 2013-04-07 22:08 justconnor 阅读(1555) 评论(0) 推荐(0) 编辑
  2012年7月7日
摘要: Repeater没有自带的分页功能,搜罗了一下发现AspNetPager.dll这个插件比较好用拿出来分享一下,老鸟勿喷先来一张效果图该插件的好处在这里就不多说了,直接上代码(1)首先需要把AspNetPager.dll引用到项目中来(2)Aspx代码ASPX代码<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="WebDiyer.Demo" %><%@ Register Assembl 阅读全文
posted @ 2012-07-07 00:19 justconnor 阅读(7146) 评论(2) 推荐(0) 编辑
  2012年6月1日
摘要: 最近做的系统需要实现操作日志的功能,主要记录用户的 增,删,改的操作。自己想的方法笨点儿但能满足需求,待日后有更好的解决方法了再来优化了,不多说先上效果图。一,效果图1, 日志列表 2, 日志详细 二,设计思路1, 页面加载完成后,利用JS 记录需要记录的值到 对应的隐藏域中。2, 页面提交... 阅读全文
posted @ 2012-06-01 17:13 justconnor 阅读(7630) 评论(25) 推荐(2) 编辑
  2012年5月16日
摘要: 1,目的:将用户操作日志写入sql server 数据库中2,实现步骤: 一,下载log4net.dll (推荐从官网下载 http://logging.apache.org/log4net/download_log4net.cgi) 二,在项目中引用 log4net.dll 三,添加一个配置文件:我这里命名为 log4net.config(也可以在web.config里面配置为便于管理故新建了一个配置文件)View Code <?xml version="1.0"?><configuration> <configSections> &l 阅读全文
posted @ 2012-05-16 12:13 justconnor 阅读(3806) 评论(2) 推荐(1) 编辑
  2012年3月14日
摘要: CREATE TABLE [dbo].[Test]([id] [int] IDENTITY(1,1) primary key NOT NULL,[name] [varchar](20) NULL,[age] [varchar](4) NULL)goinsert into Test(name,age)values('connor','22'),('connor','23'),('connor','23'),('summerleoo','22'),('summer 阅读全文
posted @ 2012-03-14 12:02 justconnor 阅读(237) 评论(0) 推荐(0) 编辑
  2011年11月7日
摘要: declare @GetCaridStr Nvarchar(1000) ;set @GetCaridStr = 'DECLARE LandAreaO_Cursor CURSOR FOR select carid from car_info where companyid not in(select companyid from company_info where list2 =543 and list3 =543 and status =1) and car_type in ('+ @Key_CarType +')';Exec(@GetCaridStr) ; 阅读全文
posted @ 2011-11-07 14:16 justconnor 阅读(1862) 评论(1) 推荐(1) 编辑
  2011年10月7日
摘要: 一;aspx 页面① 在GridView 的<Columns> 里面添加模板列代码如下:<asp:TemplateField ItemStyle-Width="30px"><HeaderTemplate><asp:CheckBox ID="CheckAll" runat="server" onclick="CheckAll(this)"/><asp:Label ID="Label1" runat="server" Text 阅读全文
posted @ 2011-10-07 10:37 justconnor 阅读(522) 评论(0) 推荐(0) 编辑