BLL/OpenRoomRecordInfoBLL.cs

(开头部分) 2KB

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

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

namespace BLL
{
    public  class OpenRoomRecordInfoBLL
    {
        OpenRoomRecordInfoDAO dao = new OpenRoomRecordInfoDAO();

        private DataSet ds;
         //房费总额
        public string GetRoomMoney(string roomid)
        {
            FormJSONHelper json = new FormJSONHelper();
            string money= dao.GetRoomMoney(roomid);
            json.success = true;
            json.AddItem("roommoney",money);
            json.ItemOk();
            string allmoney = json.ToString();
            return allmoney;
        }

        //分页得到开房记录
        public string GetOpenRoomRecordInfos(int start,int limit,string message)
        {
            JSONHelper json = new JSONHelper();
            json.success = true;
            string jsons = "";
            if (message == null || message.Trim().Length == 0 ||message=="开房/退房(日期/时间)/备注信息")
            {
                ds = dao.GetOpenRoomInfo(start, limit);
                foreach(DataRow dr in ds.Tables[0].Rows)
                {
                    json.AddItem("recordid", dr["recordid"].ToString());
                    json.AddItem("roomid", dr["roomid"].ToString());
                    json.AddItem("guestid", dr["guestid"].ToString());
                    json.AddItem("guestmoney", dr["guestmoney"].ToString());
                    json.AddItem("opentodaytime", dr["opentodaytime"].ToString());
                    json.AddItem("opentime", dr["opentime"].ToString());
                    json.AddItem("endtodaytime", dr["endtodaytime"].ToString());
                    json.AddItem("endtime", dr["endtime"].ToString());
                    json.AddItem("remark", dr["remark"].ToString());
                    json.ItemOk();
                }
                json.totlalCount = dao.GetAllCountOpenRoomRecord();
                jsons = json.ToString();
            }
            else
            {
                ds = dao.GetOpenRoomInfoAll(message);
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    json.AddItem("recordid", dr["recordid"].ToString());
                    json.AddItem("roomid", dr["roomid"].ToString());
                    json.AddItem("guestid", dr["guestid"].ToString());
                    json.AddItem("guestmoney", dr["guestmoney"].ToString());
后面还有 13 行代码,解锁后查看完整代码

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

AI 解读

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

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