SMLQF00700_QC물질별검사관리.xrw 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>QC물질별검사관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <matrlist>
  11. <matrcd/>
  12. <matrnm/>
  13. <levlcd/>
  14. <levlnm/>
  15. <lotno/>
  16. <matrfromdd/>
  17. <matrtodd/>
  18. <prodcmpy/>
  19. <proddt/>
  20. <windt/>
  21. <matrifcd/>
  22. <fstrgstrid/>
  23. <fstrgstdt/>
  24. <validd/>
  25. </matrlist>
  26. <testlist>
  27. <chk/>
  28. <testcd/>
  29. <testnm/>
  30. </testlist>
  31. <matrtclslist>
  32. <testcd/>
  33. <testnm/>
  34. <testfromdd/>
  35. <testtodd/>
  36. <rsltkind/>
  37. <refkind/>
  38. <refflag/>
  39. <refl/>
  40. <refls/>
  41. <refhs/>
  42. <refh/>
  43. <refcval/>
  44. <intrsltfrmt/>
  45. <rsltunit/>
  46. <avg/>
  47. <sdval/>
  48. <wgmrscop/>
  49. <judgkind/>
  50. <rundkind/>
  51. <graphdispyn/>
  52. <fstrgstrid/>
  53. <fstrgstdt/>
  54. </matrtclslist>
  55. <matrinfo>
  56. <matrfromdd/>
  57. <matrcd/>
  58. <levlcd/>
  59. </matrinfo>
  60. </main>
  61. <init/>
  62. <hidden>
  63. <refgbn>1</refgbn>
  64. <refcont/>
  65. <searchflag>1</searchflag>
  66. <searchtestcd/>
  67. <testlrg>00</testlrg>
  68. <testmdl>
  69. <cd>00</cd>
  70. </testmdl>
  71. <selectgbn/>
  72. <popupmenu>
  73. <grid/>
  74. </popupmenu>
  75. <mattestbuff>
  76. <matrtclslist/>
  77. </mattestbuff>
  78. </hidden>
  79. <send>
  80. <codeflag/>
  81. <refcont/>
  82. <refgbn/>
  83. <deptflag/>
  84. <searchflag/>
  85. <matrtclslist/>
  86. <matrfromdd/>
  87. <matrcd/>
  88. <levlcd/>
  89. <matrinfo/>
  90. <testlrgcd/>
  91. <testmdlcd/>
  92. <sectcd/>
  93. <tsectcd/>
  94. </send>
  95. </root>
  96. </instance>
  97. <script type="javascript" ev:event="xforms-ready">
  98. <![CDATA[
  99. fSetInit();
  100. ]]>
  101. </script>
  102. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <submission id="TRLQF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/matrlist"/>
  106. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0000"/>
  107. <submission id="TRLQF00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/testlist"/>
  108. <submission id="TXLQF00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  109. <submission id="TRLQF00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/matrtclslist"/>
  110. <submission id="TRLQF00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/testlist"/>
  111. </model>
  112. <script type="javascript">
  113. <![CDATA[
  114. //초기화
  115. function fSetInit(){
  116. model.resetInstanceNode("/root/main/matrinfo");
  117. model.removeNodeset("/root/main/matrlist");
  118. grd_matrList.rebuild();
  119. model.removeNodeset("/root/main/testlist");
  120. grd_testList.rebuild();
  121. model.removeNodeset("/root/main/matrtclslist");
  122. grd_matrTclsList.rebuild();
  123. model.setValue("/root/send/codeflag", "0102|0104|0000|0111|0106|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
  124. submit("TRLZZ00101");
  125. model.setValue("/root/hidden/selectgbn","1");
  126. fSelectGbn();
  127. model.refresh();
  128. fGetMatrList(); //물질리스트조회
  129. fGetTestList(2); //검사항목리스트조회
  130. }
  131. //엔터키
  132. function fKeyEvent(){
  133. if(event.keyCode == "13"){
  134. //물질 리스트 조회
  135. if(event.target =="ipt_search"){
  136. model.setValue("/root/hidden/refcont", ipt_search.currentText);
  137. fGetMatrList();
  138. }
  139. //검사항목 리스트 조회
  140. if(event.target == "ipt_searchTestCd"){
  141. model.setValue("/root/send/refcont", ipt_searchTestCd.currentText);
  142. fGetTestList(1);
  143. }
  144. }
  145. }
  146. //중분류 초기정보 조회
  147. function fSetTestLrgCd(){
  148. var lrg = model.getvalue("/root/hidden/testlrg");
  149. if(lrg == "00"){
  150. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  151. model.setValue("/root/hidden/testmdl/cd" , "00");
  152. }
  153. else{
  154. model.setValue("/root/hidden/testmdl/cd" , "00");
  155. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ lrg +"']";
  156. }
  157. cmb_testMdlCd.refresh();
  158. fGetTclscdList();
  159. }
  160. // 검사코드 리스트 조회
  161. function fGetTclscdList(){
  162. model.removeNodeset("/root/main/testlist");
  163. grd_testList.rebuild();
  164. model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/selectgbn"));
  165. if (cmb_selectgbn.value == "1"){
  166. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/testlrg"));
  167. model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/testmdl/cd"));
  168. }
  169. //조회구분 시행부서 선택시
  170. else if(cmb_selectgbn.value == "2"){
  171. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
  172. model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
  173. }
  174. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  175. //model.setValue("/root/send/testlrgcd" , model.getValue("/root/hidden/testlrg"));
  176. //model.setValue("/root/send/testmdlcd" , model.getValue("/root/hidden/testmdl/cd"));
  177. //model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
  178. //model.makeValue("/root/send/selectgbn", "1");
  179. submit("TRLQF00704");
  180. }
  181. //물질 리스트 조회
  182. function fGetMatrList(){
  183. model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/refgbn")); //전체, 사용가능자료 구분
  184. model.setValue("/root/send/searchflag" , model.getValue("/root/hidden/searchflag")); //물질코드, 물질명 구분
  185. model.setValue("/root/send/refcont" , model.getValue("/root/hidden/refcont")); //입력Text
  186. model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //사용자 부서코드
  187. submit("TRLQF00701");
  188. }
  189. //검사항목 리스트 조회
  190. function fGetTestList(i){
  191. if( i == "2"){
  192. model.setValue("/root/send/refcont" , model.getValue("/root/hidden/searchtestcd")); //입력Text
  193. }
  194. model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm")); //사용자 부서코드
  195. submit("TRLQF00702");
  196. }
  197. //검사항목 복사
  198. function fSetTestCopy(){
  199. if(model.getValue("/root/main/matrinfo/matrfromdd" ) != ""){ //물질이 선택되어있지 않은 상태에서 검사코드 추가하고자 할때 알림.. //20080726추가 -승현-
  200. var sTestcd = model.getValue("/root/main/testlist["+grd_testList.row+"]/testcd");
  201. var findrow = grd_matrTclsList.findRow(sTestcd , 1,1 , true,true);
  202. if(findrow >0 ) {
  203. alert("이미 선택된 검사코드입니다.");
  204. return;
  205. }
  206. grd_matrTclsList.addRow();
  207. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , model.getValue("/root/main/testlist[" + grd_testList.row + "]/testcd"));
  208. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , model.getValue("/root/main/testlist[" + grd_testList.row + "]/testnm"));
  209. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd" , model.getValue("/root/main/matrinfo/matrfromdd"));
  210. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd" , '99991231');
  211. /*for(i=1; i<grd_matrTclsList.rows; i++){
  212. grd_matrTclsList.rowStatus(i) = 1;
  213. }*/
  214. model.setValue("/root/main/testlist[" + grd_testList.row + "]/chk ", "false");
  215. grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
  216. }else{
  217. alert("물질을 먼저 선택하세요!");
  218. model.setValue("/root/main/testlist[" + grd_testList.row + "]/chk ", "false");
  219. }
  220. }
  221. //물질목록 복사
  222. function fSetMatrCopy(){
  223. model.setValue("/root/main/matrinfo/matrfromdd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrfromdd"));
  224. model.setValue("/root/main/matrinfo/matrcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/matrcd"));
  225. model.setValue("/root/main/matrinfo/levlcd" , model.getValue("/root/main/matrlist[" + grd_matrList.row + "]/levlcd"));
  226. model.refresh();
  227. }
  228. //물질별 검사항목 조회
  229. function fGetMatrTclsList(){
  230. model.setValue("/root/send/matrfromdd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrfromdd"));
  231. model.setValue("/root/send/matrcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/matrcd"));
  232. model.setValue("/root/send/levlcd" , model.getValue("/root/main/matrlist["+grd_matrList.row+"]/levlcd"));
  233. model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
  234. if(submit("TRLQF00703")){
  235. fSetMatrCopy(); //조회 데이터가 없으면 물질목록 복사
  236. }
  237. grd_matrTclsList.isReadOnly(1,1, grd_matrTclsList.rows-1, 3) = true; //검사코드부터 시작일자까지 비활성화...
  238. //wgmr 열에 tooltiptext 를 설정한다
  239. for(var i=grd_matrTclsList.fixedRows; i<grd_matrTclsList.rows; i++)
  240. {
  241. grd_matrTclsList.tooltipText(i, grd_matrTclsList.colRef("wgmrscop")) = "1 : 1(2S)" + "\n" + "2 : 1(3S)" + "\n" + "3 : 2(2S)" + "\n" + "4 : R(4S)" + "\n" + "5 : 4(1S)" + "\n" + "6 : 10X " ;
  242. }
  243. }
  244. //저장 데이터 확인
  245. function checkGridUpdate(grid)
  246. {
  247. var iData = grid.getUpdateDataXml("insert");
  248. var uData = grid.getUpdateDataXml("update");
  249. var dData = grid.getUpdateDataXml("delete");
  250. if (iData=="" && uData=="" && dData=="") return false;
  251. else return true;
  252. }
  253. //물질별 검사 정보 저장
  254. function fExeMatrTclsList(){
  255. model.setValue("/root/send/matrtclslist" , grd_matrTclsList.getUpdateData());
  256. model.copyNode("/root/send/matrinfo" , "/root/main/matrinfo");
  257. model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
  258. if(model.getValue("/root/main/matrinfo/matrfromdd") == "" || model.getValue("/root/main/matrinfo/matrcd") == "" || model.getValue("/root/main/matrinfo/levlcd") == "" ||
  259. model.getValue("/root/main/matrtclslist/testcd") == "" || model.getValue("/root/main/matrtclslist/testfromdd")==""){
  260. messageBox("필수 항목이 입력되지 않았습니다.","I007");
  261. return false;
  262. }
  263. if ( submit("TXLQF00701") ) {
  264. //grd_matrTclsList.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  265. fGetMatrTclsList(); // 물질정보 다시 조회
  266. }
  267. }
  268. //검사항목 리스트 클릭시 Row선택하면 체크 선택되게
  269. function fTestListClick(){
  270. if(grd_testList.col != "1"){
  271. if(model.getValue("/root/main/testlist[" + grd_testList.row + "]/chk") == "false"){
  272. model.setValue("/root/main/testlist[" + grd_testList.row + "]/chk", "true");
  273. }else{
  274. model.setValue("/root/main/testlist[" + grd_testList.row + "]/chk", "false");
  275. }
  276. }
  277. }
  278. //선택 항목 복사함
  279. function fCopyTestList(){ //grd_matrTclsList
  280. var vChk = ""
  281. var vTestCd = ""
  282. var vTestNm = ""
  283. if(model.getValue("/root/main/matrinfo/matrfromdd" ) != ""){ //물질이 선택되어있지 않은 상태에서 검사코드 추가하고자 할때 알림..
  284. for ( i = 1; i < grd_testList.rows; i++){
  285. vChk = model.getValue("/root/main/testlist[" + i + "]/chk");
  286. vTestCd = model.getValue("/root/main/testlist[" + i + "]/testcd");
  287. vTestNm = model.getValue("/root/main/testlist[" + i + "]/testnm");
  288. if( vChk == "true"){ //검사항목 선택된놈들
  289. if(grd_matrTclsList.findRow(vTestCd, 1, 1, true, true) == "-1"){ //물질별 검사항목에 등록되어있지 않은 항목만
  290. grd_matrTclsList.addRow(false);
  291. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , vTestCd);
  292. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , vTestNm);
  293. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd" , model.getValue("/root/main/matrinfo/matrfromdd"));
  294. model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd" , '99991231');
  295. model.setValue("/root/main/testlist[" + i + "]/chk", "false");
  296. }else{
  297. alert(vTestCd + " 항목이 중복되었습니다");
  298. model.setValue("/root/main/testlist[" + i + "]/chk", "false");
  299. }
  300. }
  301. }//end for
  302. grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
  303. }else{
  304. alert("물질을 먼저 선택하세요");
  305. }
  306. model.refresh();
  307. }
  308. function fSelectGbn(){
  309. //검사분류 선택
  310. if(cmb_selectgbn.value == "1"){
  311. //첫번째 콤보에 대분류 셋팅
  312. cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
  313. //두번째 콤보에 중분류 셋팅
  314. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  315. }
  316. //시행부서 선택
  317. else if(cmb_selectgbn.value == "2"){
  318. //첫번째 콤보에 계코드 셋팅
  319. cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
  320. //두번째 콤보에 검사계코드 셋팅
  321. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  322. }
  323. model.setvalue("/root/hidden/testlrg", "00");
  324. model.setvalue("/root/hidden/testmdl/cd", "00");
  325. cmb_testLrgCd.refresh();
  326. cmb_testMdlCd.refresh();
  327. }
  328. function fSetSelect02(){
  329. var select01 = model.getvalue("/root/hidden/testlrg");
  330. //검사분류선택
  331. if(cmb_selectgbn.value == "1"){
  332. if(select01 == "00"){
  333. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  334. }
  335. else{
  336. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
  337. }
  338. //model.setValue("/root/hidden/select01" , "00");
  339. cmb_testMdlCd.refresh();
  340. //fGetTclscdList();
  341. }
  342. //시행부서 선택
  343. else if(cmb_selectgbn.value == "2"){
  344. if(select01 == "00"){
  345. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  346. }
  347. else{
  348. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
  349. }
  350. //model.setValue("/root/hidden/select02" , "00");
  351. cmb_testMdlCd.refresh();
  352. }
  353. fGetTclscdList();
  354. }
  355. // JJH 2010-04-27 추가
  356. // QC 물질 리스트 물질복사 기능 추가
  357. // 마우스 우 클릭 불질별검사항목 복사/붙여넣기/삭제?
  358. function fGetMouseDown () {
  359. model.removeNodeset("/root/hidden/popupmenu");
  360. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  361. model.makeNode("/root/hidden/popupmenu/grid");
  362. model.makeNode("/root/hidden/popupmenu/grid/item");
  363. //n = eval(getNodesetCount("/root/hidden/popupmenu/grid/item") + 1);
  364. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/name" , "▶ 복사");
  365. model.makeValue("/root/hidden/popupmenu/grid/item["+1+"]/func" , "fMatTestCopy");
  366. //n = eval(getNodesetCount("/root/hidden/popupmenu/grid/item") + 1);
  367. model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/name" , "▶ 붙여넣기");
  368. model.makeValue("/root/hidden/popupmenu/grid/item["+2+"]/func" , "fMatTestPaste");
  369. //n = eval(getNodesetCount("/root/hidden/popupmenu/grid/item") + 1);
  370. model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/name" , "▶ 삭제");
  371. model.makeValue("/root/hidden/popupmenu/grid/item["+3+"]/func" , "fMatTestDel");
  372. window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
  373. }
  374. }
  375. function fOnmenu(popupParam){
  376. alert ("poppup" + popupParam) ;
  377. if(popupParam == "fMatTestCopy"){
  378. fMatTestCopy();
  379. }else if(popupParam == "fMatTestPaste"){
  380. fMatTestPaste();
  381. }else if(popupParam == "fMatTestDel"){
  382. fMatTestDel();
  383. }
  384. }
  385. // 물질검사항목 복사
  386. function fMatTestCopy() {
  387. model.removeNodeset("/root/hidden/mattestbuff/matrtclslist");
  388. model.makeNode("/root/hidden/mattestbuff/matrtclslist");
  389. if ( grd_matrTclsList.selectedRows > 0 ) {
  390. for (i=0; i < grd_matrTclsList.selectedRows; i++) {
  391. var r = grd_matrTclsList.selectedRow(i);
  392. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/testcd", model.getValue("/root/main/matrtclslist[" + r + "]/testcd") );
  393. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/testnm", model.getValue("/root/main/matrtclslist[" + r + "]/testnm") );
  394. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/testfromdd", model.getValue("/root/main/matrtclslist[" + r + "]/testfromdd") );
  395. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/testtodd", model.getValue("/root/main/matrtclslist[" + r + "]/testtodd") );
  396. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/rsltkind", model.getValue("/root/main/matrtclslist[" + r + "]/rsltkind") );
  397. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refkind", model.getValue("/root/main/matrtclslist[" + r + "]/refkind") );
  398. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refflag", model.getValue("/root/main/matrtclslist[" + r + "]/refflag") );
  399. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refl", model.getValue("/root/main/matrtclslist[" + r + "]/refl") );
  400. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refls", model.getValue("/root/main/matrtclslist[" + r + "]/refls") );
  401. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refhs", model.getValue("/root/main/matrtclslist[" + r + "]/refhs") );
  402. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refh", model.getValue("/root/main/matrtclslist[" + r + "]/refh") );
  403. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/refcval", model.getValue("/root/main/matrtclslist[" + r + "]/refcval") );
  404. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/intrsltfrmt", model.getValue("/root/main/matrtclslist[" + r + "]/intrsltfrmt") );
  405. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/rsltunit", model.getValue("/root/main/matrtclslist[" + r + "]/rsltunit") );
  406. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/avg", model.getValue("/root/main/matrtclslist[" + r + "]/avg") );
  407. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/sdval", model.getValue("/root/main/matrtclslist[" + r + "]/sdval") );
  408. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/wgmrscop", model.getValue("/root/main/matrtclslist[" + r + "]/wgmrscop") );
  409. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/judgkind", model.getValue("/root/main/matrtclslist[" + r + "]/judgkind") );
  410. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/rundkind", model.getValue("/root/main/matrtclslist[" + r + "]/rundkind") );
  411. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/graphdispyn", model.getValue("/root/main/matrtclslist[" + r + "]/graphdispyn") );
  412. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/fstrgstrid", model.getValue("/root/main/matrtclslist[" + r + "]/fstrgstrid") );
  413. model.makeValue("/root/hidden/mattestbuff/matrtclslist["+ (i+1) +"]/fstrgstdt", model.getValue("/root/main/matrtclslist[" + r + "]/fstrgstdt") );
  414. }
  415. }
  416. }
  417. // 물질검사항목 붙여넣기
  418. function fMatTestPaste() {
  419. n = eval(getNodesetCount("/root/hidden/mattestbuff/matrtclslist"));
  420. if ( n > 0 ) {
  421. for ( i = 1; i <= n ; i++){
  422. grd_matrTclsList.addRow(false);
  423. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/testcd", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/testcd") );
  424. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/testnm", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/testnm") );
  425. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/testfromdd", model.getValue("/root/main/matrinfo/matrfromdd") /*model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/testfromdd")*/ );
  426. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/testtodd", "99991231"); /*model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/testtodd") );*/
  427. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/rsltkind", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/rsltkind") );
  428. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refkind", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refkind") );
  429. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refflag", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refflag") );
  430. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refl", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refl") );
  431. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refls", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refls") );
  432. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refhs", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refhs") );
  433. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refh", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refh") );
  434. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/refcval", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/refcval") );
  435. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/intrsltfrmt", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/intrsltfrmt") );
  436. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/rsltunit", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/rsltunit") );
  437. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/avg", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/avg") );
  438. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/sdval", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/sdval") );
  439. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/wgmrscop", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/wgmrscop") );
  440. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/judgkind", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/judgkind") );
  441. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/rundkind", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/rundkind") );
  442. model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/graphdispyn", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/graphdispyn") );
  443. //model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/fstrgstrid", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/fstrgstrid") );
  444. //model.setValue("/root/main/matrtclslist["+ (grd_matrTclsList.rows-1) +"]/fstrgstdt", model.getValue("/root/hidden/mattestbuff/matrtclslist[" + i + "]/fstrgstdt") );
  445. //model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testcd" , vTestCd);
  446. //model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testnm" , vTestNm);
  447. //model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testfromdd" , model.getValue("/root/main/matrinfo/matrfromdd"));
  448. //model.setValue("/root/main/matrtclslist[" + (grd_matrTclsList.rows-1) + "]/testtodd" , '99991231');
  449. //model.setValue("/root/main/testlist[" + i + "]/chk", "false");
  450. }//end for
  451. grd_matrTclsList.bottomRow = grd_matrTclsList.rows;
  452. }
  453. grd_matrTclsList.refresh();
  454. }
  455. // 물질검사항목 삭제(붙어넣기 한것만)
  456. function fMatTestDel(){
  457. var r = grd_matrTclsList.row;
  458. if ( r > 0 ) {
  459. if ( model.getValue("/root/main/matrtclslist["+ (r) +"]/fstrgstrid") == "" ) {
  460. grd_matrTclsList.deleteRow(r);
  461. grd_matrTclsList.refresh();
  462. } else {
  463. }
  464. }
  465. }
  466. ]]>
  467. </script>
  468. </xhtml:head>
  469. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  470. <group id="group1" style="left:0px; top:40px; width:1195px; height:744px; font-size:18pt; ">
  471. <line id="line7" class="line_1" style="x1:0px; y1:376px; x2:1194px; y2:376px; "/>
  472. <caption id="cap_regno" class="cell_1" style="left:0px; top:381px; width:190px; height:23px; ">사용시작일자</caption>
  473. <group id="group4" style="left:0px; top:10px; width:550px; height:35px; ">
  474. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:550px; height:35px; "/>
  475. <button id="btn_sea" class="btn1_letter2" style="left:473px; top:7px; width:56px; height:22px; ">
  476. <caption>조회</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. //물질리스트조회
  480. fGetMatrList();
  481. ]]>
  482. </script>
  483. </button>
  484. <caption id="caption15" class="search_name" style="left:15px; top:9px; width:86px; height:18px; ">조회구분 :</caption>
  485. <input id="ipt_search" ref="/root/hidden/refcont" class="input_s_button" style="left:313px; top:8px; width:100px; height:19px; ">
  486. <script type="javascript" ev:event="onkeypress">
  487. <![CDATA[
  488. fKeyEvent();
  489. ]]>
  490. </script>
  491. </input>
  492. <select1 id="cbo_searchFlag" ref="/root/hidden/refgbn" class="combo_s_essential" appearance="minimal" style="left:103px; top:8px; width:100px; height:19px; ">
  493. <choices>
  494. <item>
  495. <label>사용가능자료</label>
  496. <value>1</value>
  497. </item>
  498. <item>
  499. <label>전체자료</label>
  500. <value>2</value>
  501. </item>
  502. </choices>
  503. <script type="javascript" ev:event="xforms-value-changed">
  504. <![CDATA[
  505. fGetMatrList(); //물질리스트조회
  506. ]]>
  507. </script>
  508. </select1>
  509. <line id="line2" class="line_4" style="x1:458px; y1:6px; x2:458px; y2:28px; "/>
  510. <select1 id="combo1" ref="/root/hidden/searchflag" class="combo_s_essential" appearance="minimal" style="left:208px; top:8px; width:100px; height:19px; ">
  511. <choices>
  512. <item>
  513. <label>물질코드</label>
  514. <value>1</value>
  515. </item>
  516. <item>
  517. <label>물질명</label>
  518. <value>2</value>
  519. </item>
  520. </choices>
  521. </select1>
  522. </group>
  523. <datagrid id="grd_matrList" nodeset="/root/main/matrlist" caption="QC물질코드^QC물질명^levlcd^레벨명^LOT번호^사용시작일시^사용종료일시^Expire Date^제조회사^제조일시^입고일시^IF코드^등록자^등록일시" colsep="^" colwidth="100, 150, 0, 80, 80, 90, 70, 90, 70, 80, 80, 50, 60, 70" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:890px; height:276px; ">
  524. <col ref="matrcd"/>
  525. <col ref="matrnm"/>
  526. <col ref="levlcd"/>
  527. <col ref="levlnm"/>
  528. <col ref="lotno"/>
  529. <col ref="matrfromdd" format="yyyy-mm-dd"/>
  530. <col ref="matrtodd" visibility="hidden" format="yyyy-mm-dd"/>
  531. <col ref="validd" format="yyyy-mm-dd"/>
  532. <col ref="prodcmpy"/>
  533. <col ref="proddt" visibility="hidden" format="yyyy-mm-dd"/>
  534. <col ref="windt" format="yyyy-mm-dd"/>
  535. <col ref="matrifcd"/>
  536. <col ref="fstrgstrid" visibility="hidden"/>
  537. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  538. <script type="javascript" ev:event="ondblclick">
  539. <![CDATA[
  540. //더블 클릭시 물질정보 조회
  541. if(grd_matrList.isCell(event.target) && grd_matrList.row >= grd_matrList.fixedRows){
  542. fGetMatrTclsList();
  543. }
  544. ]]>
  545. </script>
  546. <script type="javascript" ev:event="onaftersort">
  547. <![CDATA[
  548. grd_matrList.gridToInstance();
  549. ]]>
  550. </script>
  551. </datagrid>
  552. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:890px; y2:70px; "/>
  553. <caption id="caption1" class="tit_2" style="left:5px; top:361px; width:169px; height:14px; ">QC 물질 정보</caption>
  554. <caption id="cap_sexage" class="cell_1" style="left:396px; top:381px; width:190px; height:23px; ">QC물질코드</caption>
  555. <caption id="cap_psnno" class="cell_1" style="left:792px; top:381px; width:190px; height:23px; ">레벨코드</caption>
  556. <output id="opt_matrfromdd" ref="/root/main/matrinfo/matrfromdd" class="output_fix" format="yyyy-mm-dd" style="left:193px; top:382px; width:200px; height:19px; "/>
  557. <output id="out_matrcd" ref="/root/main/matrinfo/matrcd" class="output_fix" style="left:589px; top:382px; width:200px; height:19px; "/>
  558. <output id="out_levlcd" ref="/root/main/matrinfo/levlcd" class="output_fix" style="left:985px; top:382px; width:209px; height:19px; "/>
  559. <line id="line9" class="line_3" style="x1:0px; y1:403px; x2:1194px; y2:403px; "/>
  560. <caption id="caption7" class="tit_2" style="left:5px; top:55px; width:115px; height:13px; ">QC 물질 리스트</caption>
  561. <group id="group3" style="left:555px; top:10px; width:635px; height:35px; ">
  562. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:635px; height:35px; "/>
  563. <caption id="caption4" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">검사코드 :</caption>
  564. <input id="ipt_searchTestCd" ref="/root/hidden/searchtestcd" class="input_s_button" inputtype="button" style="left:118px; top:8px; width:100px; height:19px; ">
  565. <script type="javascript" ev:event="onkeypress">
  566. <![CDATA[
  567. fKeyEvent();
  568. ]]>
  569. </script>
  570. </input>
  571. <select1 id="cmb_testLrgCd" ref="/root/hidden/testlrg" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:389px; top:8px; width:110px; height:19px; ">
  572. <choices>
  573. <itemset nodeset="/root/init/LB0104">
  574. <label ref="nm"/>
  575. <value ref="cd"/>
  576. </itemset>
  577. </choices>
  578. <script type="javascript" ev:event="xforms-value-changed">
  579. <![CDATA[
  580. fSetSelect02();
  581. //fSetTestLrgCd();
  582. ]]>
  583. </script>
  584. </select1>
  585. <select1 id="cmb_testMdlCd" ref="/root/hidden/testmdl/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:510px; top:8px; width:115px; height:19px; ">
  586. <choices>
  587. <itemset nodeset="/root/init/LB0102">
  588. <label ref="nm"/>
  589. <value ref="cd"/>
  590. </itemset>
  591. </choices>
  592. <script type="javascript" ev:event="xforms-select">
  593. <![CDATA[
  594. //검사코드리스트조회
  595. fGetTclscdList();
  596. ]]>
  597. </script>
  598. </select1>
  599. <line id="line13" class="line_4" style="x1:249px; y1:6px; x2:249px; y2:28px; "/>
  600. <select1 id="cmb_selectgbn" ref="/root/hidden/selectgbn" class="combo_search" visibility="visible" appearance="minimal" style="left:285px; top:8px; width:90px; height:19px; ">
  601. <choices>
  602. <item>
  603. <label>검사분류</label>
  604. <value>1</value>
  605. </item>
  606. <item>
  607. <label>시행부서</label>
  608. <value>2</value>
  609. </item>
  610. </choices>
  611. <script type="javascript" ev:event="xforms-select">
  612. <![CDATA[
  613. fSelectGbn();
  614. ]]>
  615. </script>
  616. </select1>
  617. </group>
  618. <datagrid id="grd_testList" nodeset="/root/main/testlist" caption="^검사코드^검사명" colsep="^" colwidth="30, 100, 120" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:895px; top:75px; width:299px; height:276px; ">
  619. <col checkvalue="true,false" ref="chk" type="checkbox" visibility="visible"/>
  620. <col ref="testcd"/>
  621. <col ref="testnm"/>
  622. <script type="javascript" ev:event="ondblclick">
  623. <![CDATA[
  624. //더블 클릭시 검사코드, 검사명 복사
  625. if(grd_testList.isCell(event.target) && grd_testList.row >= grd_testList.fixedRows){
  626. fSetTestCopy();
  627. }
  628. ]]>
  629. </script>
  630. <script type="javascript" ev:event="onaftersort">
  631. <![CDATA[
  632. grd_testList.gridToInstance();
  633. ]]>
  634. </script>
  635. <script type="javascript" ev:event="onclick">
  636. <![CDATA[
  637. if(grd_testList.isCell(event.target) && grd_testList.row >= grd_testList.fixedRows){
  638. fTestListClick();
  639. }
  640. ]]>
  641. </script>
  642. </datagrid>
  643. <line id="line14" class="line_1" style="x1:895px; y1:70px; x2:1194px; y2:70px; "/>
  644. <caption id="caption3" class="tit_2" style="left:900px; top:55px; width:115px; height:14px; ">검사항목 리스트</caption>
  645. <datagrid id="grd_matrTclsList" nodeset="/root/main/matrtclslist" caption="검사코드^검사명^시작일자^종료일자^결과유형^참고치유형^참고치구분^참고치하한^하한^상한^참고치상한^참고치문자^소수길이^단위^평균^표준편차^WGMR범위^판정유형^반올림옵션^그래프^등록자^등록일시" colsep="^" colwidth="80, 120, 85, 85, 80, 80, 80, 80, 50, 50, 80, 80, 60, 50, 50, 60, 80, 80, 80, 39, 80, 135" dataheight="23" explorerbar="sortshow" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:433px; width:1194px; height:299px; ">
  646. <col ref="testcd" style="left:20px; top:23px; width:80px; height:23px; "/>
  647. <col ref="testnm"/>
  648. <col ref="testfromdd" type="outputdate" format="yyyy-mm-dd"/>
  649. <col ref="testtodd" type="outputdate" format="yyyy-mm-dd"/>
  650. <col ref="rsltkind" type="combo">
  651. <choices>
  652. <item>
  653. <label>문자+숫자</label>
  654. <value>0</value>
  655. </item>
  656. <item>
  657. <label>숫자</label>
  658. <value>1</value>
  659. </item>
  660. </choices>
  661. </col>
  662. <col ref="refkind" type="combo">
  663. <choices>
  664. <item>
  665. <label>없음</label>
  666. <value>0</value>
  667. </item>
  668. <item>
  669. <label>문자</label>
  670. <value>1</value>
  671. </item>
  672. <item>
  673. <label>숫자</label>
  674. <value>2</value>
  675. </item>
  676. </choices>
  677. </col>
  678. <col ref="refflag" type="combo">
  679. <choices>
  680. <item>
  681. <label>사용안함</label>
  682. <value>0</value>
  683. </item>
  684. <item>
  685. <label>하한만사용</label>
  686. <value>1</value>
  687. </item>
  688. <item>
  689. <label>상한만사용</label>
  690. <value>2</value>
  691. </item>
  692. <item>
  693. <label>모두사용</label>
  694. <value>3</value>
  695. </item>
  696. </choices>
  697. </col>
  698. <col ref="refl" type="input"/>
  699. <col ref="refls" type="combo">
  700. <choices>
  701. <item>
  702. <label>
  703. <![CDATA[<]]>
  704. </label>
  705. <value>0</value>
  706. </item>
  707. <item>
  708. <label>
  709. <![CDATA[<=]]>
  710. </label>
  711. <value>1</value>
  712. </item>
  713. </choices>
  714. </col>
  715. <col ref="refhs" type="combo">
  716. <choices>
  717. <item>
  718. <label>
  719. <![CDATA[<]]>
  720. </label>
  721. <value>0</value>
  722. </item>
  723. <item>
  724. <label>
  725. <![CDATA[<=]]>
  726. </label>
  727. <value>1</value>
  728. </item>
  729. </choices>
  730. </col>
  731. <col ref="refh" type="input"/>
  732. <col ref="refcval" type="input"/>
  733. <col ref="intrsltfrmt" type="combo">
  734. <choices>
  735. <item>
  736. <label>-</label>
  737. <value>-</value>
  738. </item>
  739. <item>
  740. <label>0</label>
  741. <value>0</value>
  742. </item>
  743. <item>
  744. <label>1</label>
  745. <value>1</value>
  746. </item>
  747. <item>
  748. <label>2</label>
  749. <value>2</value>
  750. </item>
  751. <item>
  752. <label>3</label>
  753. <value>3</value>
  754. </item>
  755. <item>
  756. <label>4</label>
  757. <value>4</value>
  758. </item>
  759. <item>
  760. <label>5</label>
  761. <value>5</value>
  762. </item>
  763. <item>
  764. <label>6</label>
  765. <value>6</value>
  766. </item>
  767. <item>
  768. <label>7</label>
  769. <value>7</value>
  770. </item>
  771. <item>
  772. <label>8</label>
  773. <value>8</value>
  774. </item>
  775. <item>
  776. <label>9</label>
  777. <value>9</value>
  778. </item>
  779. <item>
  780. <label>10</label>
  781. <value>10</value>
  782. </item>
  783. </choices>
  784. </col>
  785. <col ref="rsltunit" type="input"/>
  786. <col ref="avg" type="input"/>
  787. <col ref="sdval" type="input"/>
  788. <col imemode="disabled" ref="wgmrscop" type="input" maxlength="6" _chartype="upper"/>
  789. <col ref="judgkind" type="combo">
  790. <choices>
  791. <item>
  792. <label>미사용</label>
  793. <value>0</value>
  794. </item>
  795. <item>
  796. <label>
  797. <![CDATA[L/H]]>
  798. </label>
  799. <value>1</value>
  800. </item>
  801. </choices>
  802. </col>
  803. <col ref="rundkind" type="combo">
  804. <choices>
  805. <item>
  806. <label>사용안함</label>
  807. <value>0</value>
  808. </item>
  809. <item>
  810. <label>반올림</label>
  811. <value>1</value>
  812. </item>
  813. <item>
  814. <label>올림</label>
  815. <value>2</value>
  816. </item>
  817. <item>
  818. <label>내림</label>
  819. <value>3</value>
  820. </item>
  821. </choices>
  822. </col>
  823. <col checkvalue="Y,N" ref="graphdispyn" type="checkbox"/>
  824. <col ref="fstrgstrid"/>
  825. <col ref="fstrgstdt" format="yyyy-mm-dd hh:mm:ss"/>
  826. <script type="javascript" ev:event="DOMFocusOut">
  827. <![CDATA[
  828. window.setPopupMenu(false);
  829. ]]>
  830. </script>
  831. <script type="javascript" ev:event="onmouseout">
  832. <![CDATA[
  833. window.setPopupMenu(false);
  834. ]]>
  835. </script>
  836. <script type="javascript" ev:event="onmousedown">
  837. <![CDATA[
  838. //fGetMouseDown();
  839. ]]>
  840. </script>
  841. </datagrid>
  842. <button id="button52" class="btn2_letter3" disabled="true" style="left:1085px; top:407px; width:53px; height:19px; ">
  843. <caption>행추가</caption>
  844. <script type="javascript" ev:event="DOMActivate">
  845. <![CDATA[
  846. grd_matrTclsList.addItem();
  847. ]]>
  848. </script>
  849. </button>
  850. <button id="button53" class="btn2_letter3" style="left:1141px; top:407px; width:53px; height:19px; ">
  851. <caption>행삭제</caption>
  852. <script type="javascript" ev:event="DOMActivate">
  853. <![CDATA[
  854. grd_matrTclsList.rowStatus(grd_matrTclsList.row) = 4; //멀티업데이트 시 Delete로 설정 //0:new, 1:insert, 2:update, 3:insert&new, 4:delete
  855. //grd_matrTclsList.deleteitem(grd_matrTclsList.row); //물질리스트의 검사항목 삭제기능을 사용한다고 해서 주석처리..20080714 심양보 팀장님 회의 내용
  856. ]]>
  857. </script>
  858. </button>
  859. <button id="btn_up" class="icon_bottom" style="left:1035px; top:354px; width:26px; height:19px; ">
  860. <caption/>
  861. <script type="javascript" ev:event="DOMActivate">
  862. <![CDATA[
  863. fCopyTestList();
  864. ]]>
  865. </script>
  866. </button>
  867. <caption id="caption2" class="tit_2" style="left:0px; top:413px; width:169px; height:13px; ">QC 물질별 검사항목 설정</caption>
  868. <line id="line4" class="line_1" style="x1:0px; y1:428px; x2:1194px; y2:428px; "/>
  869. <button id="button1" class="btn2_letter3" disabled="false" style="left:180px; top:408px; width:53px; height:19px; ">
  870. <caption>복사</caption>
  871. <script type="javascript" ev:event="DOMActivate">
  872. <![CDATA[
  873. // 물질검사항목 복사
  874. fMatTestCopy()
  875. ]]>
  876. </script>
  877. </button>
  878. <button id="button2" class="btn2_letter3" disabled="false" style="left:235px; top:408px; width:53px; height:19px; ">
  879. <caption>붙이기</caption>
  880. <script type="javascript" ev:event="DOMActivate">
  881. <![CDATA[
  882. // 물질검사항목 붙여넣기
  883. fMatTestPaste()
  884. ]]>
  885. </script>
  886. </button>
  887. <button id="button4" class="btn2_letter3" disabled="false" style="left:290px; top:408px; width:53px; height:19px; ">
  888. <caption>삭제</caption>
  889. <script type="javascript" ev:event="DOMActivate">
  890. <![CDATA[
  891. // 물질검사항목 삭제
  892. fMatTestDel()
  893. ]]>
  894. </script>
  895. </button>
  896. </group>
  897. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  898. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">QC물질별검사관리</caption>
  899. </group>
  900. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  901. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  902. <caption>초기화</caption>
  903. <script type="javascript" ev:event="DOMActivate">
  904. <![CDATA[
  905. window.reload();
  906. ]]>
  907. </script>
  908. </button>
  909. <button id="btn_exec" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  910. <caption>저장</caption>
  911. <script type="javascript" ev:event="DOMActivate">
  912. <![CDATA[
  913. if(messageBox("", "Q002")==6){
  914. if(!checkGridUpdate(grd_matrTclsList)){
  915. messageBox("저장할 자료가 존재하지 않아 실행", "E001");
  916. return;
  917. }
  918. //저장버튼
  919. fExeMatrTclsList();
  920. }
  921. ]]>
  922. </script>
  923. </button>
  924. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  925. </group>
  926. </xhtml:body>
  927. </xhtml:html>