123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLLR90100_다중결과.xrw
- * 설 명 : 다중결과
- * 설 계 자 : (주)에이씨케이 - 조철형
- * 작 성 자 : (주)에이씨케이 - 조철형
- * 작 성 일 : 2007.06.12
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>다중결과</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <TestResultList>
- <tclsscrnnm/>
- <result/>
- <selchk01 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result01/>
- <selchk02 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result02/>
- <selchk03 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result03/>
- <selchk04 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result04/>
- <selchk05 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result05/>
- <selchk06 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result06/>
- <selchk07 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result07/>
- <selchk08 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result08/>
- <selchk09 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result09/>
- <selchk10 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result10/>
- <selchk11 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result11/>
- <selchk12 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result12/>
- <selchk13 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result13/>
- <selchk14 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result14/>
- <selchk15 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result15/>
- <selchk16 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result16/>
- <selchk17 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result17/>
- <selchk18 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result18/>
- <selchk19 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result19/>
- <selchk20 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result20/>
- <selchk21 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result21/>
- <selchk22 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result22/>
- <selchk23 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result23/>
- <selchk24 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result24/>
- <selchk25 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result25/>
- <selchk26 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result26/>
- <selchk27 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result27/>
- <selchk28 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result28/>
- <selchk29 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result29/>
- <selchk30 readonly="" testcd="" rsltseq="" inptrslt="" rsltstat="" tooltip=""/>
- <result30/>
- </TestResultList>
- </main>
- <send>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <DJGGParm>
- <bcno/>
- <testlrgkind/>
- <microtestkind/>
- <bufDJGG/>
- </DJGGParm>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
- fInit();
- ]]>
- </script>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <submission id="TRLLR90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestResultList"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
-
- model.copyNode("/root/send/data1" , "/root/hidden/DJGGParm");
-
- submit("TRLLR90101" );
-
- var vMaxrstno = model.getValue("/root/main/TestResultList/maxrstno");
-
- if (parseInt(vMaxrstno) > 30) {
- model.setValue("/root/main/TestResultList/maxrstno", "30");
- vMaxrstno = 30;
- }
-
-
- for (var r = 1; r <= getNodesetCount("/root/main/TestResultList"); r++) {
-
- for (var n = 1; n <= eval(vMaxrstno); n++) {
- var vRstno = n.toString().getLeftPad(2 , 0);
- var c = (n * 2) + 2;
-
-
- var vTooltipText = model.getValue("/root/main/TestResultList["+r+"]/selchk" + vRstno + "/@tooltip");
- if (vTooltipText.getTrim() != "") {
-
- grd_resultlist.tooltipText(r,c) = vTooltipText.toString().replace("/", "\n");
- }
-
- // 최종보고, 중간(예비)보고는 FontColor 변경
- if (model.getValue("/root/main/TestResultList["+r+"]/selchk" + vRstno + "/@rsltstat") == "4") {
- grd_resultlist.cellstyle("background-color", r, c,r,c) = "#f3e1bf";
- grd_resultlist.cellstyle("color", r, c,r,c) = "#ff3300";
-
- } else if (model.getValue("/root/main/TestResultList["+r+"]/selchk" + vRstno + "/@rsltstat") == "2") {
- //grd_resultlist.cellstyle("background-color" , r, c,r,c) = "#f3e1bf";
- grd_resultlist.cellstyle("color", r, c,r,c) = "#184d8b";
-
- } else if (model.getValue("/root/main/TestResultList["+r+"]/selchk" + vRstno + "/@rsltstat") == "1") {
- //grd_resultlist.cellstyle("background-color" , r, c,r,c) = "#f3e1bf";
- grd_resultlist.cellstyle("color", r, c,r,c) = "#423a46";
-
- }
-
- /*
- // 없는항목 Gray로 변경
- if (model.getValue("/root/main/TestResultList["+r+"]/selchk" + vRstno + "/@readonly") == "true") {
- var color = fCOMLIS_getBackColor("GRAY");
- TFGridRowColor("grdGyeolGwaList", r, eval(c - 1), r, eval(c - 1), 1, color[0], color[1], color[2]);
- TFGridRowColor("grdGyeolGwaList", r, c, r, c, 1, color[0], color[1], color[2]);
- }
- */
- }
- }
- model.refresh();
- fColHidden(vMaxrstno);
-
- }
-
- /**
- * Column Hidden
- *
- */
- function fColHidden(pMaxrst) {
-
- for (var i = 1; i <= 30; i++) {
- var vCol = (eval(i) * 2) + 1;
- var vState = (i > eval(pMaxrst)) ? true : false;
-
- grd_resultlist.ColHidden(vCol) = vState;
- grd_resultlist.ColHidden(eval(vCol)+1) = vState;
- }
- }
-
-
- // 선택버튼 클릭
- function fSelect_Click() {
-
-
- var maxcol = eval(model.getValue("/root/main/TestResultList/maxrstno") * 2) + 2;
- var vSendData = "";
-
- for (c = 3; c <= maxcol; c+=2) {
- var vCurrRow = 1;
- for (r = 1; r <= grd_resultlist.rows; r++) {
- // 체크된 항목 검색
- findrow = grd_resultlist.FindRow("true", vCurrRow, c, false, false);
-
- if(findrow < 0) break;
-
- var vSelRstno = parseInt(eval(c) / 2);
- var vSelRstno2b = vSelRstno.toString().getLeftPad(2 , 0);
-
- var testcd = model.getValue("/root/main/TestResultList["+findrow+"]/selchk"+vSelRstno2b+"/@testcd");
- var inptrslt = model.getValue("/root/main/TestResultList["+findrow+"]/selchk"+vSelRstno2b+"/@inptrslt");
-
- vSendData = vSendData + testcd + "▦" + inptrslt + "▩";
-
- vCurrRow = findrow + 1;
- }
- }
- window.opener.model.setValue("/root/hidden/DJGGParm/bufDJGG", vSendData);
- window.close(); // 폼 종료
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="670" pageheight="470" guideline="1,1194;" style="border-color:#000000; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:650px; height:440px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:645px; y2:26px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:123px; height:14px; ">다중결과</caption>
- <datagrid id="grd_resultlist" nodeset="/root/main/TestResultList" backcoloralternate="transparent" caption="검사항목명^결과^1차^1차^2차^2차^3차^3차^4차^4차^5차^5차^6차^6차^7차^7차^8차^8차^9차^9차^10차^10차^11차^11차^12차^12차^13차^13차^14차^14차^15차^15차^16차^16차^17차^17차^18차^18차^19차^19차^20차^20차^21차^21차^22차^22차^23차^23차^24차^24차^25차^25차^26차^26차^27차^27차^28차^28차^29차^29차^30차^30차" colsep="^" colwidth="163, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50, 17, 50" dataheight="23" defaultrows="1" ellipsis="true" fixedcols="0" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:31px; width:645px; height:404px; ">
- <col ref="tclsscrnnm"/>
- <col ref="result"/>
- <col checkvalue="true,false" ref="selchk01" type="checkbox"/>
- <col ref="result01"/>
- <col checkvalue="true,false" ref="selchk02" type="checkbox"/>
- <col ref="result02"/>
- <col checkvalue="true,false" ref="selchk03" type="checkbox"/>
- <col ref="result03"/>
- <col checkvalue="true,false" ref="selchk04" type="checkbox"/>
- <col ref="result04"/>
- <col checkvalue="true,false" ref="selchk05" type="checkbox"/>
- <col ref="result05"/>
- <col checkvalue="true,false" ref="selchk06" type="checkbox"/>
- <col ref="result06"/>
- <col checkvalue="true,false" ref="selchk07" type="checkbox"/>
- <col ref="result07"/>
- <col checkvalue="true,false" ref="selchk08" type="checkbox"/>
- <col ref="result08"/>
- <col checkvalue="true,false" ref="selchk09" type="checkbox"/>
- <col ref="result09"/>
- <col checkvalue="true,false" ref="selchk10" type="checkbox"/>
- <col ref="result10"/>
- <col checkvalue="true,false" ref="selchk11" type="checkbox"/>
- <col ref="result11"/>
- <col checkvalue="true,false" ref="selchk12" type="checkbox"/>
- <col ref="result12"/>
- <col checkvalue="true,false" ref="selchk13" type="checkbox"/>
- <col ref="result13"/>
- <col checkvalue="true,false" ref="selchk14" type="checkbox"/>
- <col ref="result14"/>
- <col checkvalue="true,false" ref="selchk15" type="checkbox"/>
- <col ref="result15"/>
- <col checkvalue="true,false" ref="selchk16" type="checkbox"/>
- <col ref="result16"/>
- <col checkvalue="true,false" ref="selchk17" type="checkbox"/>
- <col ref="result17"/>
- <col checkvalue="true,false" ref="selchk18" type="checkbox"/>
- <col ref="result18"/>
- <col checkvalue="true,false" ref="selchk19" type="checkbox"/>
- <col ref="result19"/>
- <col checkvalue="true,false" ref="selchk20" type="checkbox"/>
- <col ref="result20"/>
- <col checkvalue="true,false" ref="selchk21" type="checkbox"/>
- <col ref="result21"/>
- <col checkvalue="true,false" ref="selchk22" type="checkbox"/>
- <col ref="result22"/>
- <col checkvalue="true,false" ref="selchk23" type="checkbox"/>
- <col ref="result23"/>
- <col checkvalue="true,false" ref="selchk24" type="checkbox"/>
- <col ref="result24"/>
- <col checkvalue="true,false" ref="selchk25" type="checkbox"/>
- <col ref="result25"/>
- <col checkvalue="true,false" ref="selchk26" type="checkbox"/>
- <col ref="result26"/>
- <col checkvalue="true,false" ref="selchk27" type="checkbox"/>
- <col ref="result27"/>
- <col checkvalue="true,false" ref="selchk28" type="checkbox"/>
- <col ref="result28"/>
- <col checkvalue="true,false" ref="selchk29" type="checkbox"/>
- <col ref="result29"/>
- <col checkvalue="true,false" ref="selchk30" type="checkbox"/>
- <col ref="result30"/>
- </datagrid>
- </group>
- <button id="button3" class="btn4_letter2" visibility="visible" style="left:531px; top:445px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelect_Click();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:590px; top:445px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|