Esempio n. 1
0
    protected RoomType_OnlineDetails GetRoomTypeOnlineDetails(int roomTypeId)
    {
        RoomType_OnlineDetails dtls = new RoomType_OnlineDetails();

        dtls.RoomType_ID = roomTypeId;
        dtls.SelectOne();
        return(dtls);
    }
    protected void BindRoomType_OnlineDetails(int roomType)
    {
        RoomType_OnlineDetails dtls = new RoomType_OnlineDetails();

        dtls.RoomType_ID = roomType;
        DataTable dt = dtls.SelectOne();

        if (dt.Rows.Count <= 0)
        {
            this.hidRoomTypeOnlineId.Value = "0";
            return;
        }
        this.hidRoomTypeOnlineId.Value = dt.Rows[0]["RoomType_Online_ID"].ToString();
        this.txtDescription.Text       = dt.Rows[0]["RoomType_OnlineDetails"].ToString();
    }
Esempio n. 3
0
    protected void BindRoomType_OnlineDetails(int roomType)
    {
        RoomType_OnlineDetails dtls = new RoomType_OnlineDetails();

        dtls.RoomType_ID = roomType;
        DataTable dt = dtls.SelectOne();

        if (dt.Rows.Count <= 0)
        {
            this.hidRoomTypeOnlineId.Value = "0";
            return;
        }
        this.hidRoomTypeOnlineId.Value = dt.Rows[0]["RoomType_Online_ID"].ToString();

        /*this.drpNumberOfRooms.SelectedValue = dt.Rows[0]["Number_Of_Rooms"].ToString();
         * this.drpNumberOfBedRooms.SelectedValue = dt.Rows[0]["Number_Of_BedRooms"].ToString();
         * this.drpNumberOfBathRooms.SelectedValue = dt.Rows[0]["Number_Of_Bathrooms"].ToString();
         * this.drpNumberOfLivingRooms.SelectedValue = dt.Rows[0]["Number_Of_LivingRooms"].ToString();
         * this.drpNumberOfChildren.SelectedValue = dt.Rows[0]["Number_Of_Children"].ToString();
         * this.drpNumberOfAdults.SelectedValue = dt.Rows[0]["Number_Of_Adults"].ToString();
         * this.drpNumberOfKitchens.SelectedValue = dt.Rows[0]["Number_Of_Kitchen"].ToString*/
        this.txtDescription.Text = dt.Rows[0]["RoomType_OnlineDetails"].ToString();
    }