• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Entity.HotelInfoEntity类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中HotelVp.CMS.Domain.Entity.HotelInfoEntity的典型用法代码示例。如果您正苦于以下问题:C# HotelInfoEntity类的具体用法?C# HotelInfoEntity怎么用?C# HotelInfoEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HotelInfoEntity类属于HotelVp.CMS.Domain.Entity命名空间,在下文中一共展示了HotelInfoEntity类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CheckApproveUser

    public bool CheckApproveUser(string UserID, int iType)
    {
        messageContent.InnerHtml = "";
        HotelInfoEntity _hotelinfoEntity = new HotelInfoEntity();
        _hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        _hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        _hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        _hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        _hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();
        hotelInfoDBEntity.SalesID = UserID;
        _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
        DataSet dsResult = HotelInfoBP.CheckApproveUser(_hotelinfoEntity).QueryResult;

        if (dsResult.Tables.Count == 0 || dsResult.Tables[0].Rows.Count == 0)
        {
            messageContent.InnerHtml = "该用户非订单审核人员,请确认!";
            return false;
        }

        if (iType == 1)
        {
            dsResult = HotelInfoBP.CheckApproveUserBandHotel(_hotelinfoEntity).QueryResult;
            if (dsResult.Tables.Count == 0 || dsResult.Tables[0].Rows.Count == 0)
            {
                messageContent.InnerHtml = "该订单审核人员未绑定酒店,请确认!";
                return false;
            }
        }

        return true;
    }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:33,代码来源:OrderDBApprovedFax.aspx.cs


示例2: GetHotelList

        public static HotelInfoEntity GetHotelList(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar),
                                    new OracleParameter("CITYID",OracleType.VarChar),
                                    new OracleParameter("TRADEAREAID",OracleType.VarChar),
                                    new OracleParameter("SALES",OracleType.VarChar),
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            if (string.IsNullOrEmpty(dbParm.HotelID))
                parm[0].Value = DBNull.Value;
            else
                parm[0].Value = dbParm.HotelID;

            if (string.IsNullOrEmpty(dbParm.City))
                parm[1].Value = DBNull.Value;
            else
                parm[1].Value = dbParm.City;

            if (string.IsNullOrEmpty(dbParm.AreaID))
                parm[2].Value = DBNull.Value;
            else
                parm[2].Value = dbParm.AreaID;

            if (string.IsNullOrEmpty(dbParm.SalesID))
                parm[3].Value = DBNull.Value;
            else
                parm[3].Value = dbParm.SalesID;

            hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelPlanInfo", "t_lm_b_hotelplan_search_list", false, parm);
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:32,代码来源:HotelPlanInfoDA.cs


