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

  • 大小: 2.9MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2023-08-10
  • 語言: C#
  • 標(biāo)簽: c#??sql??酒店??客房??管理??

資源簡介

采用c#+sql的組合。整個系統(tǒng)是管理酒店的房間。包括旅客入住、退房、換房等。內(nèi)附系統(tǒng)考核要求

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;

namespace?期末大作業(yè)系統(tǒng)
{
????public?partial?class?LoginForm?:?Form
????{
????????public?static?bool?blCanLogin?=?false;
????????public?static?int?count?=?0;
????????public?mainForm?objMainForm;

????????public?LoginForm(mainForm?obj)
????????{
????????????InitializeComponent();
????????????objMainForm?=?obj;
????????}


????????private?void?loginbutten_Click(object?sender?EventArgs?e)
????????{

????????????SqlConnection?con?=?new?SqlConnection(“server=.;database=酒店管理系統(tǒng);integrated?security=true;“);
????????????con.Open();
????????????string?sqlStr?=?“select?count(*)?from?[管理員]?where?用戶名=@name?and?密碼=@pass“;
????????????SqlCommand?com?=?new?SqlCommand(sqlStr?con);

????????????com.Parameters.Add(new?SqlParameter(“@name“?SqlDbType.VarChar?20));
????????????com.Parameters[“@name“].Value?=?textBoxName.Text;
????????????com.Parameters.Add(new?SqlParameter(“@pass“?SqlDbType.VarChar?50));
????????????com.Parameters[“@pass“].Value?=?textBoxpwd.Text;

????????????int?result?=?(int)com.ExecuteScalar();
????????????if?(textBoxName.Text?==?““?||?textBoxpwd.Text?==?““)
????????????{
????????????????MessageBox.Show(“用戶名和密碼不能為空!請輸入!“);
????????????????return;
????????????}
????????????else
????????????{
????????????????if?(result?>?0)
????????????????{
????????????????????//DialogResult?=?DialogResult.OK;
????????????????????blCanLogin?=?true;
????????????????????this.Visible?=?false;
????????????????????return;
????????????????}
????????????????else
????????????????{
????????????????????count++;
????????????????????if?(count?>?2)
????????????????????{
????????????????????????MessageBox.Show(“你輸入錯誤3次“);
????????????????????????DialogResult?=?DialogResult.Cancel;
????????????????????????return;
????????????????????}

????????????????????MessageBox.Show(“你輸入的用戶名或密碼錯誤!“);
????????????????????return;
????????????????}
????????????}

????????}
?

????????private?void?buttonQuxiao_Click(object?sender?EventArgs?e)
????????{
????????????textBoxName.Text?=?““;
????????????textBoxpwd.Text?=?““;
???
????????}

????????private?void?LoginForm_FormClosed(object?sender?FormClosedEventArgs?e)
????????{
????????????objMainForm.Close();
????????????Application.Exit();
????????}

????????private?void?LoginForm_Load(object?sender?EventArgs?e)
????????{

????????}?????
????}
}

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

?????文件?????856576??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\bin\Debug\期末大作業(yè)系統(tǒng).exe

?????文件??????75264??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\bin\Debug\期末大作業(yè)系統(tǒng).pdb

?????文件??????14328??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\bin\Debug\期末大作業(yè)系統(tǒng).vshost.exe

?????文件????????490??2007-07-21?01:33??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\bin\Debug\期末大作業(yè)系統(tǒng).vshost.exe.manifest

?????文件???????2703??2010-12-30?16:27??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\LoginForm.cs

?????文件???????5921??2010-12-30?16:27??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\LoginForm.Designer.cs

?????文件???????5814??2010-12-30?16:27??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\LoginForm.resx

?????文件???????2881??2010-12-30?16:00??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\mainForm.cs

?????文件??????12687??2010-12-29?14:47??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\mainForm.Designer.cs

?????文件???????6216??2010-12-29?14:47??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\mainForm.resx

?????文件???????7168??2010-12-30?15:54??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

?????文件???????6148??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).csproj.FileListAbsolute.txt

?????文件???????1890??2010-12-30?16:29??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).csproj.GenerateResource.Cache

?????文件?????856576??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).exe

?????文件????????180??2010-12-30?16:27??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).LoginForm.resources

?????文件????????180??2010-12-30?16:04??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).mainForm.resources

?????文件??????75264??2010-12-30?16:34??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).pdb

?????文件?????818880??2010-12-30?16:04??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).Properties.Resources.resources

?????文件????????180??2010-12-30?16:29??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).增加客房信息.resources

?????文件????????180??2010-12-30?16:04??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).客房管理.resources

?????文件????????180??2010-12-30?16:04??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\obj\Debug\期末大作業(yè)系統(tǒng).賓客管理.resources

?????文件????????505??2010-12-17?10:20??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Program.cs

?????文件???????1398??2010-12-17?08:43??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Properties\AssemblyInfo.cs

?????文件???????7168??2010-12-30?15:54??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Properties\Resources.Designer.cs

?????文件??????10114??2010-12-30?15:54??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Properties\Resources.resx

?????文件???????1106??2010-12-17?08:43??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Properties\Settings.Designer.cs

?????文件????????249??2010-12-17?08:43??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Properties\Settings.settings

?????文件??????10382??2010-12-30?14:24??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Resources\09211_1.png

?????文件???????9041??2010-12-30?14:20??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Resources\09211_2.png

?????文件??????13018??2010-12-30?14:28??期末大作業(yè)系統(tǒng)\期末大作業(yè)系統(tǒng)\Resources\09211_22.png

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

評論

共有 條評論