SMMMB01100_개인환경설정등록.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>환경설정등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <envinfo>
  11. <envestbansw>
  12. <envestbanswlist/>
  13. </envestbansw>
  14. <userenvestbinfo>
  15. <qestcd/>
  16. <qestnm/>
  17. <supqestcd/>
  18. <rmk/>
  19. <helpfile/>
  20. <sortseq/>
  21. <status/>
  22. </userenvestbinfo>
  23. </envinfo>
  24. <cond>
  25. <qestcd/>
  26. <qestnm/>
  27. </cond>
  28. <interface>
  29. <answval/>
  30. <qestcd/>
  31. <baseanswvalflag/>
  32. <answvalnm/>
  33. </interface>
  34. <admininfo/>
  35. <init>
  36. </init>
  37. <userenvestb>
  38. <userenvestblist/>
  39. </userenvestb>
  40. </main>
  41. <send>
  42. <qestcd/>
  43. <userid/>
  44. <deptcd/>
  45. <hardcodeno/>
  46. <savedata>
  47. <userenvestbinfo/>
  48. </savedata>
  49. </send>
  50. <temp/>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fInitialize_SMMMB01100();
  56. //alert(opener.model.getValue(opener.root.properties.actscreen));
  57. ]]>
  58. </script>
  59. <submission id="TRMMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/userenvestb/userenvestblist"/>
  60. <submission id="TRMMB01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/envinfo"/>
  61. <submission id="TRMMB01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/interface"/>
  62. <submission id="TRMMB01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hardcode"/>
  63. <submission id="TXMMB01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/envinfo"/>
  64. <submission id="TXMMB01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  65. <submission id="TXMMB01104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  66. <submission id="TXMMB01105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  67. <bind id="bind1" ref="/root/main/envinfo/envestbansw/envestbanswlist/hostyn" readonly="(/root/main/admininfo != &quot;Y&quot;)"/>
  68. <bind id="bind2" ref="/root/main/envinfo/envestbansw/envestbanswlist/answval" readonly="(/root/main/admininfo != &quot;Y&quot;)"/>
  69. <bind id="bind3" ref="/root/main/envinfo/envestbansw/envestbanswlist/answvalnm" readonly="(/root/main/admininfo != &quot;Y&quot;)"/>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMB01100.js"/>
  75. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  76. </xhtml:head>
  77. <xhtml:body pagewidth="1060" pageheight="820" guideline="2,2;1,1030;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  78. <shape id="roundrect2" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:45px; width:520px; height:30px; color:#3366ff; "/>
  79. <caption id="caption22" class="tit_2" style="left:1px; top:22px; width:144px; height:13px; ">환경설정 질문 리스트</caption>
  80. <button id="btn_onlinehelp" class="btn4_letter5" visibility="hidden" style="left:427px; top:15px; width:92px; height:22px; ">
  81. <caption>사용법등록</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. var sAdminInfo = model.getValue( "/root/main/admininfo");
  85. if(sAdminInfo == "Y") {
  86. open("SMMNB03200");
  87. } else {
  88. alert("사용 권한이 없습니다.");
  89. return;
  90. }
  91. ]]>
  92. </script>
  93. </button>
  94. <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:520px; y2:39px; "/>
  95. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">환경설정</caption>
  96. <datagrid id="grd_userenvestblist" nodeset="/root/main/userenvestb/userenvestblist" autoresize="true" caption="level^질문코드 - 질문내용^질문코드^질문내용^상위질문코드^비고" colsep="^" colwidth="0, 500, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:77px; width:520px; height:703px; text-align:center; ">
  97. <col ref="levl"/>
  98. <col ref="displaynm" style="text-align:left; "/>
  99. <col ref="qestcd"/>
  100. <col ref="qestnm"/>
  101. <col ref="supqestcd"/>
  102. <col ref="rmk"/>
  103. <script type="javascript" ev:event="onclick">
  104. <![CDATA[
  105. if (isDataCell() == true) {
  106. fGetQestcdInfo();
  107. }
  108. ]]>
  109. </script>
  110. </datagrid>
  111. <line id="line2" style="x1:875px; y1:23px; x2:875px; y2:48px; border-color:#ffe4bb; border-left-style:solid; "/>
  112. <input id="ipt_search_qestnm" ref="/root/main/cond/qestnm" class="input_search" imemode="hangul" style="left:300px; top:51px; width:110px; height:19px; ">
  113. <script type="javascript" ev:event="onkeypress">
  114. <![CDATA[
  115. inputEnterKey("btn_search_qestcd", "DOMActivate");
  116. ]]>
  117. </script>
  118. </input>
  119. <input id="ipt_search_qestcd" ref="/root/main/cond/qestcd" class="input_search" style="left:96px; top:50px; width:84px; height:19px; ">
  120. <script type="javascript" ev:event="onkeypress">
  121. <![CDATA[
  122. inputEnterKey("btn_search_qestcd", "DOMActivate");
  123. ]]>
  124. </script>
  125. </input>
  126. <caption id="caption4" class="search_name" style="left:230px; top:50px; width:70px; height:17px; ">질문명</caption>
  127. <button id="btn_search_qestcd" class="btn1_letter2" style="left:451px; top:49px; width:56px; height:22px; ">
  128. <caption>조회</caption>
  129. <script type="javascript" ev:event="DOMActivate">
  130. <![CDATA[
  131. fGetQestcdList();
  132. ]]>
  133. </script>
  134. </button>
  135. <caption id="caption7" class="search_name" style="left:10px; top:50px; width:90px; height:17px; ">질문코드</caption>
  136. <line id="line4" style="x1:444px; y1:47px; x2:444px; y2:75px; border-color:#ffe4bb; border-left-style:solid; "/>
  137. <group id="grp_right_top" style="left:530px; top:15px; width:500px; height:180px; ">
  138. <caption id="caption2" class="tit_2" style="left:0px; top:5px; width:220px; height:13px; text-align:left; ">질문정보</caption>
  139. <line id="line5" class="line_1" style="x1:0px; y1:23px; x2:500px; y2:23px; "/>
  140. <button id="btn_info_del" class="btn2_letter2" visibility="hidden" style="left:304px; top:3px; width:42px; height:19px; ">
  141. <caption>삭제</caption>
  142. <script type="javascript" ev:event="DOMActivate">
  143. <![CDATA[
  144. var sQestCd = model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
  145. if(isNull(sQestCd)) {
  146. alert("선택 된 코드가 없습니다.");
  147. return;
  148. }
  149. var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
  150. if(sStatus == "u" || sStatus == "i" ) {
  151. alert("신규 또는 수정중인 코드는 삭제 할수 없습니다.");
  152. return;
  153. }
  154. var sAdminInfo = model.getValue( "/root/main/admininfo");
  155. if(sAdminInfo == "Y") {
  156. model.setValue("/root/main/envinfo/userenvestbinfo/status", "d"); // 삭제 설정
  157. fSaveQestInfo();
  158. } else {
  159. alert("삭제 권한이 없습니다.");
  160. return;
  161. }
  162. ]]>
  163. </script>
  164. </button>
  165. <button id="btn_info_new" class="btn2_letter2" visibility="hidden" style="left:349px; top:3px; width:42px; height:19px; ">
  166. <caption>신규</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
  170. if(sStatus == "u" || sStatus == "d" ) {
  171. alert("수정 또는 삭제 중인 코드는 신규입력 할수 없습니다.");
  172. return;
  173. }
  174. var sAdminInfo = model.getValue( "/root/main/admininfo");
  175. if(sAdminInfo == "Y") { //
  176. model.resetInstanceNode("/root/main/envinfo/userenvestbinfo");
  177. model.resetInstanceNode("/root/main/envestbansw/envestbanswlist");
  178. model.setValue("/root/main/envinfo/userenvestbinfo/status", "i"); // 입력 설정
  179. model.setValue("/root/main/envinfo/userenvestbinfo/supqestcd", "ROT"); // 기본 최상위
  180. model.refresh();
  181. ipt_qestcd.disabled = false;
  182. ipt_supqestcd.disabled = false;
  183. ipt_qestnm.disabled = false;
  184. ipt_sortseq.disabled = false;
  185. txt_rmk.disabled = false;
  186. } else {
  187. alert("입력 권한이 없습니다.");
  188. return;
  189. }
  190. ]]>
  191. </script>
  192. </button>
  193. <button id="btn_info_udt" class="btn2_letter2" visibility="hidden" style="left:394px; top:3px; width:42px; height:19px; ">
  194. <caption>수정</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. var sQestCd = model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
  198. if(isNull(sQestCd)) {
  199. alert("선택 된 코드가 없습니다.");
  200. return;
  201. }
  202. var sStatus = model.getValue("/root/main/envinfo/userenvestbinfo/status");
  203. if(sStatus == "i" || sStatus == "d" ) {
  204. alert("신규 또는 삭제 중인 코드는 수정 할수 없습니다.");
  205. return;
  206. }
  207. var sAdminInfo = model.getValue( "/root/main/admininfo");
  208. if(sAdminInfo == "Y") {
  209. model.setValue("/root/main/envinfo/userenvestbinfo/status", "u"); // 수정 설정
  210. ipt_qestcd.disabled = true;
  211. ipt_supqestcd.disabled = false;
  212. ipt_qestnm.disabled = false;
  213. ipt_sortseq.disabled = false;
  214. txt_rmk.disabled = false;
  215. } else {
  216. alert("수정 권한이 없습니다.");
  217. return;
  218. }
  219. ]]>
  220. </script>
  221. </button>
  222. <button id="btn_info_sav" class="btn4_letter2" visibility="hidden" style="left:441px; top:0px; width:56px; height:22px; ">
  223. <caption>저장</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. var sAdminInfo = model.getValue( "/root/main/admininfo");
  227. if(sAdminInfo == "Y") {
  228. fSaveQestInfo();
  229. } else {
  230. alert("저장 권한이 없습니다.");
  231. return;
  232. }
  233. ]]>
  234. </script>
  235. </button>
  236. <caption id="caption8" class="cell_1" style="left:0px; top:28px; width:55px; height:23px; vertical-align:middle; ">질문코드</caption>
  237. <input id="ipt_qestcd" ref="/root/main/envinfo/userenvestbinfo/qestcd" class="input" imemode="disabled" maxlength="3" style="left:57px; top:30px; width:103px; height:19px; "/>
  238. <caption id="caption10" class="cell_1" style="left:173px; top:28px; width:61px; height:23px; vertical-align:middle; ">상위코드</caption>
  239. <input id="ipt_supqestcd" ref="/root/main/envinfo/userenvestbinfo/supqestcd" class="input" imemode="disabled" maxlength="3" style="left:236px; top:30px; width:94px; height:19px; "/>
  240. <caption id="caption9" class="cell_1" style="left:0px; top:53px; width:55px; height:23px; vertical-align:middle; ">질문명</caption>
  241. <input id="ipt_qestnm" ref="/root/main/envinfo/userenvestbinfo/qestnm" class="input" style="left:57px; top:55px; width:443px; height:19px; "/>
  242. <line id="line6" class="line_3" style="x1:0px; y1:177px; x2:500px; y2:177px; "/>
  243. <caption id="caption11" class="cell_1" style="left:0px; top:78px; width:55px; height:74px; vertical-align:middle; ">비고</caption>
  244. <textarea id="txt_rmk" ref="/root/main/envinfo/userenvestbinfo/rmk" disabled="true" style="left:57px; top:80px; width:443px; height:70px; "/>
  245. <caption id="caption12" class="cell_1" style="left:340px; top:28px; width:61px; height:23px; vertical-align:middle; ">정렬순서</caption>
  246. <input id="ipt_sortseq" ref="/root/main/envinfo/userenvestbinfo/sortseq" class="input" imemode="disabled" style="left:405px; top:30px; width:94px; height:19px; "/>
  247. <caption id="caption13" class="cell_1" style="left:0px; top:153px; width:55px; height:23px; vertical-align:middle; ">사용법</caption>
  248. <input id="ipt_helpfile" ref="/root/main/envinfo/userenvestbinfo/helpfile" disabled="true" style="left:57px; top:155px; width:425px; height:19px; "/>
  249. <button id="button9" class="icon_list" style="left:486px; top:156px; width:14px; height:16px; ">
  250. <caption/>
  251. <script type="javascript" ev:event="DOMActivate">
  252. <![CDATA[
  253. var sHelpFile = model.getValue("/root/main/envinfo/userenvestbinfo/helpfile");
  254. if(!isNull(sHelpFile)) {
  255. model.property("divsflag") = "6"; // 온라인 도움말 분류 6:개인설정화면
  256. model.property("scnid") = "UEA" + model.getValue("/root/main/envinfo/userenvestbinfo/qestcd");
  257. var curOnLineHelpObj = getOpenWindow("SPMNZ01000");
  258. if(curOnLineHelpObj != null){// 온라인 도움말이 열려 있으면 재조회
  259. curOnLineHelpObj.javascript.fInit();
  260. } else {
  261. open("SPMNZ01000");
  262. }
  263. } else {
  264. alert("등록된 사용법이 없습니다.");
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. <group id="grp_right_bottom" style="left:530px; top:200px; width:500px; height:580px; ">
  271. <caption id="caption1" style="left:0px; top:8px; width:345px; height:15px; font-weight:bold; ">
  272. <![CDATA[▣ 답변값은 개인 > 부서 > 병원 순으로 우선 적용 됩니다.]]>
  273. </caption>
  274. <caption id="caption3" style="left:0px; top:27px; width:345px; height:15px; font-weight:bold; ">
  275. <![CDATA[▣ 환경설정값은 변경 후 다시 로그인 하여야 적용 됩니다.]]>
  276. </caption>
  277. <caption id="caption5" class="tit_2" style="left:0px; top:52px; width:87px; height:13px; ">답안 리스트</caption>
  278. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:500px; y2:70px; "/>
  279. <button id="btn_answ_del" class="btn2_letter2" visibility="hidden" style="left:348px; top:49px; width:42px; height:19px; ">
  280. <caption>삭제</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. fDelAnswGrid();
  284. ]]>
  285. </script>
  286. </button>
  287. <button id="btn_answ_add" class="btn2_letter2" visibility="hidden" style="left:393px; top:49px; width:42px; height:19px; ">
  288. <caption>추가</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. fAddAnswGrid();
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="button10" class="btn4_letter2" style="left:442px; top:47px; width:56px; height:22px; ">
  296. <caption>저장</caption>
  297. <script type="javascript" ev:event="onclick">
  298. <![CDATA[
  299. fAnswSave();
  300. ]]>
  301. </script>
  302. </button>
  303. <datagrid id="grd_envestbanswlist" nodeset="/root/main/envinfo/envestbansw/envestbanswlist" autoresize="true" caption="질문코드^개인^부서^병원^답안코드^답안 값" colsep="^" colwidth="0, 35, 35, 35, 54, 294" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:500px; height:505px; ">
  304. <col ref="qestcd" visibility="hidden"/>
  305. <col checkvalue="Y,N" ref="useryn" type="radio"/>
  306. <col checkvalue="Y,N" ref="deptyn" type="radio"/>
  307. <col checkvalue="Y,N" ref="hostyn" type="radio"/>
  308. <col ref="answval" type="input" style="text-align:center; "/>
  309. <col ref="answvalnm" type="input" style="text-align:left; "/>
  310. <script type="javascript" ev:event="onkeydown">
  311. <![CDATA[
  312. if(grd_envestbanswlist.col == grd_envestbanswlist.colRef("answval")){
  313. var nRow = grd_envestbanswlist.row;
  314. nStatus = grd_envestbanswlist.rowstatus(nRow);
  315. if (nStatus != 1 && nStatus != 3) { // 신규데이터 가 아니면 답안 코드는 수정 할수 없음.
  316. messageBox ( "답안코드는 수정 할 수 없습니다.", "I999" );
  317. return;
  318. }
  319. }
  320. ]]>
  321. </script>
  322. </datagrid>
  323. </group>
  324. </xhtml:body>
  325. </xhtml:html>