⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmcardfind.cs

📁 酒店管理系统,您酒店物业管理的好帮手
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Hotel.Operation;

namespace Hotel.UI
{
    public partial class frmCardFind : Form
    {
        CardFindAccess obj = new CardFindAccess();
        public frmCardFind()
        {
            InitializeComponent();
        }

        

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnSelect_Click(object sender, EventArgs e)
        {

            if (this.txtContent.Text == "")
            {
                MessageBox.Show("请输入您所要查询的信息!","提示");
                return;
            }
            if (this.cboFind.SelectedItem.ToString() == "会员卡类型")
                {
                    obj.GetCardFind(lstShow, this.txtContent.Text);
                    if (this.lstShow.Items.Count == 0)
                    {
                        MessageBox.Show("没有您查找的信息,请重新输入!", "提示");
                    }
                }
            try
            {
                if (this.cboFind.SelectedItem.ToString() == "会员卡序号")
                {
                    obj.GetCardFind(lstShow, Convert.ToInt32(this.txtContent.Text));
                    if (this.lstShow.Items.Count == 0)
                    {
                        MessageBox.Show("没有您查找的信息,请重新输入!", "提示");
                    }
                }
                
              
                
            }
            catch
            {
                MessageBox.Show("查询失败,请重新输入!", "提示");
                this.txtContent.Clear();
                this.txtContent.Focus();
                
            }
           
                
            
          
     }

        private void txtContent_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)13)
            {
                btnSelect_Click(sender, e);
            }
        }

        private void frmCardFind_Load(object sender, EventArgs e)
        {
            obj.GetCardFind(lstShow);
            
        }

       
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -