123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01800_중복검사코드관리.xrw
- * 설 명 : 검사결과코드관리
- * 설 계 자 : (주)에이씨케이 - 윤재한
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2007. 07. 18
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <gettestcdlist>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <dutlcd/>
- </gettestcdlist>
- <getdupltestlist>
- <dupltclscd/>
- <tclsnm/>
- <tclskind/>
- <dupltestfromdd/>
- <dupltesttodd/>
- </getdupltestlist>
- <gettestlist>
- <choi/>
- <tclscd/>
- <tclsnm/>
- <tclskind/>
- <lvl/>
- </gettestlist>
- </main>
- <send>
- <codeflag/>
- <testlrgcd/>
- <testmdlcd/>
- <tclscd/>
- <testcdlistdata/>
- <dupltestlistdata/>
- <userdeptflagcd/>
- <refflag>1</refflag>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <testlrgcd/>
- <testmdl>
- <cd/>
- <nm/>
- </testmdl>
- <tlrgcd/>
- <tmdl>
- <cd/>
- <nm/>
- </tmdl>
- </ref>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- <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/dateHelper.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0111"/>
- <submission id="TRLLF01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestlist"/>
- <submission id="TRLLF01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/gettestcdlist"/>
- <submission id="TRLLF01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getdupltestlist"/>
- <submission id="TXLLF01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
- //초기화
- function fSetInit() {
- model.setValue("/root/hidden/ref/testlrgcd", "00");
- model.setValue("/root/hidden/ref/testmdl/cd", "00");
- model.setValue("/root/hidden/ref/tlrgcd", "00");
- model.setValue("/root/hidden/ref/tmdl/cd", "00");
-
- // 초기정보 조회
- model.setValue("/root/send/codeflag", "0104|0102|0000|"); //0104 대분류 | 0102 중부류
- submit("TRLZZ00101");
-
- //검사목록 조회
- fTestList();
-
- model.removeNodeset("/root/main/gettestcdlist");
- grd_testcdlist.refresh();
-
- model.removeNodeset("/root/main/getdupltestlist");
- grd_dupltestlist.refresh();
-
- model.refresh();
- }
- //검사분류 초기정보 조회
- function fSetTestLrgCd() {
- var etc = model.getvalue("/root/hidden/ref/testlrgcd");
-
- if(etc == "00"){
- cmb_testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setValue("/root/hidden/ref/testmdl/cd" , "00");
- }
- else{
- model.setValue("/root/hidden/ref/testmdl/cd" , "00");
- cmb_testmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
- }
- fTestList();
-
- model.refresh();
- }
-
- function fSetTLrgCd() {
- var etc = model.getvalue("/root/hidden/ref/tlrgcd");
-
- if(etc == "00"){
- cmd_tmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
- model.setValue("/root/hidden/ref/tmdl/cd" , "00");
- }
- else{
- model.setValue("/root/hidden/ref/tmdl/cd" , "00");
- cmd_tmdlcd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ etc +"']";
- }
- model.refresh();
-
- fGetTestCdList();
- }
-
- //초기시 검사목록 조회
- function fTestList() {
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/testmdl/cd"));
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF01801");
-
- setTree(grd_testlist, 5, 2);
- }
-
- //검사코드 목록 조회
- function fGetTestCdList() {
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/tlrgcd"));
- model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/ref/tmdl/cd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF01802");
-
- //검사목록 조회
- model.setValue("/root/hidden/ref/testlrgcd", model.getValue("/root/hidden/ref/tlrgcd"));
- model.setValue("/root/hidden/ref/testmdl/cd", model.getValue("/root/hidden/ref/tmdl/cd"));
- fTestList();
-
- model.refresh();
- }
-
- //중복검사목록 조회
- function fGetDuplTestList() {
- model.setValue("/root/send/tclscd", model.getValue("/root/main/gettestcdlist["+ grd_testcdlist.row +"]/tclscd"));
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
-
- submit("TRLLF01803");
-
- model.refresh();
- }
-
- //중복검사목록으로 올리기
- function fSetDuplTestList() {
-
- //선택된 항목만 걍 넘기게 수정 20100701 중복검사 이력관리 기능 구현중 승현
- if(model.getValue("/root/send/refflag") == "1"){
- messageBox("추가나 변경작업을 하실경우엔 전체자료로 조회 후 작업하세요", "I");
- return;
- }
-
- var sTclscd = model.getValue("/root/main/gettestcdlist["+ grd_testcdlist.row +"]/tclscd"); //검사코드 목록의 검사코드(메인)
- var sUpTclscd;
- var sDate = getCurrentDate();
-
- for(i=1; i< grd_testlist.rows; i++){
-
- //선택된 항목 중
- if(model.getValue("/root/main/gettestlist["+ i +"]/choi") == "Y") {
- sUpTclscd = model.getValue("/root/main/gettestlist["+ i +"]/tclscd");
-
- //이미 등록된 검사 코드 및 종료일자가 현재일보다 크거나 같은 항목은 등록 x
- if(model.getXPathValue('count(/root/main/getdupltestlist[dupltclscd = "' + sUpTclscd + '" and dupltesttodd >= "' + sDate + '"])') > 0){
- messageBox(model.getValue("/root/main/gettestlist["+ i +"]/tclsnm") + " 항목이 이미 존재 합니다", "E");
- }else{
-
- grd_dupltestlist.addRow(false);
-
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/dupltclscd", sUpTclscd);
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/tclsnm", model.getValue("/root/main/gettestlist["+ i +"]/tclsnm"));
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/tclskind", model.getValue("/root/main/gettestlist["+ i +"]/tclskind"));
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/tclscd", sTclscd);
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/dupltestfromdd", sDate);
- model.makeValue("/root/main/getdupltestlist["+ (grd_dupltestlist.rows -1) +"]/dupltesttodd", "99991231");
- }
- }
- }
-
-
- /*
- var row = grd_dupltestlist.rows;
- var bfcheck = 0;
- var drow = model.getValue("/root/main/gettestcdlist["+ grd_testcdlist.row +"]/tclscd");
-
- for(i=1; i< grd_testlist.rows; i++){
-
- var fcheck = grd_testlist.findRow("Y", i, 1, false, true);
-
- if(fcheck == -1 ) {
- return;
- }
- i = fcheck;
-
- if(model.getValue("/root/main/gettestlist["+ fcheck +"]/lvl") == 2) {
-
- var tcd= model.getValue("/root/main/gettestlist["+ fcheck +"]/tclscd");
- var trow = grd_dupltestlist.findRow(tcd, 1, 1, false, false);
-
- if(trow > 0){
- messageBox("코드 선택이", "E006");
- } else {
- grd_testcdlist.rowStatus(grd_testcdlist.row) = 1;
- grd_dupltestlist.addRow(false);
- model.makeNode("/root/main/getdupltestlist["+row+"]");
- model.setValue("/root/main/getdupltestlist["+row+"]/dupltclscd", model.getValue("/root/main/gettestlist["+ fcheck +"]/tclscd"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclsnm", model.getValue("/root/main/gettestlist["+ fcheck +"]/tclsnm"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclskind", model.getValue("/root/main/gettestlist["+ fcheck +"]/tclskind"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclscd", drow);
-
- row++;
-
- model.refresh();
- }
- } else {
- for(j = fcheck; j <grd_testlist.rows; j++) {
- if(model.getValue("/root/main/gettestlist["+ (j + 1) +"]/lvl") == 1) {
- var tcd= model.getValue("/root/main/gettestlist["+ j +"]/tclscd");
- var trow = grd_dupltestlist.findRow(tcd, 1, 1, false, false);
- var drow = model.getValue("/root/main/gettestcdlist["+ grd_testcdlist.row +"]/tclscd");
-
- if(trow > 0 || drow == tcd){
- break;
- } else {
- grd_testcdlist.rowStatus(grd_testcdlist.row) = 1;
- grd_dupltestlist.addRow(false);
- model.makeNode("/root/main/getdupltestlist["+row+"]");
- model.setValue("/root/main/getdupltestlist["+row+"]/dupltclscd", model.getValue("/root/main/gettestlist["+ j +"]/tclscd"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclsnm", model.getValue("/root/main/gettestlist["+ j +"]/tclsnm"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclskind", model.getValue("/root/main/gettestlist["+ j +"]/tclskind"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclscd", drow);
-
- row++;
-
- return;
- }
- } else {
-
- var tcd= model.getValue("/root/main/gettestlist["+ j +"]/tclscd");
- var trow = grd_dupltestlist.findRow(tcd, 1, 1, false, false);
-
- if(trow < 0 && drow != tcd){
- grd_testcdlist.rowStatus(grd_testcdlist.row) = 1;
- grd_dupltestlist.addRow(false);
- model.makeNode("/root/main/getdupltestlist["+row+"]");
- model.setValue("/root/main/getdupltestlist["+row+"]/dupltclscd", model.getValue("/root/main/gettestlist["+ j +"]/tclscd"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclsnm", model.getValue("/root/main/gettestlist["+ j +"]/tclsnm"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclskind", model.getValue("/root/main/gettestlist["+ j +"]/tclskind"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclscd", drow);
-
- row++;
- }
- }
- model.refresh();
- }
- }
- }
- */
- }
-
- //더블클릭시 올리기
- function fUpTestCd() {
- var row = grd_dupltestlist.rows;
- var tcd= model.getValue("/root/main/gettestlist["+ grd_testlist.row +"]/tclscd"); //검사목록
- var trow = grd_dupltestlist.findRow(tcd, 1, 1, false, false);
- var drow = model.getValue("/root/main/gettestcdlist["+ grd_testcdlist.row +"]/tclscd"); //검사코드 목록
-
-
- var sDate = getCurrentDate();
- if(model.getXPathValue('count(/root/main/getdupltestlist[dupltclscd = "' + tcd + '" and dupltesttodd >= "' + sDate + '"])') > 0){
- messageBox(model.getValue("/root/main/gettestlist["+ grd_testlist.row +"]/tclsnm") + " 항목이 이미 존재 합니다", "E");
- }
- /*if(trow > 0){
- messageBox("코드 선택이", "E006");
- }*/
- else if(drow == tcd) {
- messageBox("검사명과 동일한 코드는 선택", "E001");
- }else {
- //grd_testcdlist.rowStatus(grd_testcdlist.row) = 1; //20100701 승현 막음
- grd_dupltestlist.addRow(false);
- model.makeNode("/root/main/getdupltestlist["+row+"]");
- model.setValue("/root/main/getdupltestlist["+row+"]/dupltclscd", model.getValue("/root/main/gettestlist["+ grd_testlist.row +"]/tclscd"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclsnm", model.getValue("/root/main/gettestlist["+ grd_testlist.row +"]/tclsnm"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclskind", model.getValue("/root/main/gettestlist["+ grd_testlist.row +"]/tclskind"));
- model.setValue("/root/main/getdupltestlist["+row+"]/tclscd", drow); //20100701 승현 추가
- model.makeValue("/root/main/getdupltestlist["+ row +"]/dupltestfromdd", getCurrentDate());
- model.makeValue("/root/main/getdupltestlist["+ row +"]/dupltesttodd", "99991231");
-
- model.refresh();
- }
- }
- //행삭제
- function fRowDel() {
- /*
- grd_dupltestlist.rowStatus(grd_dupltestlist.row) = 4;
- grd_testcdlist.rowStatus(grd_testcdlist.row) = 4;
- grd_dupltestlist.deleteItem(grd_dupltestlist.row);
- */
- if(grd_dupltestlist.rowStatus(grd_dupltestlist.row) == "1"){
- grd_dupltestlist.deleteRow(grd_dupltestlist.row);
- }else{
- grd_dupltestlist.rowStatus(grd_dupltestlist.row) = 4;
- }
- }
-
- //저장
- function fSaveDuplTestCd() {
- /*if(grd_dupltestlist.rows < 2) {
- alert("중복검사목록이 비었습니다.");
- return;
- }*/
-
- if(model.getValue("/root/send/refflag") == "1"){
- messageBox("추가나 변경작업을 하실경우엔 전체자료로 조회 후 작업하세요", "I");
- return;
- }
-
- var sTestcd, sFdd, sTdd, sCnt;
-
- for(i = 1; i <= grd_dupltestlist.rows; i++){
- //수정사항이 있는 행의 경우 검사, 시작, 종료일 비교
- if(grd_dupltestlist.rowStatus(i) != 0){
- sTestcd = model.getValue("/root/main/getdupltestlist[" + i + "]/dupltclscd");
- sFdd = model.getValue("/root/main/getdupltestlist[" + i + "]/dupltestfromdd");
- sTdd = model.getValue("/root/main/getdupltestlist[" + i + "]/dupltesttodd");
-
- sCnt = model.getXPathValue('count(/root/main/getdupltestlist[(dupltclscd = "' + sTestcd + '" and dupltestfromdd <= "' + sFdd + '" and dupltesttodd >= "' + sFdd + '") or (dupltclscd = "' + sTestcd + '" and dupltestfromdd <= "' + sTdd + '" and dupltesttodd >= "' + sTdd + '" ) or (dupltclscd = "' + sTestcd + '" and dupltestfromdd >= "' + sFdd + '" and dupltesttodd <= "' + sTdd + '" )])');
- //alert(sCnt);
- if(sCnt > 1){
- messageBox(sTestcd + " 항목의 시작, 종료일 구간이 중복됩니다.", "E");
- return;
- }
-
- //시작일 체크
- if(sFdd.length != 8 || sFdd == ""){
- messageBox(sTestcd + " 항목의 시작일 값이 유효하지 않습니다.", "E");
- return;
- }
- //종료일체크
- if(sTdd.length != 8 || sTdd == ""){
- messageBox(sTestcd + " 항목의 종료일 값이 유효하지 않습니다.", "E");
- return;
- }
- }
- }
-
- //model.setValue("/root/send/testcdlistdata", grd_testcdlist.getUpdateData());
- model.setValue("/root/send/dupltestlistdata", grd_dupltestlist.getUpdateData());
-
- submit("TXLLF01801");
-
- model.removeNodeset("/root/main/getdupltestlist");
- grd_dupltestlist.refresh();
-
- fGetTestCdList();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:565px; y2:70px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">검사코드 목록</caption>
- <caption id="caption3" class="tit_2" style="left:570px; top:435px; width:110px; height:13px; ">검사목록</caption>
- <line id="line2" class="line_1" style="x1:570px; y1:450px; x2:1190px; y2:450px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetTestCdList();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="cmb_tlrgcd" ref="/root/hidden/ref/tlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:108px; top:8px; width:198px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTLrgCd();
- ]]>
- </script>
- </select1>
- <select1 id="cmd_tmdlcd" ref="/root/hidden/ref/tmdl/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:309px; top:8px; width:198px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetTestCdList();
-
- ]]>
- </script>
- </select1>
- <caption id="capti" class="search_name" style="left:572px; top:9px; width:90px; height:17px; ">조회구분 :</caption>
- <select1 id="cmb_refgbn" ref="/root/send/refflag" class="combo_search" appearance="minimal" style="left:665px; top:8px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>사용가능자료</label>
- <value>1</value>
- </item>
- <item>
- <label>전체자료</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetDuplTestList();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:570px; top:55px; width:110px; height:13px; ">중복검사목록</caption>
- <line id="line4" class="line_1" style="x1:570px; y1:70px; x2:1190px; y2:70px; "/>
- <button id="btn_up" class="icon_top" style="left:860px; top:398px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDuplTestList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_testmdlcd" ref="/root/hidden/ref/testmdl/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:992px; top:429px; width:198px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0102">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fTestList();
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:698px; top:429px; width:90px; height:17px; ">검사분류 :</caption>
- <datagrid id="grd_dupltestlist" nodeset="/root/main/getdupltestlist" caption="검사코드^검사명^검사구분^시작일^종료일^tclscd" colsep="^" colwidth="82, 280, 76, 80, 80, 60" dataheight="23" explorerbar="sortshow" rowheader="update" rowheight="32" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:75px; width:620px; height:308px; ">
- <col ref="dupltclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <col ref="tclskind" style="text-align:center; "/>
- <col disabled="true" ref="dupltestfromdd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dupltesttodd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="tclscd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dupltestlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var sFdd = model.getValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltestfromdd");
- var sTdd = model.getValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltesttodd");
-
- if(isDataCell() && grd_dupltestlist.col == grd_dupltestlist.colRef("dupltestfromdd")){
- if(sFdd.length != 8){
- messageBox("일자 형식이 맞지 않습니다", "E");
- model.setValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltestfromdd", "");
- grd_dupltestlist.editCell();
- return;
- }else{
- if(sFdd > sTdd && sTdd != ""){
- messageBox("시작일은 종료일보다 클 수 없습니다.", "E");
- model.setValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltestfromdd", "");
- grd_dupltestlist.editCell();
- return;
- }
- }
- }else if(isDataCell() && grd_dupltestlist.col == grd_dupltestlist.colRef("dupltesttodd")){
- if(sTdd.length != 8){
- messageBox("일자 형식이 맞지 않습니다", "E");
- model.setValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltesttodd", "");
- grd_dupltestlist.editCell();
- return;
- }else{
- if(sFdd > sTdd && sFdd != ""){
- messageBox("종료일은 시작일보다 작을 수 없습니다.", "E");
- model.setValue("/root/main/getdupltestlist[" + grd_dupltestlist.row + "]/dupltesttodd", "");
- grd_dupltestlist.editCell();
- return;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_testlist" nodeset="/root/main/gettestlist" overflow="scroll" scroll="autovscroll" caption="^검사코드^검사명^검사구분^lvl" colsep="^" colwidth="26, 114, 368, 90, 0" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:570px; top:455px; width:620px; height:273px; ">
- <col checkvalue="Y,N" ref="choi" type="checkbox"/>
- <col ref="tclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <col ref="tclskind" style="text-align:center; "/>
- <col ref="lvl"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_testlist.isCell(event.target) && grd_testlist.row >= grd_testlist.fixedRows ){
- if(model.getValue("/root/send/refflag") == "1"){
- messageBox("추가나 변경작업을 하실경우엔 전체자료로 조회 후 작업하세요", "I");
- return;
- }
- fUpTestCd();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_testcdlist" nodeset="/root/main/gettestcdlist" class="datagrid2" overflow="scroll" scroll="auto" caption="검사코드^검사명^검사구분^중복코드
갯수" colsep="^" colwidth="64, 338, 70, 62" dataheight="23" defaultrows="1" explorerbar="sortshow" rowheader="seq" rowheight="32" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:565px; height:653px; ">
- <col ref="tclscd" style="text-align:center; "/>
- <col ref="tclsnm"/>
- <col ref="tclskind" style="text-align:center; "/>
- <col ref="dutlcd"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetDuplTestList();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_testcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_delete" class="btn2_letter3" style="left:1135px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRowDel();
- ]]>
- </script>
- </button>
- <select1 id="cmb_testlrgcd" ref="/root/hidden/ref/testlrgcd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:791px; top:429px; width:198px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTestLrgCd();
- ]]>
- </script>
- </select1>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDuplTestCd();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">중복검사코드관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|