SPMNP00361_수술기록지 장비등록.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. <list>
  11. <chklist>
  12. <cdid/>
  13. <cdnm/>
  14. <grupdetldesc/>
  15. <sortseq/>
  16. <supcdid/>
  17. <valifromdd/>
  18. <valitodd/>
  19. <lastupdtrnm/>
  20. <lastupdtdt/>
  21. <lastupdtrid/>
  22. <cdgrupid/>
  23. </chklist>
  24. </list>
  25. </main>
  26. <send>
  27. <listdata/>
  28. </send>
  29. <init>
  30. <installplcelist>
  31. <installplceinfo>
  32. <oproomcd/>
  33. <oproomnm/>
  34. </installplceinfo>
  35. </installplcelist>
  36. </init>
  37. <hidden>
  38. <equinpm/>
  39. </hidden>
  40. <temp>
  41. <equiplist>
  42. <equipinfo>
  43. <equipnm/>
  44. </equipinfo>
  45. </equiplist>
  46. </temp>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. fInitialize();
  52. ]]>
  53. </script>
  54. <submission id="TRMNP00361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/chklist"/>
  55. <submission id="TXMNP00361" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/listdata" resultref="/root/main/list/chklist"/>
  56. <submission id="TRMNP00370" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
  57. <submission id="TRMNP00371" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/equiplist/equipinfo"/>
  58. </model>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript">
  61. <![CDATA[
  62. function fInitialize(){
  63. model.removenode("/root/send");
  64. model.makeValue("/root/send/cdgrupid","260");
  65. submit("TRMNP00361");
  66. model.makeValue("/root/send/sendflag", "OP");
  67. model.makeValue("/root/send/equipnm",model.getValue("/root/hidden/equinpm"));
  68. submit("TRMNP00370"); // 수술방
  69. submit("TRMNP00371"); // 장비목록.
  70. }
  71. function fClickRowAddBtn(){
  72. grd_equiplist.addRow(); // 입력할 행 추가.
  73. var cur_row = grd_equiplist.row; // 추가된 행 번호 가져오기
  74. var cnt_row = grd_equiplist.rows; // 현재 행의 갯수 가져오기
  75. sGridPath = "/root/main/list/chklist"
  76. // //줄 추가시 기본세팅
  77. model.setValue(sGridPath+"["+cur_row+"]/cdgrupid", "260" );
  78. grd_equiplist.refresh();
  79. grd_equiplist.row = cur_row;
  80. grd_equiplist.select(cur_row, 1) = true;
  81. grd_equiplist.editcell();
  82. }
  83. function fClickDeleteBtn(){
  84. var cur_row = grd_equiplist.row; // 행 번호 가져오기
  85. var iStatus = grd_equiplist.rowstatus(cur_row);
  86. if(cur_row <= 0 || cur_row =="undefined") {
  87. alert("삭제할 행을 선택하시기 바랍니다...");
  88. return;
  89. }
  90. if (iStatus == 1 || iStatus == 3){ // 새로 삽입된 행이면
  91. grd_equiplist.deleteitem(cur_row);
  92. }else if (iStatus == 4){ // 삭제로 표시된 행이면
  93. grd_equiplist.removestatus(cur_row, "delete");
  94. grd_equiplist.deleteitem(cur_row);
  95. }else{
  96. grd_equiplist.addStatus(cur_row, "delete");
  97. grd_equiplist.deleteitem(cur_row);
  98. }
  99. }
  100. function fOnClickSaveBtn(){
  101. grd_equiplist.refresh();
  102. model.removenode("/root/send");
  103. model.makeValue("/root/send/listdata" , grd_equiplist.getUpdateData());
  104. if ( submit("TXMNP00361") ) {
  105. grd_equiplist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  106. model.setValue("/root/send/listdata","");
  107. }
  108. btn_search.dispatch("DOMActivate");
  109. }
  110. function fGridValueChanged(){
  111. // var cur_row = grd_equiplist.row; // 추가된 행 번호 가져오기
  112. // var cur_cel = grd_equiplist.col;
  113. // var cnt_row = grd_equiplist.rows; // 현재 행의 갯수 가져오기
  114. // var stat = grd_equiplist.colstatus(0);
  115. // var addcdid = model.getValue("/root/main/list/chklist["+cur_row+"]/cdid");
  116. //
  117. // if(cur_cel == 2){
  118. // for( row = 1; row < cnt_row-1; row++){
  119. // if(addcdid == model.getValue("/root/main/list/chklist["+row+"]/cdid")){
  120. // messageBox("같은 항목코드는 입력하실 수 없습니다. ","I000");
  121. // model.setValue("/root/main/list/chklist["+cur_row+"]/cdid" , "");
  122. // grd_equiplist.refresh();
  123. // grd_equiplist.select(cur_row, 2) = true;
  124. // grd_equiplist.editcell();
  125. //grd_equiplist.rowstatus(cur_row) = 0;
  126. // return;
  127. // }
  128. // }
  129. //
  130. // }
  131. }
  132. ]]>
  133. </script>
  134. </xhtml:head>
  135. <xhtml:body pagewidth="720" pageheight="800" guideline="1,685;1,733;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  136. <group id="group1" style="left:0px; top:0px; width:590px; height:13px; ">
  137. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:212px; height:14px; ">수술간호기록 장비등록 관리</caption>
  138. </group>
  139. <group id="group3" scroll="auto" style="left:5px; top:15px; width:690px; height:745px; ">
  140. <group id="group2" style="left:-16px; top:10px; width:696px; height:35px; vertical-align:top; ">
  141. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:18px; top:0px; width:678px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <line id="line13" style="x1:626px; y1:7px; x2:626px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  143. <input id="ipt_equipsrc" ref="/root/hidden/equinpm" style="left:335px; top:8px; width:120px; height:19px; "/>
  144. </group>
  145. <caption id="caption20" class="tit_2" style="left:6px; top:62px; width:136px; height:14px; ">장비 목록</caption>
  146. <line id="line8" class="line_1" style="x1:0px; y1:75px; x2:680px; y2:75px; "/>
  147. <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:620; y2:741; "/>
  148. <button id="button8" class="btn2_letter3" style="left:115px; top:54px; width:53px; height:19px; ">
  149. <caption>행추가</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. fClickRowAddBtn();
  153. ]]>
  154. </script>
  155. </button>
  156. <button id="button9" class="btn2_letter3" style="left:172px; top:54px; width:53px; height:19px; ">
  157. <caption>행삭제</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. fClickDeleteBtn();
  161. ]]>
  162. </script>
  163. </button>
  164. <datagrid id="grd_equiplist" nodeset="/root/main/list/chklist" visibility="visible" allowselection="false" caption="장비코드^장비명^모델^순서^수술방^유효시작일^유효종료일^최종 변경자^최종 변경일^lastupdtrid^cdgrupid" colsep="^" colwidth="56, 260, 121, 0, 50, 85, 85, 0, 0, 0, 0" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:681px; height:650px; ">
  165. <col ref="cdid" style="text-align:center; "/>
  166. <col ref="cdnm" type="input" style="text-align:left; "/>
  167. <col ref="grupdetldesc" type="input" style="text-align:left; "/>
  168. <col ref="sortseq" type="input" visibility="hidden" style="text-align:center; "/>
  169. <col ref="supcdid" type="combo" style="text-align:center; ">
  170. <choices>
  171. <itemset nodeset="/root/init/installplcelist/installplceinfo">
  172. <label ref="oproomnm"/>
  173. <value ref="oproomcd"/>
  174. </itemset>
  175. </choices>
  176. </col>
  177. <col ref="valifromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  178. <col ref="valitodd" format="yyyy-mm-dd" style="text-align:center; "/>
  179. <col ref="lastupdtrnm" visibility="hidden" style="text-align:center; "/>
  180. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  181. <col ref="lastupdtrid" visibility="hidden"/>
  182. <col ref="cdgrupid" visibility="hidden"/>
  183. <script type="javascript" ev:event="xforms-value-changed">
  184. <![CDATA[
  185. //fGridValueChanged();
  186. ]]>
  187. </script>
  188. </datagrid>
  189. <select1 id="cmb_equipinfolst" ref="/root/temp/equiplist/equipinfo/equipnm" appearance="minimal" style="left:95px; top:18px; width:215px; height:19px; ">
  190. <choices>
  191. <itemset nodeset="/root/temp/equiplist/equipinfo">
  192. <label ref="equipnm"/>
  193. <value ref="equipnm"/>
  194. </itemset>
  195. </choices>
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. fClickRowAddBtn();
  199. var cur_row = grd_equiplist.row;
  200. sGridPath = "/root/main/list/chklist"
  201. model.setValue(sGridPath+"["+cur_row+"]/cdnm", model.getValue("/root/temp/equiplist/equipinfo/equipnm"));
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption3" class="search_name" style="left:5px; top:19px; width:86px; height:17px; ">장비목록 :</caption>
  206. </group>
  207. <button id="button2" class="btn4_letter2" style="left:623px; top:65px; width:56px; height:22px; ">
  208. <caption>저장</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fOnClickSaveBtn();
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_search" class="btn1_letter2" style="left:559px; top:65px; width:56px; height:22px; ">
  216. <caption>조회</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. fInitialize();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_eqip" class="btn1_letter2" style="left:455px; top:32px; width:56px; height:22px; ">
  224. <caption>조회</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. model.removenode("/root/send");
  228. var equipnmsrc = model.getValue("/root/hidden/equinpm");
  229. model.makeValue("/root/send/equipnmsrc", equipnmsrc);
  230. submit("TRMNP00371");
  231. model.setValue("/root/hidden/equinpm","");
  232. ipt_equipsrc.refresh();
  233. ]]>
  234. </script>
  235. </button>
  236. </xhtml:body>
  237. </xhtml:html>