123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>
- <lntmlist>
- <csrreqdeptcd/>
- <daykind/>
- <reqseq/>
- <clotm/>
- <reqimpostm/>
- <reqposfromtm/>
- <bar/>
- <reqpostotm/>
- <cmt/>
- <dinfaplyn/>
- <lastupdtrid/>
- <usernm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <instcd/>
- <csrreqdeptnm/>
- <daykindnm/>
- </lntmlist>
- <lnreqdeptlist>
- <lnreqdeptnm/>
- <lnreqdeptcd/>
- </lnreqdeptlist>
- <csrdeptnm>
- <csrdeptnm/>
- </csrdeptnm>
- <lntmdeptlist/>
- </main>
- <send>
- <instcd/>
- <csrtmlist/>
- <daykind/>
- <deptcd/>
- <deptnm/>
- <csrreqdeptcd2/>
- </send>
- <init>
- <csrdept>
- <label>외래</label>
- <value>1</value>
- <label>병동</label>
- <value>2</value>
- <label>OR</label>
- <value>3</value>
- <label>ER</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- </csrdept>
- <daykind>
- </daykind>
- <deptcd/>
- <deptnm/>
- </init>
- <hidden>
- <common>
- <instcdinfo/>
- </common>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- var searchFlag = "0";
- var curDept = 0;
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/lntmlist");
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- misfGridInit(grd_lntmlist);
- misfGridInit(grd_lnreqdeptlist);
-
- button10.selected = true;
- button10.dispatch("DOMActivate");
-
- model.resetInstanceNode("/root/send/reqData");
- btn_prt.disabled = true;
- model.refresh();
-
- getLnReqDeptList();
-
- }
-
- function fSearch(){
-
- var iRow = grd_lnreqdeptlist.row;
- var iCol = grd_lnreqdeptlist.colRef("lnreqdeptcd");
- var erreqyn = model.getValue("/root/send/erreqyn");
-
- model.makeValue("/root/send/daykind", rdo_daykind.value);
- model.makeValue("/root/send/lnreqdeptcd", grd_lnreqdeptlist.valueMatrix(iRow, iCol));
-
- if ( erreqyn == "A" ) {
- submit("TRMNG00505");
- } else {
- submit("TRMNG00504");
- }
-
- misfSetReadOnlyCol(grd_lntmlist, "lnreqdeptcd,daykind, reqseq", true);
- // model.refresh();
-
- // fChngReqPosTm();
-
- // searchFlag = "1";
- }
-
- function fSave(){
-
- var erreqyn = model.getValue("/root/send/erreqyn");
-
- if ( erreqyn == "N" ) {
- var updtdata = getGridUpdateData(grd_lntmlist);
- } else if ( erreqyn == "Y") {
- var updtdata = getGridUpdateData(grd_erlntmlist);
- }
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- model.makeValue("/root/send/reqdata1/lntmlist", updtdata);
-
- submit("TXMNG00503");
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fSavedept(){
-
- var erreqyn = model.getValue("/root/send/erreqyn");
-
- var updtdata = getGridUpdateData(grd_lntmdeptlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- model.makeValue("/root/send/reqdata2/lntmdeptlist", updtdata);
-
- submit("TXMNG00504");
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fCheckTime(grid)
- {
- if(grid.col == grid.colRef("clotm"))
- {
- var sTime = grid.valueMatrix(grid.row, grid.colRef("clotm"));
-
- if(sTime == "" || sTime == null)
- {
- return;
- }
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- grid.valueMatrix(grid.row, grid.colRef("clotm")) = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- messageBox("24시를 ","E001");
- grid.valueMatrix(grid.row, grid.colRef("clotm")) = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- messageBox("59분을 ","E001");
- grid.valueMatrix(grid.row, grid.colRef("clotm")) = "";
- return;
- }
- }
- }
-
- function getLnReqDeptList() {
- model.makeValue("/root/send/reqData/cdgrupid", "R0269");
- model.makeValue("/root/send/reqData/cdid", "%");
- model.makeValue("/root/send/reqData/cdnm", "%");
- submit("TRMNG00408");
- model.removeNodeset("/root/main/lntmlist");
- grd_lntmlist.refresh();
-
-
- }
-
- function fChngReqPosTm(grid) {
- var tempClotm;
- var tempReqImposTm;
-
- var clotm;
-
- var stdCnt = 0; //평일
- var spclCnt = 0; //휴일
- var spclCnt2 = 0; //토요일
- var spclCnt3 = 0; //일요일
- var daykind;
-
- for(var i = 1; i <= grid.rows- 1; i++) {
- daykind = grid.valueMatrix(i, grid.colRef("daykind"));
-
- switch(daykind) {
- case '1' :
- stdCnt++;
- break;
- case '2' :
- spclCnt++;
- break;
- case '3' :
- spclCnt2++;
- break;
- case '4' :
- spclCnt3++;
- break;
- }
- }
-
- for(var i = 1; i <= stdCnt + spclCnt + spclCnt2 + spclCnt3; i++) {
- tempClotm = grid.valueMatrix(i, grid.colRef("clotm"));
-
- tmpReqImposTm = grid.valueMatrix(i, grid.colRef("reqimpostm"));
- //평일에 등록된 수량중 마지막일때
- if(i == stdCnt) {
- grid.valueMatrix(1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(1, grd_lntmlist.colRef("clotm"));
- grid.valueMatrix(1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if (i < stdCnt) { //평일에 등록된 수량일때
- grid.valueMatrix(i+1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(i + 1, grid.colRef("clotm"));
- grid.valueMatrix(i + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if(i == stdCnt + spclCnt) { //휴일에 등록된 수량중 마지막일때
-
- grid.valueMatrix(stdCnt+1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(stdCnt+1, grid.colRef("clotm"));
- grid.valueMatrix(stdCnt+1, grid.colRef("endtm")) = subTm(clotm) + "59";
-
- } else if(i > stdCnt && i < stdCnt + spclCnt) { //휴일에 등록된 수량일때
- grid.valueMatrix(i+1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(i + 1, grid.colRef("clotm"));
- grid.valueMatrix(i + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if(i == stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량중 마지막일때.
- grid.valueMatrix(stdCnt + spclCnt + 1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(stdCnt + spclCnt + 1, grid.colRef("clotm"));
- grid.valueMatrix(stdCnt + spclCnt + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if(i > stdCnt + spclCnt && i < stdCnt + spclCnt + spclCnt2) { //토요일에 등록된 수량일때.
- grid.valueMatrix(i+1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(i + 1, grid.colRef("clotm"));
- grid.valueMatrix(i + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if(i == stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량중 마지막일때.
- grid.valueMatrix(stdCnt + spclCnt + spclCnt2 + 1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(stdCnt + spclCnt + spclCnt2 + 1, grid.colRef("clotm"));
- grid.valueMatrix(stdCnt + spclCnt + spclCnt2 + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- } else if(i > stdCnt + spclCnt + spclCnt2 && i < stdCnt + spclCnt + spclCnt2 + spclCnt3) { //일요일에 등록된 수량일때.
- grid.valueMatrix(i+1, grid.colRef("starttm")) = addTm(tempClotm, tmpReqImposTm) + "01";
- clotm = grid.valueMatrix(i + 1, grid.colRef("clotm"));
- grid.valueMatrix(i + 1, grid.colRef("endtm")) = subTm(clotm) + "59";
- }
- }
- }
-
- function subTm(clotm) {
- var cloHour = clotm.substr(0,2);
- var cloTm = clotm.substr(2,2);
-
- var sumHour = Number(cloHour);
- var sumTm = Number(cloTm) - 1;
-
- var hr;
- var tm;
-
- if(sumTm == -1) {
- sumTm = 59;
- sumHour -= 1;
- }
-
- if(sumHour == -1) {
- sumHour = 23;
- }
-
- if(sumHour < 10) {
- hr= "0" + sumHour;
- } else {
- hr = String(sumHour);
- }
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hr + tm;
- }
-
- function addTm(fstTm, lastTm) {
- var fstHour = fstTm.substr(0,2);
- var fstTm = fstTm.substr(2,2);
- var lastHour = lastTm.substr(0,2);
- var lastTm = lastTm.substr(2,2);
-
- var sumHour = (Number(fstHour) + Number(lastHour));
- var sumTm = Number(fstTm) + Number(lastTm);
-
- var hour;
- var tm;
-
- if(sumTm >= 60) {
-
- sumHour += 1;
- sumTm %= 60;
- }
-
- if(sumHour >= 24) {
- sumHour %= 24;
-
- }
-
- if(sumHour < 10) {
- hour = "0" + sumHour;
- } else {
- hour = String(sumHour);
- }
-
-
- if(sumTm < 10) {
- tm = "0" + sumTm;
- } else {
- tm = String(sumTm);
- }
-
- return hour + tm
- }
-
- function fPrintRex() {
-
- model.makeNode("/root/send/report/grd_lntmlist");
-
- copyNodesetType("/root/send/report/grd_lntmlist", "/root/main/grd_lntmlist");
-
- exeReportPreview("RPMNG00500", "XMLSTR", "/root/send/report/grd_lntmlist");
-
-
- }
-
- function fSettingGoodList(pnode) {
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = grd_lntmdeptlist.rows - grd_lntmdeptlist.fixedRows;
- for (var j = 1; j <= codynode.length; j++)
- {
- if(addRow > grd_lntmdeptlist.rows - grd_lntmdeptlist.fixedRows)
- {
- misfGridIUD(grd_lntmdeptlist,"A");
- addRow = grd_lntmdeptlist.rows - grd_lntmdeptlist.fixedRows;
- }
-
- model.setValue(grd_lntmdeptlist.nodeset + "[" + addRow + "]/deptcd" , model.getValue(pnode +"/" + "grd_lntmdeptlist" + "[" + j + "]/deptcd"));
- model.setValue(grd_lntmdeptlist.nodeset + "[" + addRow + "]/deptnm" , model.getValue(pnode +"/" + "grd_lntmdeptlist" + "[" + j + "]/deptnm"));
- model.setValue(grd_lntmdeptlist.nodeset + "[" + addRow + "]/lnreqdeptcd" , model.getValue("/root/send/lnreqdeptcd"));
-
- addRow = addRow + 1;
- }
-
- grd_lntmdeptlist.colDisabled(grd_lntmdeptlist.colRef("deptcd")) = true;
- model.recalculate();
- model.refresh();
-
- }
- ]]>
- </script>
- <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" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRMNG00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lntmlist"/>
- <submission id="TRMNG00505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lntmdeptlist"/>
- <submission id="TXMNG00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
- <submission id="TXMNG00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/temp"/>
- <submission id="TXMNG00504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata2" resultref="/root/temp"/>
- <submission id="TRMNG00408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lnreqdeptlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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:186px; height:14px; ">린넨 청구 시간 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1000px; y1:5px; x2:1000px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:415px; top:10px; width:89px; height:17px; ">요일구분 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1015px; top:8px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- getLnReqDeptList();
- if(ipt_reqdeptcd.value == "" || curDept != 0) {
- grd_lnreqdeptlist.row = curDept;
- fSearch();
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_daykind" ref="/root/init/daykind" appearance="full" cols="6" style="left:505px; top:8px; width:255px; height:19px; ">
- <choices>
- <item>
- <label>전체</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>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(!isRequiredControls("cmb_instcd")) return;
- //btn_search.dispatch("DOMActivate");
- getCsrDeptList();
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
- <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" style="left:213px; top:8px; width:172px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" style="left:100px; top:8px; width:85px; height:19px; "/>
- <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:8px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "CSR마감시간등록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_csrtmlist.saveExcel(fileName, "청구현황List");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn1_letter2" style="left:1131px; top:8px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrintRex();
- ]]>
- </script>
- </button>
- <button id="btn_reqdept" class="icon_search" style="left:190px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPMNG00300");
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
- model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
-
- ipt_reqdeptcd.refresh();
- ipt_reqdeptnm.refresh();
-
- for(var i = 1; i <= grd_lnreqdeptlist.rows; i++) {
-
- if( grd_lnreqdeptlist.valueMatrix(i, grd_lnreqdeptlist.colRef("lnreqdeptcd")) == ipt_csrreqdeptcd2.value ) {
- grd_lnreqdeptlist.row = i;
- fSearch();
- curDept = grd_lnreqdeptlist.row;
- break;
- }
- }
-
-
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:59px; width:133px; height:13px; ">부서구분</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:74px; x2:220px; y2:74px; "/>
- <datagrid id="grd_lnreqdeptlist" nodeset="/root/main/lnreqdeptlist" caption="부서구분^caption1" colsep="^" colwidth="170, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:78px; width:215px; height:662px; ">
- <col class="input_essential" disabled="true" ref="lnreqdeptnm" type="input"/>
- <col ref="lnreqdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(grd_lnreqdeptlist.isCell(event.target) && grd_lnreqdeptlist.mouseRow >= grd_lnreqdeptlist.fixedrows){
- fSearch();
- curDept = grd_lnreqdeptlist.row;
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" visibility="hidden" style="left:525px; top:50px; width:100px; height:20px; "/>
- <switch id="switch1" style="left:225px; top:75px; width:970px; height:665px; ">
- <case id="case1">
- <button id="button1" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:777px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:833px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_lntmlist, "A");
- var cur_row = grd_lntmlist.row;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_lntmlist.attribute("nodeset")+"["+cur_row+"]/bar", "~");
- model.setValue(grd_lntmlist.attribute("nodeset")+"["+cur_row+"]/lnreqdeptcd", grd_lnreqdeptlist.valueMatrix(grd_lnreqdeptlist.row, grd_lnreqdeptlist.colRef("lnreqdeptcd")));
- model.setValue(grd_lntmlist.attribute("nodeset")+"["+cur_row+"]/reqimpostm", "0000");
- model.setValue(grd_lntmlist.attribute("nodeset")+"["+cur_row+"]/erreqyn", "N");
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- grd_lntmlist.editCell();
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:877px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_lntmlist.row > -1 && grd_lntmlist.row >= grd_lntmlist.fixedrows){
-
- var firstRow = grd_lntmlist.selectedRow(0);
- var lastRow = grd_lntmlist.selectedRow(grd_lntmlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- if(grd_lntmlist.rowStatus(i) == "1" || grd_lntmlist.rowStatus(i) == "3") {
- grd_lntmlist.deleteRow(i);
- } else {
- grd_lntmlist.rowStatus(i) = "4";
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:921px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_lntmlist" nodeset="/root/main/lntmlist" class="datagrid2" caption="부서구분^요일구분^마감차수^마감시간^청구불가시간^청구가능시간^청구가능시간^청구가능시간^비고^수정자ID^수정자^수정일자^최초등록일자" colsep="^" colwidth="80, 60, 60, 60, 80, 60, 17, 60, 130, 70, 60, 80, 80, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:967px; height:634px; ">
- <col class="input_essential" disabled="true" ref="lnreqdeptcd" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/lnreqdeptlist">
- <label ref="lnreqdeptnm"/>
- <value ref="lnreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col class="input_essential" disabled="true" ref="daykind" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <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>
- </choices>
- </col>
- <col class="input_essential" disabled="true" ref="reqseq" type="input" maxlength="2" _key="true" style="text-align:center; "/>
- <col ref="clotm" type="input" format="hh:nn" maxlength="4" validateformat="true" style="text-align:center; "/>
- <col ref="reqimpostm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="starttm" type="input" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="bar" style="text-align:center; "/>
- <col ref="endtm" type="input" format="hh:nn:ss"/>
- <col ref="cmt" type="input" maxlength="96" style="text-align:left; "/>
- <col disabled="true" ref="lastupdtrid" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtrnm" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="erreqyn" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_lntmlist.rows > 1 && (grd_lntmlist.col == grd_lntmlist.colRef("clotm") || grd_lntmlist.col == grd_lntmlist.colRef("reqimpostm")) ) {
- fChngReqPosTm(grd_lntmlist);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- fCheckTime(grd_lntmlist);
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_lntmlist.editCell();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:967px; y2:24px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:8px; width:162px; height:13px; ">청구 기준시간 등록</caption>
- </case>
- <case id="case2" selected="true">
- <button id="button2" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:777px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:833px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_erlntmlist, "A");
- var cur_row = grd_erlntmlist.row;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_erlntmlist.attribute("nodeset")+"["+cur_row+"]/bar", "~");
- model.setValue(grd_erlntmlist.attribute("nodeset")+"["+cur_row+"]/lnreqdeptcd", grd_lnreqdeptlist.valueMatrix(grd_lnreqdeptlist.row, grd_lnreqdeptlist.colRef("lnreqdeptcd")));
- model.setValue(grd_erlntmlist.attribute("nodeset")+"["+cur_row+"]/reqimpostm", "0000");
- model.setValue(grd_erlntmlist.attribute("nodeset")+"["+cur_row+"]/erreqyn", "Y");
- model.setValue(grd_erlntmlist.attribute("nodeset")+"["+cur_row+"]/reqseq", "응급");
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- grd_erlntmlist.editCell()
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:877px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_erlntmlist.row > -1 && grd_erlntmlist.row >= grd_erlntmlist.fixedrows){
-
- var firstRow = grd_erlntmlist.selectedRow(0);
- var lastRow = grd_erlntmlist.selectedRow(grd_erlntmlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- if(grd_erlntmlist.rowStatus(i) == "1" || grd_erlntmlist.rowStatus(i) == "3") {
- grd_erlntmlist.deleteRow(i);
- } else {
- grd_erlntmlist.rowStatus(i) = "4";
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:921px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_erlntmlist" nodeset="/root/main/lntmlist" class="datagrid2" caption="부서구분^요일구분^마감차수^마감시간^청구불가시간^청구가능시간^청구가능시간^청구가능시간^비고^수정자ID^수정자^수정일자^최초등록일자^instcd^csrreqdeptnm" colsep="^" colwidth="80, 60, 60, 60, 80, 60, 17, 60, 130, 70, 60, 80, 80, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:28px; width:967px; height:634px; ">
- <col class="input_essential" disabled="true" ref="lnreqdeptcd" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/lnreqdeptlist">
- <label ref="lnreqdeptnm"/>
- <value ref="lnreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col class="input_essential" disabled="true" ref="daykind" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <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>
- </choices>
- </col>
- <col class="input_essential" disabled="true" ref="reqseq" type="input" maxlength="2" _key="true" style="text-align:center; "/>
- <col ref="clotm" type="input" format="hh:nn" maxlength="4" validateformat="true" style="text-align:center; "/>
- <col ref="reqimpostm" type="input" format="hh:nn" style="text-align:center; "/>
- <col ref="starttm" type="input" format="hh:nn:ss" style="text-align:center; "/>
- <col ref="bar" style="text-align:center; "/>
- <col ref="endtm" type="input" format="hh:nn:ss"/>
- <col ref="cmt" type="input" maxlength="96" style="text-align:left; "/>
- <col disabled="true" ref="lastupdtrid" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtrnm" style="text-align:center; "/>
- <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="erreqyn" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_erlntmlist.rows > 1 && (grd_erlntmlist.col == grd_erlntmlist.colRef("clotm") || grd_erlntmlist.col == grd_erlntmlist.colRef("reqimpostm")) ) {
- fChngReqPosTm(grd_erlntmlist);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- fCheckTime(grd_erlntmlist);
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_erlntmlist.editCell();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:967px; y2:24px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:8px; width:162px; height:13px; ">응급청구 기준시간 등록</caption>
- </case>
- <case id="case3">
- <button id="button6" class="btn2_letter3" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:777px; top:3px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:833px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd")) return;
-
- misfGridIUD(grd_lntmdeptlist, "A");
- var cur_row = grd_lntmdeptlist.row;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_lntmdeptlist.attribute("nodeset")+"["+cur_row+"]/lnreqdeptcd", grd_lnreqdeptlist.valueMatrix(grd_lnreqdeptlist.row, grd_lnreqdeptlist.colRef("lnreqdeptcd")));
-
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- grd_lntmdeptlist.editCell();
-
- ]]>
- </script>
- </button>
- <button id="button8" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:877px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_lntmdeptlist.row > -1 && grd_lntmdeptlist.row >= grd_lntmdeptlist.fixedrows){
-
- var firstRow = grd_lntmdeptlist.selectedRow(0);
- var lastRow = grd_lntmdeptlist.selectedRow(grd_lntmdeptlist.selectedRows-1);
-
- for(var i = firstRow; i <= lastRow; i++) {
- if(grd_lntmdeptlist.rowStatus(i) == "1" || grd_lntmdeptlist.rowStatus(i) == "3") {
- grd_lntmdeptlist.deleteRow(i);
- } else {
- grd_lntmdeptlist.rowStatus(i) = "4";
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:921px; top:3px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSavedept();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_lntmdeptlist" nodeset="/root/main/lntmdeptlist" class="datagrid2" caption="부서코드^부서명^부서구분^비고^수정자id^수정자명^수정일자^최초등록일자" colsep="^" colwidth="116, 135, 80, 150, 80, 80, 110, 110" extendlastcol="scroll" rowheader="update" rowheight="26" rowsep="|" style="left:0px; top:28px; width:967px; height:634px; ">
- <col class="input_essential" ref="deptcd" type="inputbutton" disable="true"/>
- <col ref="deptnm" type="output"/>
- <col ref="lnreqdeptcd" type="combo" disable="true">
- <choices>
- <itemset nodeset="/root/main/lnreqdeptlist">
- <label ref="lnreqdeptnm"/>
- <value ref="lnreqdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" type="input"/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtrnm"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.removeNodeset(gvParamPath + "/SPMNG00403_/SPMNG00403_value");
- if(grd_lntmdeptlist.col == grd_lntmdeptlist.colRef("deptcd") ) {
-
- model.removeNodeset("/root/copynode");
- model.makeNode("/root/copynode");
- model.refresh();
-
- rszfOpenPopUpListByWndName(grd_lntmdeptlist,"","deptcd,deptnm","SPMNG00403","","", "Y");
-
- var CSV = model.getValue(gvParamPath +"/SPMNG00403_/SPMNG00403_value");
-
- setCSVToNode("/root/copynode", CSV, "grd_lntmdeptlist");
-
- fSettingGoodList("/root/copynode");
- }
- ]]>
- </script>
- </datagrid>
- <line id="line4" class="line_1" style="x1:0px; y1:24px; x2:967px; y2:24px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:8px; width:162px; height:13px; ">린넨시간관리 부서등록</caption>
- </case>
- </switch>
- <button id="button10" class="btn_sw" group="sw" style="left:225px; top:55px; width:70px; height:20px; ">
- <caption>정규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/lntmlist");
- model.toggle("case1");
- model.makeValue("/root/send/erreqyn", "N");
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn_sw" group="sw" style="left:295px; top:55px; width:65px; height:22px; ">
- <caption>응급</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/lntmlist");
- model.toggle("case2");
- model.makeValue("/root/send/erreqyn", "Y");
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn_sw" group="sw" style="left:360px; top:55px; width:65px; height:22px; ">
- <caption>부서관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- model.makeValue("/root/send/erreqyn", "A");
- fSearch();
- ]]>
- </script>
- </button>
- <button id="button13" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:92px; top:54px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_lnreqdeptlist.addRow();
- ]]>
- </script>
- </button>
- <button id="button14" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:136px; top:54px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_lnreqdeptlist.rowStatus(grd_lnreqdeptlist.row) == 1 || grd_lnreqdeptlist.rowStatus(grd_lnreqdeptlist.row) == 3) {
- grd_lnreqdeptlist.deleteRow(grd_lnreqdeptlist.row);
- } else {
- var btn = messageBox("부서구분 삭제시 부서구분에 속한 부서목록 및 청구 기준시간도 같이 삭제됩니다. 진행하시겠습니까?", "Q");
- if (btn == "6") {
- grd_lnreqdeptlist.rowStatus(grd_lnreqdeptlist.row) = 4;
- model.makeValue("/root/send/reqdata/lnreqdeptlist", getGridUpdateData(grd_lnreqdeptlist));
- submit("TXMNG00502");
- }
- }
- ]]>
- </script>
- </button>
- <button id="button15" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn5_letter2.gif" style="left:180px; top:54px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn5_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var btn = messageBox("저장하시겠습니까?", "Q");
- if (btn = "6") {
- model.makeValue("/root/send/reqdata/lnreqdeptlist", getGridUpdateData(grd_lnreqdeptlist));
- submit("TXMNG00502");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|