• 大小: 8.96MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-09
  • 语言: C#
  • 标签:

资源简介

本系统以C#+SQL2005完成了一个的简单的酒店管理系统,实现了酒店的基本的功能

资源截图

代码片段和文件信息

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

namespace GinShop
{
    public partial class AddAdmin : Form
    {
        public AddAdmin()
        {
            InitializeComponent();
        }

        private void panel1_Paint(object sender PaintEventArgs e)
        {

        }

        private void groupBox1_Enter(object sender EventArgs e)
        {

        }

        private void btnSure_Click(object sender EventArgs e)
        {
            string message = ““;
            if (txtPwd.Text.Trim() != ““ && txtPwd.Text.Trim() == txtEnsure.Text.Trim())
            {
                if (txtNo.Text.Trim() != ““ && txtName.Text.Trim() != ““)
                {
                    if (combtype.Text == ““)
                        message  = “请选择权限“;
                }
                else
                    message = “编号姓名不能为空“;
            }
            else
                 message = “密码不一致“;
            if (message != ““)
                MessageBox.Show(message “系统提示“ MessageBoxButtons.OK MessageBoxIcon.Asterisk);
            else
            {
                string  sqlselect = string.Format(“select * from staff where staff_id={0}“txtNo.Text .Trim ());
                if (sqlfind.find(sqlselect))
                {
                    string sqlsel = string.Format(“select * from land where staff_id={0}“ txtNo.Text.Trim());
                    if (sqlfind.find(sqlsel))
                        MessageBox.Show(“该员工已经是管理员,不需添加“ “系统提示“ MessageBoxButtons.OK MessageBoxIcon.Asterisk);
                    else
                    {
                        string sqlinsert = string.Format(“insert into land values (‘{0}‘‘{1}‘‘{2}‘{3})“txtNo .Text .Trim ()txtName .Text .Trim ()txtPwd .Text .Trim ()int.Parse (combtype .SelectedIndex .ToString ()));
                        sqlfind.Sysinsert(sqlinsert );
                        MessageBox.Show(“添加成功““系统提示“MessageBoxButtons .OK MessageBoxIcon.Asterisk );
                    }
                }
                else
                {
                    MessageBox.Show(“该员工不存在““系统提示“MessageBoxButtons.OK MessageBoxIcon.Asterisk );
                }
            }
        }

        private void txtPwd_TextChanged(object sender EventArgs e)
        {

        }

        private void AddAdmin_Load(object sender EventArgs e)
        {

        }

        private void btnCancel_Click(object sender EventArgs e)
        {
            this.txtNo.Clear();
            this.txtName.Clear();
            this.txtPwd.Clear();
            this.txtEnsure.Clear();
            
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2907  2010-01-19 02:44  GinShop\AddAdmin.cs

     文件      11053  2010-01-19 02:44  GinShop\AddAdmin.Designer.cs

     文件       5814  2010-01-19 02:44  GinShop\AddAdmin.resx

     文件       1044  2010-01-18 16:00  GinShop\administrator1.cs

     文件       5031  2010-01-18 16:00  GinShop\administrator1.Designer.cs

     文件     104737  2010-01-18 16:00  GinShop\administrator1.resx

     文件        391  2010-01-14 21:51  GinShop\app.config

     文件    1396736  2010-01-19 12:15  GinShop\bin\Debug\GinShop.exe

     文件        391  2010-01-14 21:51  GinShop\bin\Debug\GinShop.exe.config

     文件     251392  2010-01-19 12:15  GinShop\bin\Debug\GinShop.pdb

     文件       5632  2005-11-11 22:25  GinShop\bin\Debug\GinShop.vshost.exe

     文件        391  2010-01-14 21:51  GinShop\bin\Debug\GinShop.vshost.exe.config

     文件    1093632  2010-01-19 00:06  GinShop\bin\Debug\Interop.Excel.dll

     文件     516096  2007-06-21 20:37  GinShop\bin\Debug\IrisSkin2.dll

     文件     576342  2008-08-25 16:39  GinShop\bin\Debug\skin\11222.bmp

     文件      33729  2006-03-22 10:24  GinShop\bin\Debug\skin\calmness.gif

     文件      20139  2006-03-22 10:16  GinShop\bin\Debug\skin\Calmness.ssk

     文件      20271  2006-03-22 10:16  GinShop\bin\Debug\skin\CalmnessColor1.ssk

     文件      20208  2006-03-22 10:15  GinShop\bin\Debug\skin\CalmnessColor2.ssk

     文件      40436  2006-03-22 10:25  GinShop\bin\Debug\skin\calmness_color1.gif

     文件      50601  2006-03-22 10:26  GinShop\bin\Debug\skin\calmness_color2.gif

     文件      18221  2006-03-22 12:22  GinShop\bin\Debug\skin\deepcyan.gif

     文件       5032  2006-04-04 15:20  GinShop\bin\Debug\skin\DeepCyan.ssk

     文件      17920  2006-03-22 12:23  GinShop\bin\Debug\skin\deepgreen.gif

     文件       5037  2006-03-29 12:12  GinShop\bin\Debug\skin\DeepGreen.ssk

     文件      20292  2006-03-22 12:24  GinShop\bin\Debug\skin\deeporange.gif

     文件       4908  2006-03-29 12:12  GinShop\bin\Debug\skin\DeepOrange.ssk

     文件      50635  2006-03-21 14:11  GinShop\bin\Debug\skin\diamondblue.gif

     文件      16021  2006-03-22 12:25  GinShop\bin\Debug\skin\DiamondBlue.ssk

     文件      45088  2006-03-21 14:12  GinShop\bin\Debug\skin\diamondgreen.gif

............此处省略225个文件信息

评论

共有 条评论

相关资源