資源簡介
基于ASP.NET的醫院管理系統分析與源碼。解壓后VS導入網站項目即可

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Data.SqlClient;
using?System.Configuration;
using?System.Data;
using?System.Drawing;
public?partial?class?CreatePatient?:?System.Web.UI.Page
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(Session[“type“]?==?null?||?Session[“type“].ToString()?!=?“Manager“)
????????{
????????????Response.Write(“ript>alert(‘對不起,您沒有權限或未登陸‘) ript>“);
????????????Response.Redirect(“HomePage.aspx“);
????????}
????}
????protected?void?Button1_Click(object?sender?EventArgs?e)
????{
????????if?(TextBox1.Text?==?““)
????????{
????????????Label3.Text?=?“未輸入用戶名!“;
????????????Label3.ForeColor?=?Color.Red;
????????????Label3.Visible?=?true;
????????????return;
????????}
????????string?found?=?“select?*?from?Patient?where?Hospital_ID=‘“?+?TextBox1.Text?+?“‘“;
????????String?SqlStr?=?ConfigurationManager.AppSettings[“conStr“];
????????SqlConnection?con?=?new?SqlConnection(SqlStr);
????????SqlCommand?cmd?=?new?SqlCommand(found?con);
????????con.Open();
????????SqlDataReader?myreader?=?cmd.ExecuteReader();
????????if?(myreader.Read())
????????{
????????????Label3.Text?=?“賬號已存在!“;
????????????Label3.ForeColor?=?Color.Red;
????????????Label3.Visible?=?true;
????????}
????????else
????????{
????????????Label3.Text?=?“可以使用!“;
????????????Label3.ForeColor?=?Color.Green;
????????????Label3.Visible?=?true;
????????}
????????con.Close();
????}
????protected?void?Button2_Click(object?sender?EventArgs?e)
????{
????}
????protected?void?Button3_Click(object?sender?EventArgs?e)
????{
????????if?(TextBox4.Text?==?““?||?TextBox8.Text?==?““?||?TextBox10.Text?==?““?||?TextBox11.Text?==?““)?{
????????????return;
????????}
????????string?found?=?“select?*?from?Patient?where?Hospital_ID=‘“?+?TextBox1.Text?+?“‘“;
????????String?SqlStr?=?ConfigurationManager.AppSettings[“conStr“];
????????SqlConnection?con?=?new?SqlConnection(SqlStr);
????????SqlCommand?cmd?=?new?SqlCommand(found?con);
????????con.Open();
????????SqlDataReader?myread?=?cmd.ExecuteReader();
????????if?(myread.Read())
????????{
????????????Label3.Text?=?“用戶名已存在!“;
????????????Label3.ForeColor?=?Color.Red;
????????????Label3.Visible?=?true;
????????????con.Close();
????????????return;
????????}
????????found?=?“insert?into?Patient(Social_IDHospital_IDNameSexBirthdayAddressPhone_NumberBDoc_ID)?values?(‘“;
????????found?+=?TextBox10.Text?+?“‘‘“;
????????found?+=?TextBox1.Text?+?“‘‘“;
????????found?+=?TextBox4.Text?+?“‘‘“;
????????found?+=?(RadioButton1.Checked???RadioButton1.Text?:?RadioButton2.Text)?+?“‘‘“;
????????found?+=?getDate()?+?“‘‘“;
????????found?+=?TextBox8.Text?+?“‘‘“;
????????found?+=?TextBox11.Text?+?“‘‘“;
????????found?+=?DropDownList4.SelectedValue.ToString()?+?“‘)“;
????????con.Close();
????????cmd?=?new?SqlCommand(found?con);
??????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-06-08?10:58??醫院管理系統分析\
?????目錄???????????0??2015-06-08?10:54??醫院管理系統分析\WebSite1\
?????目錄???????????0??2015-06-08?10:54??醫院管理系統分析\WebSite1\Account\
?????文件????????4434??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\ChangePassword.aspx
?????文件?????????296??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\ChangePassword.aspx.cs
?????文件?????????494??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\ChangePasswordSuccess.aspx
?????文件?????????303??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\ChangePasswordSuccess.aspx.cs
?????文件????????3056??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\Login.aspx
?????文件?????????412??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\Login.aspx.cs
?????文件????????5680??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\Register.aspx
?????文件?????????814??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\Register.aspx.cs
?????文件?????????330??2013-05-11?23:21??醫院管理系統分析\WebSite1\Account\Web.config
?????目錄???????????0??2015-06-08?10:54??醫院管理系統分析\WebSite1\App_Code\
?????文件???????????1??2013-05-16?17:58??醫院管理系統分析\WebSite1\App_Code\ClassDiagram.cd
?????文件???????????1??2013-05-16?17:43??醫院管理系統分析\WebSite1\App_Code\ClassDiagram.cd.exclude
?????文件?????????646??2013-05-19?19:41??醫院管理系統分析\WebSite1\App_Code\Mrperson.cs.exclude
?????文件????????1420??2013-05-31?21:12??醫院管理系統分析\WebSite1\App_Code\Patient.cs
?????目錄???????????0??2015-06-08?10:54??醫院管理系統分析\WebSite1\App_Data\
?????文件????10485760??2013-06-26?23:54??醫院管理系統分析\WebSite1\App_Data\ASPNETDB.MDF
?????文件??????516096??2013-06-26?23:54??醫院管理系統分析\WebSite1\App_Data\aspnetdb_log.ldf
?????文件????????9706??2013-06-14?23:01??醫院管理系統分析\WebSite1\CreatePatient.aspx
?????文件????????6269??2013-06-11?21:23??醫院管理系統分析\WebSite1\CreatePatient.aspx.cs
?????文件????????6851??2013-06-15?00:37??醫院管理系統分析\WebSite1\CurePatient.aspx
?????文件????????5189??2013-06-13?11:32??醫院管理系統分析\WebSite1\CurePatient.aspx.cs
?????文件?????????415??2013-05-31?23:15??醫院管理系統分析\WebSite1\Default.aspx
?????文件?????????395??2013-06-05?20:12??醫院管理系統分析\WebSite1\Default.aspx.cs
?????文件?????????754??2013-06-15?11:17??醫院管理系統分析\WebSite1\DoctorView.aspx
?????文件?????????529??2013-06-11?21:22??醫院管理系統分析\WebSite1\DoctorView.aspx.cs
?????文件????????3741??2013-06-14?00:31??醫院管理系統分析\WebSite1\Friendli
?????文件?????????282??2013-06-06?17:00??醫院管理系統分析\WebSite1\Friendli
?????文件?????????962??2013-05-11?23:21??醫院管理系統分析\WebSite1\Global.asax
............此處省略32個文件信息
- 上一篇:圖書管理系統ASP.NET課程設計源碼
- 下一篇:WEB課設-圖書館管理系統
評論
共有 條評論