資源簡(jiǎn)介
VSS2005開(kāi)發(fā)環(huán)境,運(yùn)用C#語(yǔ)言,開(kāi)發(fā)基于WEB模式的合同管理系統(tǒng),系統(tǒng)模塊包含合同添加,刪除,修改和查看等基本功能,還包括合同權(quán)限設(shè)置,系統(tǒng)設(shè)置和上傳附件等多功能合為一體,送給需要的人
代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
using?System.Data.SqlClient;
using?System.Configuration;
using?System.Text;
using?System.Net;
using?System.IO;
namespace?ContractManager
{
///?
///?AddContract?的摘要說(shuō)明。
///?
public?partial?class?AddContract?:?System.Web.UI.Page
{
protected?DatabaseClass?db=new?DatabaseClass();
private?string?connstr?=?System.Configuration.ConfigurationSettings.AppSettings[“ConnStringDefault“];
protected?System.Web.UI.WebControls.TextBox?TextBox6;
protected?System.Web.UI.HtmlControls.HtmlInputText?ddd;
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
?//?在此處放置用戶代碼以初始化頁(yè)面
if(Session[“CurUser“]==null)
{
Page.RegisterStartupscript(“提示““ript?languague=javascript>alert(‘登陸超時(shí),請(qǐng)重新登陸!‘);window.opener.document.location.href=‘Login.aspx‘;window.close(); ript>“);
return;
}
// string?sql?=?“select?*?from?DepartmentInfo“;
// SqlConnection?conn1?=?new?SqlConnection(connstr);
// conn1.Open();
// SqlDataReader?reader1?=?db.connected(sql?conn1);
// while(reader1.Read())
// {
// DropDownList1.Items.Add(reader1[“DepartmentName“].ToString());
// }
string?tjsql=Session[“Leibie_sql“].ToString();
tjsql=tjsql.Replace(“LeiBie““Lb_name“);
DropDownList2.Items.Clear();
string?sql?=?“select?*?from?LeiBie“;
if(tjsql!=““)
{
sql?=?“select?*?from?LeiBie?where?“+tjsql;
}
else
{
return;
}
SqlConnection?conn2?=?new?SqlConnection(connstr);
conn2.Open();
SqlDataReader?reader2?=?db.connected(sql?conn2);
while(reader2.Read())
{
DropDownList2.Items.Add(reader2[“Lb_name“].ToString());
}
}
#region?Web?窗體設(shè)計(jì)器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調(diào)用是?ASP.NET?Web?窗體設(shè)計(jì)器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設(shè)計(jì)器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內(nèi)容。
///?
private?void?InitializeComponent()
{????
this.ImageButton1.Click?+=?new?System.Web.UI.ImageClickEventHandler(this.ImageButton1_Click);
}
#endregion
protected?void?Button1_Click(object?sender?System.EventArgs?e)
{
string?userid=Session[“CurUser_ID“].ToString();
string??idd=this.TextBox1.Text.Trim()
cname=this.TextBox2.Text.Trim()
cmoney=this.TextBox3.Value
cduifang=this.text_duifang.Text.Trim()
????leibie=this.DropDownList2.SelectedValue
ctime=this.ctime.Value;
string?starttime=this.ctime2.Value;
string?endtime=this.ctime3.Value;
string?bzj=this.TextBox4.Value;
if(idd==““||cduifang==““||cname==““)
{
Page.RegisterStartupscript(“““ript?languague=javascript>alert(‘合同編號(hào)、合同名稱、合同金額和對(duì)方單位不能為空!
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????9380??2008-09-17?09:22??ContractManager\AddContract.aspx
?????文件???????7870??2008-09-17?09:22??ContractManager\AddContract.aspx.cs
?????文件???????5317??2008-07-21?09:38??ContractManager\AddContract.aspx.resx
?????文件???????4007??2008-09-17?09:22??ContractManager\AddDepartment.aspx
?????文件???????2652??2008-09-17?09:22??ContractManager\AddDepartment.aspx.cs
?????文件???????5317??2008-07-09?11:06??ContractManager\AddDepartment.aspx.resx
?????文件???????4574??2008-09-17?09:22??ContractManager\AddInfo.aspx
?????文件???????4086??2008-09-17?09:22??ContractManager\AddInfo.aspx.cs
?????文件???????5317??2008-06-25?17:01??ContractManager\AddInfo.aspx.resx
?????文件???????1464??2008-09-17?09:22??ContractManager\AddLeibie.aspx
?????文件???????2155??2008-09-17?09:22??ContractManager\AddLeibie.aspx.cs
?????文件???????5317??2008-06-26?16:58??ContractManager\AddLeibie.aspx.resx
?????文件??????20153??2008-09-17?10:59??ContractManager\AddRole2.aspx
?????文件???????7840??2008-09-17?10:58??ContractManager\AddRole2.aspx.cs
?????文件???????5317??2008-07-24?10:01??ContractManager\AddRole2.aspx.resx
?????文件???????5875??2008-09-17?09:22??ContractManager\AddRoles.aspx
?????文件???????2717??2008-09-17?09:22??ContractManager\AddRoles.aspx.cs
?????文件???????5317??2008-06-10?21:03??ContractManager\AddRoles.aspx.resx
?????文件???????4225??2008-09-17?09:22??ContractManager\AddUserInfo.aspx
?????文件???????3266??2008-09-17?09:22??ContractManager\AddUserInfo.aspx.cs
?????文件???????5317??2008-06-26?09:30??ContractManager\AddUserInfo.aspx.resx
?????文件???????2115??2008-09-17?09:22??ContractManager\App_Code\AssemblyInfo.cs
?????文件???????6501??2008-09-17?09:22??ContractManager\App_Code\Databa
?????文件???????1381??2008-09-17?09:22??ContractManager\App_Code\Global.asax.cs
?????文件?????423424??2002-01-01?06:49??ContractManager\bin\ContractManager.pdb
?????文件?????186704??2002-01-17?16:22??ContractManager\bin\Microsoft.Web.UI.WebControls.dll
?????文件??????20480??2007-11-08?14:17??ContractManager\bin\MSSQL.dll
?????文件???????6853??2008-06-17?12:43??ContractManager\calendar.htm
?????文件????????604??2008-09-17?09:22??ContractManager\ContractDtail.aspx
?????文件???????1165??2008-09-17?09:22??ContractManager\ContractDtail.aspx.cs
............此處省略196個(gè)文件信息
評(píng)論
共有 條評(píng)論