SMLPC03100_검사항목별프로토콜관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLF00800_검사소견코드관리.xrw
  4. * 설 명 : 검사소견코드관리
  5. * 설 계 자 : (주)에이씨케이 - 윤재한
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2007.07.10
  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. <gettestprotclist>
  20. <testcd/>
  21. <testnm/>
  22. <seqno/>
  23. <dispseq/>
  24. <prntflagcd/>
  25. <delflagcd/>
  26. </gettestprotclist>
  27. <testcdlist>
  28. <testnm/>
  29. </testcdlist>
  30. </main>
  31. <send>
  32. <searchtext/>
  33. <refflag/>
  34. <grddata/>
  35. <testcd/>
  36. </send>
  37. <hidden>
  38. <refgbn>0</refgbn>
  39. <searchtext/>
  40. <rdo_refflag>0</rdo_refflag>
  41. </hidden>
  42. </root>
  43. </instance>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <submission id="TRLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestcmtlist"/>
  47. <submission id="TXLLF00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fRdoSet();
  51. ]]>
  52. </script>
  53. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
  54. <submission id="TRLPC01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestprotclist"/>
  55. <submission id="TXLPC01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  56. <submission id="TRLPC00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testcdlist"/>
  57. </model>
  58. <script type="javascript">
  59. <![CDATA[
  60. //초기화
  61. function fSetInit() {
  62. model.reset();
  63. }
  64. function fRdoSet(){
  65. if (rdo_refflag.value == 0 ) { // 0 : 전체 . 1 : 선택 조회
  66. cmb_refgbn.disabled = true;
  67. ipt_searchtext.disabled = true;
  68. ipt_searchtext.value = "";
  69. button2.disabled = false;
  70. fGetTestProtcList();
  71. }else if (rdo_refflag.value == 1){
  72. cmb_refgbn.disabled = false;
  73. ipt_searchtext.disabled = false;
  74. ipt_searchtext.value = "";
  75. button2.disabled = true;
  76. }
  77. }
  78. //행추가
  79. function fInsRowAdd(pGridId) {
  80. pGridId.additem();
  81. pGridId.topRow = pGridId.rows -1;
  82. model.refresh();
  83. }
  84. //행삭제
  85. function fInsRowDel() {
  86. grd_TestProtcList.rowStatus(grd_TestProtcList.row) = 4;
  87. //grd_TestCmtList.deleteItem(grd_TestCmtList.row); //행삭제
  88. }
  89. //조회
  90. function fGetTestCmtList() {
  91. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/ref/sectcd")); //시행부서
  92. model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/ref/tsectcd/cd")); //시행부서상세
  93. submit("TRLLF00801");
  94. //소견상세내용 자동 조회
  95. fGetCmtDetlCnts("1");
  96. }
  97. //저장
  98. function fExeTestProtcList() {
  99. var ecd = model.getValue("/root/hidden/ref/tsectcd/cd");
  100. model.setValue("/root/send/grddata", grd_TestProtcList.getUpdateData());
  101. if(submit("TXLPC01802")){
  102. rdo_refflag.value = 0;
  103. fGetTestProtcList();
  104. }else{
  105. alert("저장중 오류가 발생하였습니다. 일련번호를 확인해 보시기 바랍니다");
  106. }
  107. //검사소견목록 자동 조회
  108. }
  109. // 검사코드 엔터시 검사명 조회 , 일련번호 중복 조회
  110. function fGetTestnm(){
  111. if(event.keyCode == "13"){
  112. //검사코드 처리 --검사코드 엔터쳤을때 이름이 나온다
  113. if ( grd_TestProtcList.col == 1 ) {
  114. var stclscdu = model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd");
  115. stclscdu = stclscdu.toUpperCase();
  116. model.setValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd",stclscdu);
  117. model.makeValue("/root/send/testcd", model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/testcd"));
  118. submit("TRLPC00104");
  119. if(model.getValue("/root/main/testcdlist/testnm") != ""){ // 검사코드 있을때
  120. model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row+"]/testnm", model.getValue("/root/main/testcdlist/testnm"));
  121. }else{
  122. alert("검사코드를 확인하십시오.");
  123. model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row+"]/testnm", "");
  124. }
  125. model.refresh();
  126. }
  127. else if ( grd_TestProtcList.col == 3 ) { //알련번호중복체크
  128. //grd_eqmtlist.gridToInstance();
  129. var stclscdu = model.getValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/seqno");
  130. stclscdu = stclscdu.toUpperCase();
  131. model.setValue("/root/main/gettestprotclist["+grd_TestProtcList.row+"]/seqno",stclscdu);
  132. var icnt = 0
  133. var stclscd = model.getValue("/root/main/gettestprotclist["+ grd_TestProtcList.row +"]/seqno")
  134. //alert (stclscd);
  135. //alert("sdispseq"+sdispseq) ;
  136. //var findrow = grd_eqmttclscd.findRow(sdispseq , 1, 3 , true, true);
  137. //alert (findrow);
  138. for ( i = 1 ; i <= grd_TestProtcList.rows ; i ++){
  139. var ttclscd = model.getValue("/root/main/gettestprotclist["+ i +"]/seqno")
  140. //alert("tdispseq"+tdispseq);
  141. if ( stclscd == ttclscd ){
  142. icnt ++;
  143. }
  144. }
  145. if( icnt == 2 ){
  146. alert(" 일련번호는 중복입니다. ");
  147. model.setValue("/root/main/gettestprotclist["+ grd_TestProtcList.row +"]/seqno", "");
  148. //fGetEqmtTclscdList(grd_eqmtlist.row)
  149. return;
  150. }
  151. }
  152. }
  153. }
  154. function fGetTestProtcList(){
  155. model.setValue("/root/send/refflag" , model.getValue("/root/hidden/refgbn"));
  156. model.setValue("/root/hidden/searchtext", ipt_searchtext.currentText)
  157. model.setValue("/root/send/searchtext" ,model.getValue("/root/hidden/searchtext"));
  158. submit("TRLPC01803");
  159. }
  160. //검사명 검사코드로 부분 조회
  161. function fKeyEvent(){
  162. if(event.keyCode == "13"){
  163. if(event.target =="ipt_searchtext"){
  164. //model.setValue("/root/hidden/searchtext", ipt_searchtext.currentText)
  165. fGetTestProtcList();
  166. }
  167. }
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body pagewidth="700" pageheight="800" style="margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
  173. <group id="group3" scroll="auto" style="left:0px; top:40px; width:670px; height:744px; ">
  174. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:665px; y2:70px; "/>
  175. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사프로토콜목록</caption>
  176. <button id="button2" class="btn2_letter3" style="left:610px; top:50px; width:53px; height:19px; ">
  177. <caption>행추가</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fInsRowAdd(grd_TestProtcList);
  181. ]]>
  182. </script>
  183. </button>
  184. <button id="button1" class="btn2_letter3" style="left:554px; top:50px; width:53px; height:19px; ">
  185. <caption>행삭제</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. fInsRowDel();
  189. ]]>
  190. </script>
  191. </button>
  192. <datagrid id="grd_TestProtcList" nodeset="/root/main/gettestprotclist" caption="검사코드^검사명^일련번호^표시순서^명칭출력구분^사용구분^상세내용^cmtcd2^tsectcd" colsep="^" colwidth="80, 229, 70, 70, 100, 70" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:665px; height:669px; ">
  193. <col ref="testcd" type="input"/>
  194. <col ref="testnm"/>
  195. <col ref="seqno" type="input" style="text-align:center; "/>
  196. <col ref="dispseq" type="input" style="text-align:center; "/>
  197. <col ref="prntflagcd" type="combo" style="text-align:center; ">
  198. <choices>
  199. <item>
  200. <label>검사명</label>
  201. <value>0</value>
  202. </item>
  203. <item>
  204. <label>프로토콜명</label>
  205. <value>1</value>
  206. </item>
  207. </choices>
  208. </col>
  209. <col ref="delflagcd" type="combo">
  210. <choices>
  211. <item>
  212. <label>사용</label>
  213. <value>0</value>
  214. </item>
  215. <item>
  216. <label>삭제</label>
  217. <value>1</value>
  218. </item>
  219. </choices>
  220. </col>
  221. <script type="javascript" ev:event="onaftersort">
  222. <![CDATA[
  223. grd_TestProtcList.gridToInstance();
  224. ]]>
  225. </script>
  226. <script type="javascript" ev:event="onkeyup">
  227. <![CDATA[
  228. fGetTestnm();
  229. ]]>
  230. </script>
  231. </datagrid>
  232. <group id="group1" style="left:0px; top:10px; width:665px; height:35px; ">
  233. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:660px; height:35px; "/>
  234. <line id="line3" class="line_4" style="x1:580px; y1:4px; x2:580px; y2:26px; "/>
  235. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
  236. <button id="btn_Ref" class="btn1_letter2" style="left:595px; top:5px; width:56px; height:22px; ">
  237. <caption>조회</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. fGetTestProtcList();
  241. ]]>
  242. </script>
  243. </button>
  244. <input id="ipt_searchtext" ref="/root/hidden/searchtext" inputtype="button" style="left:315px; top:8px; width:105px; height:19px; ">
  245. <script type="javascript" ev:event="onkeypress">
  246. <![CDATA[
  247. fKeyEvent();
  248. ]]>
  249. </script>
  250. </input>
  251. <select1 id="cmb_refgbn" ref="/root/hidden/refgbn" appearance="minimal" style="left:218px; top:8px; width:95px; height:19px; ">
  252. <choices>
  253. <item>
  254. <label>검사명</label>
  255. <value>0</value>
  256. </item>
  257. <item>
  258. <label>검사코드</label>
  259. <value>1</value>
  260. </item>
  261. </choices>
  262. </select1>
  263. <select1 id="rdo_refflag" ref="/root/hidden/rdo_refflag" appearance="full" cols="2" overflow="visible" style="left:110px; top:9px; width:105px; height:20px; border-style:none; ">
  264. <choices>
  265. <item>
  266. <label>전체</label>
  267. <value>0</value>
  268. </item>
  269. <item>
  270. <label>선택</label>
  271. <value>1</value>
  272. </item>
  273. </choices>
  274. <script type="javascript" ev:event="xforms-value-changed">
  275. <![CDATA[
  276. fRdoSet();
  277. ]]>
  278. </script>
  279. </select1>
  280. </group>
  281. </group>
  282. <group id="group4" scroll="auto" style="left:0px; top:13px; width:670px; height:27px; ">
  283. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:650px; y2:25px; "/>
  284. <button id="btn_Save" class="btn4_letter2" style="left:531px; top:5px; width:56px; height:22px; ">
  285. <caption>저장</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fExeTestProtcList();
  289. ]]>
  290. </script>
  291. </button>
  292. <button id="btn_Init" class="btn4_letter3" style="left:590px; top:5px; width:68px; height:22px; ">
  293. <caption>초기화</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. fSetInit();
  297. ]]>
  298. </script>
  299. </button>
  300. </group>
  301. <group id="group2" style="left:0px; top:0px; width:670px; height:13px; ">
  302. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:465px; height:14px; ">검사항목별 프로토콜 관리</caption>
  303. </group>
  304. </xhtml:body>
  305. </xhtml:html>