SMASB01300_항생제내성균용어관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <condition>
  11. <srchflag>U</srchflag>
  12. <srchnm/>
  13. </condition>
  14. <antibioflagtermlist>
  15. </antibioflagtermlist>
  16. <antibioflagterminfo>
  17. <useyn/>
  18. <rstbtrcd/>
  19. <rstbtrcdnm/>
  20. <fromdt/>
  21. <todt/>
  22. <remark/>
  23. <fstrgstdt/>
  24. <fstrgstrid/>
  25. <fstrgstrnm/>
  26. </antibioflagterminfo>
  27. </main>
  28. <send>
  29. </send>
  30. <hidden>
  31. </hidden>
  32. <init>
  33. <currentdt>
  34. <today/>
  35. <currunttime/>
  36. </currentdt>
  37. <userinfo>
  38. <userid/>
  39. <usernm/>
  40. <instcd/>
  41. </userinfo>
  42. </init>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. model.removeNodeset("/root/main/antibioflagtermlist/info");
  48. var currentTime = getCurrentTime();
  49. model.setValue("/root/init/currentdt/today", getCurrentDate());
  50. model.setValue("/root/init/currentdt/currunttime", currentTime.substr(0,6));
  51. model.setValue("/root/init/userinfo/userid", getUserId());
  52. model.setValue("/root/init/userinfo/usernm", getUserName());
  53. model.setValue("/root/init/userinfo/instcd", getUserInfo("posinstcd"));
  54. var srchnm = model.getValue("/root/main/condition/srchnm");
  55. srchnm = srchnm.toUpperCase( );
  56. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
  57. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  58. //submit("TRASB01301");
  59. ]]>
  60. </script>
  61. <submission id="TXASB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/antibioflagtermlist"/>
  62. <submission id="TRASB01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/antibioflagtermlist"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  68. <script type="javascript" src="../../../emr/termmngtweb/js/MRTCommon.js"/>
  69. <script type="javascript">
  70. <![CDATA[
  71. function fClsDetlinfo() {
  72. model.setValue("/root/main/antibioflagterminfo/rstbtrcdnm", "");
  73. model.setValue("/root/main/antibioflagterminfo/fromdt", "");
  74. model.setValue("/root/main/antibioflagterminfo/useyn", "");
  75. model.setValue("/root/main/antibioflagterminfo/todt", "");
  76. model.setValue("/root/main/antibioflagterminfo/remark", "");
  77. model.setValue("/root/main/antibioflagterminfo/fstrgstdt", "");
  78. model.setValue("/root/main/antibioflagterminfo/fstrgstrnm", "");
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body idprefix="import" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  84. <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
  85. <group id="group2" style="left:0px; top:0px; width:1195px; height:784px; vertical-align:top; ">
  86. <line id="line4" class="line_3" style="x1:0px; y1:781px; x2:1194px; y2:781px; "/>
  87. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  88. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:150px; height:14px; ">항생제내성균 용어관리</caption>
  89. </group>
  90. </group>
  91. </group>
  92. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  93. <button id="button3" class="btn4_letter2" style="left:1136px; top:3px; width:56px; height:22px; ">
  94. <caption>저장</caption>
  95. <script type="javascript" ev:event="DOMActivate">
  96. <![CDATA[
  97. var nodelist = instance1.selectNodes("/root/main/antibioflagtermlist/info");
  98. for(var i=1; i<=nodelist.length; i++){
  99. var node = nodelist.item(i-1);
  100. var rstbtrcdnmNode = node.selectSingleNode("rstbtrcdnm");
  101. if( rstbtrcdnmNode.text == "" && grd_antibioflagtermlist.rowStatus(i) != 4 ){
  102. /*
  103. if( grd_antibioflagtermlist.rowStatus(i) == 1 || grd_antibioflagtermlist.rowStatus(i) == 3 ){
  104. grd_antibioflagtermlist.deleteItem(i);
  105. rmRowYN = "Y";
  106. }
  107. */
  108. if( grd_antibioflagtermlist.rowStatus(i) == 1 || grd_antibioflagtermlist.rowStatus(i) == 2 || grd_antibioflagtermlist.rowStatus(i) == 3 ){
  109. messageBox("내성균 구분명은 ", "I003");
  110. return;
  111. }
  112. }
  113. }
  114. model.removeNodeset("/root/send/savedata");
  115. model.makeNode("/root/send/savedata/data");
  116. model.makeNode("/root/send/savedata/condition");
  117. model.setValue("/root/send/savedata/data", grd_antibioflagtermlist.getUpdateData());
  118. model.copyNode("/root/send/savedata/condition", "/root/main/condition");
  119. if( !submit("TXASB01301", false) ){
  120. messageBox("저장을 ", "E009");
  121. return;
  122. }
  123. if( instance1.selectSingleNode("/root/main/antibioflagtermlist/dupeyn/dupeyn") ){
  124. messageBox("중복된 내성균구분명이 존재하여 저장할 수 ", "I004");
  125. model.removeNodeset("/root/main/antibioflagtermlist/dupeyn");
  126. grd_antibioflagtermlist.refresh();
  127. return;
  128. }
  129. grd_antibioflagtermlist.refresh();
  130. grd_antibioflagtermlist.clearStatus();
  131. fClsDetlinfo() ;
  132. model.refresh();
  133. ]]>
  134. </script>
  135. </button>
  136. </group>
  137. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  138. <button id="button2" class="btn2_letter3" style="left:1040px; top:50px; width:53px; height:19px; ">
  139. <caption>행추가</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. grd_antibioflagtermlist.addRow();
  143. var curCnt = grd_antibioflagtermlist.rows - grd_antibioflagtermlist.fixedRows;
  144. model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fstrgstdt", getCurrentDate() + getCurrentTime());
  145. model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fstrgstrnm", model.getValue("/root/init/userinfo/usernm"));
  146. model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/fromdt", getCurrentDate() + getCurrentTime());
  147. model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/todt", "99991231235959");
  148. model.setValue("/root/main/antibioflagtermlist/info[" + curCnt + "]/useyn", "Y");
  149. model.refresh();
  150. ]]>
  151. </script>
  152. </button>
  153. <button id="button5" class="btn2_letter3" style="left:1095px; top:50px; width:53px; height:19px; ">
  154. <caption>행삭제</caption>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. var iRow = grd_antibioflagtermlist.row - grd_antibioflagtermlist.fixedRows + 1;
  158. if(iRow < 1){
  159. return;
  160. }
  161. var status = grd_antibioflagtermlist.rowStatus(iRow);
  162. if(status == 1 || status == 3){
  163. grd_antibioflagtermlist.deleteItem(iRow);
  164. }else{
  165. grd_antibioflagtermlist.rowStatus(iRow)= 4;
  166. }
  167. ]]>
  168. </script>
  169. </button>
  170. <line id="line7" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  171. <caption id="caption63" class="cell_1" style="left:0px; top:694px; width:95px; height:23px; vertical-align:middle; ">항생제내성균</caption>
  172. <input id="input45" ref="/root/main/antibioflagterminfo/rstbtrcdnm" class="input_default" disabled="true" style="left:98px; top:695px; width:100px; height:19px; "/>
  173. <caption id="importcaption1" class="tit_2" style="left:0px; top:674px; width:165px; height:13px; ">상세정보</caption>
  174. <line id="importline2" class="line_1" style="x1:0px; y1:689px; x2:1193px; y2:689px; "/>
  175. <caption id="importcaption3" class="cell_1" style="left:994px; top:694px; width:95px; height:23px; vertical-align:middle; ">등록일</caption>
  176. <input id="importinput1" ref="/root/main/antibioflagterminfo/fstrgstdt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:1092px; top:695px; width:100px; height:19px; "/>
  177. <caption id="importcaption4" class="cell_1" style="left:0px; top:718px; width:95px; height:23px; vertical-align:middle; ">시작일</caption>
  178. <input id="importinput2" ref="/root/main/antibioflagterminfo/fromdt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:98px; top:719px; width:100px; height:19px; "/>
  179. <caption id="importcaption5" class="cell_1" style="left:201px; top:718px; width:95px; height:23px; vertical-align:middle; ">종료일</caption>
  180. <input id="importinput3" ref="/root/main/antibioflagterminfo/todt" class="input_default" disabled="true" format="yyyy-mm-dd" style="left:299px; top:719px; width:100px; height:19px; "/>
  181. <caption id="importcaption6" class="cell_1" style="left:994px; top:718px; width:95px; height:23px; vertical-align:middle; ">등록자</caption>
  182. <input id="importinput4" ref="/root/main/antibioflagterminfo/fstrgstrnm" class="input_default" disabled="true" style="left:1092px; top:720px; width:100px; height:19px; "/>
  183. <line id="importline4" class="line_2" style="x1:0px; y1:716px; x2:400px; y2:716px; "/>
  184. <line id="importline6" class="line_3" style="x1:0px; y1:657px; x2:1194px; y2:657px; "/>
  185. <caption id="importcaption14" class="cell_1" style="left:403px; top:694px; width:105px; height:46px; vertical-align:middle; ">Remark</caption>
  186. <line id="importline10" class="line_2" style="x1:0px; y1:740px; x2:403px; y2:740px; "/>
  187. <caption id="importcaption13" class="cell_1" style="left:201px; top:694px; width:95px; height:23px; vertical-align:middle; ">사용여부</caption>
  188. <select1 id="importradio1" ref="/root/main/antibioflagterminfo/useyn" disabled="true" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:299px; top:696px; width:100px; height:20px; border-style:none; ">
  189. <choices>
  190. <item>
  191. <label>Y</label>
  192. <value>Y</value>
  193. </item>
  194. <item>
  195. <label>N</label>
  196. <value>N</value>
  197. </item>
  198. </choices>
  199. </select1>
  200. <textarea id="importtextarea1" ref="/root/main/antibioflagterminfo/remark" disabled="true" style="left:511px; top:695px; width:480px; height:43px; "/>
  201. <line id="importline1" class="line_2" style="x1:995px; y1:716px; x2:1193px; y2:716px; "/>
  202. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0; top:7px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  203. <line id="importline3" class="line_3" style="x1:0px; y1:740px; x2:1193px; y2:740px; "/>
  204. <line id="line13" class="line_4" style="x1:1100px; y1:14px; x2:1100px; y2:36px; "/>
  205. <caption id="caption4" class="search_name" style="left:300px; top:15px; width:60px; height:17px; ">조회 :</caption>
  206. <caption id="caption5" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">구분 :</caption>
  207. <button id="btn_srchtermcd" class="btn1_letter2" navindex="4" style="left:1115px; top:14px; width:56px; height:22px; ">
  208. <caption>조회</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. var srchnm = model.getValue("/root/main/condition/srchnm");
  212. if( (srchnm.charCodeAt(0) >= 0 && srchnm.charCodeAt(0) <48) || (srchnm.charCodeAt(0) > 58 && srchnm.charCodeAt(0) < 65) || (srchnm.charCodeAt(0) > 122 && srchnm.charCodeAt(0) <= 255) ){
  213. messageBox("검색어의 첫 글자로 공백이나 특수문자를 사용할 수 ", "I004");
  214. return;
  215. }
  216. model.removeNodeset("/root/send/reqdata");
  217. srchnm = srchnm.toUpperCase( );
  218. model.makeValue("/root/send/reqdata/srchflag", model.getValue("/root/main/condition/srchflag"));
  219. model.makeValue("/root/send/reqdata/srchnm", srchnm);
  220. fClsDetlinfo() ;
  221. submit("TRASB01301");
  222. ]]>
  223. </script>
  224. </button>
  225. <select1 id="radio2" ref="/root/main/condition/srchflag" class="radio_search" navindex="2" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:70px; top:15px; width:220px; height:20px; border-style:none; ">
  226. <choices>
  227. <item>
  228. <label>사용중인 용어만 조회</label>
  229. <value>U</value>
  230. </item>
  231. <item>
  232. <label>모두 조회</label>
  233. <value>N</value>
  234. </item>
  235. </choices>
  236. </select1>
  237. <input id="input5" ref="/root/main/condition/srchnm" class="input_search" navindex="3" style="left:368px; top:14px; width:157px; height:19px; ">
  238. <script type="javascript" ev:event="onkeyup">
  239. <![CDATA[
  240. inputEnterKey("btn_srchtermcd", "DOMActivate");
  241. ]]>
  242. </script>
  243. </input>
  244. <button id="importbutton1" class="btn2_letter2" style="left:1150px; top:50px; width:42px; height:19px; ">
  245. <caption>엑셀</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. //var dispNm = getTitle();
  249. var dispNm = cap_gridlist.attribute("text");
  250. var fileName = window.fileDialog("save", ",", false, dispNm, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  251. if (fileName != ""){
  252. grd_antibioflagtermlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  253. }
  254. ]]>
  255. </script>
  256. </button>
  257. <datagrid id="grd_antibioflagtermlist" nodeset="/root/main/antibioflagtermlist/info" caption="사용여부^내성균구분^시작일자^종료일자^Remark^등록일^등록자^등록자ID^caption1" colsep="^" colwidth="57, 127, 100, 100, 790, 100, 73, 90, 100" dataheight="25" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:76px; width:1193px; height:580px; ">
  258. <col ref="useyn" type="combo" style="text-align:center; ">
  259. <choices>
  260. <item>
  261. <label>Y</label>
  262. <value>Y</value>
  263. </item>
  264. <item>
  265. <label>N</label>
  266. <value>N</value>
  267. </item>
  268. </choices>
  269. </col>
  270. <col ref="rstbtrcdnm" type="input"/>
  271. <col ref="fromdt" type="inputdate" visibility="hidden"/>
  272. <col ref="todt" type="inputdate" visibility="hidden"/>
  273. <col ref="remark" type="input"/>
  274. <col ref="fstrgstdt" format="yyyy-mm-dd"/>
  275. <col ref="fstrgstrnm"/>
  276. <col ref="fstrgstrid" visibility="hidden"/>
  277. <col ref="rstbtrcd" visibility="hidden"/>
  278. <script type="javascript" ev:event="xforms-value-changed">
  279. <![CDATA[
  280. if( grd_antibioflagtermlist.col == 1 ) {
  281. var iRow = grd_antibioflagtermlist.row;
  282. if(model.getValue("/root/main/antibioflagtermlist/info[" +iRow + "]/useyn") == "N") {
  283. model.setValue("/root/main/antibioflagtermlist/info[" + +iRow + "]/todt", getCurrentDate() + getCurrentTime());
  284. grd_antibioflagtermlist.rowstatus(iRow) = 4;
  285. } else {
  286. model.setValue("/root/main/antibioflagtermlist/info[" + +iRow + "]/todt", "99991231235959");
  287. grd_antibioflagtermlist.rowstatus(iRow) = 1;
  288. }
  289. }
  290. ]]>
  291. </script>
  292. <script type="javascript" ev:event="ondblclick">
  293. <![CDATA[
  294. if(grd_antibioflagtermlist.row != ""){
  295. model.copyNode("/root/main/antibioflagterminfo", "/root/main/antibioflagtermlist/info[" + grd_antibioflagtermlist.row + "]");
  296. model.refresh();
  297. }
  298. ]]>
  299. </script>
  300. <script type="javascript" ev:event="onclick">
  301. <![CDATA[
  302. if(grd_antibioflagtermlist.mouseRow == 0){
  303. grd_antibioflagtermlist.explorerbar = "sortmove";
  304. }
  305. ]]>
  306. </script>
  307. <script type="javascript" ev:event="onclick">
  308. <![CDATA[
  309. if (grd_antibioflagtermlist.row < 1 ) {
  310. return ;
  311. }
  312. grd_antibioflagtermlist.editCell();
  313. ]]>
  314. </script>
  315. <script type="javascript" ev:event="onendedit">
  316. <![CDATA[
  317. if( event.keyCode == 13 ) { // Cell 에서 Enter를 치게 되면 이벤트를 발생한다.
  318. if(grd_antibioflagtermlist.col == 2 ) {
  319. grd_antibioflagtermlist.col = 5;
  320. grd_antibioflagtermlist.editCell();
  321. }
  322. else if (grd_antibioflagtermlist.col == 5) {
  323. // alert(grd_antibioflagtermlist.row);
  324. grd_antibioflagtermlist.row = grd_antibioflagtermlist.row + 1;
  325. grd_antibioflagtermlist.col= 2;
  326. grd_antibioflagtermlist.editCell();
  327. }
  328. }
  329. ]]>
  330. </script>
  331. </datagrid>
  332. <caption id="cap_gridlist" class="tit_2" style="left:5px; top:55px; width:178px; height:13px; ">항생제내성균 용어리스트</caption>
  333. </group>
  334. </xhtml:body>
  335. </xhtml:html>