SMLMF00500_미생물검체그룹.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLMF00500_미생물검체그룹.xrw
  4. * 설 명 : 미생물검체그룹
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 조철형
  7. * 작 성 일 : 2007.4.11
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <listinfo>
  20. <spcgruplist>
  21. <spcgrupfromdd/>
  22. <spcgruptodd/>
  23. <spcgrupcd/>
  24. <spcgrupnm/>
  25. <spcgrupabbrnm/>
  26. <spcgrupscrnnm/>
  27. <spcgrupprntnm/>
  28. </spcgruplist>
  29. <spclist>
  30. <chk/>
  31. <spccd/>
  32. <spcscrnnm/>
  33. </spclist>
  34. </listinfo>
  35. <spcinfo>
  36. <spclist>
  37. <spccd/>
  38. <spcscrnnm/>
  39. </spclist>
  40. </spcinfo>
  41. </main>
  42. <send>
  43. <data1/>
  44. <data2/>
  45. <spcgrupcd/>
  46. <spccd/>
  47. </send>
  48. <init>
  49. </init>
  50. <hidden>
  51. <ref>
  52. <refgbn>1</refgbn>
  53. <searchgbn>1</searchgbn>
  54. <searchnm/>
  55. <btnflag/>
  56. </ref>
  57. <default/>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" ev:event="xforms-model-construct-done">
  62. <![CDATA[
  63. grd_spcgruplist.removeItem();
  64. grd_spcgrupspclist.removeItem();
  65. grd_spclist.removeItem();
  66. ]]>
  67. </script>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <submission id="TRLMF00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/listinfo"/>
  72. <submission id="TXLMF00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  73. <submission id="TRLMF00502" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/spcinfo"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. /* @group : 미생물검체그룹
  78. * @ver : 2007.04.11(CMCDEV-0001)
  79. * @by : 조철형
  80. *@-----------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : 행추가 버튼 클릭
  84. */
  85. function fInsRowAdd(pGridId) {
  86. pGridId.addRow();
  87. var row = pGridId.rows-1;
  88. pGridId.topRow = row;
  89. model.setvalue("/root/main/listinfo/spcgruplist["+ row +"]/spcgrupfromdd" , getCurrentDate());
  90. model.setvalue("/root/main/listinfo/spcgruplist["+ row +"]/spcgruptodd" , "99991231");
  91. }
  92. /* @group : 미생물검체그룹
  93. * @ver : 2007.04.11(CMCDEV-0001)
  94. * @by : 조철형
  95. *@-----------------------------------
  96. * @type : function
  97. * @access : public
  98. * @desc : 초기화버튼클릭
  99. */
  100. function fSetInit() {
  101. model.removeNodeset("/root/main/listinfo/spcgruplist");
  102. model.removeNodeset("/root/main/listinfo/spclist");
  103. model.removeNodeset("/root/main/spcinfo/spclist");
  104. model.refresh();
  105. }
  106. /* @group : 미생물검체그룹
  107. * @ver : 2007.04.11(CMCDEV-0001)
  108. * @by : 조철형
  109. *@-----------------------------------
  110. * @type : function
  111. * @access : public
  112. * @desc : 조회버튼 클릭시검체그룹, 검체정보 조회
  113. */
  114. function fGetSpcGrup(gbn){
  115. model.removeNodeset("/root/main/spcinfo/spclist");
  116. //model.refresh();
  117. model.setvalue("/root/hidden/ref/btnflag",gbn);
  118. model.copyNode("/root/send/data1","/root/hidden/ref");
  119. submit("TRLMF00501");
  120. model.copyNode("/root/send/data1","/root/hidden/default");
  121. fGridColorChange();
  122. }
  123. /* @group : 미생물검체그룹
  124. * @ver : 2007.04.11(CMCDEV-0001)
  125. * @by : 조철형
  126. *@-----------------------------------
  127. * @type : function
  128. * @access : public
  129. * @desc : 조회후에 그리드 변경
  130. */
  131. function fGridColorChange(){
  132. grd_spcgruplist.rebuildstyle();
  133. var gbn = model.getValue("/root/hidden/ref/refgbn");
  134. if(gbn=="2"){
  135. setRowStyle("grd_spcgruplist", "0", getCurrentDate(), "spcgruptodd", "small");
  136. }
  137. }
  138. /* @group : 미생물검체그룹
  139. * @ver : 2007.04.11(CMCDEV-0001)
  140. * @by : 조철형
  141. *@-----------------------------------
  142. * @type : function
  143. * @access : public
  144. * @desc : 저장버튼 클릭
  145. */
  146. function fExeSave(){
  147. grd_spcgrupspclist.rebuild();
  148. for(i=1;i<grd_spcgrupspclist.rows;i++){
  149. grd_spcgrupspclist.addStatus( i, "insert");
  150. }
  151. var row = grd_spcgruplist.row;
  152. model.setvalue("/root/send/spccd" , grd_spcgrupspclist.getUpdateData());
  153. model.copyNode("/root/send/data2" , "/root/main/listinfo/spcgruplist["+row+"]");
  154. submit("TXLMF00501");
  155. model.copyNode("/root/send/spccd","/root/hidden/default");
  156. model.copyNode("/root/send/data2","/root/hidden/default");
  157. grd_spcgrupspclist.clearStatus();
  158. }
  159. /* @group : 미생물검체그룹
  160. * @ver : 2007.04.11(CMCDEV-0001)
  161. * @by : 조철형
  162. *@-----------------------------------
  163. * @type : function
  164. * @access : public
  165. * @desc : 검체그룹 그리드 클릭
  166. */
  167. function fOnclick_grd_spcgruplist(){
  168. var row = grd_spcgruplist.row;
  169. var status = grd_spcgruplist.rowstatus(row);
  170. if(status == "1" || status == "3") return;
  171. if(grd_spcgruplist.isCell(event.target) && grd_spcgruplist.row >= grd_spcgruplist.fixedRows ){
  172. if(row > 0){
  173. model.setvalue("/root/send/spcgrupcd",model.getvalue("/root/main/listinfo/spcgruplist["+row+"]/spcgrupcd"));
  174. submit("TRLMF00502");
  175. model.copyNode("/root/send/spcgrupcd","/root/hidden/default");
  176. }
  177. }
  178. }
  179. /* @group : 미생물검체그룹
  180. * @ver : 2007.04.11(CMCDEV-0001)
  181. * @by : 조철형
  182. *@-----------------------------------
  183. * @type : function
  184. * @access : public
  185. * @desc : 검체설정 << 버튼 클릭
  186. */
  187. function fOnclick_btn(){
  188. var spcgrupcd = model.getvalue("/root/main/listinfo/spcgruplist["+grd_spcgruplist.row+"]/spcgrupcd");
  189. for(i=1;i<grd_spclist.rows;i++){
  190. if(model.getvalue("/root/main/listinfo/spclist["+i+"]/chk") == "true"){
  191. var spccd = model.getvalue("/root/main/listinfo/spclist["+i+"]/spccd");
  192. var spcscrnnm = model.getvalue("/root/main/listinfo/spclist["+i+"]/spcscrnnm");
  193. var findrow = grd_spcgrupspclist.findRow(spccd , 1,1,false, true);
  194. if(findrow < 0){
  195. grd_spcgrupspclist.addRow();
  196. var iRow = grd_spcgrupspclist.rows-1;
  197. model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spccd" ,spccd );
  198. model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spcscrnnm" ,spcscrnnm );
  199. }
  200. }
  201. }
  202. }
  203. ]]>
  204. </script>
  205. </xhtml:head>
  206. <xhtml:body guideline="1,574;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  207. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  208. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:574px; y2:70px; "/>
  209. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:173px; height:14px; ">검체그룹 정보</caption>
  210. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  211. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  212. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  213. <line id="line2" class="line_4" style="x1:273px; y1:7px; x2:273px; y2:29px; "/>
  214. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  215. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  216. <select1 id="cmb_RefFlag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; ">
  217. <choices>
  218. <item>
  219. <label>사용가능자료</label>
  220. <value>1</value>
  221. </item>
  222. <item>
  223. <label>전체자료</label>
  224. <value>2</value>
  225. </item>
  226. </choices>
  227. </select1>
  228. <button id="btn_Ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
  229. <caption>조회</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. fGetSpcGrup("1");
  233. ]]>
  234. </script>
  235. </button>
  236. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  237. <caption>검색</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fGetSpcGrup("2");
  241. ]]>
  242. </script>
  243. </button>
  244. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  245. <choices>
  246. <item>
  247. <label>코드</label>
  248. <value>1</value>
  249. </item>
  250. <item>
  251. <label>코드명</label>
  252. <value>2</value>
  253. </item>
  254. </choices>
  255. </select1>
  256. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  257. </group>
  258. <caption id="caption3" class="tit_2" style="left:580px; top:55px; width:183px; height:14px; ">검체그룹에 포함할 검체설정</caption>
  259. <line id="line4" class="line_1" style="x1:580px; y1:70px; x2:849px; y2:70px; "/>
  260. <line id="line5" class="line_1" style="x1:890px; y1:70px; x2:1195px; y2:70px; "/>
  261. <caption id="caption5" class="tit_2" style="left:895px; top:55px; width:173px; height:13px; ">검체정보</caption>
  262. <datagrid id="grd_spclist" nodeset="/root/main/listinfo/spclist" caption="선택^코드^검체명" colwidth="35, 67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:890px; top:75px; width:305px; height:669px; ">
  263. <col ref="chk" type="checkbox"/>
  264. <col ref="spccd" type="output"/>
  265. <col ref="spcscrnnm" type="output"/>
  266. <script type="javascript" ev:event="onaftersort">
  267. <![CDATA[
  268. grd_spclist.gridToInstance();
  269. ]]>
  270. </script>
  271. </datagrid>
  272. <datagrid id="grd_spcgruplist" nodeset="/root/main/listinfo/spcgruplist" caption="사용시작일자^사용종료일자^코드^그룹명^그룹약어명^그룹화면명^그룹출력명" colwidth="98, 98, 57, 100, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:75px; width:574px; height:669px; ">
  273. <col ref="spcgrupfromdd" type="inputdate" disabled="false" format="yyyy-mm-dd"/>
  274. <col ref="spcgruptodd" type="inputdate" disabled="false" format="yyyy-mm-dd"/>
  275. <col ref="spcgrupcd" type="input" maxlength="2"/>
  276. <col ref="spcgrupnm" type="input"/>
  277. <col ref="spcgrupabbrnm" type="input"/>
  278. <col ref="spcgrupscrnnm" type="input"/>
  279. <col ref="spcgrupprntnm" type="input"/>
  280. <script type="javascript" ev:event="onclick">
  281. <![CDATA[
  282. fOnclick_grd_spcgruplist();
  283. ]]>
  284. </script>
  285. <script type="javascript" ev:event="onaftersort">
  286. <![CDATA[
  287. grd_spcgruplist.gridToInstance();
  288. ]]>
  289. </script>
  290. </datagrid>
  291. <datagrid id="grd_spcgrupspclist" nodeset="/root/main/spcinfo/spclist" caption="코드^검체명" colwidth="67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:580px; top:75px; width:269px; height:669px; ">
  292. <col ref="spccd" type="output"/>
  293. <col ref="spcscrnnm" type="output"/>
  294. <script type="javascript" ev:event="onaftersort">
  295. <![CDATA[
  296. grd_spcgrupspclist.gridToInstance();
  297. ]]>
  298. </script>
  299. </datagrid>
  300. <button id="btn_rowadd" class="btn2_letter3" style="left:521px; top:50px; width:53px; height:19px; ">
  301. <caption>행추가</caption>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. fInsRowAdd(grd_spcgruplist);
  305. ]]>
  306. </script>
  307. </button>
  308. <button id="btn_rowdel" class="btn2_letter3" style="left:795px; top:50px; width:53px; height:19px; ">
  309. <caption>행삭제</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. grd_spcgrupspclist.deleteItem(grd_spcgrupspclist.row);
  313. ]]>
  314. </script>
  315. </button>
  316. <button id="btn_spc" class="icon_left" style="left:856px; top:370px; width:26px; height:19px; ">
  317. <caption/>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. fOnclick_btn();
  321. ]]>
  322. </script>
  323. </button>
  324. </group>
  325. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  326. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  327. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  328. <caption>저장</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. fExeSave();
  332. ]]>
  333. </script>
  334. </button>
  335. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  336. <caption>초기화</caption>
  337. <script type="javascript" ev:event="DOMActivate">
  338. <![CDATA[
  339. fSetInit()
  340. ]]>
  341. </script>
  342. </button>
  343. </group>
  344. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  345. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">미생물검체그룹</caption>
  346. </group>
  347. </xhtml:body>
  348. </xhtml:html>