123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <grupcdlist>
- <item/>
- </grupcdlist>
- <grupcdlist>
- <item>
- <grupcd/>
- <grupcdnm/>
- <grupcdrem/>
- </item>
- </grupcdlist>
- <detlcdlist>
- <item>
- <sortno/>
- <partgrupcd/>
- <partcd/>
- <basecdflagdesc/>
- <excutm/>
- <basecdcnts/>
- </item>
- </detlcdlist>
- </main>
- <send>
- <data>
- <itemcd/>
- </data>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <partgrupcd/>
- <partcd/>
- <partdetlcd>-</partdetlcd>
- <data2>
- <srchexamcurecd/>
- <srchexamcurenm/>
- <instance1/>
- <newoldyb>1</newoldyb>
- <excuroomcd/>
- </data2>
- </send>
- <init>
- <dept_info>
- <initprcpexecdeptcd/>
- </dept_info>
- </init>
- <hidden>
- <item>
- </item>
- </hidden>
- <tmp>
- <suplcustcd/>
- <suplcustnm/>
- <prodcmpycd/>
- <prodcmpynm/>
- </tmp>
- <combo>
- <speclist/>
- </combo>
- <tmp>
- <examcurecdlist>
- <item>
- <excucd/>
- <excucdnm/>
- <excurem/>
- </item>
- </examcurecdlist>
- </tmp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- grd_detlcdlist.fixedcellcheckbox(0,1)=true;
-
- model.removeNodeset("/root/main/grupcdlist/item");
- model.removeNodeset("/root/main/detlcdlist/item");
- model.refresh();
-
- submit("TRAEB00205", false); // 수행부서 코드 가져오기
-
- submit("TRAEB04301");
-
- ]]>
- </script>
- <submission id="TRAEB04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grupcdlist"/>
- <submission id="TRAEB04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/detlcdlist"/>
- <submission id="TXAEB04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEB04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/tmp/examcurecdlist"/>
- <submission id="TRAEB00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/dept_info"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fnGetMainList() {
- if (submit("TRAEB04301",false)) {
- model.removeNodeset("/root/main/detlcdlist/item");
- model.refresh();
- }
- }
- ]]>
- </script>
- <xhtml:body guideline="1,1195;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">검사 선/후 관게 기준관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:82px; x2:245px; y2:82px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1126px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fnGetMainList();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" visibility="hidden" style="left:900px; top:62px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- deleteSelectedRows(grd_detlcdlist, true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_grupcdlist" nodeset="/root/main/grupcdlist/item" caption="검사코드^검사그룹명^비고" colsep="^" colwidth="0, 205, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:85px; width:245px; height:665px; ">
- <col ref="grupcd" type="output" visibility="hidden"/>
- <col ref="grupcdnm"/>
- <col ref="grupcdrem" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_grupcdlist.row == 0) {
- return false;
- }
-
- var rownum = grd_grupcdlist.row;
- model.setValue("/root/send/partgrupcd", model.getValue("/root/main/grupcdlist/item[" + rownum + "]/grupcd"));
- submit("TRAEB04303");
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" style="left:1018px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!astfNullValidation("/root/main/detlcdlist/item", "sortno", "우선순위를")) return false;
- if(!astfNullValidation("/root/main/detlcdlist/item", "partcd", "검사코드를")) return false;
- if(!astfNullValidation("/root/main/detlcdlist/item", "excutm", "검사 간격을")) return false;
-
- var suppdeptcd = "";
-
- for (i=1; i<grd_detlcdlist.rows; i++) {
- suppdeptcd = grd_detlcdlist.valueMatrix(i, grd_detlcdlist.colRef("suppdeptcd"));
- if (suppdeptcd == "") {
- grd_detlcdlist.valueMatrix(i, grd_detlcdlist.colRef("suppdeptcd")) = model.getValue("/root/send/globalinstance/instance1");
- grd_detlcdlist.rowStatus(i) = 1;
- }
- }
-
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_detlcdlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
-
- model.setValue("/root/send/req/data", update);
-
- if (submit("TXAEB04301",false)) {
- submit("TRAEB04303");
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( messageBox("","Q001")==6 ) {
- var nodeList = instance1.selectNodes("/root/main/detlcdlist/item[check='Y']");
- var rCSV = getNodeListCSV(nodeList);
- if ( rCSV == null ) {
- messageBox("삭제할 검사코드을 선택해 주십시오.","I999");
- return "0";
- }
-
- var loop = grd_detlcdlist.rows - grd_detlcdlist.fixedRows;
- var loopcnt = 0;
- var check = "";
- var suppdeptcd = "";
-
- for (var i = 1 ; i <= loop ; i++ ) {
- check = model.getValue("/root/main/detlcdlist/item[" + i + "]/check");
- suppdeptcd = model.getValue("/root/main/detlcdlist/item[" + i + "]/suppdeptcd");
- if ( check == "Y" && suppdeptcd != "") {
- grd_detlcdlist.rowStatus(i) = 4;
- loopcnt++;
- }
- }
-
- var update = getGridUpdateData(grd_detlcdlist);
- model.setValue("/root/send/req/data", update);
-
- if (submit("TXAEB04301",false)) {
- submit("TRAEB04303");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_detlcdlist" nodeset="/root/main/detlcdlist/item" caption="^우선순위^검사그룹코드^검사코드^검사상세코드^검사명^간격^메시지^지원부서" colsep="^" colwidth="28, 63, 0, 107, 0, 320, 53, 329, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:250px; top:85px; width:945px; height:665px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col ref="sortno" type="input" style="text-align:right; "/>
- <col ref="partgrupcd"/>
- <col imemode="alpha" ref="partcd" type="input"/>
- <col ref="partdetlcd" visibility="hidden"/>
- <col ref="basecdflagdesc" type="input"/>
- <col ref="excutm" type="input" style="text-align:right; "/>
- <col ref="basecdcnts" type="input"/>
- <col ref="suppdeptcd"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var rowcnt = grd_detlcdlist.row;
- //if (event.keyCode != 9 && event.keyCode != 13 && event.keyCode != 45 && event.keyCode != 46 ) { //isNull(model.getValue(prcpNode + "[" + grd_prcplist.row+ "]/prcpnm")) && isNull(model.getValue(prcpNode + "[" + grd_prcplist.row+ "]/prcpcd"))
- // return;
- //}
- if ( grd_detlcdlist.col == grd_detlcdlist.colref("partcd") ) {
- if(event.keyCode == "13") {
-
- var grupcd = grd_grupcdlist.valueMatrix(grd_grupcdlist.selectedRow(0), grd_grupcdlist.colRef("grupcd"));
- var srchexamcurecd = grd_detlcdlist.valueMatrix(rowcnt, grd_detlcdlist.colref("partcd") );
- model.setValue("/root/send/data2/srchexamcurecd", srchexamcurecd);
-
- submit("TRAEB04302");
-
- group1.visible = false;
-
- var cnt = getNodesetCount("/root/tmp/examcurecdlist/item");
-
- if (cnt == 1) {
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/m", 1);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/sortno", "0");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partgrupcd", grupcd);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partcd", model.getValue("/root/tmp/examcurecdlist/item[1]/excucd"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partdetlcd", "-");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdflagdesc", model.getValue("/root/tmp/examcurecdlist/item[1]/excucdnm"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/excutm", 0);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdcnts", model.getValue("/root/tmp/examcurecdlist/item[1]/excurem"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/suppdeptcd", "");
- } else if (cnt > 1) {
- group1.visible = true;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_srchexamcurecd" ref="/root/send/partcd" class="input_search" imemode="alpha" style="left:105px; top:30px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[검사코드12자리입력가능]]>
- </hint>
- </input>
- <caption id="caption2" class="search_name" style="left:15px; top:30px; width:86px; height:17px; ">검사코드 :</caption>
- <caption id="caption1" class="tit_2" style="left:0px; top:68px; width:146px; height:14px; ">검사 선/후 관계 그룹</caption>
- <line id="line1" class="line_1" style="x1:250px; y1:82px; x2:1195px; y2:82px; "/>
- <caption id="caption3" class="tit_2" style="left:250px; top:68px; width:146px; height:14px; ">검사 선/후 관계 코드</caption>
- <button id="btn_selcalcscorcd" class="btn2_letter9" style="left:1010px; top:62px; width:119px; height:19px; ">
- <caption>검사코드조회및추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grupcd = grd_grupcdlist.valueMatrix(grd_grupcdlist.selectedRow(0), grd_grupcdlist.colRef("grupcd"));
- if (grupcd != "") {
- modal("SPAEB00500");
- } else {
- messageBox("검사 선/후 관계 그룹을", "C002");
- }
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:955px; top:62px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grupcd = grd_grupcdlist.valueMatrix(grd_grupcdlist.selectedRow(0), grd_grupcdlist.colRef("grupcd"));
-
- if (grupcd != "") {
-
- grd_detlcdlist.addRow();
- grd_detlcdlist.topRow = grd_detlcdlist.row;
- var rowcnt = grd_detlcdlist.row;
-
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/m", 1);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/sortno", "0");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partgrupcd", grupcd);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partcd", "");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partdetlcd", "-");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdflagdesc", "");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/excutm", 0);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdcnts", "");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/suppdeptcd", "");
- } else {
- alert("검사 그룹을 선택해 주십시요!");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn2_letter4" style="left:1131px; top:62px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_detlcdlist.saveExcel(file);
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:370px; top:280px; width:590px; height:155px; ">
- <datagrid id="grd_codelist" nodeset="/root/tmp/examcurecdlist/item" caption="검사코드^검사명^수행부서^메시지" colsep="^" colwidth="108, 320, 158, 339" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:590px; height:125px; ">
- <col ref="excucd"/>
- <col ref="excucdnm"/>
- <col disabled="true" editmode="search" ref="prcpexecdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/dept_info/initprcpexecdeptcd">
- <label ref="prcpexecdeptcdnm"/>
- <value ref="prcpexecdeptcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="excurem" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var rowcnt = grd_detlcdlist.row;
- var selrow = grd_codelist.row;
- if ( (grd_codelist.row >= grd_codelist.fixedRows) && (grd_codelist.isCell(event.target))) {
-
- var grupcd = grd_grupcdlist.valueMatrix(grd_grupcdlist.selectedRow(0), grd_grupcdlist.colRef("grupcd"));
-
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/m", 1);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/sortno", "0");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partgrupcd", grupcd);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partcd", model.getValue("/root/tmp/examcurecdlist/item[" + selrow +"]/excucd"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/partdetlcd", "-");
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdflagdesc", model.getValue("/root/tmp/examcurecdlist/item[" + selrow +"]/excucdnm"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/excutm", 0);
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/basecdcnts", model.getValue("/root/tmp/examcurecdlist/item[" + selrow +"]/excurem"));
- model.makeValue("/root/main/detlcdlist/item["+ rowcnt +"]/suppdeptcd", "");
-
- group1.visible = false;
- }
- ]]>
- </script>
- </datagrid>
- <button id="button26" class="btn4_letter2" style="left:530px; top:130px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|