SMLPC03000_프로토콜등록.xrw 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <send/>
  10. <init>
  11. <searchcd/>
  12. <hospenv>
  13. <hospenvinfo>
  14. <instcd/>
  15. <lendrtnterm/>
  16. <recvqualmthdcd/>
  17. <plgydeptcd/>
  18. <plgyteamcd/>
  19. <doctjobgradcd/>
  20. <teamjobgradcd/>
  21. </hospenvinfo>
  22. </hospenv>
  23. </init>
  24. <hidden/>
  25. <main>
  26. <protocol>
  27. <protocollist>
  28. <instcd/>
  29. <seqno/>
  30. <protcd/>
  31. <protnm/>
  32. <delflagcd/>
  33. </protocollist>
  34. </protocol>
  35. </main>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fExeInitialize();
  41. ]]>
  42. </script>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  46. <submission id="TRLPC03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/protocol/protocollist"/>
  47. <submission id="TXLPC01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/protocollist" replace="instance" resultref="/root/message"/>
  48. </model>
  49. <script type="javascript">
  50. <![CDATA[
  51. /* @group : 검체코드등록 화면
  52. * @ver : 2007.01.08 (CMCDEV-0001)
  53. * @by : 황상미(ACK)
  54. * @-----------------------------------
  55. * @type : function
  56. * @access : public
  57. * @desc : 화면초기화 함수
  58. */
  59. function fExeInitialize() {
  60. //----------------
  61. // 노드 초기화 작업
  62. model.removeNodeset("/root/main/protocol/protocollist"); // 그리드의 노드를 삭제하여 기본 Row를 삭제한다.
  63. //model.setValue("/root/hidden/userinfo/instcd", getUserInfo("dutplceinstcd")); //instcd
  64. //-------------
  65. model.refresh();
  66. }
  67. function fExeEqmtDel() {
  68. //---------------------------------------------------------------------
  69. if (getNodesetCount("/root/main/protocol/protocollist") <= 0) return false;
  70. //-----------------------------------------------------------------------------------------
  71. if (model.getValue("/root/main/protocol/protocollist["+grd_ptnocdlist.row+"]/seqno") == "") {
  72. grd_ptnocdlist.deleteRow(grd_ptnocdlist.row);
  73. } else {
  74. grd_ptnocdlist.addStatus(grd_ptnocdlist.row,"delete");
  75. }
  76. }
  77. /* @group : 장비 프로토콜등록
  78. * @ver : 2012.01.01
  79. * @by : 이재오
  80. * @-----------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : 그리드 한줄추가 처리 Function
  84. */
  85. function fExeEqmtAdd() {
  86. grd_ptnocdlist.addrow();
  87. model.makeValue("/root/main/protocol/protocollist["+grd_ptnocdlist.row+"]/instcd", getUserInfo("dutplceinstcd"));
  88. grd_ptnocdlist.topRow = grd_ptnocdlist.rows -1;
  89. model.refresh();
  90. }
  91. /* @group : 검체코드등록 화면
  92. * @ver : 2011.01.02
  93. * @by : 이재오(ACK)
  94. * @-----------------------------------
  95. * @type : function
  96. * @access : public
  97. * @desc : 검체코드 조회 팝업창 처리 함수
  98. */
  99. function fGetretrieve() {
  100. model.makeValue("/root/send/searchcd", model.getvalue("/root/init/searchcd"));
  101. submit("TRLPZ00101", false);
  102. submit("TRLPC03001");
  103. }
  104. function fExeEqmtInfo() {
  105. var sEqmtCd = "";
  106. var sSrcNode = "/root/main/protocol/protocollist";
  107. //-----------------------------------
  108. if (getNodesetCount(sSrcNode) <= 0) {
  109. messageBox("프로토콜 내역 ", "C001");
  110. return false;
  111. } else {
  112. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  113. if (model.getValue(sSrcNode+"["+iNo+"]/seqno") == "") {
  114. messageBox("순번 ", "C002");
  115. return false;
  116. }
  117. if (model.getValue(sSrcNode+"["+iNo+"]/protcd") == "") {
  118. messageBox("프로토콜코드를 ", "C001");
  119. return false;
  120. }
  121. if (model.getValue(sSrcNode+"["+iNo+"]/protnm") == "") {
  122. messageBox("프로토콜명을 ", "C001");
  123. return false;
  124. }
  125. //----------------------------------------------------
  126. //sEqmtCd = model.getValue(sSrcNode+"["+iNo+"]/eqmtcd");
  127. //model.makeValue(sSrcNode+"["+iNo+"]/eqmtcd", sEqmtCd.toUpperCase());
  128. }
  129. }
  130. //--------------------------------
  131. model.removeNodeset("/root/send");
  132. model.makeValue("/root/send/protocollist", grd_ptnocdlist.getUpdateData());
  133. //-----------
  134. setAlertOn();
  135. if (submit("TXLPC01901")) ;
  136. //--fGetEqmtList();
  137. }
  138. ]]>
  139. </script>
  140. </xhtml:head>
  141. <xhtml:body>
  142. <select1 id="radio1" ref="/root/init/searchcd" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:675px; top:155px; width:205px; height:65px; border-style:none; ">
  143. <choices>
  144. <item>
  145. <label>프로토콜</label>
  146. <value>0</value>
  147. </item>
  148. <item>
  149. <label>검사코드</label>
  150. <value>1</value>
  151. </item>
  152. </choices>
  153. </select1>
  154. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:570px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  155. <caption id="caption22" class="search_name" visibility="hidden" style="left:16; top:9px; width:75px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회값 :</caption>
  156. <datagrid id="grd_ptnocdlist" nodeset="/root/main/protocol/protocollist" caption="기관코드^일련번호^프로토콜코드^프로토콜명^삭제구분^삭제구분" colsep="^" colwidth="100, 100, 100, 100, 100" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="5" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:20px; top:65px; width:550px; height:690px; border-color:#c0c0c0; ">
  157. <col ref="instcd" type="output"/>
  158. <col ref="seqno" type="input"/>
  159. <col ref="protcd" type="input"/>
  160. <col ref="protnm" type="input"/>
  161. <col ref="delflagcd" type="input"/>
  162. <script type="javascript" ev:event="onclick">
  163. <![CDATA[
  164. //fGetRefData("ptnoinfo");
  165. ]]>
  166. </script>
  167. <script type="javascript" ev:event="onaftersort">
  168. <![CDATA[
  169. //grd_ptnocdlist.gridToInstance();
  170. ]]>
  171. </script>
  172. </datagrid>
  173. <line id="line14" class="line_4" style="x1:495px; y1:5px; x2:495px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  174. <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:430px; top:5px; width:56px; height:22px; ">
  175. <caption>조회</caption>
  176. <script type="javascript" ev:event="DOMActivate">
  177. <![CDATA[
  178. fGetretrieve(); // 프로토콜 검색
  179. ]]>
  180. </script>
  181. </button>
  182. <button id="btn_deleqmt" class="btn2_letter3" navindex="7" style="left:515px; top:40px; width:53px; height:19px; ">
  183. <caption>행삭제</caption>
  184. <script type="javascript" ev:event="DOMActivate">
  185. <![CDATA[
  186. fExeEqmtDel();
  187. ]]>
  188. </script>
  189. </button>
  190. <button id="btn_addeqmt" class="btn2_letter3" navindex="6" style="left:450px; top:40px; width:53px; height:19px; ">
  191. <caption>행추가</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fExeEqmtAdd();
  195. ]]>
  196. </script>
  197. </button>
  198. <button id="button1" class="btn4_letter2" navindex="7" style="left:505px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  199. <caption>저장</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fExeEqmtInfo();
  203. ]]>
  204. </script>
  205. </button>
  206. </xhtml:body>
  207. </xhtml:html>