123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>화면 및 보고서 관리(통합)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <scrnlist/>
- <msgfrmtlist/>
- </list>
- <item>
- <scrncd/>
- <scrnflag/>
- <scrnnm/>
- <scrnurl/>
- <scrnpos/>
- <scrnsize/>
- <useyn/>
- <releaseState/>
- </item>
- <listcnt>
- <scrnlistcnt/>
- </listcnt>
- </main>
- <send>
- <scrnkind/>
- <scrncd/>
- <scrnurl/>
- <scrnlist/>
- <instids/>
- <offset/>
- <pagesize/>
- <worktotal/>
- <workcds/>
- <paging/>
- </send>
- <init>
- <comcd>
- </comcd>
- <instlist>
- <inst>
- <name>본원운영</name>
- <instcd>031</instcd>
- <id>his031</id>
- <value/>
- </inst>
- <inst>
- <name>칠곡운영</name>
- <instcd>032</instcd>
- <id>his032</id>
- <value/>
- </inst>
- <inst>
- <name>MIS운영</name>
- <instcd>030</instcd>
- <id>mis030</id>
- <value/>
- </inst>
- <inst>
- <name>CRM운영</name>
- <instcd>030</instcd>
- <id>crm030</id>
- <value/>
- </inst>
- </instlist>
- <worklist>
- <work>
- <label>기반기술</label>
- <value>1</value>
- </work>
- <work>
- <label>원무심사</label>
- <value>2</value>
- </work>
- <work>
- <label>진료/의무기록</label>
- <value>3</value>
- </work>
- <work>
- <label>진료지원</label>
- <value>4</value>
- </work>
- <work>
- <label>간호</label>
- <value>5</value>
- </work>
- <work>
- <label>약제</label>
- <value>210</value>
- </work>
- <work>
- <label>MIS</label>
- <value>6</value>
- </work>
- <work>
- <label>기타</label>
- <value>etc</value>
- </work>
- </worklist>
- </init>
- <hidden>
- <comcd>
- </comcd>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 검색조건에서 기본으로 첫번째 항목이 나타나도록 한다.
- fInitComcd();
- fInitialize();
- ]]>
- </script>
- <submission id="TRZSA20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list">
- <script type="javascript" ev:event="xforms-submit-error">
- <![CDATA[
-
- ]]>
- </script>
- </submission>
- <submission id="TRZBC00101" method="post" replace="instance"/>
- <submission id="submission1" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/list"/>
- <submission id="TRZSA20503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/listcnt"/>
- <submission id="TXZSA20502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- var ICON_PATH = "com/hismainweb/images/"
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 공통코드 초기화
- * @return :
- * @---------------------------------------------------
- */
- function fInitComcd() {
- zbcfGetCodeList( new Array("Z0005"), new Array("/root/init/comcd"));
- zbcfGetCodeList( new Array("Z0006"), new Array("/root/init/comcd"));
- zbcfGetCodeList( new Array("Z0013"), new Array("/root/init/comcd"));
- fInsertInstance("Z0005", "전체", "-");
- }
-
-
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize() {
- model.removeNodeset("/root/main/list/scrnlist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/item");
-
- for(var i=0;i<grd_scrnlist.cols;i++){
- grd_scrnlist.mergeCol(i) = false;
- }
- grd_scrnlist.mergeCol(grd_scrnlist.colRef("rank")) = true;
- grd_scrnlist.mergeCol(grd_scrnlist.colRef("scrncd")) = true;
-
- model.makeValue("/root/send/offset","0");
- model.makeValue("/root/send/pagesize","25");
-
-
- model.refresh();
- cmc_scrncd.select(0);
- }
-
- /* @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 특정행을 아이콘 종류로 노드셋 바꿈
- * @return :
- * @---------------------------------------------------
- */
- function changeNodeSet() {
- // 각각의 행을 체크하여 아이콘이면 아이콘 종류로 노드셋 바꿈
- var scrnflag;
-
-
- for (var i=grd_scrnlist.fixedRows; i<grd_scrnlist.rows; i++)
- {
- scrnflag = model.getValue("/root/main/list/scrnlist["+i+"]/scrnflag"); // 현재 행의 화면 이름을 가져온다.
- //alert(scrnflag);
- if (scrnflag == "gif") //
- {
- grd_scrnlist.cellComboNodeset(i, 6) = "/root/init/comcd/Z0013";
- }
- }
- }
-
- /* @group :
- * @ver : 2006.12.26
- * @by : 이상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회 및 검색
- */
- function fbtnSearch() {
- model.removeNodeset("/root/main/list");
- model.makeNode("/root/main/list");
-
- //model.send("TRZSA20501");
- submit("TRZSA20503");
- submit("TRZSA20502");
- //grd_scrnlist.select(1, 3)=true;
- changeNodeSet();
-
- grd_scrnlist.row=1;
- }
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면명에 따라서 화면코드를 만들어줌
- * @return :
- * @---------------------------------------------------
- */
- function fbtnmakecode()
- {
- var cur_row = grd_scrnlist.row; // 추가된 행 번호 가져오기
-
- var iStatus = grd_scrnlist.rowstatus(cur_row);
- var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면 화면구분 가져온다.
- var scrncd = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrncd"); // 현재 행의 화면 이름을 가져온다.
-
-
- //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl",scrncd+"."+scrnflag);
- //if (grd_scrnlist.col == 1 && scrnflag == "gif")
- //{
- // grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
- //}
- if (grd_scrnlist.col != 1 && grd_scrnlist.col != 2)
- {
- return;
- }
- if (scrnflag == "xrw")
- {
- //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", "web/xrw/"+scrncd+"_.xrw");
- grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0006";
- }
-
- else if (scrnflag == "rex")
- {
- //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", "web/rex/"+scrncd+"_.rex");
- grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0006";
- }
- else if (scrnflag == "gif")
- {
- //model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl", ICON_PATH+scrncd+".gif");
- grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
-
- }
- }
-
- /**
- * @group :
- * @ver : 2006.12.20
- * @by : 이상준
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭시
- * @return :
- * @---------------------------------------------------
- */
- function fgrdClick()
- {
-
- var cur_row = grd_scrnlist.row;
- var iStatus = grd_scrnlist.rowstatus(cur_row);
- if(iStatus=="1" || iStatus=="3") // 삽입이거나 삽입후 변경되었다면...
- {
- grd_scrnlist.colDisabled(2)=false;
- // grd_scrnlist.colDisabled(3)=false;
- }
- else
- {
- grd_scrnlist.colDisabled(2)=true;
- // grd_scrnlist.colDisabled(3)=true;
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1191;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">화면 및 보고서 관리(통합)</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
- <caption id="caption14" class="cell_1" style="left:795px; top:116px; width:75px; height:23px; ">약재:</caption>
- <output id="output9" ref="/root/main/listcnt/scrnlistcnt/work7cnt" style="left:870px; top:116px; width:55px; height:19px; text-align:right; "/>
- <caption id="caption12" class="cell_1" style="left:1055px; top:116px; width:75px; height:23px; ">기타 :</caption>
- <output id="output3" ref="/root/main/listcnt/scrnlistcnt/work2cnt" style="left:335px; top:116px; width:55px; height:19px; text-align:right; "/>
- <output id="output2" ref="/root/main/listcnt/scrnlistcnt/work1cnt" style="left:205px; top:116px; width:55px; height:19px; text-align:right; "/>
- <output id="output1" ref="/root/main/listcnt/scrnlistcnt/totalcnt" style="left:75px; top:116px; width:55px; height:19px; text-align:right; "/>
- <caption id="caption9" class="cell_1" style="left:665px; top:116px; width:75px; height:23px; ">간호:</caption>
- <caption id="caption8" class="cell_1" style="left:535px; top:116px; width:75px; height:23px; ">진료지원:</caption>
- <caption id="caption7" class="cell_1" style="left:390px; top:116px; width:89px; height:23px; ">진료/의무기록:</caption>
- <caption id="caption5" class="cell_1" style="left:260px; top:116px; width:75px; height:23px; ">원무심사:</caption>
- <caption id="caption4" class="cell_1" style="left:130px; top:116px; width:75px; height:23px; ">기반기술:</caption>
- <caption id="caption44" class="cell_1" style="left:0px; top:116px; width:75px; height:23px; ">전체:</caption>
- <caption id="caption10" class="cell_1" style="left:925px; top:116px; width:75px; height:23px; ">MIS:</caption>
- <output id="output7" ref="/root/main/listcnt/scrnlistcnt/work6cnt" style="left:1000px; top:116px; width:55px; height:19px; text-align:right; "/>
- <output id="output6" ref="/root/main/listcnt/scrnlistcnt/work5cnt" style="left:740px; top:116px; width:55px; height:19px; text-align:right; "/>
- <output id="output5" ref="/root/main/listcnt/scrnlistcnt/work4cnt" style="left:610px; top:116px; width:55px; height:19px; text-align:right; "/>
- <output id="output4" ref="/root/main/listcnt/scrnlistcnt/work3cnt" style="left:479px; top:116px; width:55px; height:19px; text-align:right; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
- <group id="group2" style="left:0px; top:10px; width:1194px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:356px; top:8px; width:86px; height:17px; ">화면구분</caption>
- <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption22" class="search_name" style="left:811px; top:8px; width:94px; height:17px; ">화면URL</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/offset","0");
-
- fbtnSearch();
- ]]>
- </script>
- </button>
- <select1 id="cmc_scrncd" ref="/root/send/scrnkind" class="combo_default" appearance="minimal" style="left:440px; top:8px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/comcd/Z0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_scrnurl" ref="/root/send/scrnurl" class="input_search" style="left:897px; top:8px; width:200px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_scrnurl.value = ipt_scrnurl.currentText;
- fbtnSearch();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_scrncd" ref="/root/send/scrncd" class="input_search" style="left:675px; top:8px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keycode == 13)
- {
- ipt_scrncd.value = ipt_scrncd.currentText;
- fbtnSearch();
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:589px; top:8px; width:94px; height:17px; ">화면코드</caption>
- <caption id="caption3" class="search_name" style="left:5px; top:8px; width:65px; height:17px; ">기관</caption>
- <select id="chk_inst" ref="/root/send/instids" overflow="visible" appearance="full" cols="4" sep="^" style="left:65px; top:8px; width:275px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instlist/inst">
- <label ref="name"/>
- <value ref="id"/>
- </itemset>
- </choices>
- </select>
- <select id="chk_worktotal" ref="/root/send/worktotal" overflow="visible" appearance="full" style="left:65px; top:40px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(chk_worktotal.value == "Y"){
- model.setValue("/root/send/workcds","1^2^3^4^5^6^210^etc");
- chk_workcds.disabled=true;
- }else{
- model.setValue("/root/send/workcds","");
- chk_workcds.disabled=false;
- }
- model.refresh();
- ]]>
- </script>
- </select>
- <caption id="caption13" class="search_name" style="left:5px; top:40px; width:65px; height:17px; ">업무</caption>
- <select id="chk_workcds" ref="/root/send/workcds" overflow="visible" appearance="full" cols="8" sep="^" style="left:115px; top:40px; width:430px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/worklist/work">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select>
- <select id="checkbox1" ref="/root/send/paging" overflow="visible" appearance="full" style="left:1005px; top:40px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>페이징보기</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <caption id="caption20" class="tit_2" style="left:6px; top:157px; width:136px; height:13px; ">화면 및 보고서 목록</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:172px; x2:1194px; y2:172px; "/>
- <line id="line7" class="line_3" style="x1:0px; y1:741px; x2:1194px; y2:741px; "/>
- <datagrid id="grd_scrnlist" nodeset="/root/main/list/scrnlist" caption="화면코드^기관^화면구분^화면URL^종류^사용^공개상태^업무^수정일자^수정자" colwidth="97, 69, 72, 521, 82, 34, 59, 88, 64, 45" dataheight="25" defaultrows="0" explorerbar="sortshowmove" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" style="left:0px; top:176px; width:1194px; height:553px; text-align:center; border-color:#808080; ">
- <col ref="scrncd" type="input" maxlength="10"/>
- <col ref="instid" type="combo">
- <choices>
- <itemset nodeset="/root/init/instlist/inst">
- <label ref="name"/>
- <value ref="id"/>
- </itemset>
- </choices>
- </col>
- <col ref="scrnflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcd/Z0005">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="scrnurl" type="input" style="text-align:left; "/>
- <col ref="scrnpos" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/comcd/Z0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
- <col ref="releasestate" type="combo">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="workcd" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>기반기술</label>
- <value>1</value>
- </item>
- <item>
- <label>원무심사</label>
- <value>2</value>
- </item>
- <item>
- <label>진료/기록</label>
- <value>3</value>
- </item>
- <item>
- <label>진료지원</label>
- <value>4</value>
- </item>
- <item>
- <label>간호</label>
- <value>5</value>
- </item>
- <item>
- <label>약제</label>
- <value>210</value>
- </item>
- <item>
- <label>MIS</label>
- <value>6</value>
- </item>
- </choices>
- </col>
- <col ref="lastupdtdt" type="output"/>
- <col ref="lastupdtrnm" type="output"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_scrnlist.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/item","/root/main/list/scrnlist["+cur_row+"]");
- model.refresh();
-
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fbtnmakecode();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fgrdClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
-
- // grd_scrnlist.row
- //alert(event.keyCode);
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if( grd_scrnlist.col == 5 ){ // 아이콘 종류를 선택했을 경우
- var cur_row = grd_scrnlist.row;
- var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면구분을 가져온다.
- var icontype = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnpos"); // 현재 행의 화면구분을 가져온다.
-
- if (scrnflag == "gif" && icontype=="A")
- {
- //alert("팝업화면");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- var cur_row = grd_scrnlist.row;
- var scrnflag = model.getValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag"); // 현재 행의 화면구분을 가져온다.
-
- if( grd_scrnlist.col == 4 && scrnflag=="gif"){ // 아이콘 종류를 선택했을 경우
- alert("하이");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- if(model.getValue("/root/send/paging") == "Y" && grd_scrnlist.vscroll.attribute("max") == grd_scrnlist.vscroll.attribute("pos")) {
- // end of scroll
- model.setValue("/root/send/offset", grd_scrnlist.rows-grd_scrnlist.fixedRows);
- submit("TRZSA20502");
- grd_scrnlist.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_scrnlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:874px; top:140px; width:321px; height:32px; ">
- <button id="button8" class="btn2_letter3" style="left:210px; top:11px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_scrnlist.addRow(); // 입력할 행 추가.
- var cur_row = grd_scrnlist.row; // 추가된 행 번호 가져오기
- var cnt_row = grd_scrnlist.rows; // 현재 행의 갯수 가져오기
-
- var scrnflag;
- var scrncd;
- var scrnurl;
- var scrnpos;
- var useryn;
- var releasestate;
-
- if (cnt_row > 2) // 이미 데이터가 있으면
- {
- scrnflag = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnflag");
- //scrnurl = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnurl");
- scrnpos = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/scrnpos");
- useyn = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/useyn");
- releasestate = model.getValue("/root/main/list/scrnlist["+(cnt_row-2)+"]/releasestate");
-
- grd_scrnlist.cellComboNodeset(cur_row, 4) = "/root/init/comcd/Z0013";
- }
- else // 데이터가 하나도 없으면
- {
- scrnflag = 'xrw';
- scrnurl ="web/xrw/SM_.xrw";
- scrnpos = 'M';
- useyn = 'Y';
- releasestate = 'N';
- }
-
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnflag",scrnflag);
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrncd",scrncd);
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnurl",scrnurl);
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/scrnpos",scrnpos);
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/useyn",useyn);
- model.setValue("/root/main/list/scrnlist["+cur_row+"]/releasestate",releasestate);
- // 그리드에 추가
- //model.copyNode("/root/main/list/scrnlist["+cur_row+"]","/root/main/item");
- model.refresh();
- grd_scrnlist.row = cur_row;
- //grd_scrnlist.select(cur_row, 2)=true;
- //grd_scrnlist.editcell();
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:266px; top:11px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_scrnlist.row; // 행 번호 가져오기
- var iStatus = grd_scrnlist.rowstatus(cur_row);
- if(cur_row<0) {
- alert("삭제할 행을 선택해주세요.");
- return;
- }
- if (iStatus == 1) // 새로 삽입된 행이면
- {
- grd_scrnlist.deleteitem(cur_row);
- }
- else if (iStatus == 4) // 삭제로 표시된 행이면
- {
- grd_scrnlist.removestatus(cur_row, "delete");
- }
- else
- {
- grd_scrnlist.addStatus(cur_row, "delete");
- }
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter4" style="left:143px; top:11px; width:64px; height:19px; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", "", false);
- grd_scrnlist.loadExcel(fileName);
-
- for (i=grd_scrnlist.fixedRows; i<grd_scrnlist.rows; i++)
- {
- grd_scrnlist.rowStatus(i) = 1;
- }
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter4" style="left:76px; top:11px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_scrnlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </group>
- <line id="line27" class="line_3" style="x1:0px; y1:116px; x2:1186px; y2:116px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:139px; x2:1186px; y2:139px; "/>
- <caption id="caption11" class="tit_2" style="left:6px; top:100px; width:136px; height:13px; ">화면 및 보고서 개수</caption>
- <output id="output8" ref="/root/main/listcnt/scrnlistcnt/worketccnt" style="left:1130px; top:116px; width:55px; height:19px; text-align:right; "/>
- <line id="line30" class="line_3" style="x1:1185px; y1:116px; x2:1185px; y2:139px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:116px; x2:0px; y2:139px; border-color:#ffe4bb; border-left-style:solid; "/>
- </group>
- <line id="line32" class="line_6" style="x1:0px; y1:120px; x2:1194px; y2:120px; "/>
- <group id="group6" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button1" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //if(!checkGridUpdate(grd_scrnlist))
- // {
- // alert("저장할 자료가 존재하지 않습니다.");
- // return;
- // }
-
- // if(checkGridField(grd_scrnlist,"scrncd")==false)
- // {
- // alert("데이터중에 비어있는 필수필드가 있습니다.");
- // return;
- // }
- model.setValue("/root/send/scrnlist",grd_scrnlist.getUpdateData());
- if ( submit("TXZSA20502") ) {
- grd_scrnlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- changeNodeSet();
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|