Backup/DAL/OpenRoomRecordInfoDAO.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;
using Model;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
    public class OpenRoomRecordInfoDAO
    {
        SQLHelper sqlhelper = new SQLHelper();
        private DataSet ds;

        //房费总额
        public string GetRoomMoney(string roomid)
        {
            try
            {
                SqlParameter[] sp = new SqlParameter[2];
                sp[0] = new SqlParameter("@roomid",SqlDbType.VarChar,10);
                sp[0].Value = roomid;
                sp[1] = new SqlParameter("@AllMoney",SqlDbType.Money);
                sp[1].Direction = ParameterDirection.Output;
                string allmoney = sqlhelper.OutPutProc("proc_GetAllRoomMoney", sp);
                return allmoney;
            }
            catch (Exception)
            {
                
                throw;
            }
        }

        //得到开房记录总数

        public int GetAllCountOpenRoomRecord()
        {
            try
            {
                int count = sqlhelper.ReturnSQL("select count(*) from openroomrecordinfo");
                return count;
            }
            catch (Exception)
            {
                
                throw;
            }
        }

        //分页得到开房记录

        public DataSet GetOpenRoomInfo(int start,int limit)
        {
            try
            {
                ds = sqlhelper.GetDataSet("select top "+limit+" * from openroomrecordinfo where recordid not in(select top "+start+" recordid from openroomrecordinfo order by endtodaytime desc) order by endtodaytime desc,endtime desc");
                return ds;
            }
            catch (Exception)
后面还有 21 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。