本文整理汇总了C#中HotelVp.CMS.Domain.Entity.HotelInfoEntity类的典型用法代码示例。如果您正苦于以下问题:C# HotelInfoEntity类的具体用法?C# HotelInfoEntity怎么用?C# HotelInfoEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HotelInfoEntity类属于HotelVp.CMS.Domain.Entity命名空间,在下文中一共展示了HotelInfoEntity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}