SMMNE01500_기준정보.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722
  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. <item>
  10. </item>
  11. <main>
  12. <basecschelist>
  13. <basecschelistinfo>
  14. <basetypecd/>
  15. <instcd/>
  16. <supbasetypecd/>
  17. <typenm/>
  18. <refseq/>
  19. <levl/>
  20. <termcd/>
  21. <!--(20110520) -->
  22. <bedcd/>
  23. <bednm/>
  24. <grupcd/>
  25. <grupnm/>
  26. <!--(20110520) -->
  27. </basecschelistinfo>
  28. </basecschelist>
  29. <cond>
  30. <basetypecd/>
  31. <typenm/>
  32. <baseclsflag/>
  33. <refseq/>
  34. <supbasetypecd/>
  35. <levl/>
  36. </cond>
  37. <basecodelist>
  38. <basecodelistinfo>
  39. <typenm/>
  40. <cdcls/>
  41. <supbasetypecd/>
  42. <basetypecd/>
  43. <refseq/>
  44. </basecodelistinfo>
  45. </basecodelist>
  46. <conddetl>
  47. <typenm/>
  48. <cdcls/>
  49. <supbasetypecd/>
  50. <basetypecd/>
  51. <refseq/>
  52. <!--(20110520) -->
  53. <bedcd/>
  54. <bednm/>
  55. <grupcd/>
  56. <grupnm/>
  57. <!--(20110520) -->
  58. </conddetl>
  59. </main>
  60. <send>
  61. <req>
  62. <basetypecd/>
  63. <supbasetypecd/>
  64. <levl/>
  65. </req>
  66. <reqtms>
  67. <typenm/>
  68. <cdcls/>
  69. <supbasetypecd/>
  70. <basetypecd/>
  71. <refseq/>
  72. <status/>
  73. </reqtms>
  74. </send>
  75. <message/>
  76. <init>
  77. <codeinfo/>
  78. </init>
  79. <hidden>
  80. <target/>
  81. </hidden>
  82. </root>
  83. </instance>
  84. <submission id="TRMNE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/basecschelist"/>
  85. <!--(20110520) -->
  86. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  87. <!--(20110520) -->
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <!-- 2010-06-24 안도영 추가 -->
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" ev:event="xforms-ready">
  94. <![CDATA[
  95. chkInstMG(); // 메뉴그룹 구분(중앙/기관별) 함수 2010-06-24 안도영
  96. //------------------------ 기존 로직
  97. model.removeNodeset("/root/send" );
  98. model.makeValue("/root/send/deptcd", deptcd);
  99. model.removeNodeset("/root/main/basecodelist/basecodelistinfo" );
  100. ipt_basetypecd.disabled = true;
  101. //-------(20110520)
  102. fnhiddenflag();
  103. //-------(20110520)
  104. submit("TRMNE01501");
  105. ]]>
  106. </script>
  107. <submission id="TRMNE01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/basecodelist"/>
  108. <submission id="TXMNE01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqtms" resultref="/root/message"/>
  109. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/codeinfo"/>
  110. </model>
  111. <script type="javascript">
  112. <![CDATA[
  113. /* 전역 공간*/
  114. var MGFlag = ""; // 메뉴그룹 구분 (C:중앙사용자, I:기관사용자) 2010-06-24 안도영
  115. var gDeptcd = "";
  116. /* 메뉴그룹코드 가져오기(from 간호하드코딩 테이블) 2010-06-24 안도영 */
  117. function chkInstMG(){
  118. var initPath = "/root/init/codeinfo/codelist";
  119. //20101129_KNUH_start 하드코딩테이블 조회.
  120. var pCode = "'002'"; // 조회할 CdGrupID 코드정보 (기관코드찾기)
  121. var pDate = getCurrentDate(); //조회기준일자
  122. var pTime = getCurrentTime().substring(0,4);
  123. fGetNursHardCdInfo(pCode, pDate);
  124. //20101129_KNUH_End 하드코딩테이블조회.(부서조회)
  125. //하드코딩 부서 ->전역변수에 반영
  126. gDeptcd = model.getValue("/root/init/codeinfo/codelist/cdid");
  127. // model.setValue(ipt_deptcd.attribute("ref"),
  128. pCode = "'208'"; // 조회할 CdGrupID 코드정보
  129. pDate = getCurrentDate(); //조회기준일자
  130. pTime = getCurrentTime().substring(0,4); //조회기준시간
  131. //var mainPath = "/root/temp/shifttimeinfo/shifttimelist";
  132. // fGetNursHardCdInfo(pCode, pDate); // 간호공통관리 메뉴코드 조회
  133. var centerMG = ""; // 중앙관리용 메뉴그룹코드
  134. var instMG= ""; // 기관별관리(간호Superuser용) 메뉴그룹코드
  135. var str = getGlobalVariable("menugroupcd");
  136. var currentMG = "";
  137. var supCdid = "";
  138. // 현재의 메뉴그룹코드 추출
  139. for(i=0; i < str.length; i++){
  140. if(str.charAt(i) == "|") break;
  141. currentMG = currentMG + str.charAt(i);
  142. }
  143. // 중앙, 기관별 관리자 메뉴그룹 구분
  144. if(model.getValue(initPath+"[supcdid = '1' and cdid = '"+currentMG+"']/cdid")){
  145. MGFlag = "C"; // 중앙
  146. }
  147. else if(model.getValue(initPath+"[supcdid = '2' and cdid = '"+currentMG+"']/cdid")){
  148. MGFlag = "I"; // 기관별
  149. }else{ // 둘다 해당하지 않을시 default로 기관별 사용자 (2010-06-29 서울성모 김숙인샘 요청)
  150. MGFlag = "I";
  151. }
  152. }
  153. if(getScreenMenuParameter() == ""){
  154. var deptcd = "B";
  155. }else{
  156. var deptcd = getScreenMenuParameter();
  157. }
  158. var treerow = 0;
  159. var treecdcls = "";
  160. //---(20110520) 경북대
  161. function fnhiddenflag(vflag) {
  162. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  163. var sflag = "";
  164. if (trv_basecodelist.selectedIndex == -1) {
  165. sflag = "N";
  166. } else {
  167. if (item.value.substring(0,2) == "BT") {
  168. sflag = "N";
  169. } else {
  170. sflag = "Y";
  171. }
  172. }
  173. if(sflag == "N"){
  174. //응급의료자료전송
  175. //숨김
  176. capbedcd.visible = false;
  177. ipt_bedcd.visible = false;
  178. btn_bedcd.visible = false;
  179. capgrupcd.visible = false;
  180. ipt_grupcd.visible = false;
  181. btn_grupcd.visible = false;
  182. ipt_grupnm.visible =false;
  183. grd_basecodelist.colHidden(grd_basecodelist.colref("bedcd")) = true;
  184. grd_basecodelist.colHidden(grd_basecodelist.colref("grupcd")) = true;
  185. grd_basecodelist.colHidden(grd_basecodelist.colref("grupnm")) = true;
  186. }else{
  187. //bed정보
  188. //보이기
  189. capbedcd.visible = true;
  190. ipt_bedcd.visible = true;
  191. btn_bedcd.visible = true;
  192. capgrupcd.visible = true;
  193. ipt_grupcd.visible = true;
  194. btn_grupcd.visible = true;
  195. ipt_grupnm.visible =true;
  196. grd_basecodelist.colHidden(grd_basecodelist.colref("bedcd")) = false;
  197. grd_basecodelist.colHidden(grd_basecodelist.colref("grupcd")) = false;
  198. grd_basecodelist.colHidden(grd_basecodelist.colref("grupnm")) = false;
  199. }
  200. if (vflag =="N") {
  201. //응급의료자료전송
  202. //숨김
  203. ipt_bedcd.disabled = true;;
  204. btn_bedcd.disabled = true;;
  205. ipt_grupcd.disabled = true;;
  206. btn_grupcd.disabled = true;;
  207. ipt_grupnm.disabled = true;;;
  208. } else {
  209. //bed정보
  210. //보이기
  211. ipt_bedcd.disabled = false;
  212. btn_bedcd.disabled = false;
  213. ipt_grupcd.disabled = false;
  214. btn_grupcd.disabled = false;
  215. ipt_grupnm.disabled =false;
  216. }
  217. }
  218. ]]>
  219. </script>
  220. </xhtml:head>
  221. <xhtml:body guideline="1,1195;1,4;1,1194;1,1176;2,1;2,1;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  222. <group id="group3" scroll="auto" style="left:0px; top:16px; width:1195px; height:744px; text-align:center; ">
  223. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:290px; y2:25px; "/>
  224. <caption id="caption13" class="cell_1" style="left:0px; top:719px; width:65px; height:23px; vertical-align:middle; ">TypeID</caption>
  225. <input id="input3" class="input_default" style="left:68px; top:721px; width:90px; height:19px; "/>
  226. <caption id="caption1" class="cell_1" style="left:161px; top:719px; width:65px; height:23px; vertical-align:middle; ">Code</caption>
  227. <line id="line3" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
  228. <caption id="caption32" class="tit_2" style="left:4px; top:10px; width:108px; height:13px; text-align:left; ">기준정보리스트</caption>
  229. <caption id="caption4" class="tit_2" style="left:5px; top:700px; width:108px; height:13px; text-align:left; ">기준정보 입력</caption>
  230. <treeview id="trv_basecodelist" ref="/root/main/cond/basetypecd" navindex="7" expanddepth="1" itemsettype="depth" style="left:0px; top:30px; width:290px; height:710px; ">
  231. <itemset nodeset="/root/main/basecschelist/basecschelistinfo">
  232. <label ref="typenm"/>
  233. <value ref="basetypecd"/>
  234. <depth ref="levl"/>
  235. </itemset>
  236. <script type="javascript" ev:event="ondblclick">
  237. <![CDATA[
  238. /* 기관별관리자 접속시 버튼권한 차등 설정 2010-06-24 안도영*/
  239. if(MGFlag == "I"){
  240. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  241. //응급의료자료전송
  242. if(item.value.substring(0,2) == "BT"){
  243. button1.disabled = true;
  244. button16.disabled = true;
  245. button2.disabled = true;
  246. button3.disabled = true;
  247. }else{
  248. button1.disabled = false;
  249. button16.disabled = false;
  250. button2.disabled = false;
  251. button3.disabled = false;
  252. }
  253. }
  254. //----(20110520)
  255. ipt_bedcd.value = "";
  256. btn_grupcd.value= "";
  257. ipt_grupnm.value = "";
  258. fnhiddenflag("N");
  259. //----(20110520)
  260. //-----------------------기존
  261. ipt_supbasetypecd.value = "";
  262. ipt_basetypecd.value = "";
  263. ipt_cdcls.value = "";
  264. ipt_typenm.value = "";
  265. ipt_refseq.value = "";
  266. model.removeNodeset("/root/send" );
  267. model.removeNodeset("/root/main/basecodelist/basecodelistinfo");
  268. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  269. var rowpos = item.index + 1;
  270. var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  271. model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
  272. model.makeValue("/root/send/req/supbasetypecd", supbasetypecd);
  273. model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
  274. model.makeValue("/root/send/req/deptcd", deptcd);
  275. treerow = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl");
  276. submit("TRMNE01502"); //트리에 해당하는 리스트를 가져온다.
  277. if(treerow == 2){
  278. treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/basetypecd");
  279. }else if(treerow == 3){
  280. treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  281. }
  282. ipt_supbasetypecd.value = "";
  283. ipt_basetypecd.value = "";
  284. ipt_cdcls.value = "";
  285. ipt_typenm.value = "";
  286. ipt_refseq.value = "";
  287. ipt_basetypecd.disabled = true;
  288. ]]>
  289. </script>
  290. </treeview>
  291. <caption id="caption5" class="tit_2" style="left:294px; top:10px; width:206px; height:13px; text-align:left; ">기준정보 조회 및 관리</caption>
  292. <line id="line4" class="line_1" style="x1:295px; y1:25px; x2:1194px; y2:25px; "/>
  293. <caption id="caption15" class="cell_1" style="left:295px; top:30px; width:60px; height:23px; vertical-align:middle; ">상위코드</caption>
  294. <caption id="caption2" class="cell_1" style="left:436px; top:30px; width:59px; height:23px; text-align:center; vertical-align:middle; ">코드</caption>
  295. <caption id="caption7" class="cell_1" style="left:697px; top:30px; width:79px; height:23px; text-align:center; vertical-align:middle; ">코드명칭</caption>
  296. <line id="line1" class="line_2" style="x1:295px; y1:75px; x2:1194px; y2:75px; "/>
  297. <output id="ipt_supbasetypecd" ref="/root/main/conddetl/supbasetypecd" class="output_fix" style="left:357px; top:31px; width:78px; height:19px; "/>
  298. <input id="ipt_basetypecd" ref="/root/main/conddetl/basetypecd" class="input_default" navindex="1" maxlength="6" style="left:497px; top:31px; width:63px; height:19px; ">
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. if(treerow==1){
  302. ipt_cdcls.value = ipt_basetypecd.value;
  303. model.setFocus("ipt_typenm");
  304. }
  305. ]]>
  306. </script>
  307. </input>
  308. <input id="ipt_typenm" ref="/root/main/conddetl/typenm" class="input_default" navindex="2" style="left:778px; top:31px; width:217px; height:19px; "/>
  309. <caption id="caption8" class="cell_1" style="left:1001px; top:30px; width:79px; height:23px; text-align:center; vertical-align:middle; ">조회순서</caption>
  310. <input id="ipt_refseq" ref="/root/main/conddetl/refseq" class="input_default" navindex="3" style="left:1082px; top:31px; width:93px; height:19px; "/>
  311. <!--(20110520)
  312. <datagrid id="grd_basecodelist" nodeset="/root/main/basecodelist/basecodelistinfo" caption="코드^상위코드^코드값^코드명칭^정렬순서^원무상병" colsep="^" colwidth="120, 140, 140, 281, 60, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:293px; top:55px; width:898px; height:685px; ">
  313. -->
  314. <datagrid id="grd_basecodelist" nodeset="/root/main/basecodelist/basecodelistinfo" caption="코드^상위코드^코드값^코드명칭^정렬순서^원무병상^구역부서^구역부서명" colsep="^" colwidth="95, 122, 140, 165, 60, 77, 88, 100" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:293px; top:80px; width:898px; height:660px; ">
  315. <col ref="basetypecd"/>
  316. <col ref="supbasetypecd"/>
  317. <col ref="cdcls"/>
  318. <col ref="typenm"/>
  319. <col ref="refseq"/>
  320. <col ref="bedcd"/>
  321. <!-- (20110520) -->
  322. <col ref="grupcd"/>
  323. <col ref="grupnm"/>
  324. <!-- (20110520) -->
  325. <script type="javascript" ev:event="onclick">
  326. <![CDATA[
  327. if(model.getValue("/root/main/basecodelist/basecodelistinfo["+grd_basecodelist.row+"]/basetypecd") == ""){
  328. return;
  329. }else{
  330. model.copyNode("/root/main/conddetl", "/root/main/basecodelist/basecodelistinfo[" + grd_basecodelist.row + "]");
  331. model.refresh();
  332. }
  333. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  334. var rowpos = item.index + 1;
  335. treerow = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl");
  336. var bedcd;
  337. //-------(20110520)
  338. var grupcd= "";
  339. var grupnm = "";
  340. //-------(20110520)
  341. if(treerow == 2){
  342. treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/basetypecd");
  343. bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
  344. //-------(20110520)
  345. grupcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupcd");
  346. grupnm = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupnm");
  347. //-------(20110520)
  348. }else if(treerow == 3){
  349. treecdcls = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  350. bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
  351. //-------(20110520)
  352. grupcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupcd");
  353. grupnm = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/grupnm");
  354. //-------(20110520)
  355. }
  356. model.setValue("/root/main/conddetl/cdcls", treecdcls);
  357. model.setValue("/root/main/conddetl/bedcd", bedcd);
  358. //-----(20110520)
  359. fnhiddenflag();
  360. model.setValue("/root/main/conddetl/grupcd", grupcd);
  361. model.setValue("/root/main/conddetl/grupnm", "grupnm");
  362. //-----(20110520)
  363. ipt_cdcls.refresh();
  364. ]]>
  365. </script>
  366. <script type="javascript" ev:event="onbuttonclick">
  367. <![CDATA[
  368. //----(20110520)
  369. /*
  370. model.property("certyn") = "N";
  371. setParameter("SMPMI00100_Param1", gDeptcd);
  372. modal("SPPMI02001");
  373. if(model.property("certyn") == "Y") {
  374. grd_basecodelist.valueMatrix(grd_basecodelist.row, grd_basecodelist.colRef("bedcd")) = model.getValue("/root/hidden/target/grdbedspec/bedcd");
  375. }
  376. */
  377. //---(20110520)
  378. ]]>
  379. </script>
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. if(grd_basecodelist.col == grd_basecodelist.colRef("bedcd")) {
  383. model.setValue(ipt_bedcd.attribute("ref"), grd_basecodelist.valueMatrix(grd_basecodelist.row, grd_basecodelist.colRef("bedcd")));
  384. ipt_bedcd.refresh();
  385. }
  386. ]]>
  387. </script>
  388. </datagrid>
  389. <caption id="caption3" class="cell_1" style="left:563px; top:30px; width:70px; height:23px; text-align:center; vertical-align:middle; ">대분류코드</caption>
  390. <output id="ipt_cdcls" ref="/root/main/conddetl/cdcls" class="output_fix" navindex="8" style="left:636px; top:31px; width:59px; height:19px; "/>
  391. <button id="button1" class="btn2_letter4" style="left:991px; top:3px; width:64px; height:19px; ">
  392. <caption>한줄추가</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. if(treerow < 1){
  396. messageBox("트리를 ","C002");
  397. return;
  398. }
  399. if(treerow > 4){
  400. messageBox("트리구조를 ","E003");
  401. return;
  402. }
  403. var iRow = grd_basecodelist.rows-1;
  404. var supbasetypecd = model.getValue("/root/main/basecodelist/basecodelistinfo"+"["+iRow+"]/supbasetypecd")
  405. var refseq = model.getValue("/root/main/basecodelist/basecodelistinfo"+"["+iRow+"]/refseq")
  406. refseq = String(Number(refseq)+1)
  407. grd_basecodelist.addRow();
  408. var addiRow = grd_basecodelist.row;
  409. if(addiRow == 1){
  410. grd_basecodelist.valueMatrix(addiRow,2) = model.getValue("/root/send/req/basetypecd");
  411. }else{
  412. grd_basecodelist.valueMatrix(addiRow,2) = supbasetypecd;
  413. }
  414. grd_basecodelist.valueMatrix(addiRow,5) = refseq;
  415. model.copyNode("/root/main/conddetl", "/root/main/basecodelist/basecodelistinfo[" + addiRow +"]");
  416. if(treerow != 1){
  417. model.setValue("/root/main/conddetl/cdcls",treecdcls) ;
  418. }
  419. //----(20110520)
  420. ipt_bedcd.value = "";
  421. ipt_grupcd.value = "";
  422. ipt_grupnm.value = "";
  423. fnhiddenflag("Y");
  424. //----(20110520)
  425. ipt_basetypecd.disabled = false;
  426. model.setValue("/root/main/conddetl/basetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  427. model.setFocus("ipt_basetypecd");
  428. model.refresh();
  429. ]]>
  430. </script>
  431. </button>
  432. <button id="button16" class="btn5_letter2" navindex="4" style="left:1057px; top:3px; width:42px; height:19px; ">
  433. <caption>저장</caption>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
  437. messageBox("한줄추가후 ","C001");
  438. return;
  439. }
  440. if(ipt_basetypecd.value == ""){
  441. messageBox("코드를 ","C001");
  442. return;
  443. }
  444. if(ipt_typenm.value == ""){
  445. messageBox("코드명칭을 ","C001");
  446. return;
  447. }
  448. if(ipt_refseq.value == ""){
  449. messageBox("조회순서를 ","C001");
  450. return;
  451. }
  452. if(messageBox("","Q002") != 6) return;
  453. model.removeNodeset("/root/send" );
  454. model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
  455. model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
  456. model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  457. model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
  458. model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
  459. model.makeValue("/root/send/reqtms/status", "I");
  460. model.makeValue("/root/send/reqtms/deptcd", deptcd);
  461. model.removeNodeset("/root/send/req" );
  462. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  463. var rowpos = item.index + 1;
  464. var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  465. var bedcd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/bedcd");
  466. model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
  467. model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
  468. model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  469. model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
  470. model.makeValue("/root/send/req/deptcd", deptcd);
  471. //---(20110520)
  472. bedcd = ipt_bedcd.value;
  473. //---(20110520)
  474. //20101129_KNUH_Start
  475. model.makeValue("/root/send/req/bedcd", bedcd);
  476. model.makeValue("/root/send/reqtms/bedcd", bedcd);
  477. //20101129_KNUH_End
  478. //20110520
  479. model.makeValue("/root/send/reqtms/grupcd" , model.getValue("/root/main/conddetl/grupcd"));
  480. //20110520
  481. submit("TXMNE01501");
  482. model.removeNodeset("/root/send/reqtms" );
  483. submit("TRMNE01502");
  484. submit("TRMNE01501");
  485. ipt_basetypecd.disabled = true;
  486. ]]>
  487. </script>
  488. </button>
  489. <button id="button2" class="btn5_letter2" navindex="5" style="left:1101px; top:3px; width:42px; height:19px; ">
  490. <caption>수정</caption>
  491. <script type="javascript" ev:event="DOMActivate">
  492. <![CDATA[
  493. if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
  494. messageBox("수정할 항목을 ","C002");
  495. return;
  496. }
  497. if(ipt_typenm.value == ""){
  498. messageBox("수정할 코드명칭을 ","C001");
  499. return;
  500. }
  501. if(ipt_refseq.value == ""){
  502. messageBox("수정할 조회순서를 ","C001");
  503. return;
  504. }
  505. model.removeNodeset("/root/send" );
  506. var bedcd = model.getValue(ipt_bedcd.attribute("ref"));
  507. model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
  508. model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
  509. model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  510. model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
  511. model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
  512. model.makeValue("/root/send/reqtms/status", "U");
  513. model.makeValue("/root/send/reqtms/deptcd", deptcd);
  514. var bedcd = model.getValue(ipt_bedcd.attribute("ref"));
  515. model.makeValue("/root/send/reqtms/bedcd", bedcd);
  516. //---(20110520)
  517. var grupcd = model.getValue(ipt_grupcd.attribute("ref"));
  518. model.makeValue("/root/send/reqtms/grupcd", grupcd);
  519. //---(20110520)
  520. model.removeNodeset("/root/send/req" );
  521. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  522. var rowpos = item.index + 1;
  523. var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  524. //20101129_KNUH_Start 원무상병코드추가.
  525. //20101129_KNUH_End 원무상병코드추가.
  526. model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
  527. model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
  528. model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  529. model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
  530. model.makeValue("/root/send/req/deptcd", deptcd);
  531. //-------(20110520)
  532. model.makeValue("/root/send/req/bedcd", bedcd);
  533. model.makeValue("/root/send/req/grupcd", grupcd);
  534. //-------(20110520)
  535. submit("TXMNE01501");
  536. model.removeNodeset("/root/send/reqtms" );
  537. submit("TRMNE01502");
  538. submit("TRMNE01501");
  539. ipt_supbasetypecd.value = "";
  540. ipt_basetypecd.value = "";
  541. ipt_cdcls.value = "";
  542. ipt_typenm.value = "";
  543. ipt_refseq.value = "";
  544. ipt_basetypecd.disabled = true;
  545. //----------(20110520)
  546. ipt_bedcd.value = "";
  547. ipt_grupcd.value = "";
  548. ipt_grupnm.value = "";
  549. fnhiddenflag();
  550. //----------(20110520)
  551. ]]>
  552. </script>
  553. </button>
  554. <button id="button3" class="btn5_letter2" navindex="6" style="left:1145px; top:3px; width:42px; height:19px; ">
  555. <caption>삭제</caption>
  556. <script type="javascript" ev:event="DOMActivate">
  557. <![CDATA[
  558. if(model.getValue("/root/main/conddetl/supbasetypecd") == ""){
  559. messageBox("삭제할 항목을 ","C002");
  560. return;
  561. }
  562. if(messageBox("","Q001") != 6) return;
  563. var item = trv_basecodelist.item(trv_basecodelist.selectedIndex);
  564. var rowpos = item.index + 1;
  565. model.removeNodeset("/root/send" );
  566. model.makeValue("/root/send/reqtms/typenm", model.getValue("/root/main/conddetl/typenm"));
  567. model.makeValue("/root/send/reqtms/cdcls", model.getValue("/root/main/conddetl/cdcls"));
  568. model.makeValue("/root/send/reqtms/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  569. model.makeValue("/root/send/reqtms/basetypecd", model.getValue("/root/main/conddetl/basetypecd"));
  570. model.makeValue("/root/send/reqtms/refseq", model.getValue("/root/main/conddetl/refseq"));
  571. model.makeValue("/root/send/reqtms/status", "D");
  572. model.makeValue("/root/send/reqtms/deptcd", deptcd);
  573. model.makeValue("/root/send/reqtms/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
  574. model.removeNodeset("/root/send/req" );
  575. var supbasetypecd = model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/supbasetypecd");
  576. model.setValue("/root/main/cond/supbasetypecd", supbasetypecd);
  577. model.makeValue("/root/send/req/basetypecd", model.getValue("/root/main/cond/basetypecd"));
  578. model.makeValue("/root/send/req/supbasetypecd", model.getValue("/root/main/conddetl/supbasetypecd"));
  579. model.makeValue("/root/send/req/levl", model.getValue("/root/main/basecschelist/basecschelistinfo[" + rowpos + "]/levl"));
  580. model.makeValue("/root/send/req/deptcd", deptcd);
  581. submit("TXMNE01501");
  582. model.removeNodeset("/root/send/reqtms" );
  583. submit("TRMNE01502");
  584. submit("TRMNE01501");
  585. ipt_supbasetypecd.value = "";
  586. ipt_basetypecd.value = "";
  587. ipt_cdcls.value = "";
  588. ipt_typenm.value = "";
  589. ipt_refseq.value = "";
  590. ipt_basetypecd.disabled = true;
  591. //----------(20110520)
  592. ipt_bedcd.value = "";
  593. ipt_grupcd.value = "";
  594. ipt_grupnm.value = "";
  595. fnhiddenflag();
  596. //----------(20110520)
  597. ]]>
  598. </script>
  599. </button>
  600. <!-- (20110520)
  601. <input id="ipt_bedcd" ref="/root/main/conddetl/bedcd" visibility="hidden" style="left:890px; top:5px; width:100px; height:20px; "/>
  602. -->
  603. <caption id="capbedcd" class="cell_1" style="left:295px; top:54px; width:60px; height:23px; vertical-align:middle; ">원무병상</caption>
  604. <caption id="capgrupcd" class="cell_1" style="left:562px; top:55px; width:70px; height:18px; text-align:center; vertical-align:middle; ">구역부서</caption>
  605. <input id="ipt_grupcd" ref="/root/main/conddetl/grupcd" class="input_default" style="left:635px; top:55px; width:77px; height:19px; "/>
  606. <button id="btn_grupcd" class="icon_search" style="left:720px; top:57px; width:16px; height:16px; ">
  607. <caption/>
  608. <script type="javascript" ev:event="DOMActivate">
  609. <![CDATA[
  610. // modal("SPMNG00300");
  611. //
  612. // model.setValue("/root/main/conddetl/grupcd",model.property("deptcd"));
  613. // model.setValue("/root/main/conddetl/grupnm",model.property("deptnm"));
  614. // model.refresh();
  615. var posinstcd = getUserInfo("dutplceinstcd");
  616. if(posinstcd!='-'){
  617. zbcfOpenAssignedInstDeptCodeList(posinstcd, "deptnm","", "/root/main/conddetl/grupcd", "/root/main/conddetl/grupnm", null, null, new Array("deptcd", "depthngnm"));
  618. }
  619. ]]>
  620. </script>
  621. </button>
  622. <input id="ipt_grupnm" ref="/root/main/conddetl/grupnm" class="input_search" style="left:740px; top:55px; width:172px; height:19px; "/>
  623. <input id="ipt_bedcd" ref="/root/main/conddetl/bedcd" class="input_default" style="left:357px; top:55px; width:78px; height:19px; "/>
  624. <button id="btn_bedcd" class="icon_search" style="left:447px; top:57px; width:16px; height:16px; ">
  625. <caption/>
  626. <script type="javascript" ev:event="DOMActivate">
  627. <![CDATA[
  628. model.property("certyn") = "N";
  629. setParameter("SMPMI00100_Param1", gDeptcd);
  630. modal("SPPMI02001");
  631. if(model.property("certyn") == "Y") {
  632. model.setValue("/root/main/conddetl/bedcd",model.getValue("/root/hidden/target/grdbedspec/bedcd"));
  633. model.refresh();
  634. //ipt_bednm.value = model.getValue("/root/hidden/target/grdbedspec/bednm");
  635. }
  636. ]]>
  637. </script>
  638. </button>
  639. <input id="ipt_bednm" ref="/root/main/conddetl/bednm" class="input_search" visibility="hidden" style="left:465px; top:5px; width:225px; height:19px; "/>
  640. </group>
  641. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:109px; height:13px; ">기준정보관리</caption>
  642. </xhtml:body>
  643. </xhtml:html>