SMMMB08300_임상시험프로토콜관리.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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. <!--
  11. <prmsprcpsetinfo>
  12. <prmsprcpsetlist>
  13. <levl/>
  14. <setno/>
  15. <supsetno/>
  16. <sortno/>
  17. <setkindcd/>
  18. <setclscd/>
  19. <settrgtcd/>
  20. <setnm/>
  21. <settypecd/>
  22. <ioflag/>
  23. </prmsprcpsetlist>
  24. <result/>
  25. </prmsprcpsetinfo>
  26. -->
  27. <iptbox>
  28. <setnm/>
  29. </iptbox>
  30. <!--
  31. <cond>
  32. <foldernm/>
  33. <prmsflag/>
  34. <deptsetcd/>
  35. <settypecd/>
  36. <ioflag>O</ioflag>
  37. </cond>
  38. -->
  39. <subjinfo>
  40. <subjlist>
  41. <subjno/>
  42. <stdyno/>
  43. <subjenddd/>
  44. <instcd/>
  45. <stdysubjnm/>
  46. <cpgno/>
  47. <cpghistseq/>
  48. <cpgnm/>
  49. <ioflag/>
  50. </subjlist>
  51. </subjinfo>
  52. <subjprtlinfo>
  53. <subjprtllist>
  54. <lev/>
  55. <cpgno/>
  56. <stepno/>
  57. <stepnm/>
  58. <cpghistseq/>
  59. <setno/>
  60. <ioflag/>
  61. <refseq/>
  62. <status/>
  63. </subjprtllist>
  64. </subjprtlinfo>
  65. </main>
  66. <send>
  67. <reqdata/>
  68. <savedata/>
  69. </send>
  70. <hidden>
  71. <!--
  72. <prmsprcpsetinfo>
  73. <prmsprcpsetlist>
  74. <status/>
  75. <levl/>
  76. <setno/>
  77. <supsetno/>
  78. <sortno/>
  79. <setkindcd/>
  80. <setclscd/>
  81. <settrgtcd/>
  82. <setnm/>
  83. <settypecd/>
  84. <ioflag/>
  85. </prmsprcpsetlist>
  86. </prmsprcpsetinfo>
  87. -->
  88. <subjinfo>
  89. <subjlist>
  90. <subjno/>
  91. <stdyno/>
  92. <subjenddd/>
  93. <instcd/>
  94. <stdysubjnm/>
  95. <cpgno/>
  96. <cpghistseq/>
  97. <cpgnm/>
  98. <ioflag/>
  99. </subjlist>
  100. </subjinfo>
  101. <!--
  102. <subjprtlinfo>
  103. <subjprtllist>
  104. <lev/>
  105. <cpgno/>
  106. <stepno/>
  107. <stepnm/>
  108. <cpghistseq/>
  109. <setno/>
  110. <ioflag/>
  111. <status/>
  112. </subjprtllist>
  113. </subjprtlinfo>
  114. -->
  115. </hidden>
  116. <init>
  117. <totstep/>
  118. <height/>
  119. <weight/>
  120. <BSA/>
  121. </init>
  122. <temp>
  123. <trvsubjsteplist/>
  124. <!--
  125. <copy>
  126. <setno/>
  127. <settypecd/>
  128. <setkindcd/>
  129. <setclscd/>
  130. <settrgtcd/>
  131. <setnm/>
  132. <supsetno/>
  133. <trgtsettypecd/>
  134. <trgtsetkindcd/>
  135. <trgtsettrgtcd/>
  136. <trgtsetclscd/>
  137. <trgtioflag/>
  138. <ioflag/>
  139. </copy>
  140. -->
  141. </temp>
  142. <trvprcpmenu>
  143. <menu>
  144. <menu>
  145. <label>새폴더</label>
  146. <func>fAddSubjPrtlSet</func>
  147. </menu>
  148. <menu>
  149. <label>폴더이름 바꾸기</label>
  150. <func>fUpdtPrtlSet</func>
  151. </menu>
  152. <menu>
  153. <label>폴더삭제</label>
  154. <func>fDelSubjPrtlSet</func>
  155. </menu>
  156. </menu>
  157. </trvprcpmenu>
  158. <!--
  159. <trvetcmenu>
  160. <menu>
  161. <menu>
  162. <label>새폴더</label>
  163. <func>fAddPrmsDiagSet</func>
  164. </menu>
  165. <menu>
  166. <label>폴더이름 바꾸기</label>
  167. <func>fUpdtPrmsDiagSet</func>
  168. </menu>
  169. <menu>
  170. <label>폴더삭제</label>
  171. <func>fDelPrmsDiagSet</func>
  172. </menu>
  173. <menu>
  174. <label/>
  175. <func/>
  176. </menu>
  177. <menu>
  178. <label>붙여넣기</label>
  179. <func>fPasteCD</func>
  180. </menu>
  181. </menu>
  182. </trvetcmenu>
  183. <trvothrmenu>
  184. <menu>
  185. <menu>
  186. <label>폴더복사</label>
  187. <func>fFolderCopy</func>
  188. </menu>
  189. <menu>
  190. <label>폴더붙여넣기</label>
  191. <func>fFolderPaste</func>
  192. </menu>
  193. </menu>
  194. </trvothrmenu>
  195. <trvothrmenu2>
  196. <menu>
  197. <menu>
  198. <label>폴더복사</label>
  199. <func>fFolderCopy</func>
  200. </menu>
  201. </menu>
  202. </trvothrmenu2>
  203. -->
  204. </root>
  205. </instance>
  206. <script type="javascript" ev:event="xforms-ready">
  207. <![CDATA[
  208. fClkBtnPrcpTab();
  209. // radio1.attribute("visibility") = "hidden";
  210. // model.setValue("/root/main/cond/ioflag", "O");
  211. submit("TRMMB08301", true);
  212. ]]>
  213. </script>
  214. <script type="javascript" ev:event="xforms-model-construct-done">
  215. <![CDATA[
  216. group1.attribute("height") = 0;
  217. ]]>
  218. </script>
  219. <!--
  220. <submission id="TXMMB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/prmsprcpsetinfo"/>
  221. <submission id="TRMMB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prmsprcpsetinfo"/>
  222. <submission id="TXMMB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/etcprmsprcpsetdetlinfo"/>
  223. <submission id="TRMMB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/etcprmsprcpsetdetlinfo"/>
  224. <submission id="TRMMB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/deptlist"/>
  225. <submission id="TRMMO03111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptindxcdlist"/>
  226. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  227. <submission id="TXMMB00607" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/prmsprcpsetinfo"/>
  228. <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
  229. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMB00600.js"/>
  230. -->
  231. <submission id="TRMMB08301" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/subjinfo/subjlist"/>
  232. <submission id="TXMMB08301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/subjprtlinfo/subjprtllist"/>
  233. <submission id="TXMMB08302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/subjprtlinfo/subjprtllist"/>
  234. <submission id="TXMMB08303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subjprtlinfo/subjprtllist"/>
  235. <submission id="TXMMB08304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/subjprtlinfo/subjprtllist"/>
  236. <submission id="TRMMB08302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/tempsubj/reqdata" resultref="/root/tempsubj/result"/>
  237. </model>
  238. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  239. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  240. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  241. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  242. <script type="javascript" src="../../../emr/prcpmngtweb/js/SMMMB08300.js"/>
  243. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  244. </xhtml:head>
  245. <xhtml:body visibility="visible" pagewidth="1210" pageheight="790" style="border-color:#c7a3cf; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  246. <iviewer id="iviewer1" style="left:230px; top:20px; width:963px; height:739px; border-color:transparent; border-style:solid; "/>
  247. <treeview id="trv_prmsprcpsetlist" ref="/root/temp/trvsubjsteplist" dragmode="true" dropmode="true" expanddepth="1" fullrowselect="false" itemsettype="depth" style="left:0px; top:377px; width:227px; height:381px; border-color:#c7a3cf; border-style:solid; ">
  248. <script type="javascript" ev:event="onmousedown">
  249. <![CDATA[
  250. // fMouseRghtBtnPopup();
  251. if(event.button == 3){
  252. var rowpos = trv_prmsprcpsetlist.mouseRow;
  253. trv_prmsprcpsetlist.select(rowpos);
  254. }
  255. setPopupMenu("trv_prmsprcpsetlist", false, "/root/trvprcpmenu/menu/menu" , "label", "func");
  256. ]]>
  257. </script>
  258. <script type="javascript" ev:event="xforms-select">
  259. <![CDATA[
  260. fReqSubjPrtlStepSet();
  261. ]]>
  262. </script>
  263. <script type="javascript" ev:event="ondragover">
  264. <![CDATA[
  265. fDragOverColorChng();
  266. ]]>
  267. </script>
  268. <script type="javascript" ev:event="ondrop">
  269. <![CDATA[
  270. fDropTrvItem();
  271. ]]>
  272. </script>
  273. <itemset nodeset="/root/main/subjprtlinfo/subjprtllist">
  274. <label ref="stepnm"/>
  275. <value ref="stepno"/>
  276. <depth ref="lev"/>
  277. </itemset>
  278. </treeview>
  279. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">임상시험 프로토콜 관리</caption>
  280. <group id="group1" style="left:1px; top:482px; width:218px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
  281. <caption id="caption4" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">폴더명</caption>
  282. <input id="ipt_setnm" ref="/root/main/iptbox/setnm" class="input_default" style="left:55px; top:5px; width:154px; height:19px; border-color:#3366ff; border-style:solid; ">
  283. <script type="javascript" ev:event="onkeypress">
  284. <![CDATA[
  285. inputEnterKey("btn_cnfm", "DOMActivate");
  286. var keycode = event.keyCode;
  287. if(keycode == 27){
  288. group1.attribute("height") = 0;
  289. model.setFocus("trv_etcprmsprcpsetlist");
  290. return;
  291. }
  292. ]]>
  293. </script>
  294. </input>
  295. <button id="btn_cnfm" class="btn2_letter2" style="left:122px; top:26px; width:42px; height:19px; ">
  296. <caption>확인</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fClkBtnCnfm();
  300. ]]>
  301. </script>
  302. </button>
  303. <button id="button3" class="btn2_letter2" style="left:166px; top:26px; width:42px; height:19px; ">
  304. <caption>취소</caption>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. group1.attribute("height") = 0;
  308. ]]>
  309. </script>
  310. </button>
  311. </group>
  312. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:201px; width:227px; height:171px; background-color:#fffbf2; border-color:#ffd799; "/>
  313. <caption id="caption2" class="search_name" style="left:5px; top:252px; width:86px; height:17px; ">과제명</caption>
  314. <caption id="caption5" class="search_name" style="left:5px; top:209px; width:95px; height:17px; ">과제번호</caption>
  315. <caption id="caption1" class="search_name" style="left:5px; top:346px; width:81px; height:17px; ">총회차 :</caption>
  316. <datagrid id="grd_subjlist" nodeset="/root/main/subjinfo/subjlist" caption="과제번호^연구코드^종료일" colsep="^" colwidth="120, 95, 83" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:22px; width:227px; height:173px; ">
  317. <col ref="subjno"/>
  318. <col ref="stdyno"/>
  319. <col ref="subjenddd" format="yyyy-mm-dd"/>
  320. <script type="javascript" ev:event="onclick">
  321. <![CDATA[
  322. if( grd_subjlist.isCell(event.target) && grd_subjlist.row >= grd_subjlist.fixedRows ){
  323. copyNodeType("/root/send/reqdata", "/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]", "replace");
  324. model.removeNodeset("/root/main/subjprtlinfo/subjprtllist");
  325. model.refresh();
  326. submit("TXMMB08301", false);
  327. // 프로토콜정보(mmphcinf)에대해 조회된 정보를 그리드에 다시 세팅. (lev='1')
  328. model.setValue("/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]/cpgno", model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/cpgno") );
  329. model.setValue("/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]/cpghistseq", model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/cpghistseq") );
  330. model.setValue("/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]/cpgnm", model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/stepnm") );
  331. model.setValue("/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]/ioflag", model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/ioflag") );
  332. copyNodeType("/root/hidden/subjinfo/subjlist", "/root/main/subjinfo/subjlist[" + grd_subjlist.row + "]", "replace");
  333. model.setValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/stepnm", model.getValue("/root/hidden/subjinfo/subjlist/subjno")+" "+model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/stepnm") );
  334. if ( getNodesetCount("/root/main/subjprtlinfo/subjprtllist") > 1 ) {
  335. btn_savestep.disabled = true;
  336. ipt_totstep.disabled = true;
  337. } else {
  338. btn_savestep.disabled = false;
  339. ipt_totstep.disabled = false;
  340. }
  341. model.refresh();
  342. }
  343. ]]>
  344. </script>
  345. </datagrid>
  346. <output id="opt_subjno" ref="/root/hidden/subjinfo/subjlist/subjno" class="output_fix" style="left:23px; top:228px; width:188px; height:19px; "/>
  347. <line id="line3" class="line_1" style="x1:0px; y1:16px; x2:1194px; y2:16px; "/>
  348. <textarea id="txt_subjnm" ref="/root/hidden/subjinfo/subjlist/stdysubjnm" class="output_fix" style="left:23px; top:271px; width:189px; height:65px; "/>
  349. <button id="btn_savestep" class="btn2_letter4" disabled="true" style="left:138px; top:345px; width:59px; height:19px; ">
  350. <caption>최초생성</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. if ( model.getValue("/root/init/totstep") == "" || parseInt(model.getValue("/root/init/totstep")) == 0 ) {
  354. messageBox("총 회차를", "C001");
  355. return -1;
  356. } else if ( parseInt(model.getValue("/root/init/totstep")) >= 20 ) {
  357. messageBox("총 회차가 20 이 넘습니다.", "Q003");
  358. return -1;
  359. }
  360. model.removeNodeset("/root/send/reqdata");
  361. model.makeNode("/root/send/reqdata/totstep");
  362. copyNodeType("/root/send/reqdata", "/root/hidden/subjinfo/subjlist", "after");
  363. model.setValue("/root/send/reqdata/totstep", model.getValue("/root/init/totstep") );
  364. submit("TXMMB08303", false); // 회차 자동생성.
  365. model.setValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/stepnm", model.getValue("/root/hidden/subjinfo/subjlist/subjno")+" "+model.getValue("/root/main/subjprtlinfo/subjprtllist[lev='1']/stepnm") );
  366. if ( getNodesetCount("/root/main/subjprtlinfo") > 1 )
  367. btn_savestep.disabled = true;
  368. else
  369. btn_savestep.disabled = false;
  370. model.refresh();
  371. ]]>
  372. </script>
  373. </button>
  374. <input id="ipt_totstep" ref="/root/init/totstep" class="output_fix" autonext="false" maxlength="2" format="##" style="left:88px; top:345px; width:45px; height:19px; text-align:center; "/>
  375. <caption id="caption3" class="search_name" style="left:230px; top:765px; width:94px; height:17px; ">BSA 계산 =</caption>
  376. <caption id="caption11" style="left:330px; top:765px; width:355px; height:20px; font-weight:bold; vertical-align:middle; ">((신장 cm x 체중 kg) / 3600)^(1/2) =</caption>
  377. <button id="button1" class="btn5_letter2" style="left:810px; top:765px; width:42px; height:19px; ">
  378. <caption>계산</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. if ( model.getValue("/root/init/height") == "" || model.getValue("/root/init/weight") == "" ) {
  382. messageBox("신장 또는 체중을 입력하십시오.", "C010");
  383. return;
  384. }
  385. if ( parseFloat(model.getValue("/root/init/height")) == 0 || parseFloat(model.getValue("/root/init/weight")) == 0 ) {
  386. messageBox("신장 또는 체중을 확인하십시오.", "C010");
  387. return;
  388. }
  389. var sBSA = Math.pow( (parseFloat(model.getValue("/root/init/height")) * parseFloat(model.getValue("/root/init/weight")) / 3600 ) , 0.5);
  390. sBSA = Math.round( sBSA * 100) /100;
  391. model.setValue("/root/init/BSA", sBSA);
  392. model.refresh();
  393. ]]>
  394. </script>
  395. </button>
  396. <input id="ipt_height" ref="/root/init/height" maxlength="6" style="left:372px; top:765px; width:60px; height:19px; "/>
  397. <input id="ipt_weight" ref="/root/init/weight" maxlength="4" style="left:497px; top:765px; width:55px; height:19px; "/>
  398. <output id="opt_BSA" ref="/root/init/BSA" class="output_fix" style="left:703px; top:765px; width:100px; height:19px; "/>
  399. </xhtml:body>
  400. </xhtml:html>