123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <cond>
- <bugtym/>
- <copybugtym/>
- <centcd/>
- <selcentcd/>
- <srchflag/>
- </cond>
- <grddata>
- <preearnlist>
- <status/>
- <bugtym/>
- <orddeptcd/>
- <grupgb/>
- <dispseq/>
- <inpgoal/>
- <outgoal/>
- <centcd/>
- </preearnlist>
- </grddata>
- <init>
- <orddeptlist/>
- <centlist/>
- </init>
- <tmp>
- <preearnlist>
- <centcd/>
- <orddeptcd/>
- <flag/>
- </preearnlist>
- </tmp>
- <orddept/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRSTP01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init"/>
- <submission id="TXSTP00900" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/grddata/preearnlist" resultref="/root/grddata"/>
- <submission id="TRSTP01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/grddata"/>
- <submission id="TXSTP00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond"/>
- <submission id="TRSTP01703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/init"/>
- <submission id="TRSTP01704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/tmp"/>
- </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">
- <![CDATA[
- function fInit(){
- model.setValue("/root/cond/bugtym", getCurrentDate().substr(0, 6));
- if(getUserInfo("dutplceinstcd") == "031"){
- if(submit("TRSTP01701")){
- model.removeNodeset("/root/grddata");
- model.refresh();
- group2.visible = false;
- }
- }else if(getUserInfo("dutplceinstcd") == "032"){
- if(submit("TRSTP01703")){
- model.removeNodeset("/root/grddata");
- model.refresh();
- //grd_earnpre.colAttribute(grd_earnpre.colRef("orddeptcd"), "disabled") = "true";
- group2.visible = false;
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="background-color:transparent; border-color:transparent; margin-left:8; margin-top:0; margin-right:0; margin-bottom:0; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:350px; top:5px; width:445px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:330px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:235px; y1:12px; x2:235px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption21" class="search_name" style="left:16px; top:14px; width:125px; height:17px; ">조회년월(from) :</caption>
- <input id="ipt_srchdd" ref="/root/cond/bugtym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:145px; top:13px; width:70px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/cond/copybugtym" class="input_search" navindex="10" inputtype="date" format="yyyy-mm" style="left:485px; top:13px; width:70px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:255px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/cond/srchflag", "from");
- if(submit("TRSTP01702")){
- model.refresh();
- for(var rowIdx = 1; rowIdx < grd_earnpre.rows; rowIdx++){
- grd_earnpre.cellattribute("disabled", rowIdx, grd_earnpre.colRef("centcd"), rowIdx, grd_earnpre.colRef("orddeptcd")) = "true";
- }
- }
- ]]>
- </script>
- </button>
- <group id="group1" visibility="visible" scroll="auto" style="left:0px; top:45px; width:1195px; height:720px; border-style:none; ">
- <caption id="caption1" class="tit_2" style="left:0px; top:5px; width:105px; height:13px; ">
- <![CDATA[수익예산등록]]>
- </caption>
- <button id="button1" class="btn2_letter3" navindex="5" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1087px; top:0px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_earnpre.addRow();
-
- model.setValue(grd_earnpre.attribute("nodeset") + "[" + grd_earnpre.row + "]/bugtym", model.getValue("/root/cond/bugtym"));
- model.setValue(grd_earnpre.attribute("nodeset") + "[" + grd_earnpre.row + "]/status", "A");
-
- if(getUserInfo("dutplceinstcd") == "032"){
- grd_earnpre.cellattribute("disabled", grd_earnpre.row, grd_earnpre.colRef("orddeptcd")) = "false";
- grd_earnpre.cellattribute("disabled", grd_earnpre.row, grd_earnpre.colRef("centcd")) = "false";
- }
-
- grd_earnpre.refresh();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1195px; y2:20px; "/>
- <datagrid id="grd_earnpre" nodeset="/root/grddata/preearnlist" caption="status^예산년월^구분^센터^진료과^출력순서^입원목표^외래목표" colsep="^" colwidth="0, 60, 60, 120, 140, 60, 120, 120" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="listbox" style="left:0px; top:25px; width:1195px; height:665px; ">
- <col ref="status" visibility="hidden"/>
- <col ref="bugtym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="grupgb" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>내과계</label>
- <value>10</value>
- </item>
- <item>
- <label>외과계</label>
- <value>20</value>
- </item>
- <item>
- <label>기타</label>
- <value>30</value>
- </item>
- <item>
- <label>치과</label>
- <value>40</value>
- </item>
- </choices>
- </col>
- <col disabled="false" ref="centcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/centlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="false" ref="dispseq" type="input" visibility="hidden" maxlength="3"/>
- <col disabled="false" ref="inpgoal" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <col disabled="false" ref="outgoal" type="input" format="(-)#,###" style="text-align:right; padding-right:2; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var status = model.getValue(grd_earnpre.nodeset + "[" + grd_earnpre.row + "]/status" );
- if(status == "A"){
-
- }else if(status == "S"){
- model.setValue(grd_earnpre.nodeset + "[" + grd_earnpre.row + "]/status", "U");
- }else if(status == "D"){
-
- }
-
- //칠곡병원 센터 하위 부서 코드 조회
- if(getUserInfo("dutplceinstcd") == "032"){
- if(grd_earnpre.col == grd_earnpre.colRef("centcd")){
- model.setValue("/root/cond/centcd", model.getValue(grd_earnpre.nodeset + "[" + grd_earnpre.row + "]/centcd"));
- model.setValue(grd_earnpre.nodeset + "[" + grd_earnpre.row + "]/orddeptcd", "");
- model.removeNodeset("/root/tmp/orddeptlist");
- if(submit("TRSTP01704")){
- model.refresh();
- // group2.attribute("left") = event.clientX;
- // group2.attribute("top") = event.clientY;
- group2.visible = true;
- // group2.disabled = false;
- // group1.disabled = true;
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter3" navindex="6" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1142px; top:0px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowNumArr = new Array();
- if(grd_earnpre.selectedRows > 0){
- for(var rowidx = grd_earnpre.selectedRows; rowidx >=0 ; rowidx--){
- var status = model.getValue(grd_earnpre.nodeset + "[" + grd_earnpre.selectedRow(rowidx) + "]/status" );
- if(status == "S"){
- grd_earnpre.addStatus(grd_earnpre.selectedRow(rowidx), "delete");
- model.setValue(grd_earnpre.nodeset + "[" + grd_earnpre.selectedRow(rowidx) + "]/status", "D");
- }else if(status == "A"){
- rowNumArr[rowNumArr.length] = grd_earnpre.selectedRow(rowidx);
- }else if(status == "U"){
- grd_earnpre.removeStatus(grd_earnpre.selectedRow(rowidx), "update");
- grd_earnpre.addStatus(grd_earnpre.selectedRow(rowidx), "delete");
- model.setValue(grd_earnpre.nodeset + "[" + grd_earnpre.selectedRow(rowidx) + "]/status", "D");
- }
- }
-
- for(var idx=0; idx < rowNumArr.length; idx++){
- grd_earnpre.deleteRow(rowNumArr[idx], false);
- }
- grd_earnpre.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" navindex="26" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1139px; top:695px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TXSTP00900")){
- model.refresh();
- for (var rowIdx = 1; rowIdx < grd_earnpre.rows; rowIdx++) {
- grd_earnpre.cellattribute("disabled", rowIdx, grd_earnpre.colRef("centcd"), rowIdx, grd_earnpre.colRef("orddeptcd")) = "true";
- }
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter4" navindex="20" disable.background-image="../../../com/commonweb/images/dis_btn2_letter3.gif" style="left:1021px; top:0px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var today = model.getValue("/root/cond/bugtym");
- var fileName = window.fileDialog("save", ",", false, "수익예산_"+today, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_earnpre.saveExcel(fileName);
- ]]>
- </script>
- </button>
- </group>
- <button id="button6" class="btn5_letter8" navindex="11" disable.background-image="../../../com/commonweb/images/dis_btn3_letter3.gif" style="left:665px; top:13px; width:108px; height:19px; background-image:../../../com/commonweb/images/btn2_letter3.gif; ">
- <caption>월복사(from-to)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/cond/copybugtym").length < 1) {
- messageBox("복사년월을 선택하십시오.", "E999");
- return;
- }
-
- if(submit("TXSTP00901")){
- messageBox("복사가 완료되었습니다.", "I999");
- }
-
- model.setValue("/root/cond/srchflag", "to");
- if(submit("TRSTP01702")){
- model.refresh();
- for(var rowIdx = 1; rowIdx < grd_earnpre.rows; rowIdx++){
- grd_earnpre.cellattribute("disabled", rowIdx, grd_earnpre.colRef("centcd"), rowIdx, grd_earnpre.colRef("orddeptcd")) = "true";
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:370px; top:14px; width:110px; height:17px; ">복사년월(to) :</caption>
- <group id="group2" visibility="hidden" style="left:380px; top:150px; width:302px; height:200px; border-style:solid; ">
- <caption id="caption2" class="tit_2" style="left:0px; top:3px; width:105px; height:13px; ">진료과 조회</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:300px; y2:20px; "/>
- <button id="btn_cnfm" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:215px; top:175px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rowIdxArr = new Array();
- for(var idx=0; idx < grd_orddept.rows; idx++){
- var flag = model.getValue(grd_orddept.nodeset + "[" + idx + "]/flag")
- if(flag == "true" ){
- rowIdxArr[rowIdxArr.length] = idx;
- // copyNodeListType("/root/grddata", grd_orddept.nodeset + "[" + idx + "]", "after");
- // alert("11");
- }
- }
- for(var idx = 0; idx < rowIdxArr.length; idx++){
- if(idx == 0){
- model.setValue(grd_earnpre.nodeset + "[" + grd_earnpre.row + "]/orddeptcd", model.getValue(grd_orddept.nodeset + "[" + rowIdxArr[idx] + "]/orddeptcd"));
- }else{
- grd_earnpre.insertRow(grd_earnpre.rows-1, "below", false, false);
- // alert(grd_earnpre.rows);
- var insIdx = parseInt(grd_earnpre.rows) -1;
- grd_earnpre.refresh();
- model.setValue(grd_earnpre.nodeset + "[" + insIdx + "]/status", "A");
- model.setValue(grd_earnpre.nodeset + "[" + insIdx + "]/bugtym", model.getValue("/root/cond/bugtym"));
- model.setValue(grd_earnpre.nodeset + "[" + insIdx + "]/centcd", model.getValue(grd_orddept.nodeset + "[" + rowIdxArr[idx] + "]/centcd"));
- model.setValue(grd_earnpre.nodeset + "[" + insIdx + "]/orddeptcd", model.getValue(grd_orddept.nodeset + "[" + rowIdxArr[idx] + "]/orddeptcd"));
- }
- }
- group2.visible = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter2" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:258px; top:175px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group2.visible = false;
- group1.disabled = false;
- ]]>
- </script>
- </button>
- <datagrid id="grd_orddept" nodeset="/root/tmp/preearnlist" caption="^센터^진료과" colsep="^" colwidth="23, 120, 140" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:300px; height:148px; ">
- <col ref="flag" type="checkbox"/>
- <col disabled="true" ref="centcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/centlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- </datagrid>
- </group>
- <line id="line2" class="line_4" style="x1:575px; y1:12px; x2:575px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button7" class="btn1_letter2" navindex="2" style="left:595px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/cond/copybugtym").length < 1) {
- messageBox("복사년월을 선택하십시오.", "E999");
- return;
- }
-
- model.setValue("/root/cond/srchflag", "to");
- if(submit("TRSTP01702")){
- model.refresh();
- for(var rowIdx = 1; rowIdx < grd_earnpre.rows; rowIdx++){
- grd_earnpre.cellattribute("disabled", rowIdx, grd_earnpre.colRef("centcd"), rowIdx, grd_earnpre.colRef("orddeptcd")) = "true";
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|