2008年9月12日
www.kofzhouiwen.cn
开发:
ASP.NET2.0 AJAX
SQLSERVER2000
2008年7月3日

连接字符串的传递注意点 中文字符传递前必须先编码再传
解决方案
1:建立一个给变量加密的方法
protected string SetRequestParam(string param)
{
return Server.UrlEncode(param);
}
2:传递变量
<a href='ck_all.aspx?dep=<%# SetRequestParam(DataBinder.Eval(Container, "DataItem.wp_department").ToString())%>'><%# DataBinder.Eval(Container, "DataItem.wp_department")%></a>
3:给变量解密,应用
string xxx = Request.QueryString["dep"].ToString();
xxx = Server.UrlDecode(xxx);
where="where wp_department='"+ xxx +"'";
2008年6月28日
摘要: 需求说明书 作者 周碧文 发布范围 HPTCA-MS整个生命周期 版本 V1.0 发布日期 2008.4.21 修订历史记录 发布日期 版本 说明 作者 2008-4-21 1.0 考勤系统规格说明书 周碧文 2008-4-28 1.0 考勤系统规格说明书 王杰 2008-4-28 1.0 考勤系统规格说明书 薛纪表 2008-5-5 1.1 考勤系统规格说明书 王杰 目录1. 引言1.1 编写的...
阅读全文
摘要: <项目名称>数据库设计说明书数据库设计说明书 作者 薛纪表 发布范围 HPTCA-MS 版本 1.0 发布日期 2008-5-25 修订历史记录 发布日期 版本 说明 作者 2008-5-25 1.0 数据库设计说明书 薛纪表 目录1. 引言1.1 编写目的1.2 背景1.3 定义1.4 参考资料2. 外部设计2.1 标识符的状态2.2 使用它的程序2.3 约定2.4 专门指导2.5 ...
阅读全文
杭州公交公司考勤管理系统
(Hangzhou Public Transport Company Attendance-Management System)
立项计划书
项目名称:杭州公交公司考勤管理系统
项目类别:管理系统
开发单位:杭州电子科技大学软件职业技术学院软件4班2组
项目负责人:周碧文
电 话:13588759602
监管部门:杭州公交公司
项目规模:小
项目工作量:12个人40天
项目成本:3万
项目风险:中
项目关键:源代码数量的计算,功能指标达标情况。
专项计划
|
名称
|
日期
|
人员
|
|
节假日设计
|
2-3天
|
2
|
|
人员基本信息统计
|
2-3天
|
2
|
|
员工界面设计
|
3-4天
|
3
|
|
管理员或领导界面设计
|
3-4天
|
3
|
|
文档设计
|
6-7天
|
3
|
|
验证码设计
|
2天
|
2
|
|
考勤情况设计
|
10-15天
|
4
|
|
数据库设计
|
10-15天
|
3
|
|
|
|
杭州公交公司考勤管理系统开发计划书申请表
填表单位:杭州电子科技大学软件职业技术学院软件4班2组填报日期: 2008 年 4月 3 日
|
项目名称
|
杭州公交公司考勤管理系统
|
|
项目类别
|
管理系统
|
|
起止日期
|
2008-3-1——————2008-7-1
|
|
申请经费
|
3万
|
|
承担单位
|
杭州电子科技大学软件职业技术学院软件4班2组
|
|
协作单位
|
杭州电子科技大学
|
|
项目负责人
|
周碧文
|
|
项目主要内容和目标
|
提出基于C/S结构的网络考勤系统,实现网上考勤任务,以减轻考勤人员的工作量。开发员工考勤管理系统,完成员工基本信息维护、企业的部门信息维护、企业基本考勤类型的维护、员工考勤的管理、员工考勤的查询与分析。实现人事考勤的需要,包括员工迟到、早退、请假、旷工的情况的记录,在每个月底计算工资对员工和对员工进行绩效评估的时候,对员工整个月的考勤记录进行查询和统计。企业考勤管理系统是为了解决员工考勤管理的而设计的,目的是建立一个能够初步实现企业考勤管理系统的智能化管理,提高考勤管理效率,工作人员能够在各个岗位上的工作状态得到及时的反馈,而系统所需的工作人员的数量少,效率高。降低资源浪费,同时增强员工管理的透明度以及约束员工自觉遵守出勤制度。
|
|
主管部门意见
|
计划需合理,并正确评估风险,在计划的情况下进行项目开发研究总结。
|
计划负责人: 王杰 填表人:王杰
摘要: 杭州公交公司考勤管理系统(Hangzhou Public Transport Company Attendance-Management System)立项报告文档版本号1.0 文档名称 杭州公交公司考勤管理系统立项报告 文档编号 HPTCA-MS- [1.0] 关键字 杭州 公交 考勤 编制 周碧文 日期 2008年3月19日 保密等级 二级 内部传阅 修订表 编号 生成版本 修订人 修订章节与...
阅读全文
摘要: 杭州公交公司考勤管理系统(Hangzhou Public Transport Company Attendance-Management System)可行性分析报告文档版本号1.0 文档名称 杭州公交公司考勤管理系统可行性分析报告 文档编号 HPTCA-MS- [1.0] 关键字 杭州 公交 考勤 编制 王杰 日期 2008年3月19日 保密等级 二级 内部传阅 修订表 编号 生成版本 修订人 ...
阅读全文
摘要: 功能测试用例说明书功能测试用例说明书 作者 发布范围 HPTCA-MS整个生命周期 版本 V1.0 发布日期 2008-6-12 修订历史记录 发布日期 版本 说明 作者 2008-6-12 1.O 考勤系统测试用例 目录1. 引言1.1 编写的目的1.2 编写范围1.3 参考文献1.4 术语与缩略语2. 接口测试用例2.1 被测试对象的介绍2.2 测试范围与目的2.3 测试环境与测试辅助工具的描...
阅读全文
摘要: 杭州公交总公司信息管理系统概要设计说明书 文件编号 20080526 密级 发布范围 HPTCA-MS整个生命周期 版本 1.0 发布日期 2008-5-26 作者 王杰 审核 周碧文 修订历史记录 发布日期 版本 说明 作者 2008-5-10 1.0 公交考勤系统概要设计说明书 王杰 2008-5-26 1.0 公交考勤系统概要设计说明书修改 周碧文 目录1. 引言1.1 编写目的1.2 背景...
阅读全文

