include.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <%@page import="com.dbs.mplus.MPlusConstants"%>
  2. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  4. <%
  5. response.setHeader("Cache-Control","no-store");
  6. response.setHeader("Pragma","no-cache");
  7. response.setDateHeader("Expires",0);
  8. if (request.getProtocol().equals("HTTP/1.1")){
  9. response.setHeader("Cache-Control", "no-cache");
  10. }
  11. %>
  12. <meta property="og:type" content="website" />
  13. <meta property="og:title" content="대구파티마병원 MCare" />
  14. <meta property="og:description" content="대구파티마병원 Mcare 서비스입니다." />
  15. <meta name="format-detection" content="telephone=no" />
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  17. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=3.0" />
  18. <meta http-equiv="Expires" content="0" />
  19. <meta http-equiv="Cache-Control" content="no-cache" />
  20. <meta http-equiv="Pragma" content="no-cache" />
  21. <link rel="shortcut icon" href="<c:url value="/resources/css/images/favicon.ico" />" />
  22. <%-- <link rel="stylesheet" type="text/css" href="<c:url value="/resources/plugins/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.css" />" />
  23. <link rel="alternate stylesheet" type="text/css" href="<c:url value="/resources/plugins/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.css"/>" title="style1" media="screen"/> --%>
  24. <html>
  25. <body>
  26. <div class="modal" tabindex="-1" role="dialog" id="settingModal" style="display: none">
  27. <div class="modal-dialog" role="document" style="width: 300px">
  28. <div class="modal-content">
  29. <div class="modal-header">
  30. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  31. <h4 class="modal-title">설정</h4>
  32. </div>
  33. <div class="modal-body">
  34. <div class="text-center" style="width: 70px; margin: 0 auto;">
  35. <div class="radio3 radio-check">
  36. <input type="radio" id="settingRadio1" name="settingRadio" value="I" settingTab="입원">
  37. <label for="settingRadio1">입원</label>
  38. </div>
  39. <div class="radio3 radio-check ">
  40. <input type="radio" id="settingRadio2" name="settingRadio" value="O" settingTab="외래">
  41. <label for="settingRadio2">외래</label>
  42. </div>
  43. <div class="radio3 radio-check">
  44. <input type="radio" id="settingRadio3" name="settingRadio" value="E" settingTab="응급">
  45. <label for="settingRadio3">응급</label>
  46. </div>
  47. <div class="radio3 radio-check">
  48. <input type="radio" id="settingRadio4" name="settingRadio" value="P" settingTab="수술">
  49. <label for="settingRadio4">수술</label>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="modal-footer">
  54. <button type="button" class="btn btn-primary" id="btnSaveSetting">저장</button>
  55. <button type="button" class="btn btn-default" data-dismiss="modal">취소</button>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="modal" tabindex="-1" role="dialog" id="mplusAlert" style="display: none">
  61. <div class="modal-dialog" role="document">
  62. <div class="modal-content">
  63. <div class="modal-header">
  64. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  65. <h4 class="modal-title">알림</h4>
  66. </div>
  67. <div class="modal-body">
  68. </div>
  69. <div class="modal-footer">
  70. <button type="button" class="btn btn-success alertBtn" data-dismiss="modal">확인</button>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="modal" tabindex="-1" role="dialog" id="mplusConfirm" style="display: none">
  76. <div class="modal-dialog" role="document">
  77. <div class="modal-content">
  78. <div class="modal-header">
  79. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  80. <h4 class="modal-title">알림</h4>
  81. </div>
  82. <div class="modal-body">
  83. </div>
  84. <div class="modal-footer">
  85. <button type="button" class="btn btn-success popupCallback confirmBtn">확인</button>
  86. <button type="button" class="btn btn-default popupCancel confirmBtn" data-dismiss="modal">취소</button>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <div class="modal" tabindex="-1" role="dialog" id="mplusConsentDeleteForm" style="display: none">
  92. <div class="modal-dialog" role="document" style="width: 400px">
  93. <div class="modal-content">
  94. <div class="modal-header">
  95. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  96. <h4 class="modal-title">삭제사유</h4>
  97. </div>
  98. <div class="modal-body">
  99. <div class="text-center">
  100. <input type="text" id="txtSeq" hidden/>
  101. <div class="radio3 radio-check">
  102. <input type="radio" id="consentDeleteRadio1" name="consentDeleteRadio" value="slt1" dataReason="처방 변경으로 인한 삭제" checked>
  103. <label class="text-left" for="consentDeleteRadio1">&nbsp;처방 변경으로 인한 삭제</label>
  104. </div>
  105. <div class="radio3 radio-check">
  106. <input type="radio" id="consentDeleteRadio2" name="consentDeleteRadio" value="slt2" dataReason="중복 작성으로 인한 삭제">
  107. <label class="text-left" for="consentDeleteRadio2">&nbsp;중복 작성으로 인한 삭제</label>
  108. </div>
  109. <div class="radio3 radio-check">
  110. <input type="radio" id="consentDeleteRadio3" name="consentDeleteRadio" value="slt3" dataReason="미해당">
  111. <label class="text-left" for="consentDeleteRadio3">&nbsp;미해당</label>
  112. </div>
  113. <div class="radio3 radio-check">
  114. <input type="radio" id="consentDeleteRadio4" name="consentDeleteRadio" value="slt4">
  115. <label class="text-left" for="consentDeleteRadio4">&nbsp;직접입력</label>
  116. </div>
  117. <div>
  118. <textarea class="form-control" id="consentDeleteTextarea" readonly></textarea>
  119. </div>
  120. </div>
  121. </div>
  122. <div class="modal-footer">
  123. <button type="button" class="btn btn-success" id="btnConsentDelete">확인</button>
  124. <button type="button" class="btn btn-default" data-dismiss="modal">취소</button>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="modal" tabindex="-1" role="dialog" id="mplusConsentImageForm" style="display: none">
  130. <div class="modal-dialog" role="document" style="width: 100%">
  131. <div class="modal-content">
  132. <div class="modal-header">
  133. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  134. </div>
  135. <div class="modal-body">
  136. <div id="consentImgBox">
  137. </div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="wrap-loading" style="display: none" id="wrapLoding">
  143. <div class="loader"></div>
  144. </div>
  145. </body>
  146. </html>
  147. <script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery-2.1.4.min.js" />"></script>
  148. <script type="text/javascript">
  149. var contextPath = '${pageContext.request.contextPath}';
  150. var loginUserId = '${sessionScope.MP_USER_ID}';
  151. var loginUserName = '${sessionScope.MP_USER_NAME}';
  152. var indexPage = '${sessionScope.MP_INDEX_PAGE}';
  153. var jobKindCd = '${sessionScope.MP_JOB_KIND_CD}';
  154. var deptCd = '${sessionScope.MP_DEPT_CODE}';
  155. $(document).on('mobileinit', function() {
  156. $.mobile.ajaxEnabled = false;
  157. $.mobile.defaultPageTransition = 'none';
  158. $.mobile.page.prototype.options.domCache = false;
  159. $.mobile.selectmenu.prototype.options.nativeMenu = true;
  160. $.fn.buttonMarkup.defaults.corners = false;
  161. });
  162. $(document).on('pageloadfailed', function(e, data) {
  163. e.preventDefault();
  164. var page = $(data.xhr.responseText);
  165. $.mobile.pageContainer.empty();
  166. $.mobile.pageContainer.append(page);
  167. $.mobile.pageContainer.trigger('create');
  168. });
  169. $(document).on('pageshow', function(e, ui) {
  170. ui.prevPage.remove();
  171. });
  172. //pc 접근 제어
  173. // $(document).ready(function(){
  174. // if (/win32|win64|mac/i.test(navigator.platform.toLowerCase())) {
  175. // window.location.href = "http://www.knuh.kr/";
  176. // }
  177. // });
  178. //하단API는 추후 확인 후 제거 예정
  179. function changeLocale(lang) {
  180. location.href = location.pathname + '?' + location.search.replace(/^\?|&?_locale=../g, '').concat('&_locale=' + lang);
  181. };
  182. /**
  183. * 앱 종료
  184. */
  185. function exitApp() {
  186. /* $(".sidemenu").parent().removeClass("active"); */
  187. var mcare = new mcare_mobile();
  188. mcare.confirm(mcare.getI18n("common006"), function(confirm){
  189. if(confirm){
  190. var jsonMsg = {
  191. type : "command",
  192. functionType : "exit"
  193. };
  194. mcare.toNative(jsonMsg);
  195. }
  196. });
  197. };
  198. /**
  199. * 이전 버튼 이벤트
  200. */
  201. function triggerBackBtn(){
  202. var mcare = new mcare_mobile();
  203. if( mcare.isAndroid() ){
  204. //dialog 열려있으면 닫기
  205. if($('.modal').hasClass('in')){
  206. $('.modal').modal('hide');
  207. return;
  208. };
  209. //index 면 종료
  210. if( (window.location.href).indexOf("login.page") > 0 || (window.location.href).indexOf("first") > 0 ){
  211. exitApp();
  212. return;
  213. }
  214. history.back();
  215. }
  216. };
  217. /**
  218. * 홈버튼 이벤트
  219. */
  220. function triggerSidebarBtn(){
  221. var mcare = new mcare_mobile();
  222. //헤더 백,메뉴버튼 숨어 있으면 리턴
  223. /* if( $("#menuBars_btn,#headerArrowLeft_btn").css("display") === "none" ){
  224. return;
  225. } */
  226. if( mcare.isAndroid() ){
  227. /* $("a#menuBars_btn").trigger("click"); */
  228. }
  229. }
  230. /**
  231. * 프로그램 버전 확인
  232. */
  233. function checkProgramVersion(){
  234. $("#sidebar .ui-listview li").removeClass("active");
  235. var jsonMsg = {
  236. type : "command",
  237. functionType : "version",
  238. value : {
  239. callbackFn : "window.versionCallback"
  240. }
  241. };
  242. var mcare = new mcare_mobile();
  243. mcare.toNative(jsonMsg);
  244. };
  245. window.versionCallback = function(data){
  246. var popup = $('#mplusAlert'),
  247. callback = popup.find(".popupCallback");
  248. var alertMsg = $("<p></p>").text(data);
  249. $('#mplusAlert .modal-body').empty();
  250. $('#mplusAlert .modal-body').append(alertMsg);
  251. $('#mplusAlert').modal('show');
  252. };
  253. var strCode = "";
  254. /**
  255. * domain 저장
  256. */
  257. function setDomain( code ){
  258. var strUrl = "";
  259. if( code === "1" ){
  260. strUrl = '<%=MPlusConstants.HOSPITAL.MPLUS.getDomain()+MPlusConstants.HOSPITAL.MPLUS.getContextName()%>';
  261. strCode = '<%=MPlusConstants.HOSPITAL.MPLUS.getCode()%>';
  262. } else {
  263. strUrl = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getDomain()+MPlusConstants.HOSPITAL.MPLUS_COOK.getContextName()%>';
  264. strCode = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getCode()%>';
  265. }
  266. var obj = {
  267. "type" : "command",
  268. "functionType" : "setRecentDomain",
  269. "value" : {
  270. "url" : strUrl,
  271. "callbackFn": "window.redirectSidePage"
  272. }
  273. };
  274. try{
  275. var mcare = new mcare_mobile();
  276. mcare.toNative( obj );
  277. } catch(e) {
  278. console.log(e);
  279. }
  280. };
  281. /**
  282. * callback
  283. **/
  284. window.redirectSidePage = function(data){
  285. if( typeof data === "string" ){
  286. data = JSON.parse( data );
  287. }
  288. if( data["success"] ){
  289. if( strCode.indexOf('031') >= 0 ){
  290. window.location.href = '<%=MPlusConstants.HOSPITAL.MPLUS.getDomain() + MPlusConstants.HOSPITAL.MPLUS.getContextName() + MPlusConstants.HOSPITAL.MPLUS.getStartPage()%>';
  291. } else {
  292. window.location.href = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getDomain() + MPlusConstants.HOSPITAL.MPLUS_COOK.getContextName() + MPlusConstants.HOSPITAL.MPLUS_COOK.getStartPage()%>';
  293. }
  294. } else {
  295. mcare.alert( data["result"] );
  296. }
  297. };
  298. </script>
  299. <%-- <script type="text/javascript" src="<c:url value="/resources/plugins/jquery.mobile-1.4.5/jquery.mobile-1.4.5.min.js"/>"></script> --%>
  300. <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/font-awesome.css" />" />
  301. <link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/mobile/mcare.mobile.css" /> "/>
  302. <script type="text/javascript" src="<c:url value="/resources/plugins/jquery-number-2.1.6/jquery.number.js" /> "></script>
  303. <script type="text/javascript" src="<c:url value="/resources/js/core/mplus.core.js" /> "></script>
  304. <!-- 부트스트랩 css및 스크립트 -->
  305. <link rel="stylesheet" href="/mcare-plus/resources/plugins/bootstrap/css/bootstrap.css">
  306. <link rel="stylesheet" href="/mcare-plus/resources/plugins/bootstrap/css/bootstrap-select.min.css">
  307. <script src="/mcare-plus/resources/plugins/bootstrap/js/bootstrap-select.min.js"></script>
  308. <script src="/mcare-plus/resources/plugins/bootstrap/js/bootstrap.min.js"></script>
  309. <link href="/mcare-plus/resources/plugins/bootstrap-switch-master/css/bootstrap-switch.min.css" rel="stylesheet">
  310. <script src="/mcare-plus/resources/plugins/bootstrap-switch-master/js/bootstrap-switch.min.js"></script>
  311. <script src="/mcare-plus/resources/plugins/jssor-carousel-slider-for-bootstrap/js/jssor.slider.mini.js"></script>
  312. <link rel="stylesheet" href="/mcare-plus/resources/css/mobile/consent/common.css">
  313. <script src="/mcare-plus/resources/js/mobile/consent/common.js"></script>
  314. <script src="/mcare-plus/resources/plugins/bootstrap-datepicker/js/moment.js"></script>
  315. <script src="/mcare-plus/resources/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
  316. <link rel="stylesheet" href="/mcare-plus/resources/plugins/bootstrap-datepicker/css/datepicker.css">