123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>지표관리(Master관리)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <indxlist>
- <rows>
- <kpicd/>
- <instcd/>
- <indxid/>
- <dispseq/>
- <itemnm/>
- <indxfromdd/>
- <indxtodd/>
- <indxappflag/>
- <rem/>
- </rows>
- </indxlist>
- </main>
- <temp>
- </temp>
- <hidden>
- </hidden>
- <send>
- <indxlist/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/indxlist/rows");
-
- submit("TRMRD01900");
- model.refresh();
- ]]>
- </script>
- <submission id="TXMRD01900" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/indxlist" resultref="/root/main/indxlist"/>
- <submission id="TRMRD01900" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/indxlist"/>
- </model>
- <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"/>
- <script type="javascript" src="../../../emr/dschanalyweb/js/SMMRD01700.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="630" pageheight="320" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption1" class="tit_2" style="left:7px; top:19px; width:153px; height:14px; ">지표관리(Master관리)</caption>
- <line id="line1" class="line_1" style="x1:2px; y1:34px; x2:612px; y2:34px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:147px; height:14px; ">지표관리</caption>
- <line id="line4" class="line_3" style="x1:2px; y1:292px; x2:612px; y2:292px; "/>
- <button id="btn_save" class="btn4_letter2" visibility="visible" style="left:555px; top:295px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var dispSeqSameRow = grd_indxlist.findRow("", 1, grd_indxlist.colRef("dispseq"));
- var itemNmSameRow = grd_indxlist.findRow("", 1, grd_indxlist.colRef("itemnm"));
-
- if(itemNmSameRow > 0){
- messageBox("항목명은","I003");
- return;
- }
-
-
- model.setValue("/root/send/indxlist", getGridUpdateData(grd_indxlist));
-
- //alert(model.getValue("/root/send/indxlist"))
- model.removeNodeset("/root/main/indxlist/rows");
- submit("TXMRD01900");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:515px; top:13px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_indxlist.addRow();
-
- var curRow = grd_indxlist.row;
-
- model.setValue("/root/main/indxlist/rows["+ curRow +"]/indxfromdd", getCurrentDate());
- model.setValue("/root/main/indxlist/rows["+ curRow +"]/indxtodd", "99991231");
- model.setValue("/root/main/indxlist/rows["+ curRow +"]/indxappflag", "Y");
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:570px; top:13px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var msg = messageBox("선택한 행을 ","Q001");
- if(msg == "6"){
- deleteSelectedRows(grd_indxlist, true);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_indxlist" nodeset="/root/main/indxlist/rows" caption="KPICD^기관코드^INDXID^순번^항목명^적용시작일^적용종료일^적용여부^비고" colsep="^" colwidth="0, 0, 0, 0, 162, 100, 100, 56, 149" defaultrows="0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:2px; top:41px; width:610px; height:249px; ">
- <col ref="kpicd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="indxid" visibility="hidden"/>
- <col ref="dispseq" type="input" format="999"/>
- <col ref="itemnm" type="input"/>
- <col ref="indxfromdd" type="inputdate"/>
- <col ref="indxtodd" type="inputdate"/>
- <col checkvalue="Y,N" ref="indxappflag" type="checkbox"/>
- <col ref="rem" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curRow = grd_indxlist.row;
- var itemnm = model.getValue("/root/main/indxlist/rows["+curRow+"]/itemnm");
- var dispseq = model.getValue("/root/main/indxlist/rows["+curRow+"]/dispseq");
- var indxfromdd = model.getValue("/root/main/indxlist/rows["+curRow+"]/indxfromdd");
- var indxtodd = model.getValue("/root/main/indxlist/rows["+curRow+"]/indxtodd");
-
-
- // if(grd_indxlist.col == grd_indxlist.colRef("dispseq")){
- // if(dispseq == ""){
- // messageBox("순번은","I003");
- // }
- // else{
- // var bfSameRow = grd_indxlist.findRow(dispseq, 1, grd_indxlist.colRef("dispseq"));
- // var aftSameRow = grd_indxlist.findRow(dispseq, curRow +1, grd_indxlist.colRef("dispseq"));
- // if(bfSameRow != curRow && bfSameRow > 0){
- // var msg = messageBox("동일한 순번이 있습니다. ","Q003");
- // if(msg != "6"){
- // model.setValue("/root/main/indxlist/rows["+curRow+"]/dispseq", "");
- // }
- // }
- // if(aftSameRow != curRow && aftSameRow > 0){
- // var msg = messageBox("동일한 순번이 있습니다. ","Q003");
- // if(msg != "6"){
- // model.setValue("/root/main/indxlist/rows["+curRow+"]/dispseq", "");
- // }
- // }
- // }
- // grd_indxlist.col =grd_indxlist.colRef("dispseq");
- // }
-
- if(grd_indxlist.col == grd_indxlist.colRef("itemnm")){
- if(itemnm == ""){
- messageBox("항목명은","I003");
- }
- else{
- var bfSameRow = grd_indxlist.findRow(itemnm, 1, grd_indxlist.colRef("itemnm"));
- var aftSameRow = grd_indxlist.findRow(itemnm, curRow +1, grd_indxlist.colRef("itemnm"));
- if(bfSameRow != curRow && bfSameRow > 0){
- var msg = messageBox("동일한 항목명이 있습니다. ","Q003");
- if(msg != "6"){
- model.setValue("/root/main/indxlist/rows["+curRow+"]/itemnm", "");
- }
- }
- if(aftSameRow != curRow && aftSameRow > 0){
- var msg = messageBox("동일한 항목명이 있습니다. ","Q003");
- if(msg != "6"){
- model.setValue("/root/main/indxlist/rows["+curRow+"]/itemnm", "");
- }
- }
- }
- grd_indxlist.col =grd_indxlist.colRef("itemnm");
- }
- if(grd_indxlist.col == grd_indxlist.colRef("indxfromdd") && indxfromdd == ""){
- messageBox("적용시작일은","I003");
- grd_indxlist.col = grd_indxlist.colRef("indxfromdd");
- }
- if(grd_indxlist.col == grd_indxlist.colRef("indxtodd") && indxtodd == ""){
- messageBox("적용종료일은","I003");
- grd_indxlist.col = grd_indxlist.colRef("indxtodd");
- }
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|