issue#1 Remodeling roomservice ui and operating scheme.

This commit is contained in:
Paul Kim
2022-06-16 00:26:30 +09:00
parent 3a58120e00
commit 05f5d61c84
7 changed files with 1706 additions and 1804 deletions

View File

@@ -4,8 +4,8 @@
"path": "lib/hoteltv.ui_appfull.js", "path": "lib/hoteltv.ui_appfull.js",
"bookmarks": [ "bookmarks": [
{ {
"line": 3332, "line": 538,
"column": 13, "column": 22,
"label": "" "label": ""
} }
] ]

View File

@@ -234,57 +234,91 @@
<div class="hotkey_mm_blue"> <div class="hotkey_mm_blue">
<div class="owl-carousel owl-theme" id="lst_hotkey_mm_blue"></div> <div class="owl-carousel owl-theme" id="lst_hotkey_mm_blue"></div>
</div> </div>
<div class="amenity"> <div class="amenity"> </div>
<div class="title"></div>
<div class="usage"></div>
<div class="items">
<table class="table" id="item_list"></table>
</div>
<div class="buttons">
<div class="order"></div>
<div class="cancel"></div>
<div class="details"></div>
</div>
<div class="order-details">
<div class="title"></div>
<div class="usage"></div>
<div class="items">
<table class="table" id="item_list"></table>
</div>
<div class="total_amount">
<div class="title"></div>
<div class="value"></div>
</div>
</div>
</div>
<div class="roomservice"> <div class="roomservice">
<div class="menu"> <div class="menu">
<div class="title"></div> <div id="title"></div>
<div class="usage"></div> <div id="usage"></div>
<div class="items"> <div id="items">
<table class="table" id="item_list"></table> <table class="tbl_header">
<tbody id="hdr">
<tr>
<th id="type"></th>
<th id="quantity"></th>
</tr>
</tbody>
</table>
<table class="tbl_record">
<tbody id="record"></tbody>
</table>
</div> </div>
<div class="buttons"> <div id="summary">
<div class="order"></div> <div id="title"></div>
<div class="details"></div> <div id="value"></div>
<div class="cancel"></div> <div id="quantity"></div>
</div>
<div class="order-details">
<div class="title"></div>
<div class="usage"></div>
<div class="items">
<table class="table" id="item_list"></table>
</div>
<div class="total_amount">
<div class="title"></div>
<div class="value"></div>
</div> </div>
<div id="buttons">
<div id="order"></div>
<div id="details"></div>
<div id="cancel"></div>
</div> </div>
</div> </div>
<div class="description"> <div class="description">
<div class="rstitle"></div> <div id="title"></div>
<div class="rscomment"></div> <div id="comment"></div>
<div class="image"></div> <div id="thumb"></div>
</div>
<div class="cart-list">
<div id="title"></div>
<div id="usage"></div>
<div id="items">
<table class="tbl_header">
<tbody id="hdr">
<tr>
<th id="type"></th>
<th id="quantity"></th>
<th id="amount"></th>
</tr>
</tbody>
</table>
<table class="tbl_record">
<tbody id="record"></tbody>
</table>
</div>
<div id="summary">
<div id="title"></div>
<div id="quantity"></div>
<div id="amount"></div>
</div>
<div id="notice"></div>
<div id="buttons">
<div>
<div id="confirm"></div>
</div>
<div>
<div id="cancel"></div>
</div>
</div>
</div>
<div class="order-details">
<div id="title"></div>
<div id="usage"></div>
<div id="orders">
<table class="order_list">
<tbody id="record"></tbody>
</table>
</div>
<div id="summary">
<div id="title"></div>
<div id="quantity"></div>
<div id="amount"></div>
</div>
</div>
<div class="alert">
<div id="order-complete">
<div id="title"></div>
<div id="message"></div>
</div>
</div> </div>
</div> </div>
<div class="mypage"> <div class="mypage">

View File