Code
1
<connectionStrings>
2
<add name="myconn" connectionString="data source=(local);initial catalog=Busdb;user id=sa;pwd=sa"/>
3
</connectionStrings>
4
5
<profile defaultProvider="myp">
6
<properties>
7
<add name="num" type="int" allowAnonymous="true" />
8
</properties>
9
<providers>
10
<add name="myp" type="System.Web.Profile.SqlProfileProvider" connectionStringName="myconn"/>
11
</providers>
12
</profile>
13
<anonymousIdentification enabled="true"/>
14
摘要: 首先,对象分为值类型和引用类型,值类型在用完后是由操作系统自动回收的,引用类型由垃圾回收器回收,所以提到垃圾回收肯定是对引用类型来说的。垃圾回收机制是为了解决内存泄漏问题,即对象在用完后,其占用的内存没有被释放,使一个无用的对象不必要的占用了内存,导致不正常的内存减少甚至耗尽。以前有两种内存管理技术,一种COM开发人员熟悉的引用计数技术,一种C++开发人员熟悉的Delete语句,COM开发人员会遇...
阅读全文

Code
1
StreamReader sr = new StreamReader(aFile,Encoding.Default)就可以解决
2
3
实例代码。输出指定文件下的内容
4
5
using System;
6
using System.Collections.Generic;
7
using System.Text;
8
using System.IO;
9
10
namespace ConsoleApplication15
11

