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

📄 destineroomlistaccess.cs

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

namespace Hotel.Operation
{
    public class DestineRoomListAccess
    {
        GetDatabase objGetDatabase = null;
        public DestineRoomListAccess()
        {
            objGetDatabase = new GetDatabase();
        }
        //插入
        public int AddDestineRoomList(int li,string room)
        {
            string sql = "insert DestineRoomList values("+li+",'"+room+"')";
            int k = objGetDatabase.ExecuteSql(sql);
            objGetDatabase.DataClose();
            return k;
        }
        //查询
        public DataSet GetInfo(int num)
        {
            string sql = "select * from DestineRoomList where listID='"+num+"'";
            DataSet ds = new DataSet();
            ds = objGetDatabase.GetDataSet(sql, "DestineRoomList");
            return ds;
        }
    }
}

⌨️ 快捷键说明

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