@@ -26,10 +26,11 @@
align-content: center; align-content: center;
} }
.main .ctzgen .bg .owl-dots .owl-dot span {
/* .main .ctzgen .bg .owl-dots .owl-dot span {
width: 20px; width: 20px;
height: 20px; height: 20px;
} } */
.main .ctzgen .bg div#lst_ctzgenbg { .main .ctzgen .bg div#lst_ctzgenbg {
position: absolute; position: absolute;

File diff suppressed because it is too large Load Diff

View File

@@ -284,8 +284,29 @@ HotelTV.hcap = (function() {
* @param {dictionary} _param channel parameter * @param {dictionary} _param channel parameter
*/ */
function __hcapfxn_play_channel(_type, _param) { function __hcapfxn_play_channel(_type, _param) {
const _lutBCastType = {
'TERRESTRIAL': hcap.channel.RfBroadcastType.TERRESTRIAL,
'TERRESTRIAL_2': hcap.channel.RfBroadcastType.TERRESTRIAL_2,
'SATELLITE': hcap.channel.RfBroadcastType.SATELLITE,
'SATELLITE_2': hcap.channel.RfBroadcastType.SATELLITE_2,
'CABLE': hcap.channel.RfBroadcastType.CABLE,
'CABLE_STD': hcap.channel.RfBroadcastType.CABLE_STD,
'CABLE_HRC': hcap.channel.RfBroadcastType.CABLE_HRC,
'CABLE_IRC': hcap.channel.RfBroadcastType.CABLE_IRC,
'ANALOG_PAL_BG': hcap.channel.RfBroadcastType.ANALOG_PAL_BG,
'ANALOG_PAL_DK': hcap.channel.RfBroadcastType.ANALOG_PAL_DK,
'ANALOG_PAL_I': hcap.channel.RfBroadcastType.ANALOG_PAL_I,
'ANALOG_PAL_M': hcap.channel.RfBroadcastType.ANALOG_PAL_M,
'ANALOG_PAL_N': hcap.channel.RfBroadcastType.ANALOG_PAL_N,
'ANALOG_SECAM_BG': hcap.channel.RfBroadcastType.ANALOG_SECAM_BG,
'ANALOG_SECAM_DK': hcap.channel.RfBroadcastType.ANALOG_SECAM_DK,
'ANALOG_SECAM_L': hcap.channel.RfBroadcastType.ANALOG_SECAM_L,
'ANALOG_NTSC': hcap.channel.RfBroadcastType.ANALOG_NTSC,
'TERRESTRIAL_ATSC3': hcap.channel.RfBroadcastType.TERRESTRIAL_ATSC3,
'CABLE_ATSC3': hcap.channel.RfBroadcastType.CABLE_ATSC3,
}
// IP channel class 2 change request // IP channel class 2 change request
if (_type === "ip") { if (_type === "ipstream" || _type === "encoder") {
hcap.channel.requestChangeCurrentChannel({ hcap.channel.requestChangeCurrentChannel({
"channelType": hcap.channel.ChannelType.IP, "channelType": hcap.channel.ChannelType.IP,
"ip": _param.ip, "ip": _param.ip,
@@ -298,12 +319,14 @@ HotelTV.hcap = (function() {
console.log("onFailure : errorMessage = " + f.errorMessage); console.log("onFailure : errorMessage = " + f.errorMessage);
} }
}); });
} else if (_type === "rf_analog_ntsc") { } else if (_type === "ptcrf") {
if (_param.rf.type == "CABLE") {
hcap.channel.requestChangeCurrentChannel({ hcap.channel.requestChangeCurrentChannel({
"channelType": hcap.channel.ChannelType.RF, "channelType": hcap.channel.ChannelType.RF,
"majorNumber": _param.major, "majorNumber": _param.rf.major,
"minorNumber": _param.minor, "minorNumber": _param.rf.minor,
"rfBroadcastType": hcap.channel.RfBroadcastType.ANALOG_NTSC, "plpId": 0,
"rfBroadcastType": _lutBCastType[_param.rf.type],
"onSuccess": function() { "onSuccess": function() {
console.log("onSuccess"); console.log("onSuccess");
}, },
@@ -311,6 +334,11 @@ HotelTV.hcap = (function() {
console.log("onFailure : errorMessage = " + f.errorMessage); console.log("onFailure : errorMessage = " + f.errorMessage);
} }
}); });
} else {
console.log("Unsupported RF type:" + _param.rf.type);
}
} else {
console.log("Unsupported type:" + _type);
} }
} }
@@ -775,7 +803,8 @@ HotelTV.hcap = (function() {
let _netCfg = _devconfig[_cfg]; let _netCfg = _devconfig[_cfg];
/* Note: /* Note:
동작 스킴 동작 스킴
1. WLAN이 HOST모드이면 이 디바이스는 WIFI로 접속 1. WLAN이 HOST모드이면 이 디바이스는 WIFI는 독립 AP로 활용
2. WLAN이 NAT나 BRIDGE모드이면 이 디바이스는 WIFI로 접속
2. 그외의 경우 ETH0를 통한 네트워크 접속 수행 */ 2. 그외의 경우 ETH0를 통한 네트워크 접속 수행 */
/* Wireless Network Configuration */ /* Wireless Network Configuration */
if ('wlan0' in _netCfg) { if ('wlan0' in _netCfg) {
@@ -790,37 +819,37 @@ HotelTV.hcap = (function() {
console.log(`Net Cfg enabled: ${_wlan_cfg.name}`); console.log(`Net Cfg enabled: ${_wlan_cfg.name}`);
if (_wlan_cfg.apMode == 'nat') { if (_wlan_cfg.apMode == 'nat') {
hcap.network.setSoftAP({ // hcap.network.setSoftAP({
"channel": Number(_wlan_cfg.channel), // "channel": Number(_wlan_cfg.channel),
"signalStrength": Number(_wlan_cfg.signalStrength), // "signalStrength": Number(_wlan_cfg.signalStrength),
"vlanId": 0, // "vlanId": 0,
"vlanIp": _wlan_cfg.ipaddr, // "vlanIp": _wlan_cfg.ipaddr,
"vlanSubnet": _wlan_cfg.subnet, // "vlanSubnet": _wlan_cfg.subnet,
"vlanGateway": _wlan_cfg.gateway, // "vlanGateway": _wlan_cfg.gateway,
"mode": "nat", // "mode": "nat",
"securityType": (_wlan_cfg.securityType == "open") ? "open" : "psk", // "securityType": (_wlan_cfg.securityType == "open") ? "open" : "psk",
"onSuccess": function(s) { // "onSuccess": function(s) {
console.log("onSuccess"); // console.log("onSuccess");
}, // },
"onFailure": function(f) { // "onFailure": function(f) {
console.log("onFailure : errorMessage = " + f.errorMessage); // console.log("onFailure : errorMessage = " + f.errorMessage);
} // }
}); // });
} else if (_wlan_cfg.apMode == 'bridge') { } else if (_wlan_cfg.apMode == 'bridge') {
// mode : bridge, securityType : psk // mode : bridge, securityType : psk
hcap.network.setSoftAP({ // hcap.network.setSoftAP({
"channel": Number(_wlan_cfg.channel), // "channel": Number(_wlan_cfg.channel),
"vlanId": 0, // "vlanId": 0,
"signalStrength": Number(_wlan_cfg.signalStrength), // "signalStrength": Number(_wlan_cfg.signalStrength),
"mode": "bridge", // "mode": "bridge",
"securityType": (_wlan_cfg.securityType == "open") ? "open" : "psk", // "securityType": (_wlan_cfg.securityType == "open") ? "open" : "psk",
"onSuccess": function(s) { // "onSuccess": function(s) {
console.log("onSuccess"); // console.log("onSuccess");
}, // },
"onFailure": function(f) { // "onFailure": function(f) {
console.log("onFailure : errorMessage = " + f.errorMessage); // console.log("onFailure : errorMessage = " + f.errorMessage);
} // }
}); // });
} else if (_wlan_cfg.apMode == 'host') { } else if (_wlan_cfg.apMode == 'host') {
console.log(`Net Cfg failed: ${_wlan_cfg.name} Unsupported mode at the moment!!!`); console.log(`Net Cfg failed: ${_wlan_cfg.name} Unsupported mode at the moment!!!`);
} }

View File

@@ -539,39 +539,39 @@ HotelTV.LoadAppFull = async function() {
//STEP#03: INIT HCAP for HotelTV FullAPP //STEP#03: INIT HCAP for HotelTV FullAPP
let tmrAppAuth = setInterval(async function() { // let tmrAppAuth = setInterval(async function() {
let _foundNetflix = false; // let _foundNetflix = false;
let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false); // let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false);
HotelTV.state['hcap_app'] = _hcapAppInfo.applist; // HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) { // for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
if (HotelTV.state['hcap_app'][_i].title == "Netflix") { // if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
console.log("Found out netflix among of pre hcap app-list.") // console.log("Found out netflix among of pre hcap app-list.")
clearInterval(tmrAppAuth); // clearInterval(tmrAppAuth);
} // }
} // }
if (_foundNetflix == false) { // if (_foundNetflix == false) {
try { // try {
let siAppToken = null; // let siAppToken = null;
let siAppName = null; // let siAppName = null;
// siApp Token Authentication // // siApp Token Authentication
let _progam = HotelTV.tvguide.program; // let _progam = HotelTV.tvguide.program;
for (let _i = 1; _i <= _progam.length; _i++) { // for (let _i = 1; _i <= _progam.length; _i++) {
if (_progam[_i].type == "application" && _progam[_i].service == "netflix") { // if (_progam[_i].type == "application" && _progam[_i].service == "netflix") {
siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download); // siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download);
siAppName = _progam[_i].service; // siAppName = _progam[_i].service;
//siAppToken = _progam[_i].service; // //siAppToken = _progam[_i].service;
if (siAppName && siAppToken) { // if (siAppName && siAppToken) {
HotelTV.hcap.siAppAuth(siAppName, siAppToken, false); // HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
} // }
} // }
} // }
} catch (_error) { // } catch (_error) {
console.log("Display Error page for get siApp Auth"); // console.log("Display Error page for get siApp Auth");
} // }
} // }
}, 5000); // }, 5000);
//STEP#05: Set Display size //STEP#05: Set Display size

File diff suppressed because it is too large Load Diff