123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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>
- <deprcbaseinfo>
- <deprcbaselist/>
- </deprcbaseinfo>
- <deprcbasesubinfo>
- <deprcbasesublist/>
- </deprcbasesubinfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <goodflag/>
- <lrgcd/>
- </search>
- <subsearch>
- <instcd/>
- <goodflag/>
- <lrgcd/>
- <mdlcd/>
- </subsearch>
- <save>
- <deprcbaselist/>
- <deprcbasesublist/>
- </save>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRFC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/deprcbaseinfo"/>
- <submission id="TRRFC01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/subsearch" resultref="/root/main/list/deprcbasesubinfo"/>
- <submission id="TXRFC01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/deprcbaselist" resultref="/root/temp"/>
- <submission id="TXRFC01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/deprcbasesublist" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- model.setValue(cmb_goodflag.attribute("ref"), "GE");
- // misfComboComCdListMulti("Z0007,030R0006","cmb_instcd,grd_deprcbase.repaymthd");
- misfComboComCdList("030R0006",cmb_repaymthd);
- misfComboComCdListMulti("Z0007","cmb_instcd");
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd" , "전체", "", "above");
- model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbaselist");
- model.removeNodeset("/root/main/list/deprcbasesubinfo/deprcbasesublist");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- }
-
- function fItemAllChoice( vFlag ) {
- if (grd_deprcbase.rows - grd_deprcbase.fixedRows <= 0 ) {
- messageBox("선택할 데이터가","I004");
- return false;
- }
- for( cnt = grd_deprcbase.fixedRows; cnt < grd_deprcbase.rows ; cnt++ ) {
- grd_deprcbase.valueMatrix( cnt, grd_deprcbase.colRef("trschkyn") ) = vFlag;
- if (vFlag == "Y"){
- grd_deprcbase.rowStatus(cnt) = "1";
- }else{
- grd_deprcbase.rowStatus(cnt) = "0";
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body 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:230px; height:14px; ">감가상각 기준정보</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:17px; width:1195px; height:53px; vertical-align:top; ">
- <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line30" class="line_4" style="x1:1105px; y1:7px; x2:1105px; y2:33px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbaselist");
- model.removeNodeset("/root/main/list/deprcbaseinfo/deprcbasesublist");
-
- submit("TRRFC01001");
- for(var i=1;i<grd_deprcbase.rows;i++){
- var repaymthd = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd"));
- var cntsyearno = grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno"));
- if(repaymthd == 'S'|| cntsyearno == "-1"){
- grd_deprcbase.rowStyle(i,"data","background-color") = "#FFFF66";
- grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("repaymthd" )) = "";
- grd_deprcbase.valueMatrix(i,grd_deprcbase.colRef("cntsyearno")) = "";
- }else{
- grd_deprcbase.rowStyle(i,"data","background-color") = "white";
- }
- }
- model.refresh();
- grd_deprcbase.gridToInstance();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:206px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:424px; top:10px; width:196px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
- addComboItem( "cmb_lrgcd", "전체", "", "above");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:330px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:741px; top:10px; width:206px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:645px; top:10px; width:88px; height:17px; ">대 분 류 :</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:580px; y2:98px; "/>
- <datagrid id="grd_deprcbase" nodeset="/root/main/list/deprcbaseinfo/deprcbaselist" caption="기관코드^물품구분^대분류^대분류^상각방법^상각년수" colsep="^" colwidth="7, 9, 52, 240, 112, 88" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:105px; width:580px; height:615px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
- <col ref="lrgcd" style="text-align:center; "/>
- <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
- <col ref="repaymthd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.setValue("/root/send/subsearch/instcd" , model.getValue("/root/send/search/instcd"));
- model.setValue("/root/send/subsearch/goodflag", model.getValue("/root/send/search/goodflag"));
- model.setValue("/root/send/subsearch/lrgcd" , grd_deprcbase.valueMatrix(grd_deprcbase.row, grd_deprcbase.colRef("lrgcd")));
- submit("TRRFC01002");
- model.refresh();
- grd_deprcbasesub.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:144px; height:14px; ">대분류 감가상각 정보</caption>
- <button id="btn_save1" class="btn2_letter2" style="left:530px; top:75px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/save/deprcbaselist");
- model.removeNodeset("/root/send/save/deprcbasesublist");
-
- updtdata = getGridUpdateData(grd_deprcbase);
-
- if(updtdata == ""){
- messageBox("저장할 데이타가 ","E014");
- return false;
- }
- model.makeValue("/root/send/save/deprcbaselist", updtdata);
- if (submit("TXRFC01001")){
- messageBox("저장이","I002");
- }else{
- messageBox("저장","E009");
- return;
- }
- var focus = grd_deprcbase.row;
- btn_search.dispatch("DOMActivate");
- grd_deprcbase.row = focus;
- grd_deprcbase.dispatch("ondblclick");
- ]]>
- </script>
- </button>
- <select1 id="cmb_repaymthd" visibility="hidden" appearance="minimal" style="left:360px; top:75px; width:70px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_save2" class="btn2_letter2" style="left:1120px; top:75px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/save/deprcbaselist");
- model.removeNodeset("/root/send/save/deprcbasesublist");
- updtdata = getGridUpdateData(grd_deprcbasesub);
-
- if(updtdata == ""){
- messageBox("저장할 데이타가 ","E014");
- return false;
- }
- model.makeValue("/root/send/save/deprcbasesublist", updtdata);
- if (submit("TXRFC01002")){
- messageBox("저장이","I002");
- }else{
- messageBox("저장","E009");
- return;
- }
- model.removeNodeset("/root/main/list/deprcbasesubinfo/deprcbasesublist");
- var focus = grd_deprcbase.row;
- btn_search.dispatch("DOMActivate");
- grd_deprcbase.row = focus;
- grd_deprcbase.dispatch("ondblclick");
- // btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:590px; y1:98px; x2:1170px; y2:98px; "/>
- <datagrid id="grd_deprcbasesub" nodeset="/root/main/list/deprcbasesubinfo/deprcbasesublist" caption="기관코드^물품구분^대분류^중분류^중분류^상각방법^상각년수" colsep="^" colwidth="7, 9, 7, 52, 240, 112, 88" explorerbar="sortshow" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:590px; top:105px; width:580px; height:615px; font-weight:normal; text-align:center; ">
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="mdlcd" style="text-align:center; "/>
- <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
- <col ref="repaymthd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/cmb_repaymthd/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cntsyearno" type="input" style="text-align:right; padding-right:10; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:595px; top:79px; width:158px; height:14px; ">중분류 감가상각 정보</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|