123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPC01100_분자Risk등록.xrw
- * 설 명 : 분자Risk등록 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.05.24
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <moledngrcnts>
- <moledngrlist>
- <instcd/>
- <testcd/>
- <usefromdd/>
- <usetodd/>
- <riskflagcd/>
- <itemseqno/>
- <item01/>
- <item02/>
- <item03/>
- <item04/>
- <item05/>
- <item06/>
- <item07/>
- <item08/>
- <item09/>
- <item10/>
- <item11/>
- <item12/>
- <item13/>
- <item14/>
- <item15/>
- <item16/>
- <item17/>
- <item18/>
- <item19/>
- <item20/>
- <orgusetodd/>
- </moledngrlist>
- </moledngrcnts>
- </main>
- <send>
- </send>
- <init>
- <testcnts>
- <testlist>
- <testcd/>
- <testengnm/>
- </testlist>
- </testcnts>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <workflagcd/>
- </init>
- <hidden>
- <instcd/>
- <refval/>
- </hidden>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/moledngrcnts/moledngrlist/testcd" readonly="../testcd/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/moledngrcnts/moledngrlist/riskflagcd" readonly="../riskflagcd/@readonly = 'true'"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/testcnts/testlist"/>
- <submission id="TRLPC01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/moledngrcnts/moledngrlist"/>
- <submission id="TXLPC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 분자Risk등록 화면
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
- model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
- model.setValue("/root/hidden/instcd", getUserInfo("dutplceinstcd")); //instcd
- //----------------
- // 시스템일시 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102", false);
-
- //-------------------------------------------
- model.makeValue("/root/hidden/refval", ""); // 조회항목
- model.makeValue("/root/init/workflagcd", "1007"); // 분자(1007), 전자(1008)
- //---------------
- fGetTestCdList();
-
- //--------------
- model.refresh();
- }
-
- /* @group : 분자Risk등록 화면
- * @ver : 2007.01.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사목록 조회 함수
- */
- function fGetTestCdList() {
-
- model.makeValue("/root/hidden/refval", "");
- model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
- model.makeValue("/root/send/workflagcd", model.getValue("/root/init/workflagcd"));
- submit("TRLPC01101");
-
- //---------
- // 노드생성
- var iMaxRow = Number(getNodesetCount("/root/init/testcnts/testlist"))+1;
- model.makeValue("/root/init/testcnts/testlist[" + iMaxRow + "]/testcd", "");
- model.makeValue("/root/init/testcnts/testlist[" + iMaxRow + "]/testengnm", "전 체");
-
- //-------------------
- cmb_testnm.refresh();
- }
-
- /* @group : 분자Risk등록 화면
- * @ver : 2007.01.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : High-Risk / Low-Risk 조회 함수
- */
- function fGetRiskList(){
-
- model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", model.getValue("/root/hidden/instcd"));
- model.makeValue("/root/send/workflagcd", model.getValue("/root/init/workflagcd"));
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval"));
- submit("TRLPC01102");
-
- model.refresh();
- }
-
- /* @group : 분자Risk등록 화면
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회내역 행추가 함수
- */
- function fGetAddRow() {
- var curRow = 0;
- var strNode = "/root/main/moledngrcnts/moledngrlist";
-
- //-------------------------
- grd_moledngrlist.addItem();
-
- //--------------
- // 추가된 Row번호
- curRow = grd_moledngrlist.row;
-
- //--------------------------------------------------------------------------------------------
- model.setValue(strNode + "[" + curRow + "]/instcd", model.getValue("/root/hidden/instcd")); // 기관코드
- model.setValue(strNode + "[" + curRow + "]/usefromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 시작일자
- model.setValue(strNode + "[" + curRow + "]/usetodd", "99991231"); // 종료일자
-
- //------------------------------------------
- // 검사명이 선택된 경우 해당 검사코드를 설정
- if (model.getValue("/root/hidden/refval") != "") {
- model.setValue(strNode+"["+curRow+"]/testcd", model.getValue("/root/hidden/refval")); // 검사코드
- }
- }
-
- /* @group : 분자Risk등록 화면
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회내역 행삭제 함수
- */
- function fGetDelRow(){
- var curRow = grd_moledngrlist.row;
- var vStatus = grd_moledngrlist.rowStatus(curRow);
- var strNode = "/root/main/moledngrcnts/moledngrlist";
-
- if(vStatus == "1" || vStatus == "3") { // New or New&Insert?
- grd_moledngrlist.deleteItem(curRow);
- for(var i = curRow; i < grd_moledngrlist.rows; i++){
- grd_moledngrlist.row = i; //Current Row Set
- grd_moledngrlist.col = 5; //Current Col Set
- fGetSeqNo();
- }
- }
- else {
- grd_moledngrlist.rowstatus(curRow) = 4; // Delete
- model.setValue(strNode + "[" + curRow + "]/usetodd",
- model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); //종료일자
- }
- }
- /* @group : 분자Risk등록 화면
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 항목일련번호 부여 함수
- */
- function fGetSeqNo(){
- var curRow = grd_moledngrlist.row;
- var curCol = grd_moledngrlist.col;
- var strNode = "/root/main/moledngrcnts/moledngrlist";
- var vSeqNo = 0;
- var vSeqNoTemp = 0;
- var prest_row;
-
- if(curCol != "2" && curCol != "5") return; // H/L?
- var vTestCd = model.getValue(strNode + "[" + curRow + "]/testcd");
- var vRiskFlagCd = model.getValue(strNode + "[" + curRow + "]/riskflagcd");
- if(vTestCd == "" || vRiskFlagCd == "") return;
-
- if(curRow > 1) {
- for(var i = 1; i < grd_moledngrlist.rows; i++){
- if(i != curRow) {
- var vTestCdT = model.getValue(strNode + "[" + i + "]/testcd");
- var vRiskFlagCdT = model.getValue(strNode + "[" + i + "]/riskflagcd");
-
- if(vTestCd == vTestCdT && vRiskFlagCd == vRiskFlagCdT) {
- vSeqNoTemp = parseInt(model.getValue(strNode + "[" + i + "]/itemseqno"));
- if(vSeqNoTemp > vSeqNo) vSeqNo = vSeqNoTemp;
- }
- }
- }
- }
- model.setValue(strNode + "[" + curRow + "]/itemseqno", vSeqNo+1);
- }
- /* @group : 분자Risk등록 화면
- * @ver : 2007.05.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장함수
- */
- function fSetUpdtData(){
- var strNode = "/root/main/moledngrcnts/moledngrlist";
- var vTestCd;
- var vRiskFlagCd;
-
- for(var i = 1; i < grd_moledngrlist.rows; i++){
- var vTestCd = model.getValue(strNode + "[" + i + "]/testcd");
- var vRiskFlagCd = model.getValue(strNode + "[" + i + "]/riskflagcd");
- if( vTestCd == "" || vRiskFlagCd == "") {
- messageBox("검사명 또는 RISK구분을", "C002");
- return;
- }
- }
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/moledngrlist", grd_moledngrlist.getUpdateData());
-
- //-----------
- setAlertOn();
- if (submit("TXLPC01101")) {
- fGetRiskList();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,784;2,757;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="grp_biz" style="left:0px; top:0px; width:1195px; height:744; ">
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_grdadd" class="btn2_letter3" navindex="6" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDelRow();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:260px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">분자RISK/전자현미경 목록</caption>
- <button id="button2" class="btn2_letter3" navindex="5" style="left:1082px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAddRow();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRiskList();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption23" class="search_name" style="left:15px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">작업구분 :</caption>
- <select1 id="cmb_testnm" ref="/root/hidden/refval" class="combo_search" navindex="2" appearance="minimal" style="left:833px; top:8; width:262px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/testcnts/testlist">
- <label ref="testengnm"/>
- <value ref="testcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_workflagcd" ref="/root/init/workflagcd" navindex="1" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:105px; top:8px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>분자</label>
- <value>1007</value>
- </item>
- <item>
- <label>전자</label>
- <value>1008</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetTestCdList();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:755px; top:9px; width:75px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사명 :</caption>
- </group>
- <datagrid id="grd_moledngrlist" nodeset="/root/main/moledngrcnts/moledngrlist" caption="기관코드^검사명^시작일자^종료일자^H/L^SEQ^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^caption1" colsep="^" colwidth="0, 124, 80, 80, 50, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 0" dataheight="23" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" navindex="4" style="left:0px; top:75px; width:1195px; height:667px; ">
- <col ref="instcd"/>
- <col ref="testcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/testcnts/testlist[testcd!='']">
- <label ref="testengnm"/>
- <value ref="testcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="usefromdd" type="output" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col ref="usetodd" type="input" format="yyyy-mm-dd" mask="exclude" showmask="true">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="riskflagcd" type="combo" style="font-size:12pt; font-weight:bold; color:#000000; text-align:center; vertical-align:middle; ">
- <choices>
- <item>
- <label>H</label>
- <value>0</value>
- </item>
- <item>
- <label>L</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="itemseqno" type="output" style="font-size:12pt; font-weight:bold; color:#000000; text-align:center; vertical-align:middle; "/>
- <col ref="item01" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item02" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item03" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item04" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item05" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item06" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item07" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item08" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item09" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item10" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item11" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item12" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item13" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item14" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item15" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item16" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item17" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item18" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item19" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="item20" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
- <col ref="orgusetodd"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSeqNo();
- ]]>
- </script>
- </datagrid>
- </group>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">분자Risk등록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn4_letter2" navindex="7" style="left:1139px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUpdtData();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|