{
12
13
class Program
14
{
15
static void Main(string[] args)
16
{
17
string strLine;
18
Console.Write("请输入文件路径及文件名:");
19
string mess = Console.ReadLine();
20
FileStream aFile = new FileStream(mess, FileMode.Open);
21
StreamReader sr = new StreamReader(aFile,Encoding.Default);
22
strLine = sr.ReadToEnd();
23
Console.WriteLine(strLine);
24
Console.ReadLine();
25
}
26
}
27
}
28
29

Code
1
//写入
2
string path = "d:/aa.txt";string str2 = "abcde";
3
char[] str=new char[5];str=str2.ToCharArray();
4
FileStream fs=new FileStream(path,FileMode.OpenOrCreate);
5
fs.Seek(0, SeekOrigin.End);
6
byte[] bt = Encoding.UTF8.GetBytes(str);
7
fs.Write(bt, 0, bt.Length);
8
//读取
9
string path = "d:/aa.txt";
10
FileStream fs=new FileStream(path,FileMode.OpenOrCreate);
11
byte[] bt =new byte[100];
12
fs.Read(bt, 0, bt.Length);
13
string str = Encoding.Default.GetString(bt);
14
Console.WriteLine(str);
15

Code
1
//写入
2
string path = "d:/aa.txt";string str2 = "abcde";
3
char[] str=new char[5];str=str2.ToCharArray();
4
FileStream fs=new FileStream(path,FileMode.OpenOrCreate);
5
fs.Seek(0, SeekOrigin.End);
6
byte[] bt = Encoding.UTF8.GetBytes(str);
7
fs.Write(bt, 0, bt.Length);
8
//读取
9
string path = "d:/aa.txt";
10
FileStream fs=new FileStream(path,FileMode.OpenOrCreate);
11
byte[] bt =new byte[100];
12
fs.Read(bt, 0, bt.Length);
13
string str = Encoding.Default.GetString(bt);
14
Console.WriteLine(str);
15

Code
1
public delegate void actioneventhandle(object sender, EventArgs e);
2
public static actioneventhandle action;
3
protected void onaction(object sender, EventArgs e)
4

{if (e != null)
{action(sender, e);}}
5
public void aa(object sender, EventArgs e)
{…}
6
private void Form1_Load(object sender, EventArgs e)
7

{action += new actioneventhandle(aa);
8
onaction(sender, e);}
9

Code
1
using System;
2
using System.IO;
3
using System.IO.Compression;
4
5
public class DeflateTest
6

{
7
//读filename到byte[]
8
public static byte[] ReadFile(string fileName)
9
{
10
FileStream fs = new FileStream(fileName,FileMode.OpenOrCreate);
11
byte[] buffer = new byte[fs.Length];
12
try
13
{
14
fs.Read(buffer, 0, buffer.Length);
15
fs.Seek(0, SeekOrigin.Begin);
16
return buffer;
17
}
18
catch
19
{
20
return buffer;
21
}
22
finally
23
{
24
if (fs != null)
25
fs.Close();
26
}
27
}
28
//写byte[]到fileName
29
public static bool WriteFile(byte[] pReadByte, string fileName)
30
{
31
FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate);
32
try
33
{
34
fs.Write(pReadByte, 0, pReadByte.Length);
35
}
36
catch
37
{
38
return false;
39
}
40
finally
41
{
42
if (fs != null)
43
fs.Close();
44
}
45
return true;
46
}
47
48
49
public static void Main(string[] args)
50
{
51
byte[] b = ReadFile(@"d:/a.jpg");
52
if (WriteFile(b, @"d:/a3.jpg"))
53
{
54
Console.WriteLine("Success");
55
}
56
else
57
{
58
Console.WriteLine("Sorry");
59
}
60
Console.ReadLine();
61
}
62
}
63