SMLOR00200_위탁검사결과관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLOR00200_위탁검사결과관리.xrw
  4. * 설 명 : 위탁검사결과관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2007.07.03
  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 xmlns="">
  18. <main>
  19. <outerlist>
  20. <workdd/>
  21. <instcd/>
  22. <pid/>
  23. <bcno/>
  24. <patnm/>
  25. <testcd/>
  26. <inptrslt/>
  27. <rsltstat/>
  28. <srvstat/>
  29. <imgyn/>
  30. <imgnm/>
  31. <rkey/>
  32. <imgfull/>
  33. <imgwidt/>
  34. <imght/>
  35. <imgrslt/>
  36. <testnm/>
  37. <imgtrue/>
  38. </outerlist>
  39. <msglist>
  40. <msg/>
  41. </msglist>
  42. <view>
  43. <imgnm/>
  44. <imgrslt/>
  45. <imgwidt/>
  46. <imght/>
  47. <rsltseqno/>
  48. <savdelflag>1</savdelflag>
  49. </view>
  50. </main>
  51. <send>
  52. <attach>
  53. <file/>
  54. <bcno/>
  55. <testcd/>
  56. <rsltstat/>
  57. <imght/>
  58. <imgwidt/>
  59. <imgrslt/>
  60. </attach>
  61. <codeflag/>
  62. <outerrslt>
  63. </outerrslt>
  64. <data3/>
  65. <bcnolist/>
  66. <testcdlist/>
  67. <cnfmdata/>
  68. <savegbn/>
  69. <testlist/>
  70. </send>
  71. <init>
  72. </init>
  73. <hidden>
  74. <filename/>
  75. <imgname/>
  76. <cnfmlist>
  77. <bcno/>
  78. <testcd/>
  79. <rsltstat/>
  80. <rkey/>
  81. </cnfmlist>
  82. <ResultFlag>
  83. <error/>
  84. </ResultFlag>
  85. <cmt>
  86. <cd>00</cd>
  87. <cnts/>
  88. </cmt>
  89. <tclslist>
  90. <tclscd/>
  91. <tclsnm/>
  92. <tclsabbrnm/>
  93. </tclslist>
  94. <rsltstat2/>
  95. <spcltestinfo>
  96. <bcno/>
  97. <testcd/>
  98. <spccd/>
  99. <tclscd/>
  100. <pid/>
  101. <rsltstat/>
  102. </spcltestinfo>
  103. </hidden>
  104. </root>
  105. </instance>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" ev:event="xforms-ready">
  109. <![CDATA[
  110. //grd_outer.deleteRow(1, false);
  111. grd_outer.removeRow();
  112. model.removeNodeset("/root/main/outerlist");
  113. model.removeNodeset("/root/hidden/cnfmlist");
  114. grd_attach.removeRow();
  115. model.resetInstanceNode("/root/send");
  116. // 초기정보 조회
  117. model.setValue("/root/send/codeflag", "0210|0110|0000|"); //0210 소견코드
  118. submit("TRLZZ00101");
  119. ]]>
  120. </script>
  121. <!-- 기초코드 조회-->
  122. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0210"/>
  123. <submission id="TXLOR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/ResultFlag"/>
  124. <submission id="TRLOR00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/cnfmlist"/>
  125. <submission id="TXTSS00201" mediatype="multipart/form-data" method="form-data-post" ref="/root/send"/>
  126. <submission id="TXLOR00202" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach"/>
  127. <submission id="TRLOR00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/tclslist"/>
  128. </model>
  129. <script type="javascript">
  130. <![CDATA[
  131. // 파일 가져오기
  132. function fGetFileName(){
  133. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls|CSV Files(*.csv)|*.csv");
  134. if (fileName == "" || fileName == null) {
  135. alert("파일을 선택하세요");
  136. return;
  137. }
  138. model.setValue("/root/hidden/filename", fileName);
  139. opt_file.refresh();
  140. //grd_outer.loadExcel(fileName, 1, true);
  141. grd_outer.loadExcel(fileName);
  142. grd_outer.deleteRow(1);
  143. grd_outer.refresh();
  144. // 검사명 조회하기
  145. if(grd_outer.rows > 1){
  146. var bcnolist = "";
  147. var tclscdlist = "";
  148. for(j=1; j<grd_outer.rows; j++){
  149. bcnolist += "'" + model.getValue("/root/main/outerlist["+j+"]/bcno") + "'" + ",";
  150. tclscdlist += "'" + model.getValue("/root/main/outerlist["+j+"]/testcd") + "'" + ",";
  151. }
  152. model.setValue("/root/send/bcnolist", bcnolist.substr(0, (bcnolist.length-1)) );
  153. model.setValue("/root/send/testcdlist", tclscdlist.substr(0, (tclscdlist.length-1)) );
  154. submit("TRLOR00202");
  155. var tclsrow = getNodesetCount("/root/hidden/tclslist");
  156. for(j= 1; j<=tclsrow; j++){
  157. for(k=1; k<grd_outer.rows; k++){
  158. if(model.getValue("/root/hidden/tclslist["+j+"]/tclscd")==model.getValue("/root/main/outerlist["+k+"]/testcd")){
  159. model.setValue("/root/main/outerlist["+k+"]/testnm", model.getValue("/root/hidden/tclslist["+j+"]/tclsnm"));
  160. }
  161. }
  162. }
  163. }
  164. for(i=1; i<grd_outer.rows; i++){
  165. grd_outer.rowStatus(i) = 1;
  166. var bcbc = model.getValue("/root/main/outerlist["+i+"]/bcno");
  167. var tctc = model.getValue("/root/main/outerlist["+i+"]/testcd");
  168. model.setValue("/root/main/outerlist["+i+"]/rkey", bcbc + tctc);
  169. }
  170. model.setValue("/root/send/savegbn", "F"); // File로 저장시
  171. }
  172. // 이미지경로 가져오기
  173. function fGetImgPath(){
  174. var folderName = window.folderDialog("");
  175. if (folderName == "" || folderName == null) {
  176. alert("폴더를 선택하세요");
  177. return;
  178. }
  179. //model.setValue("/root/hidden/imgname", folderName + "\\");
  180. model.setValue("/root/hidden/imgname", folderName);
  181. opt_img.refresh();
  182. }
  183. // 이미지 업로드
  184. function fSetImgUpload(){
  185. var vCnt = 0;
  186. var imgPath = new Array();
  187. var maxsize = upload1.attribute("filesize");
  188. for(i=1; i<grd_outer.rows; i++){
  189. if(model.getValue("/root/main/outerlist["+i+"]/imgyn")=="Y"){
  190. if(model.getValue("/root/main/outerlist["+i+"]/imgnm")!= ""){
  191. fChangeImage(model.getValue("/root/hidden/imgname") + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm"));
  192. grd_attach.addRow(); // grd_attach 업로드용 그리드
  193. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = model.getValue("/root/hidden/imgname") + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm");
  194. grd_attach.valueMatrix(grd_attach.rows - 1, 1) = model.getValue("/root/main/outerlist["+i+"]/bcno");
  195. grd_attach.valueMatrix(grd_attach.rows - 1, 2) = model.getValue("/root/main/outerlist["+i+"]/testcd");
  196. grd_attach.valueMatrix(grd_attach.rows - 1, 3) = model.getValue("/root/main/outerlist["+i+"]/rsltstat");
  197. //grd_attach.valueMatrix(grd_attach.rows - 1, 4) = "0";
  198. //grd_attach.valueMatrix(grd_attach.rows - 1, 5) = "0";
  199. grd_attach.valueMatrix(grd_attach.rows - 1, 4) = model.getValue("/root/main/view/imght");
  200. grd_attach.valueMatrix(grd_attach.rows - 1, 5) = model.getValue("/root/main/view/imgwidt");
  201. grd_attach.valueMatrix(grd_attach.rows - 1, 6) = model.getValue("/root/main/view/imgrslt");
  202. if (!checkFileSize(upload1)){
  203. grd_attach.removeItem();
  204. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  205. }
  206. }
  207. }
  208. }
  209. }
  210. function fChangeImage(imgsrc){ // 이미지 전환
  211. img2.src = imgsrc;
  212. var data = img2.getbase64data();
  213. var imgSize = getImageSize(imgsrc);
  214. model.setValue("/root/main/view/imgrslt",data,true);
  215. //model.setValue("/root/main/view/imgrslt", data);
  216. //setImageRefInstance("/root/main/view/imgrslt");
  217. if( imgSize.split("^")[0] >= 2500){
  218. model.setValue("/root/main/view/imgwidt", parseInt(imgSize.split("^")[0] * 0.3) );
  219. model.setValue("/root/main/view/imght", parseInt(imgSize.split("^")[1] * 0.3) );
  220. }else if( imgSize.split("^")[0] > 2000 && imgSize.split("^")[0] < 2500){
  221. model.setValue("/root/main/view/imgwidt", parseInt(imgSize.split("^")[0] * 0.4) );
  222. model.setValue("/root/main/view/imght", parseInt(imgSize.split("^")[1] * 0.4) );
  223. }else{
  224. model.setValue("/root/main/view/imgwidt", imgSize.split("^")[0]);
  225. model.setValue("/root/main/view/imght", imgSize.split("^")[1]);
  226. }
  227. //img1.attribute("width")= imgSize.split("^")[0];
  228. //img1.attribute("height")= imgSize.split("^")[1];
  229. model.refresh();
  230. }
  231. // 결과전송
  232. function fExeOuterRslt(){
  233. // 이미지 결과 Y인것 업로드 하기
  234. //fGetImgFile();
  235. var grdouter = grd_outer.getUpdateData();
  236. model.setValue("/root/send/outerrslt", grdouter);
  237. //model.copyNode("/root/send/data3", "/root/hidden/cmt");
  238. fSetImgUpload();
  239. if(submit("TXLOR00201", false)){
  240. model.resetInstanceNode("/root/main/outerlist");
  241. model.resetInstanceNode("/root/main/view");
  242. }
  243. //submit("TXLOR00202",false);
  244. model.removeNodeset("/root/send/attach");
  245. model.resetInstanceNode("/root/send");
  246. model.refresh();
  247. }
  248. // 전송확인
  249. function fGetOuterRsltConfirm(){
  250. model.removeNodeset("/root/hidden/cnfmlist");
  251. if(grd_outer.rows < 2){
  252. //alert("전송확인할 항목이 없습니다.");
  253. messageBox("전송확인할 항목이 ", "I004", "");
  254. return;
  255. }
  256. var keylist = model.getValue("/root/main/outerlist[1]/rkey");
  257. var bcnolist = model.getValue("/root/main/outerlist[1]/bcno");
  258. var testlist = model.getValue("/root/main/outerlist[1]/testcd");
  259. for(i=2; i<grd_outer.rows; i++ ){
  260. keylist = keylist + "','" + model.getValue("/root/main/outerlist["+i+"]/rkey");
  261. bcnolist = bcnolist + "','" + model.getValue("/root/main/outerlist["+i+"]/bcno");
  262. testlist = testlist + "','" + model.getValue("/root/main/outerlist["+i+"]/testcd");
  263. }
  264. model.setValue("/root/send/cnfmdata", "'" + keylist + "'");
  265. model.setValue("/root/send/bcnolist", "'" + bcnolist + "'");
  266. model.setValue("/root/send/testlist", "'" + testlist + "'");
  267. //alert("aaa= " + model.getValue("/root/send/cnfmdata"));
  268. if(submit("TRLOR00201")){
  269. var refRow = getNodesetCount("/root/hidden/cnfmlist");
  270. for(j=1; j<=refRow; j++){
  271. for(i=1; i<grd_outer.rows; i++ ){
  272. if(model.getValue("/root/main/outerlist["+j+"]/rkey")==model.getValue("/root/hidden/cnfmlist["+i+"]/rkey")){
  273. model.setValue("/root/main/outerlist["+i+"]/srvstat", model.getValue("/root/hidden/cnfmlist["+j+"]/rsltstat"));
  274. }
  275. }
  276. }
  277. }else{
  278. alert("조회오류");
  279. }
  280. }
  281. // 소견콤보 선택시 textarea 로 보여주기
  282. function fSetCmt(){
  283. //var cmtcnt = model.getValue("/root/init/LB0210[cd="+cmb_cmt.value+"]/nm");
  284. var cmtcnt = model.getValue("/root/init/LB0210[etc01='X' and cd=" + "'"+cmb_cmt.value+"'" + "]/etc03");
  285. model.setValue("/root/hidden/cmt/cnts", cmtcnt);
  286. tar_cmt.refresh();
  287. }
  288. // 초기화
  289. function fSetReset(){
  290. model.reset();
  291. }
  292. // 엑셀 저장
  293. function fExeExcel(pGridId) {
  294. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  295. if (fileName != "")
  296. {
  297. pGridId.saveExcel(fileName);
  298. }
  299. }
  300. // 이미지 있을때 업로드 하기
  301. function fGetImgFile(){
  302. var maxsize = upload1.attribute("filesize");
  303. //alert("maxsize= " + maxsize);
  304. //files = window.fileDialog("open", "|", true);
  305. //filelist = files.split("|");
  306. var imgpath = model.getValue("/root/hidden/imgname");
  307. var filefullName = imgpath + "\\" + model.getValue("/root/main/outerlist/imgnm");
  308. model.setValue("/root/main/outerlist/imgfull", filefullName);
  309. img2.src = filefullName;
  310. var data = img2.getbase64data();
  311. //alert("data= " + data);
  312. var imgsize = getImageSize(filefullName);
  313. //alert("imgsize= " + imgsize);
  314. model.setValue("/root/main/view/imgrslt", data, true);
  315. setImageRefInstance("/root/main/view/imgrslt");
  316. model.setValue("/root/main/view/imgwidt", imgsize.split("^")[0]);
  317. model.setValue("/root/main/view/imght", imgsize.split("^")[1]);
  318. img2.attribute("width")= imgsize.split("^")[0];
  319. img2.attribute("height")= imgsize.split("^")[1];
  320. model.copyNode("/root/send/data2" , "/root/main/view" )
  321. model.refresh();
  322. /*for(i=1; i<grd_outer.rows; i++ ){
  323. //alert("i= " + i + " rows= " + grd_outer.rows);
  324. if(("Y" == model.getValue("/root/main/outerlist["+i+"]/imgyn")) || ("" != model.getValue("/root/main/outerlist["+i+"]/imgnm"))){
  325. if(imgpath == ""){
  326. alert("이미지 경로가 없습니다.");
  327. return;
  328. }
  329. var filefullName = imgpath + "\\" + model.getValue("/root/main/outerlist["+i+"]/imgnm");
  330. model.setValue("/root/main/outerlist["+i+"]/imgfull", filefullName);
  331. img2.src = filefullName;
  332. var data = img2.getbase64data();
  333. //alert("data= " + data);
  334. var imgsize = getImageSize(filefullName);
  335. //alert("imgsize= " + imgsize);
  336. model.setValue("/root/main/outerlist["+i+"]/imgrslt", data, true);
  337. model.setValue("/root/main/outerlist["+i+"]/imgwidt", imgsize.split("^")[0]);
  338. model.setValue("/root/main/outerlist["+i+"]/imght", imgsize.split("^")[1]);
  339. if (!checkFileSize(upload1)){
  340. //grd_attach.removeItem();
  341. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  342. return;
  343. }
  344. }
  345. }*/
  346. }
  347. // 저장상태 변경
  348. function fSetRsltStat(){
  349. if(grd_outer.rows> 1){
  350. for(i=1; i<grd_outer.rows; i++){
  351. model.setValue("/root/main/outerlist["+i+"]/rsltstat", model.getValue("/root/hidden/rsltstat2"));
  352. }
  353. model.refresh();
  354. }else{
  355. alert("변경할 내용이 없습니다. ");
  356. }
  357. }
  358. // 이미지결과 보여주기
  359. function fSetImgRsltView(){
  360. //model.resetInstanceNode("/root/hidden/spcltestinfo");
  361. var row = "";
  362. if(model.getValue("/root/send/savegbn")=="F"){ // 파일로딩했을때
  363. row = grd_outer.row;
  364. }else{ // 조회했을때
  365. //row = grd_outer.row + 2;
  366. row = grd_outer.row ;
  367. }
  368. //alert("row=" + row);
  369. if(row> 0){
  370. if(model.getValue("/root/main/outerlist["+row+"]/imgyn")=="Y"){
  371. model.setValue("/root/hidden/spcltestinfo/bcno", model.getValue("/root/main/outerlist["+row+"]/bcno"));
  372. model.setValue("/root/hidden/spcltestinfo/testcd", model.getValue("/root/main/outerlist["+row+"]/testcd"));
  373. model.setValue("/root/hidden/spcltestinfo/spccd", model.getValue("/root/main/outerlist["+row+"]/spccd"));
  374. model.setValue("/root/hidden/spcltestinfo/tclscd", model.getValue("/root/main/outerlist["+row+"]/tclscd"));
  375. model.setValue("/root/hidden/spcltestinfo/pid", model.getValue("/root/main/outerlist["+row+"]/pid"));
  376. model.setValue("/root/hidden/spcltestinfo/rsltstat", model.getValue("/root/main/outerlist["+row+"]/rsltstat"));
  377. modal("SMLRR01500","", "", "","", "/root/hidden/spcltestinfo", "/root/hidden/spcltestinfo");
  378. }
  379. }
  380. }
  381. ]]>
  382. </script>
  383. </xhtml:head>
  384. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  385. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  386. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1195; y2:71px; "/>
  387. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:10; width:1195px; height:35; "/>
  388. <caption id="caption2" class="search_name" style="left:15px; top:19px; width:75px; height:17px; ">화일명 :</caption>
  389. <button id="button1" class="btn1_letter2" style="left:1123px; top:17px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  390. <caption>조회</caption>
  391. <script type="javascript" ev:event="DOMActivate">
  392. <![CDATA[
  393. ]]>
  394. </script>
  395. </button>
  396. <line id="line11" class="line_4" style="x1:1108px; y1:16px; x2:1108px; y2:38px; "/>
  397. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:131px; height:14px; ">검체코드상세내역</caption>
  398. <button id="button2" class="btn2_letter4" style="left:1131px; top:50px; width:64px; height:19px; ">
  399. <caption>엑셀저장</caption>
  400. <script type="javascript" ev:event="DOMActivate">
  401. <![CDATA[
  402. fExeExcel(grd_outer);
  403. ]]>
  404. </script>
  405. </button>
  406. <caption id="caption4" class="search_name" style="left:570px; top:19px; width:99px; height:17px; ">이미지경로 :</caption>
  407. <caption id="caption3" class="tit_2" style="left:710px; top:592px; width:131px; height:14px; ">소견입력</caption>
  408. <line id="line2" class="line_1" style="x1:705px; y1:607px; x2:1195px; y2:607px; "/>
  409. <caption id="caption5" class="tit_2" style="left:0px; top:592px; width:131px; height:13px; ">결과전송상태</caption>
  410. <line id="line3" class="line_1" style="x1:0px; y1:607px; x2:700px; y2:607px; "/>
  411. <line id="line4" class="line_2" style="x1:705px; y1:634px; x2:1195px; y2:634px; "/>
  412. <line id="line5" class="line_3" style="x1:705px; y1:727px; x2:1195px; y2:727px; "/>
  413. <input id="opt_file" ref="/root/hidden/filename" class="output_search" appearance="input" style="left:93px; top:18px; width:442px; height:19px; "/>
  414. <output id="opt_img" ref="/root/hidden/imgname" class="output_search" style="left:670px; top:18px; width:395px; height:19px; "/>
  415. <datagrid id="grd_outer" nodeset="/root/main/outerlist" class="datagrid" caption="의뢰일자^기관코드^등록번호^검체번호^성명^검사코드^결과^상태구분^서버상태^이미지결과^이미지명^rkey^imgfull^imgwidt^imght^imgrslt^검사명^이미지결과" colsep="^" colwidth="80, 80, 70, 86, 70, 70, 160, 82, 70, 80, 100, 0, 0, 0, 0, 0, 140, 60" dataheight="23" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:76px; width:1195px; height:506; ">
  416. <col ref="workdd" format="yyyy-mm-dd"/>
  417. <col ref="instcd" type="combo">
  418. <choices>
  419. <itemset nodeset="/root/init/LB0110">
  420. <label ref="nm"/>
  421. <value ref="cd"/>
  422. </itemset>
  423. </choices>
  424. </col>
  425. <col ref="pid"/>
  426. <col ref="bcno"/>
  427. <col ref="patnm"/>
  428. <col ref="testcd"/>
  429. <col ref="inptrslt"/>
  430. <col ref="rsltstat" type="combo">
  431. <choices>
  432. <item>
  433. <label>-</label>
  434. <value>-</value>
  435. </item>
  436. <item>
  437. <label>저장</label>
  438. <value>1</value>
  439. </item>
  440. <item>
  441. <label>중간보고</label>
  442. <value>2</value>
  443. </item>
  444. <item>
  445. <label>최종보고중</label>
  446. <value>3</value>
  447. </item>
  448. <item>
  449. <label>최종보고</label>
  450. <value>4</value>
  451. </item>
  452. <item>
  453. <label>수정보고</label>
  454. <value>5</value>
  455. </item>
  456. </choices>
  457. </col>
  458. <col disabled="true" ref="srvstat" type="combo">
  459. <choices>
  460. <item>
  461. <label>-</label>
  462. <value>-</value>
  463. </item>
  464. <item>
  465. <label>저장</label>
  466. <value>1</value>
  467. </item>
  468. <item>
  469. <label>중간보고</label>
  470. <value>2</value>
  471. </item>
  472. <item>
  473. <label>최종보고중</label>
  474. <value>3</value>
  475. </item>
  476. <item>
  477. <label>최종보고</label>
  478. <value>4</value>
  479. </item>
  480. <item>
  481. <label>수정보고</label>
  482. <value>5</value>
  483. </item>
  484. </choices>
  485. </col>
  486. <col ref="imgyn" type="combo">
  487. <choices>
  488. <item>
  489. <label>Y</label>
  490. <value>Y</value>
  491. </item>
  492. <item>
  493. <label>N</label>
  494. <value>N</value>
  495. </item>
  496. </choices>
  497. </col>
  498. <col ref="imgnm" style="left:940px; top:23px; width:100px; height:23px; "/>
  499. <col ref="rkey"/>
  500. <col ref="imgfull"/>
  501. <col ref="imgwidt"/>
  502. <col ref="imght"/>
  503. <col ref="imgrslt"/>
  504. <col ref="testnm"/>
  505. <col ref="imgtrue" type="inputbutton"/>
  506. <script type="javascript" ev:event="onbuttonclick">
  507. <![CDATA[
  508. fSetImgRsltView();
  509. ]]>
  510. </script>
  511. </datagrid>
  512. <datagrid id="grd_rsltstat" nodeset="/root/hidden/ResultFlag" caption="Message" colsep="^" colwidth="677" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:612px; width:700px; height:115; ">
  513. <col ref="error"/>
  514. </datagrid>
  515. <col ref="rsltstat" type="combo">
  516. <choices>
  517. <item>
  518. <label>-</label>
  519. <value>-</value>
  520. </item>
  521. <item>
  522. <label>저장</label>
  523. <value>1</value>
  524. </item>
  525. <item>
  526. <label>중간보고</label>
  527. <value>2</value>
  528. </item>
  529. <item>
  530. <label>최종보고중</label>
  531. <value>3</value>
  532. </item>
  533. <item>
  534. <label>????</label>
  535. <value>4</value>
  536. </item>
  537. <item>
  538. <label>최종보고</label>
  539. <value>5</value>
  540. </item>
  541. </choices>
  542. </col>
  543. <select1 id="cmb_cmt" ref="/root/hidden/cmt/cd" class="combo_default" appearance="minimal" style="left:705px; top:612px; width:490px; height:19px; ">
  544. <choices>
  545. <itemset nodeset="/root/init/LB0210[etc01='X']">
  546. <label ref="nm"/>
  547. <value ref="cd"/>
  548. </itemset>
  549. </choices>
  550. <script type="javascript" ev:event="xforms-select">
  551. <![CDATA[
  552. fSetCmt();
  553. ]]>
  554. </script>
  555. </select1>
  556. <textarea id="tar_cmt" ref="/root/hidden/cmt/cnts" style="left:705px; top:637px; width:490px; height:87px; "/>
  557. <button id="button6" class="icon_search" appearance="button" style="left:1073px; top:20px; width:16px; height:16px; ">
  558. <script type="javascript" ev:event="DOMActivate">
  559. <![CDATA[
  560. //이미지 경로 가져오기
  561. fGetImgPath();
  562. ]]>
  563. </script>
  564. <caption/>
  565. </button>
  566. <button id="button7" visibility="hidden" style="left:290px; top:380px; width:115px; height:20px; ">
  567. <caption>이미지업로드 임시용</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. fSetImgUpload();
  571. ]]>
  572. </script>
  573. </button>
  574. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="5242880" validate="true" style="left:425px; top:380px; width:25px; height:20px; "/>
  575. <datagrid id="grd_attach" nodeset="/root/send/attach" visibility="hidden" caption="파일경로^bcno^testcd^rsltstat^imght^imgwidt^imgrslt^" colwidth="415, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" style="left:0px; top:415px; width:1095px; height:150px; ">
  576. <col ref="file"/>
  577. <col ref="bcno"/>
  578. <col ref="testcd"/>
  579. <col ref="rsltstat"/>
  580. <col ref="imght"/>
  581. <col ref="imgwidt"/>
  582. <col ref="imgrslt"/>
  583. </datagrid>
  584. <button id="btn_upload" class="btn5_letter4" visibility="hidden" style="left:600px; top:390px; width:64px; height:19px; ">
  585. <caption>upload</caption>
  586. <script type="javascript" ev:event="DOMActivate">
  587. <![CDATA[
  588. if (submit("TXTSS00201")) {
  589. //model.removeNodeset("/root/send/attach");
  590. //model.resetInstanceNode("/root/send/title");
  591. model.refresh();
  592. }
  593. ]]>
  594. </script>
  595. </button>
  596. <button id="btn_addfile" class="btn2_letter4" visibility="hidden" style="left:530px; top:390px; width:64px; height:19px; ">
  597. <caption>addfile</caption>
  598. <script type="javascript" ev:event="DOMActivate">
  599. <![CDATA[
  600. var maxsize = upload1.attribute("filesize");
  601. files = window.fileDialog("open", "|", true);
  602. filelist = files.split("|");
  603. for(var i = 0 ; i < filelist.length ; i++ ) {
  604. grd_attach.addRow(false);
  605. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  606. }
  607. ]]>
  608. </script>
  609. </button>
  610. <button id="button8" class="btn2_letter7" style="left:658px; top:49px; width:97px; height:19px; ">
  611. <caption>↓저장상태변경</caption>
  612. <script type="javascript" ev:event="DOMActivate">
  613. <![CDATA[
  614. fSetRsltStat();
  615. ]]>
  616. </script>
  617. </button>
  618. <caption id="caption12" class="tit_2" style="left:445px; top:52px; width:126px; height:13px; ">저장상태일괄변경</caption>
  619. <select1 id="combo5" ref="/root/hidden/rsltstat2" appearance="minimal" style="left:570px; top:49px; width:85px; height:19px; ">
  620. <choices>
  621. <item>
  622. <label>-</label>
  623. <value>-</value>
  624. </item>
  625. <item>
  626. <label>저장</label>
  627. <value>1</value>
  628. </item>
  629. <item>
  630. <label>중간보고</label>
  631. <value>2</value>
  632. </item>
  633. <item>
  634. <label>최종보고</label>
  635. <value>4</value>
  636. </item>
  637. <item>
  638. <label>수정보고</label>
  639. <value>5</value>
  640. </item>
  641. </choices>
  642. </select1>
  643. <img id="img2" visibility="hidden" style="left:795px; top:210px; width:140px; height:120px; background-color:#ff6600; background-stretch:stretch; "/>
  644. <button id="bt" class="icon_search" appearance="button" style="left:541px; top:20px; width:16px; height:16px; ">
  645. <script type="javascript" ev:event="DOMActivate">
  646. <![CDATA[
  647. //결과 파일명 가져오기
  648. fGetFileName();
  649. ]]>
  650. </script>
  651. <caption/>
  652. </button>
  653. <img id="img1" ref="/root/main/view/imgrslt" visibility="hidden" style="left:620px; top:210px; width:155px; height:130px; background-color:#800000; background-stretch:stretch; "/>
  654. </group>
  655. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">위탁검사결과관리</caption>
  656. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  657. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  658. <caption>초기화</caption>
  659. <script type="javascript" ev:event="DOMActivate">
  660. <![CDATA[
  661. fSetReset();
  662. ]]>
  663. </script>
  664. </button>
  665. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  666. <button id="button3" class="btn4_letter4" style="left:961px; top:3px; width:80px; height:22px; ">
  667. <caption>결과전송</caption>
  668. <script type="javascript" ev:event="DOMActivate">
  669. <![CDATA[
  670. fExeOuterRslt();
  671. ]]>
  672. </script>
  673. </button>
  674. <button id="button4" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  675. <caption>전송확인</caption>
  676. <script type="javascript" ev:event="DOMActivate">
  677. <![CDATA[
  678. fGetOuterRsltConfirm();
  679. ]]>
  680. </script>
  681. </button>
  682. </group>
  683. </xhtml:body>
  684. </xhtml:html>