91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.69MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2023-11-05
  • 語言: 其他
  • 標簽: 寢室管理??

資源簡介

包括注冊登錄 查找個人信息,刪除 ,添加學生信息等,這個系統(tǒng)能更好的幫助初學者,也可以幫助寢室管理員,方便管理學生信息。

資源截圖

代碼片段和文件信息

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;

namespace?Dormitory
{
///?
///?AddStudentInfo?的摘要說明。
///?

public?class?AddStudentInfo?:?System.Web.UI.Page
{
protected?System.Data.SqlClient.SqlCommand?cmd;
protected?System.Data.SqlClient.SqlConnection?cnn;
protected?System.Web.UI.HtmlControls.HtmlInputFile?pic;
protected?System.Web.UI.HtmlControls.HtmlTableCell?erroMsg;

private?void?Page_Load(object?sender?System.EventArgs?e)
{
erroMsg.Visible=false;
if(!this.IsPostBack)
return;

string?stuID=this.Request.Form[“stuID“];
stuID=stuID.Replace(“‘“““).Replace(“\““““);
string?stuName=this.Request.Form[“stuName“];
stuName=stuName.Replace(“‘“““).Replace(“\““““);
string?sex=this.Request.Form[“sex“];
sex=sex.Replace(“‘“““);
string?stuClass=this.Request.Form[“stuClass“];
stuClass=stuClass.Replace(“‘“““);
string?phone=this.Request.Form[“phone“];
phone=phone.Replace(“‘“““).Replace(“\““““);
string?major=this.Request.Form[“major“];
major=major.Replace(“‘“““);
string?department=this.Request.Form[“department“];
string?dormID=this.Request.Form[“dormID“];
dormID=dormID.Replace(“‘“““);
string?isLeader=this.Request.Form[“isLeader“];
//isLeader=isLeader.Replace(“‘“““);
string?year=this.Request.Form[“year“];
year=year.Replace(“‘“““);
string?month=this.Request.Form[“month“];
//month=month.Replace(“‘“““);
string?day=this.Request.Form[“day“];
//day=day.Replace(“‘“““);

System.Web.HttpPostedFile?p=this.Request.Files[“pic“];
Bitmap?b=new?Bitmap(6080);
b=(System.Drawing.Bitmap)System.Drawing.Bitmap.FromStream(p.InputStream);
System.Drawing.Graphics?g=System.Drawing.Graphics.FromImage(b);
g.DrawImage(b0f0f60f80f);
Bitmap?bmp?=new?Bitmap(6080);
Graphics?gb=System.Drawing.Graphics.FromImage(bmp);
gb.DrawImage(b00);

string?address=MapPath(“studentPic/“)+stuID+System.IO.Path.GetExtension(p.FileName);
string?stuPhoto=System.IO.Path.GetExtension(p.FileName);
cnn.Open();
cmd.CommandText=“select?count(*)?from?students?where?StudentID=“+stuID;
int?n=0;
try
{?
n=(int)cmd.ExecuteScalar();
}

finally
{
cnn.Close();
}
if(n!=0)
{
erroMsg.Visible=true;
erroMsg.InnerText=“輸入有誤,該學生已經(jīng)存在!請重新錄入“;
erroMsg.Attributes.Add(“color““red“);
return;
}
if(cnn.State==ConnectionState.Closed)
cnn.Open();
DateTime?bd=new?DateTime(int.Parse(year)int.Parse(month)int.Parse(day));
cmd.CommandText=@“insert?into?Students(StudentIDStudentNameSexClassPhotosTelephoneMajorDepartmentDormIDIsLeaderenterTime)?values(‘“+
stuID+“‘‘“+stuName+“‘‘“+sex+“‘‘“+stuClass+“‘‘“+stuPh

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6837??2010-01-20?00:12??寢室管理系統(tǒng)完整\Dormitory\AddStudentInfo.aspx

?????文件???????4380??2010-01-21?09:38??寢室管理系統(tǒng)完整\Dormitory\AddStudentInfo.aspx.cs

?????文件???????6430??2010-01-19?15:10??寢室管理系統(tǒng)完整\Dormitory\AddStudentInfo.aspx.resx

?????文件???????3491??2010-01-21?10:11??寢室管理系統(tǒng)完整\Dormitory\adminleft.ascx

?????文件???????1501??2010-01-21?10:11??寢室管理系統(tǒng)完整\Dormitory\adminleft.ascx.cs

?????文件???????5317??2010-01-21?10:11??寢室管理系統(tǒng)完整\Dormitory\adminleft.ascx.resx

?????文件???????2115??2010-01-12?08:26??寢室管理系統(tǒng)完整\Dormitory\AssemblyInfo.cs

?????文件????1197568??2010-01-21?14:57??寢室管理系統(tǒng)完整\Dormitory\bin\Dormitory.bak

?????文件?????155648??2010-01-21?14:39??寢室管理系統(tǒng)完整\Dormitory\bin\Dormitory.dll

?????文件?????222720??2010-01-21?14:39??寢室管理系統(tǒng)完整\Dormitory\bin\Dormitory.pdb

?????目錄??????????0??2010-04-13?09:42??寢室管理系統(tǒng)完整\Dormitory\bin

?????文件???????2204??2010-01-21?11:00??寢室管理系統(tǒng)完整\Dormitory\Comments.aspx

?????文件??????26572??2010-01-21?11:12??寢室管理系統(tǒng)完整\Dormitory\Comments.aspx.cs

?????文件??????14340??2010-01-21?11:12??寢室管理系統(tǒng)完整\Dormitory\Comments.aspx.resx

?????文件????????541??2010-01-19?10:22??寢室管理系統(tǒng)完整\Dormitory\css\erro.css

?????目錄??????????0??2010-04-13?09:42??寢室管理系統(tǒng)完整\Dormitory\css

?????文件??????55303??2010-01-20?11:26??寢室管理系統(tǒng)完整\Dormitory\DataSet1.cs

?????文件???????3078??2010-01-20?11:26??寢室管理系統(tǒng)完整\Dormitory\DataSet1.xsd

?????文件????????748??2010-01-20?11:26??寢室管理系統(tǒng)完整\Dormitory\DataSet1.xsx

?????文件??????16526??2010-01-21?14:52??寢室管理系統(tǒng)完整\Dormitory\Default.aspx

?????文件???????2855??2010-01-21?14:30??寢室管理系統(tǒng)完整\Dormitory\Default.aspx.cs

?????文件???????5317??2010-01-21?14:30??寢室管理系統(tǒng)完整\Dormitory\Default.aspx.resx

?????文件???????6695??2010-01-19?21:33??寢室管理系統(tǒng)完整\Dormitory\departmentfind.aspx

?????文件???????3353??2010-01-20?00:10??寢室管理系統(tǒng)完整\Dormitory\departmentfind.aspx.cs

?????文件???????6082??2010-01-20?00:10??寢室管理系統(tǒng)完整\Dormitory\departmentfind.aspx.resx

?????文件????????224??2010-01-19?22:00??寢室管理系統(tǒng)完整\Dormitory\DongTai.ascx

?????文件???????5499??2010-01-21?08:40??寢室管理系統(tǒng)完整\Dormitory\DongTai.ascx.cs

?????文件???????7258??2010-01-19?21:53??寢室管理系統(tǒng)完整\Dormitory\DongTai.ascx.resx

?????文件????1132032??2010-01-17?00:34??寢室管理系統(tǒng)完整\Dormitory\Dormitory

?????文件?????868864??2010-01-12?14:26??寢室管理系統(tǒng)完整\Dormitory\Dormitory.bak

............此處省略125個文件信息

評論

共有 條評論

相關(guān)資源