123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPJ02400_전체검체조회
- * 설 명 : 전체검체조회
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.0.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <spcinfo>
- <spclist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spclist>
- </spcinfo>
- <spcexmp1>
- <spcexmplist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spcexmplist>
- </spcexmp1>
- <spcexmp2>
- <spcexmplist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spcexmplist>
- </spcexmp2>
- <spcexmp3>
- <spcexmplist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spcexmplist>
- </spcexmp3>
- <spcexmp4>
- <spcexmplist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spcexmplist>
- </spcexmp4>
- <spcexmp5>
- <spcexmplist>
- <instcd/>
- <testcd/>
- <spccd/>
- <spcnm/>
- </spcexmplist>
- </spcexmp5>
- </main>
- <send/>
- <init>
- <testcd/>
- </init>
- <hidden>
- </hidden>
- <temp>
- <no/>
- <rowno/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPJ02401" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/spcinfo/spclist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 전체검체조회
- * @ver : 2007.10.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 Function
- */
- function fExeInitialize() {
-
- var bState = false;
- var iMod = -1;
- var iSeqNo = 1;
- var iRowNo = 1;
- var sNode = "/root/main/spcexmp";
-
-
- //model.makeValue("/root/init/testcd", "PSU00001");
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/testcd", model.getValue("/root/init/testcd"));
- submit("TRLPJ02401");
-
-
- //-------------
- bState = false;
- model.removeNodeset("/root/main/spcexmp/spcexmplist1");
- model.removeNodeset("/root/main/spcexmp/spcexmplist2");
- model.removeNodeset("/root/main/spcexmp/spcexmplist3");
- model.removeNodeset("/root/main/spcexmp/spcexmplist4");
- model.removeNodeset("/root/main/spcexmp/spcexmplist5");
-
- //-----------------------------------
- // 29개씩 검체를 그리드별로 분리한다.
- for (var iNo=1; iNo <= getNodesetCount("/root/main/spcinfo/spclist"); iNo++) {
-
- //--------------
- iMod = iNo % 29;
-
- //--------------------------------------------------
- model.makeNode(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]");
- model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/instcd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/instcd"));
- model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/testcd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/testcd"));
- model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/spccd", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/spccd"));
- model.makeValue(sNode+iSeqNo+"/spcexmplist["+Number(iRowNo)+"]/spcnm", model.getValue("/root/main/spcinfo/spclist["+iNo+"]/spcnm"));
-
- //----------------------
- if (Number(iMod) == 0) {
- iSeqNo++;
- iRowNo = 0;
- }
-
- //-------
- iRowNo++;
- }
-
- //---------------------
- grd_spclist1.refresh();
- grd_spclist2.refresh();
- grd_spclist3.refresh();
- grd_spclist4.refresh();
- grd_spclist5.refresh();
-
- //------------------------------------
- model.makeValue("/root/temp/no", "0"); // 그리드 번호
- model.makeValue("/root/temp/rowno", "0"); // 그리드 Row 번호
- }
-
- /* @group : 전체검체조회
- * @ver : 2007.10.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 Function
- */
- function fExeClose() {
- model.close();
- }
-
- function fExeGridSpcChoi(pNo, pRowNo) {
-
- var prest_grid = event.currentTarget;
- var grid_control = document.controls(prest_grid);
-
- //---------------------------------------------------------------------------------------
- if(pRowNo > 0 && grid_control.isCell(event.target) && pRowNo >= grid_control.fixedRows) {
- fExeSpcChoi(pNo, pRowNo);
- }
- }
-
- /* @group : 전체검체조회
- * @ver : 2007.10.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 Function
- */
- function fExeSpcChoi(pNo, pRowNo) {
-
- var sNode = "/root/main/spcexmp"+pNo+"/spcexmplist";
-
- //----------------
- if (pRowNo <= 0) {
- messageBox("검체를 선택하여 주십시오! 검체는 ", "I003");
- return false;
- }
-
- //---------------------------------------------------------------------------------------------
- opener.javascript.setParameter("SPLPJ02400_spccd", model.getValue(sNode+"["+pRowNo+"]/spccd"));
- opener.javascript.setParameter("SPLPJ02400_spcnm", model.getValue(sNode+"["+pRowNo+"]/spcnm"));
- fExeClose();
- }
-
-
- //--------------------------
- function fExeGridChoi(pNo) {
-
- var iRowNo1 = grd_spclist1.row;
- var iRowNo2 = grd_spclist2.row;
- var iRowNo3 = grd_spclist3.row;
- var iRowNo4 = grd_spclist4.row;
- var iRowNo5 = grd_spclist5.row;
-
- switch (pNo) {
- case 1 :
- grd_spclist2.select(iRowNo2,1) = false;
- grd_spclist3.select(iRowNo3,1) = false;
- grd_spclist4.select(iRowNo4,1) = false;
- grd_spclist5.select(iRowNo5,1) = false;
- break;
-
- case 2 :
- grd_spclist1.select(iRowNo1,1) = false;
- grd_spclist3.select(iRowNo3,1) = false;
- grd_spclist4.select(iRowNo4,1) = false;
- grd_spclist5.select(iRowNo5,1) = false;
- break;
-
- case 3 :
- grd_spclist1.select(iRowNo1,1) = false;
- grd_spclist2.select(iRowNo2,1) = false;
- grd_spclist4.select(iRowNo4,1) = false;
- grd_spclist5.select(iRowNo5,1) = false;
- break;
-
- case 4 :
- grd_spclist1.select(iRowNo1,1) = false;
- grd_spclist2.select(iRowNo2,1) = false;
- grd_spclist3.select(iRowNo3,1) = false;
- grd_spclist5.select(iRowNo5,1) = false;
- break;
-
- case 5 :
- grd_spclist1.select(iRowNo1,1) = false;
- grd_spclist2.select(iRowNo2,1) = false;
- grd_spclist3.select(iRowNo3,1) = false;
- grd_spclist4.select(iRowNo4,1) = false;
- break;
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1028" pageheight="767" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_btn" style="left:0px; top:722px; width:1010px; height:27px; ">
- <button id="btn_cls" navindex="12" class="btn4_letter2" style="left:954; top:3px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClose();
- ]]>
- </script>
- </button>
- <button id="btn_save" navindex="11" class="btn4_letter2" visibility="hidden" style="left:895; top:3px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSpcChoi();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" style="left:0px; top:0px; width:1010px; height:722; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:111px; height:14px; ">검체예문</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:190px; y2:25px; "/>
- <caption id="caption1" class="tit_2" style="left:205px; top:10px; width:111px; height:13px; ">검체예문</caption>
- <line id="line2" class="line_1" style="x1:200px; y1:25px; x2:390px; y2:25px; "/>
- <caption id="caption3" class="tit_2" style="left:405px; top:10px; width:111px; height:13px; ">검체예문</caption>
- <line id="line3" class="line_1" style="x1:400px; y1:25px; x2:590px; y2:25px; "/>
- <caption id="caption4" class="tit_2" style="left:605px; top:10px; width:111px; height:13px; ">검체예문</caption>
- <line id="line4" class="line_1" style="x1:600px; y1:25px; x2:790px; y2:25px; "/>
- <caption id="caption5" class="tit_2" style="left:805px; top:10px; width:111px; height:13px; ">검체예문</caption>
- <line id="line5" class="line_1" style="x1:800px; y1:25px; x2:1010px; y2:25px; "/>
- <datagrid id="grd_spclist1" nodeset="/root/main/spcexmp1/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:30px; width:190; height:692; ">
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridSpcChoi(1, grd_spclist1.row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fExeGridChoi(1);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spclist2" nodeset="/root/main/spcexmp2/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:200px; top:30px; width:190px; height:692; ">
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridSpcChoi(2, grd_spclist2.row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fExeGridChoi(2);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spclist3" nodeset="/root/main/spcexmp3/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:400px; top:30px; width:190px; height:692; ">
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridSpcChoi(3, grd_spclist3.row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fExeGridChoi(3);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spclist4" nodeset="/root/main/spcexmp4/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:600px; top:30px; width:190px; height:692; ">
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridSpcChoi(4, grd_spclist4.row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fExeGridChoi(4);
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_spclist5" nodeset="/root/main/spcexmp5/spcexmplist" caption="instcd^testcd^spccd^검체명 예문" colwidth="0, 0, 0, 188" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:800px; top:30px; width:210px; height:692; ">
- <col ref="instcd"/>
- <col ref="testcd"/>
- <col ref="spccd"/>
- <col ref="spcnm"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridSpcChoi(5, grd_spclist5.row);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fExeGridChoi(5);
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|