SMLMF01300_미생물검사그룹.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. <worktestgruplist>
  21. <worktestgrupfromdd/>
  22. <worktestgruptodd/>
  23. <worktestgrupcd/>
  24. <worktestgrupnm/>
  25. <worktestgrupabbrnm/>
  26. <worktestgrupscrnm/>
  27. <worktestgrupprntnm/>
  28. </worktestgruplist>
  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. <worktestgrupcd/>
  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 ev:event="xforms-model-construct-done" type="javascript">
  62. <![CDATA[
  63. grd_worktestgruplist.removeItem();
  64. grd_worktestgruplist.removeItem();
  65. grd_spclist.removeItem();
  66. ]]>
  67. </script>
  68. <script src="../../../com/commonweb/js/common.js" type="javascript"/>
  69. <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
  70. <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
  71. <submission id="TRLMF01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/listinfo"/>
  72. <submission id="TRLMF01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcinfo"/>
  73. <submission id="TXLMF01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  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/worktestgruplist["+ row +"]/worktestgrupfromdd" , getCurrentDate());
  90. model.setvalue("/root/main/listinfo/worktestgruplist["+ row +"]/worktestgruptodd" , "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/worktestgruplist");
  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("TRLMF01301");
  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_worktestgruplist.rebuildstyle();
  133. var gbn = model.getValue("/root/hidden/ref/refgbn");
  134. if(gbn=="2"){
  135. setRowStyle("grd_worktestgruplist", "0", getCurrentDate(), "worktestgruptodd", "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_worktestgrupspclist.rebuild();
  148. for(i=1;i<grd_worktestgrupspclist.rows;i++){
  149. grd_worktestgrupspclist.addStatus( i, "insert");
  150. }
  151. var row = grd_worktestgruplist.row;
  152. model.setvalue("/root/send/spccd" , grd_worktestgrupspclist.getUpdateData());
  153. model.copyNode("/root/send/data2" , "/root/main/listinfo/worktestgruplist["+row+"]");
  154. submit("TXLMF01301");
  155. model.copyNode("/root/send/spccd","/root/hidden/default");
  156. model.copyNode("/root/send/data2","/root/hidden/default");
  157. grd_worktestgruplist.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_worktestgruplist(){
  168. var row = grd_worktestgruplist.row;
  169. var status = grd_worktestgruplist.rowstatus(row);
  170. if(status == "1" || status == "3") {
  171. model.removeNodeset("/root/main/spcinfo/spclist");
  172. model.refresh();
  173. return;
  174. }
  175. if(grd_worktestgruplist.isCell(event.target) && grd_worktestgruplist.row >= grd_worktestgruplist.fixedRows ){
  176. if(row > 0){
  177. model.setvalue("/root/send/worktestgrupcd",model.getvalue("/root/main/listinfo/worktestgruplist["+row+"]/worktestgrupcd"));
  178. submit("TRLMF01302");
  179. model.copyNode("/root/send/worktestgrupcd","/root/hidden/default");
  180. }
  181. }
  182. }
  183. /* @group : 미생물검체그룹
  184. * @ver : 2007.04.11(CMCDEV-0001)
  185. * @by : 조철형
  186. *@-----------------------------------
  187. * @type : function
  188. * @access : public
  189. * @desc : 검체설정 << 버튼 클릭
  190. */
  191. function fOnclick_btn(){
  192. var worktestgrupcd = model.getvalue("/root/main/listinfo/worktestgruplist["+grd_worktestgruplist.row+"]/worktestgrupcd");
  193. for(i=1;i<grd_spclist.rows;i++){
  194. if(model.getvalue("/root/main/listinfo/spclist["+i+"]/chk") == "true"){
  195. var spccd = model.getvalue("/root/main/listinfo/spclist["+i+"]/spccd");
  196. var spcscrnnm = model.getvalue("/root/main/listinfo/spclist["+i+"]/spcscrnnm");
  197. var findrow = grd_worktestgrupspclist.findRow(spccd , 1,1,false, true);
  198. if(findrow < 0){
  199. grd_worktestgrupspclist.addRow();
  200. var iRow = grd_worktestgrupspclist.rows-1;
  201. model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spccd" ,spccd );
  202. model.setvalue("/root/main/spcinfo/spclist["+iRow+"]/spcscrnnm" ,spcscrnnm );
  203. // alert("!!!!!!");
  204. }
  205. }
  206. }
  207. }
  208. ]]>
  209. </script>
  210. </xhtml:head>
  211. <xhtml:body guideline="1,574;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  212. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  213. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:574px; y2:70px; "/>
  214. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:173px; height:14px; ">검사그룹 리스트</caption>
  215. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  216. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  217. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  218. <line id="line2" class="line_4" style="x1:273px; y1:7px; x2:273px; y2:29px; "/>
  219. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  220. <caption id="caption4" class="search_name" style="left:737px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  221. <select1 id="cmb_RefFlag" ref="/root/hidden/ref/refgbn" class="combo_search" appearance="minimal" style="left:100px; top:10px; width:150px; height:19px; ">
  222. <choices>
  223. <item>
  224. <label>사용가능자료</label>
  225. <value>1</value>
  226. </item>
  227. <item>
  228. <label>전체자료</label>
  229. <value>2</value>
  230. </item>
  231. </choices>
  232. </select1>
  233. <button id="btn_Ref" class="btn1_letter2" style="left:288px; top:7px; width:56px; height:22px; ">
  234. <caption>조회</caption>
  235. <script ev:event="DOMActivate" type="javascript">
  236. <![CDATA[
  237. fGetSpcGrup("1");
  238. ]]>
  239. </script>
  240. </button>
  241. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  242. <caption>검색</caption>
  243. <script ev:event="DOMActivate" type="javascript">
  244. <![CDATA[
  245. fGetSpcGrup("2");
  246. ]]>
  247. </script>
  248. </button>
  249. <select1 id="cmb_search" ref="/root/hidden/ref/searchgbn" class="combo_search" appearance="minimal" style="left:830px; top:8px; width:150px; height:19px; ">
  250. <choices>
  251. <item>
  252. <label>코드</label>
  253. <value>1</value>
  254. </item>
  255. <item>
  256. <label>코드명</label>
  257. <value>2</value>
  258. </item>
  259. </choices>
  260. </select1>
  261. <input id="ipt_searchtext" ref="/root/hidden/ref/searchnm" class="input_search" style="left:983px; top:8px; width:110px; height:19px; "/>
  262. </group>
  263. <caption id="caption3" class="tit_2" style="left:580px; top:55px; width:183px; height:14px; ">검사그룹에 포함할 검체설정</caption>
  264. <line id="line4" class="line_1" style="x1:580px; y1:70px; x2:849px; y2:70px; "/>
  265. <line id="line5" class="line_1" style="x1:890px; y1:70px; x2:1195px; y2:70px; "/>
  266. <caption id="caption5" class="tit_2" style="left:895px; top:55px; width:173px; height:13px; ">검체정보</caption>
  267. <datagrid id="grd_spclist" nodeset="/root/main/listinfo/spclist" caption="선택^코드^검체명" colsep="^" colwidth="35, 67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:890px; top:75px; width:305px; height:669px; ">
  268. <col ref="chk" type="checkbox"/>
  269. <col ref="spccd" type="output"/>
  270. <col ref="spcscrnnm" type="output"/>
  271. <script ev:event="onaftersort" type="javascript">
  272. <![CDATA[
  273. grd_spclist.gridToInstance();
  274. ]]>
  275. </script>
  276. </datagrid>
  277. <datagrid id="grd_worktestgruplist" nodeset="/root/main/listinfo/worktestgruplist" caption="사용시작일자^사용종료일자^코드^그룹명^그룹약어명^그룹화면명^그룹출력명" colsep="^" colwidth="98, 98, 57, 100, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:574px; height:669px; ">
  278. <col disabled="false" ref="worktestgrupfromdd" type="inputdate" format="yyyy-mm-dd"/>
  279. <col disabled="false" ref="worktestgruptodd" type="inputdate" format="yyyy-mm-dd"/>
  280. <col ref="worktestgrupcd" type="input" maxlength="2"/>
  281. <col ref="worktestgrupnm" type="input"/>
  282. <col ref="worktestgrupabbrnm" type="input" style="left:373px; top:23px; width:100px; height:23px; "/>
  283. <col ref="worktestgrupscrnm" type="input"/>
  284. <col ref="worktestgrupprntnm" type="input"/>
  285. <script ev:event="onclick" type="javascript">
  286. <![CDATA[
  287. fOnclick_grd_worktestgruplist();
  288. ]]>
  289. </script>
  290. <script ev:event="onaftersort" type="javascript">
  291. <![CDATA[
  292. grd_worktestgruplist.gridToInstance();
  293. ]]>
  294. </script>
  295. </datagrid>
  296. <datagrid id="grd_worktestgrupspclist" nodeset="/root/main/spcinfo/spclist" caption="코드^검체명" colsep="^" colwidth="67, 160" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:580px; top:75px; width:269px; height:669px; ">
  297. <col ref="spccd" type="output"/>
  298. <col ref="spcscrnnm" type="output"/>
  299. <script ev:event="onaftersort" type="javascript">
  300. <![CDATA[
  301. grd_worktestgrupspclist.gridToInstance();
  302. ]]>
  303. </script>
  304. </datagrid>
  305. <button id="btn_rowadd" class="btn2_letter3" style="left:521px; top:50px; width:53px; height:19px; ">
  306. <caption>행추가</caption>
  307. <script ev:event="DOMActivate" type="javascript">
  308. <![CDATA[
  309. fInsRowAdd(grd_worktestgruplist);
  310. ]]>
  311. </script>
  312. </button>
  313. <button id="btn_rowdel" class="btn2_letter3" style="left:795px; top:50px; width:53px; height:19px; ">
  314. <caption>행삭제</caption>
  315. <script ev:event="DOMActivate" type="javascript">
  316. <![CDATA[
  317. grd_worktestgrupspclist.deleteItem(grd_worktestgrupspclist.row);
  318. ]]>
  319. </script>
  320. </button>
  321. <button id="btn_spc" class="icon_left" style="left:856px; top:370px; width:26px; height:19px; ">
  322. <caption/>
  323. <script ev:event="DOMActivate" type="javascript">
  324. <![CDATA[
  325. fOnclick_btn();
  326. ]]>
  327. </script>
  328. </button>
  329. </group>
  330. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  331. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  332. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  333. <caption>저장</caption>
  334. <script ev:event="DOMActivate" type="javascript">
  335. <![CDATA[
  336. fExeSave();
  337. ]]>
  338. </script>
  339. </button>
  340. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  341. <caption>초기화</caption>
  342. <script ev:event="DOMActivate" type="javascript">
  343. <![CDATA[
  344. fSetInit()
  345. ]]>
  346. </script>
  347. </button>
  348. </group>
  349. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  350. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">미생물검사그룹관리</caption>
  351. </group>
  352. </xhtml:body>
  353. </xhtml:html>