SPLPJ02400_전체검체조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPJ02400_전체검체조회
  4. * 설 명 : 전체검체조회
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.0.22
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>전체검체조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <spcinfo>
  20. <spclist>
  21. <instcd/>
  22. <testcd/>
  23. <spccd/>
  24. <spcnm/>
  25. </spclist>
  26. </spcinfo>
  27. <spcexmp1>
  28. <spcexmplist>
  29. <instcd/>
  30. <testcd/>
  31. <spccd/>
  32. <spcnm/>
  33. </spcexmplist>
  34. </spcexmp1>
  35. <spcexmp2>
  36. <spcexmplist>
  37. <instcd/>
  38. <testcd/>
  39. <spccd/>
  40. <spcnm/>
  41. </spcexmplist>
  42. </spcexmp2>
  43. <spcexmp3>
  44. <spcexmplist>
  45. <instcd/>
  46. <testcd/>
  47. <spccd/>
  48. <spcnm/>
  49. </spcexmplist>
  50. </spcexmp3>
  51. <spcexmp4>
  52. <spcexmplist>
  53. <instcd/>
  54. <testcd/>
  55. <spccd/>
  56. <spcnm/>
  57. </spcexmplist>
  58. </spcexmp4>
  59. <spcexmp5>
  60. <spcexmplist>
  61. <instcd/>
  62. <testcd/>
  63. <spccd/>
  64. <spcnm/>
  65. </spcexmplist>
  66. </spcexmp5>
  67. </main>
  68. <send/>
  69. <init>
  70. <testcd/>
  71. </init>
  72. <hidden>
  73. </hidden>
  74. <temp>
  75. <no/>
  76. <rowno/>
  77. </temp>
  78. </root>
  79. </instance>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. fExeInitialize();
  83. ]]>
  84. </script>
  85. <submission id="TRLPJ02401" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/spcinfo/spclist"/>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  90. <script type="javascript">
  91. <![CDATA[
  92. /* @group : 전체검체조회
  93. * @ver : 2007.10.22 (CMCDEV-0001)
  94. * @by : 유동철(ACK)
  95. * @-----------------------------------
  96. * @type : function
  97. * @access : public
  98. * @desc : 화면 초기화 Function
  99. */
  100. function fExeInitialize() {
  101. var bState = false;
  102. var iMod = -1;
  103. var iSeqNo = 1;
  104. var iRowNo = 1;
  105. var sNode = "/root/main/spcexmp";
  106. //model.makeValue("/root/init/testcd", "PSU00001");
  107. //--------------------------------
  108. model.removeNodeset("/root/send");
  109. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  110. model.makeValue("/root/send/testcd", model.getValue("/root/init/testcd"));
  111. submit("TRLPJ02401");
  112. //-------------
  113. bState = false;
  114. model.removeNodeset("/root/main/spcexmp/spcexmplist1");
  115. model.removeNodeset("/root/main/spcexmp/spcexmplist2");
  116. model.removeNodeset("/root/main/spcexmp/spcexmplist3");
  117. model.removeNodeset("/root/main/spcexmp/spcexmplist4");
  118. model.removeNodeset("/root/main/spcexmp/spcexmplist5");
  119. //-----------------------------------
  120. // 29개씩 검체를 그리드별로 분리한다.
  121. for (var iNo=1; iNo <= getNodesetCount("/root/main/spcinfo/spclist"); iNo++) {
  122. //--------------
  123. iMod = iNo % 29;
  124. //--------------------------------------------------
  125. model.makeNode(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]");
  126. model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/instcd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/instcd"));
  127. model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/testcd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/testcd"));
  128. model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/spccd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/spccd"));
  129. model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/spcnm", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/spcnm"));
  130. //----------------------
  131. if (Number(iMod) == 0) {
  132. iSeqNo++;
  133. iRowNo = 0;
  134. }
  135. //-------
  136. iRowNo++;
  137. }
  138. //---------------------
  139. grd_spclist1.refresh();
  140. grd_spclist2.refresh();
  141. grd_spclist3.refresh();
  142. grd_spclist4.refresh();
  143. grd_spclist5.refresh();
  144. //------------------------------------
  145. model.makeValue("/root/temp/no", "0"); // 그리드 번호
  146. model.makeValue("/root/temp/rowno", "0"); // 그리드 Row 번호
  147. }
  148. /* @group : 전체검체조회
  149. * @ver : 2007.10.22 (CMCDEV-0001)
  150. * @by : 유동철(ACK)
  151. * @-----------------------------------
  152. * @type : function
  153. * @access : public
  154. * @desc : 화면 닫기 Function
  155. */
  156. function fExeClose() {
  157. model.close();
  158. }
  159. function fExeGridSpcChoi(pNo, pRowNo) {
  160. var prest_grid = event.currentTarget;
  161. var grid_control = document.controls(prest_grid);
  162. //---------------------------------------------------------------------------------------
  163. if(pRowNo > 0 && grid_control.isCell(event.target) && pRowNo >= grid_control.fixedRows) {
  164. fExeSpcChoi(pNo, pRowNo);
  165. }
  166. }
  167. /* @group : 전체검체조회
  168. * @ver : 2007.10.22 (CMCDEV-0001)
  169. * @by : 유동철(ACK)
  170. * @-----------------------------------
  171. * @type : function
  172. * @access : public
  173. * @desc : 화면 닫기 Function
  174. */
  175. function fExeSpcChoi(pNo, pRowNo) {
  176. var sNode = "/root/main/spcexmp"+pNo+"/spcexmplist";
  177. //----------------
  178. if (pRowNo <= 0) {
  179. messageBox("검체를 선택하여 주십시오! 검체는 ", "I003");
  180. return false;
  181. }
  182. //---------------------------------------------------------------------------------------------
  183. opener.javascript.setParameter("SPLPJ02400_spccd", model.getValue(sNode+"["+pRowNo+"]/spccd"));
  184. opener.javascript.setParameter("SPLPJ02400_spcnm", model.getValue(sNode+"["+pRowNo+"]/spcnm"));
  185. fExeClose();
  186. }
  187. //--------------------------
  188. function fExeGridChoi(pNo) {
  189. var iRowNo1 = grd_spclist1.row;
  190. var iRowNo2 = grd_spclist2.row;
  191. var iRowNo3 = grd_spclist3.row;
  192. var iRowNo4 = grd_spclist4.row;
  193. var iRowNo5 = grd_spclist5.row;
  194. switch (pNo) {
  195. case 1 :
  196. grd_spclist2.select(iRowNo2,1) = false;
  197. grd_spclist3.select(iRowNo3,1) = false;
  198. grd_spclist4.select(iRowNo4,1) = false;
  199. grd_spclist5.select(iRowNo5,1) = false;
  200. break;
  201. case 2 :
  202. grd_spclist1.select(iRowNo1,1) = false;
  203. grd_spclist3.select(iRowNo3,1) = false;
  204. grd_spclist4.select(iRowNo4,1) = false;
  205. grd_spclist5.select(iRowNo5,1) = false;
  206. break;
  207. case 3 :
  208. grd_spclist1.select(iRowNo1,1) = false;
  209. grd_spclist2.select(iRowNo2,1) = false;
  210. grd_spclist4.select(iRowNo4,1) = false;
  211. grd_spclist5.select(iRowNo5,1) = false;
  212. break;
  213. case 4 :
  214. grd_spclist1.select(iRowNo1,1) = false;
  215. grd_spclist2.select(iRowNo2,1) = false;
  216. grd_spclist3.select(iRowNo3,1) = false;
  217. grd_spclist5.select(iRowNo5,1) = false;
  218. break;
  219. case 5 :
  220. grd_spclist1.select(iRowNo1,1) = false;
  221. grd_spclist2.select(iRowNo2,1) = false;
  222. grd_spclist3.select(iRowNo3,1) = false;
  223. grd_spclist4.select(iRowNo4,1) = false;
  224. break;
  225. }
  226. }
  227. ]]>
  228. </script>
  229. </xhtml:head>
  230. <xhtml:body pagewidth="1028" pageheight="767" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  231. <group id="grp_btn" style="left:0px; top:722px; width:1010px; height:27px; ">
  232. <button id="btn_cls" navindex="12" class="btn4_letter2" style="left:954; top:3px; width:56px; height:22px; ">
  233. <caption>닫기</caption>
  234. <script type="javascript" ev:event="DOMActivate">
  235. <![CDATA[
  236. fExeClose();
  237. ]]>
  238. </script>
  239. </button>
  240. <button id="btn_save" navindex="11" class="btn4_letter2" visibility="hidden" style="left:895; top:3px; width:56px; height:22px; ">
  241. <caption>확인</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fExeSpcChoi();
  245. ]]>
  246. </script>
  247. </button>
  248. </group>
  249. <group id="grp_biz" style="left:0px; top:0px; width:1010px; height:722; ">
  250. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:111px; height:14px; ">검체예문</caption>
  251. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:190px; y2:25px; "/>
  252. <caption id="caption1" class="tit_2" style="left:205px; top:10px; width:111px; height:13px; ">검체예문</caption>
  253. <line id="line2" class="line_1" style="x1:200px; y1:25px; x2:390px; y2:25px; "/>
  254. <caption id="caption3" class="tit_2" style="left:405px; top:10px; width:111px; height:13px; ">검체예문</caption>
  255. <line id="line3" class="line_1" style="x1:400px; y1:25px; x2:590px; y2:25px; "/>
  256. <caption id="caption4" class="tit_2" style="left:605px; top:10px; width:111px; height:13px; ">검체예문</caption>
  257. <line id="line4" class="line_1" style="x1:600px; y1:25px; x2:790px; y2:25px; "/>
  258. <caption id="caption5" class="tit_2" style="left:805px; top:10px; width:111px; height:13px; ">검체예문</caption>
  259. <line id="line5" class="line_1" style="x1:800px; y1:25px; x2:1010px; y2:25px; "/>
  260. <datagrid id="grd_spclist1" nodeset="/root/main/spcexmp1/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:30px; width:190; height:692; ">
  261. <col ref="instcd"/>
  262. <col ref="testcd"/>
  263. <col ref="spccd"/>
  264. <col ref="spcnm"/>
  265. <script type="javascript" ev:event="ondblclick">
  266. <![CDATA[
  267. fExeGridSpcChoi(1, grd_spclist1.row);
  268. ]]>
  269. </script>
  270. <script type="javascript" ev:event="DOMFocusIn">
  271. <![CDATA[
  272. fExeGridChoi(1);
  273. ]]>
  274. </script>
  275. </datagrid>
  276. <datagrid id="grd_spclist2" nodeset="/root/main/spcexmp2/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:200px; top:30px; width:190px; height:692; ">
  277. <col ref="instcd"/>
  278. <col ref="testcd"/>
  279. <col ref="spccd"/>
  280. <col ref="spcnm"/>
  281. <script type="javascript" ev:event="ondblclick">
  282. <![CDATA[
  283. fExeGridSpcChoi(2, grd_spclist2.row);
  284. ]]>
  285. </script>
  286. <script type="javascript" ev:event="DOMFocusIn">
  287. <![CDATA[
  288. fExeGridChoi(2);
  289. ]]>
  290. </script>
  291. </datagrid>
  292. <datagrid id="grd_spclist3" nodeset="/root/main/spcexmp3/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:400px; top:30px; width:190px; height:692; ">
  293. <col ref="instcd"/>
  294. <col ref="testcd"/>
  295. <col ref="spccd"/>
  296. <col ref="spcnm"/>
  297. <script type="javascript" ev:event="ondblclick">
  298. <![CDATA[
  299. fExeGridSpcChoi(3, grd_spclist3.row);
  300. ]]>
  301. </script>
  302. <script type="javascript" ev:event="DOMFocusIn">
  303. <![CDATA[
  304. fExeGridChoi(3);
  305. ]]>
  306. </script>
  307. </datagrid>
  308. <datagrid id="grd_spclist4" nodeset="/root/main/spcexmp4/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:600px; top:30px; width:190px; height:692; ">
  309. <col ref="instcd"/>
  310. <col ref="testcd"/>
  311. <col ref="spccd"/>
  312. <col ref="spcnm"/>
  313. <script type="javascript" ev:event="ondblclick">
  314. <![CDATA[
  315. fExeGridSpcChoi(4, grd_spclist4.row);
  316. ]]>
  317. </script>
  318. <script type="javascript" ev:event="DOMFocusIn">
  319. <![CDATA[
  320. fExeGridChoi(4);
  321. ]]>
  322. </script>
  323. </datagrid>
  324. <datagrid id="grd_spclist5" nodeset="/root/main/spcexmp5/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:800px; top:30px; width:210px; height:692; ">
  325. <col ref="instcd"/>
  326. <col ref="testcd"/>
  327. <col ref="spccd"/>
  328. <col ref="spcnm"/>
  329. <script type="javascript" ev:event="ondblclick">
  330. <![CDATA[
  331. fExeGridSpcChoi(5, grd_spclist5.row);
  332. ]]>
  333. </script>
  334. <script type="javascript" ev:event="DOMFocusIn">
  335. <![CDATA[
  336. fExeGridChoi(5);
  337. ]]>
  338. </script>
  339. </datagrid>
  340. </group>
  341. </xhtml:body>
  342. </xhtml:html>