示例3: BedTypeListSelect

        public static HotelInfoEntity BedTypeListSelect(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("KEYWORD",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();

            if (!String.IsNullOrEmpty(dbParm.KeyWord))
            {
                parm[0].Value = dbParm.KeyWord;
            }
            else
            {
                parm[0].Value = DBNull.Value;
            }

            DataSet dsResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_room_bed_select", false, parm);

            if (dsResult.Tables.Count > 0 && dsResult.Tables[0].Rows.Count > 0)
            {
                Hashtable alNm = GetBedTagNm();
                for (int i = 0; i < dsResult.Tables[0].Rows.Count; i++)
                {
                    dsResult.Tables[0].Rows[i]["BEDTG"] = SetBedTagNm(dsResult.Tables[0].Rows[i]["bed_tag"].ToString(), alNm);
                }
            }

            hotelInfoEntity.QueryResult = dsResult;
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:30,代码来源:HotelInfoDA.cs


示例4: BindHotelList

        public static HotelInfoEntity BindHotelList(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.HotelID;

            hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_hotelinfo_bind", false, parm);
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:11,代码来源:HotelInfoDA.cs


示例5: BedTypeListDetail

        public static HotelInfoEntity BedTypeListDetail(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("BEDCD",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.BedCode;

            hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_room_bed_detail", false, parm);
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:11,代码来源:HotelInfoDA.cs


示例6: BindUpdatePrRoomData

        public static HotelInfoEntity BindUpdatePrRoomData(HotelInfoEntity hotelInfoEntity)
        {
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            OracleParameter[] dlmParm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar),
                                    new OracleParameter("PRICECD",OracleType.VarChar)
                                };
            dlmParm[0].Value = dbParm.HotelID;
            dlmParm[1].Value = dbParm.PriceCode;

            hotelInfoEntity.QueryResult = DbManager.Query("HotelInfo", "t_price_room_list", false, dlmParm);
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:13,代码来源:HotelInfoDA.cs


示例7: SetBDlonglatTude

    public static string SetBDlonglatTude(string Longitude, string Latitude)
    {
        HotelInfoEntity hotelinfoEntity = new HotelInfoEntity();
        hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();
        hotelInfoDBEntity.Longitude = Longitude;
        hotelInfoDBEntity.Latitude = Latitude;
        hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
        return HotelInfoBP.SetBDlonglatTude(hotelinfoEntity);
    }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:15,代码来源:HotelInfoManager.aspx.cs


示例8: BindBalanceRoomList

    /// <summary>
    /// 生成房型列表 -- Oracle
    /// </summary>
    /// <param name="strHotelID"></param>
    public static DataSet BindBalanceRoomList(string strHotelID)
    {
        HotelInfoEntity _hotelinfoEntity = new HotelInfoEntity();
        _hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        _hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        _hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        _hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        _hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();

        hotelInfoDBEntity.HotelID = strHotelID;//酒店ID
        _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
        DataSet dsResult = HotelInfoBP.GetBalanceRoomListByHotel(_hotelinfoEntity).QueryResult;
        return dsResult;
    }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:20,代码来源:HotelConsultingRoomAllAsyncTable.aspx.cs


示例9: BedTypeListSelect

        public static HotelInfoEntity BedTypeListSelect(HotelInfoEntity hotelInfoEntity)
        {
            hotelInfoEntity.LogMessages.MsgType = MessageType.INFO;
            hotelInfoEntity.LogMessages.Content = _nameSpaceClass + "BedTypeListSelect";
            LoggerHelper.LogWriter(hotelInfoEntity.LogMessages);

            try
            {
                return HotelInfoDA.BedTypeListSelect(hotelInfoEntity);
            }
            catch (Exception ex)
            {
                hotelInfoEntity.LogMessages.MsgType = MessageType.ERROR;
                hotelInfoEntity.LogMessages.Content = _nameSpaceClass + "BedTypeListSelect  Error: " + ex.Message;
                LoggerHelper.LogWriter(hotelInfoEntity.LogMessages);
                throw ex;
            }
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:18,代码来源:HotelInfoBP.cs


示例10: GetBindLmbarPlanList

    /// <summary>
    /// 根据时间段  HotelID 取计划  --  接口 
    /// </summary>
    /// <param name="startDate"></param>
    /// <param name="endDate"></param>
    /// <param name="strHotelID"></param>
    /// <returns></returns>
    public static DataSet GetBindLmbarPlanList(string startDate, string endDate, string strHotelID)
    {
        HotelInfoEntity _hotelinfoEntity = new HotelInfoEntity();
        _hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        _hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        _hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        _hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        _hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();
        hotelInfoDBEntity.HotelID = strHotelID;
        hotelInfoDBEntity.SalesStartDT = startDate;
        hotelInfoDBEntity.SalesEndDT = endDate;
        _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);

        DataSet dsResult = HotelInfoBP.GetPlanListByIndiscriminatelyRateCode(_hotelinfoEntity).QueryResult;

        return dsResult;
    }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:26,代码来源:HotelConsultingRoomAllAsyncTable.aspx.cs


示例11: GetHotel

    public static DataTable GetHotel(string hotelID, string cityID, string areaID, string SalesID)
    {
        DataTable dtResult = new DataTable();
        HotelInfoEntity _hotelinfoEntity = new HotelInfoEntity();
        _hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        _hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        _hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        _hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        _hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();

        hotelInfoDBEntity.HotelID = hotelID == "" ? "" : hotelID.Substring((hotelID.IndexOf('[') + 1), (hotelID.IndexOf(']') - 1));//酒店ID
        hotelInfoDBEntity.City = cityID == "" ? "" : cityID.Substring((cityID.IndexOf('[') + 1), (cityID.IndexOf(']') - 1)); //"";//城市ID
        hotelInfoDBEntity.Bussiness = areaID == "" ? "" : areaID.Substring((areaID.IndexOf('[') + 1), (areaID.IndexOf(']') - 1));//"";//商圈ID
        hotelInfoDBEntity.SalesID = SalesID == "" ? "" : SalesID.Substring((SalesID.IndexOf('[') + 1), (SalesID.IndexOf(']') - 1));//"";//销售

        _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
        dtResult = HotelPlanInfoBP.GetHotelList(_hotelinfoEntity).QueryResult.Tables[0];

        return dtResult;
    }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:22,代码来源:HotelSalesPlanSearchPage.aspx.cs


示例12: GetBalHotelRoomList

        public static HotelInfoEntity GetBalHotelRoomList(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.HotelID;
            hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balanceroom_proomlist", true, parm);

            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:11,代码来源:HotelInfoDA.cs


示例13: GetBalanceRoomListByHotelAndPriceCode

        public static HotelInfoEntity GetBalanceRoomListByHotelAndPriceCode(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar),
                                    new OracleParameter("PRICECODE",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.HotelID;
            parm[1].Value = dbParm.PriceCode;
            hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balancerom_byhotelandpricecode", true, parm);

            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:13,代码来源:HotelInfoDA.cs


示例14: GetBalanceRoomHistory

        public static HotelInfoEntity GetBalanceRoomHistory(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar),
                                    new OracleParameter("ROOMCD",OracleType.VarChar),
                                    new OracleParameter("STARTDT",OracleType.VarChar),
                                    new OracleParameter("ENDDT",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.HotelID;

            if (String.IsNullOrEmpty(dbParm.HRoomList))
            {
                parm[1].Value = DBNull.Value;
            }
            else
            {
                parm[1].Value = dbParm.HRoomList;
            }

            if (String.IsNullOrEmpty(dbParm.InDateFrom))
            {
                parm[2].Value = DBNull.Value;
            }
            else
            {
                parm[2].Value = dbParm.InDateFrom;
            }

            if (String.IsNullOrEmpty(dbParm.InDateTo))
            {
                parm[3].Value = DBNull.Value;
            }
            else
            {
                parm[3].Value = dbParm.InDateTo;
            }

            DataSet dsResult = new DataSet();
            DataSet dsRoomList = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balancerom_roomlist", true, parm);
            DataSet dsDataList = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balancerom_select", true, parm);
            int iLmCount = 0;
            string Cols = string.Empty;
            dsResult.Tables.Add(new DataTable());
            dsResult.Tables[0].Columns.Add("EFFECTDT");
            foreach (DataRow drCol in dsRoomList.Tables[0].Rows)
            {
                if ("LMBAR".Equals(drCol["rate_code"].ToString().ToUpper()))
                {
                    iLmCount = iLmCount + 1;
                }

                dsResult.Tables[0].Columns.Add(drCol["rate_code"].ToString().ToUpper() + "-" + drCol["room_type_code"].ToString().ToUpper());
                Cols = Cols + GetColsNameByRoomTypeCode(dbParm.HotelID, drCol["room_type_code"].ToString()) + ",";
            }

            string strDate = string.Empty;
            foreach (DataRow drVal in dsDataList.Tables[0].Rows)
            {
                if (!strDate.Equals(drVal["EFFECTDATE"].ToString()))
                {
                    strDate = drVal["EFFECTDATE"].ToString();
                    DataRow[] drList = dsDataList.Tables[0].Select("EFFECTDATE='" + strDate + "'");

                    if (drList.Count() == 0)
                    {
                        continue;
                    }

                    DataRow drRow = dsResult.Tables[0].NewRow();
                    drRow["EFFECTDT"] = strDate;
                    string strColNM = string.Empty;
                    foreach (DataRow drTemp in drList)
                    {
                        strColNM = drTemp["rate_code"].ToString().ToUpper() + "-" + drTemp["room_type_code"].ToString().ToUpper();
                        drRow[strColNM] = ("42".Equals(drTemp["commision_mode"].ToString())) ? drTemp["commision"].ToString() + "%" : drTemp["commision"].ToString() + "元";
                    }
                    dsResult.Tables[0].Rows.Add(drRow);
                }
            }

            dsResult.Tables[0].Columns["EFFECTDT"].ColumnName = "日期/房型";
            hotelInfoEntity.LMCount = iLmCount;
            hotelInfoEntity.LM2Count = dsResult.Tables[0].Columns.Count - iLmCount - 1;
            hotelInfoEntity.Cols = Cols.Trim(',');
            hotelInfoEntity.QueryResult = dsResult;
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:88,代码来源:HotelInfoDA.cs


示例15: ExportBalanceRoomHistory

        public static HotelInfoEntity ExportBalanceRoomHistory(HotelInfoEntity hotelInfoEntity)
        {
            OracleParameter[] parm ={
                                    new OracleParameter("HOTELID",OracleType.VarChar),
                                    new OracleParameter("ROOMCD",OracleType.VarChar),
                                    new OracleParameter("STARTDT",OracleType.VarChar),
                                    new OracleParameter("ENDDT",OracleType.VarChar)
                                };
            HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
            parm[0].Value = dbParm.HotelID;

            if (String.IsNullOrEmpty(dbParm.HRoomList))
            {
                parm[1].Value = DBNull.Value;
            }
            else
            {
                parm[1].Value = dbParm.HRoomList;
            }

            if (String.IsNullOrEmpty(dbParm.InDateFrom))
            {
                parm[2].Value = DBNull.Value;
            }
            else
            {
                parm[2].Value = dbParm.InDateFrom;
            }

            if (String.IsNullOrEmpty(dbParm.InDateTo))
            {
                parm[3].Value = DBNull.Value;
            }
            else
            {
                parm[3].Value = dbParm.InDateTo;
            }

            DataSet dsResult = new DataSet();
            DataSet dsRoomList = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balancerom_roomlist", true, parm);
            DataSet dsDataList = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_balancerom_select", true, parm);

            System.Collections.Hashtable htRoomNm = new System.Collections.Hashtable();
            dsResult.Tables.Add(new DataTable());
            dsResult.Tables[0].Columns.Add("EFFECTDT");
            foreach (DataRow drCol in dsRoomList.Tables[0].Rows)
            {
                dsResult.Tables[0].Columns.Add(drCol["rate_code"].ToString().ToUpper() + "-" + drCol["room_type_code"].ToString().ToUpper());

                if (!htRoomNm.ContainsKey(drCol["rate_code"].ToString().ToUpper() + "-" + drCol["room_type_code"].ToString().ToUpper()))
                {
                    htRoomNm.Add(drCol["rate_code"].ToString().ToUpper() + "-" + drCol["room_type_code"].ToString().ToUpper(), GetColsNameByRoomTypeCode(dbParm.HotelID, drCol["room_type_code"].ToString()));
                }
            }

            string strDate = string.Empty;
            foreach (DataRow drVal in dsDataList.Tables[0].Rows)
            {
                if (!strDate.Equals(drVal["EFFECTDATE"].ToString()))
                {
                    strDate = drVal["EFFECTDATE"].ToString();
                    DataRow[] drList = dsDataList.Tables[0].Select("EFFECTDATE='" + strDate + "'");

                    if (drList.Count() == 0)
                    {
                        continue;
                    }

                    DataRow drRow = dsResult.Tables[0].NewRow();
                    drRow["EFFECTDT"] = strDate;
                    string strColNM = string.Empty;
                    foreach (DataRow drTemp in drList)
                    {
                        strColNM = drTemp["rate_code"].ToString().ToUpper() + "-" + drTemp["room_type_code"].ToString().ToUpper();
                        drRow[strColNM] = ("42".Equals(drTemp["commision_mode"].ToString())) ? drTemp["commision"].ToString() + "%" : drTemp["commision"].ToString() + "元";
                    }
                    dsResult.Tables[0].Rows.Add(drRow);
                }
            }

            dsResult.Tables[0].Columns["EFFECTDT"].ColumnName = "日期/房型";

            for (int i = 1; i < dsResult.Tables[0].Columns.Count; i++)
            {
                dsResult.Tables[0].Columns[i].ColumnName = dsResult.Tables[0].Columns[i].ColumnName.Substring(0, dsResult.Tables[0].Columns[i].ColumnName.IndexOf('-') + 1) + htRoomNm[dsResult.Tables[0].Columns[i].ColumnName].ToString();
            }

            hotelInfoEntity.QueryResult = dsResult;
            return hotelInfoEntity;
        }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:90,代码来源:HotelInfoDA.cs


示例16: CheckUpdate

 public static bool CheckUpdate(HotelInfoEntity hotelInfoEntity)
 {
     HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
     DataCommand cmd = DataCommandManager.GetDataCommand("CheckUpdateSalesID");
     cmd.SetParameterValue("@UserCode", dbParm.SalesID);
     string RoleID = (String.IsNullOrEmpty(ConfigurationManager.AppSettings["SalesRoleID"])) ? "5" : ConfigurationManager.AppSettings["SalesRoleID"].ToString().Trim();
     cmd.SetParameterValue("@RoleID", RoleID);
     DataSet dsResult = cmd.ExecuteDataSet();
     if (dsResult.Tables.Count > 0 && dsResult.Tables[0].Rows.Count > 0)
     {
         return true;
     }
     return false;
 }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:14,代码来源:HotelInfoDA.cs


示例17: CommonProvincialSelect

 public static HotelInfoEntity CommonProvincialSelect(HotelInfoEntity hotelInfoEntity)
 {
     hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_common_provinciallist", false);
     return hotelInfoEntity;
 }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:5,代码来源:HotelInfoDA.cs


示例18: getHotelLists

    public void getHotelLists()
    {
        messageContent.InnerHtml = "";

        DataTable dtResult = new DataTable();
        HotelInfoEntity _hotelinfoEntity = new HotelInfoEntity();
        _hotelinfoEntity.LogMessages = new HotelVp.Common.Logger.LogMessage();
        _hotelinfoEntity.LogMessages.Userid = UserSession.Current.UserAccount;
        _hotelinfoEntity.LogMessages.Username = UserSession.Current.UserDspName;
        _hotelinfoEntity.LogMessages.IpAddress = UserSession.Current.UserIP;

        _hotelinfoEntity.HotelInfoDBEntity = new List<HotelInfoDBEntity>();
        HotelInfoDBEntity hotelInfoDBEntity = new HotelInfoDBEntity();
        string strOrderID = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OrderID"].ToString())) ? null : ViewState["OrderID"].ToString();
        string strfaxNum = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["FaxNum"].ToString())) ? null : ViewState["FaxNum"].ToString();

        if (!String.IsNullOrEmpty(strOrderID) || !String.IsNullOrEmpty(strfaxNum))
        {
            //hotelInfoDBEntity.Type = ddpSort.SelectedValue;
            hotelInfoDBEntity.OrderID = strOrderID;
            hotelInfoDBEntity.FaxNum = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["FaxNum"].ToString())) ? null : ViewState["FaxNum"].ToString();

            //hotelInfoDBEntity.OutStartDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutStartDate"].ToString())) ? null : ViewState["OutStartDate"].ToString();
            //hotelInfoDBEntity.OutEndDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutEndDate"].ToString())) ? null : ViewState["OutEndDate"].ToString();

            _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
            dtResult = HotelInfoBP.GetOrderApproveHotelFaxList(_hotelinfoEntity).QueryResult.Tables[0];

            if (dtResult.Rows.Count == 0)
            {
                messageContent.InnerHtml = "无订单审核,请确认!";
            }
        }
        else if (!String.IsNullOrEmpty(hidSelectCity.Value) || !String.IsNullOrEmpty(hidSelectHotel.Value) || !String.IsNullOrEmpty(hidSelectBussiness.Value))
        {
            if (!String.IsNullOrEmpty(hidSelectHotel.Value))
            {
                if (!hidSelectHotel.Value.Trim().Contains("[") || !hidSelectHotel.Value.Trim().Contains("]"))
                {
                    messageContent.InnerHtml = "查询失败,选择酒店不合法,请修改!";
                    ScriptManager.RegisterStartupScript(this.UpdatePanel5, this.GetType(), "updateScript", "BtnCompleteStyle();", true);
                    return;
                }
            }
            if (!String.IsNullOrEmpty(hidSelectCity.Value))
            {
                if (!hidSelectCity.Value.Trim().Contains("[") || !hidSelectCity.Value.Trim().Contains("]"))
                {
                    messageContent.InnerHtml = "查询失败,选择城市不合法,请修改!";
                    ScriptManager.RegisterStartupScript(this.UpdatePanel5, this.GetType(), "updateScript", "BtnCompleteStyle();", true);
                    return;
                }
            }
            if (!String.IsNullOrEmpty(hidSelectBussiness.Value))
            {
                if (!hidSelectBussiness.Value.Trim().Contains("[") || !hidSelectBussiness.Value.Trim().Contains("]"))
                {
                    messageContent.InnerHtml = "查询失败,选择商圈不合法,请修改!";
                    ScriptManager.RegisterStartupScript(this.UpdatePanel5, this.GetType(), "updateScript", "BtnCompleteStyle();", true);
                    return;
                }
            }

            string OutStartDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutStartDate"].ToString())) ? null : ViewState["OutStartDate"].ToString();
            string OutEndDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutEndDate"].ToString())) ? null : ViewState["OutEndDate"].ToString();
            if (String.IsNullOrEmpty(OutStartDate) && String.IsNullOrEmpty(OutEndDate))
            {
                messageContent.InnerHtml = "查询失败,请选择离店日期!";
                ScriptManager.RegisterStartupScript(this.UpdatePanel5, this.GetType(), "updateScript", "BtnCompleteStyle();", true);
                return;
            }
            //ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "setsalesroomKeysOne", "SetSalesRoom('')", true);
            hotelInfoDBEntity.City = hidSelectCity.Value == "" ? "" : hidSelectCity.Value.Substring((hidSelectCity.Value.IndexOf('[') + 1), (hidSelectCity.Value.IndexOf(']') - 1)); //"";//城市ID
            hotelInfoDBEntity.HotelID = hidSelectHotel.Value == "" ? "" : hidSelectHotel.Value.Substring((hidSelectHotel.Value.IndexOf('[') + 1), (hidSelectHotel.Value.IndexOf(']') - 1));//"";//酒店ID
            hotelInfoDBEntity.Bussiness = hidSelectBussiness.Value == "" ? "" : hidSelectBussiness.Value.Substring((hidSelectBussiness.Value.IndexOf('[') + 1), (hidSelectBussiness.Value.IndexOf(']') - 1));//"";//商圈ID
            //hotelInfoDBEntity.Type = ddpSort.SelectedValue;
            //hotelInfoDBEntity.InDateFrom = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutStartDate"].ToString())) ? null : ViewState["OutStartDate"].ToString();
            //hotelInfoDBEntity.InDateTo = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutEndDate"].ToString())) ? null : ViewState["OutEndDate"].ToString();

            hotelInfoDBEntity.OutStartDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutStartDate"].ToString())) ? null : ViewState["OutStartDate"].ToString();
            hotelInfoDBEntity.OutEndDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutEndDate"].ToString())) ? null : ViewState["OutEndDate"].ToString();

            //hotelInfoDBEntity.OutDate = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["OutDateTime"].ToString())) ? null : ViewState["OutDateTime"].ToString();
            hotelInfoDBEntity.OrderID = strOrderID;
            hotelInfoDBEntity.AuditStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["AuditStatus"].ToString())) ? null : ViewState["AuditStatus"].ToString();
            hotelInfoDBEntity.ADStatsBack = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["ADStatsBack"].ToString())) ? null : ViewState["ADStatsBack"].ToString();

            hotelInfoDBEntity.FaxNum = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["FaxNum"].ToString())) ? null : ViewState["FaxNum"].ToString();
            hotelInfoDBEntity.FaxStatus = (ViewState.Count == 0 || String.IsNullOrEmpty(ViewState["FaxStatus"].ToString())) ? null : ViewState["FaxStatus"].ToString();

            _hotelinfoEntity.HotelInfoDBEntity.Add(hotelInfoDBEntity);
            dtResult = HotelInfoBP.GetOrderApproveHotelFaxList(_hotelinfoEntity).QueryResult.Tables[0];

            if (dtResult.Rows.Count == 0)
            {
                messageContent.InnerHtml = "无订单审核,请确认!";
            }
        }
        else
        {
//.........这里部分代码省略.........
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:101,代码来源:OrderDBApprovedFax.aspx.cs


示例19: CommonHotelGroupSelect

 public static HotelInfoEntity CommonHotelGroupSelect(HotelInfoEntity hotelInfoEntity)
 {
     hotelInfoEntity.QueryResult = HotelVp.Common.DBUtility.DbManager.Query("HotelInfo", "t_lm_b_common_hotelgrouplist", false);
     return hotelInfoEntity;
 }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:5,代码来源:HotelInfoDA.cs


示例20: ClearDApproveData

 public static DataSet ClearDApproveData(HotelInfoEntity hotelInfoEntity, DataSet dsHotel, DataSet dsOrder)
 {
     HotelInfoDBEntity dbParm = (hotelInfoEntity.HotelInfoDBEntity.Count > 0) ? hotelInfoEntity.HotelInfoDBEntity[0] : new HotelInfoDBEntity();
     if (dsHotel.Tables.Count > 0 && dsHotel.Tables[0].Rows.Count > 0 && !String.IsNullOrEmpty(dbParm.ADStatsBack))
     {
         for (int i = dsHotel.Tables[0].Rows.Count - 1; i >= 0; i--)
         {
             if (!RefushDApproveData(hotelInfoEntity, dsHotel.Tables[0].Rows[i], dsOrder))
             {
                 dsHotel.Tables[0].Rows.RemoveAt(i);
             }
         }
     }
     return dsHotel;
 }
开发者ID:WuziyiaoKingIris20140501,项目名称:KFC,代码行数:15,代码来源:HotelInfoDA.cs



注:本文中的HotelVp.CMS.Domain.Entity.HotelInfoEntity类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Entity.LmSystemLogEntity类代码示例发布时间:2022-05-26
下一篇:
C# Entity.APPContentEntity类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap