123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?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>연구비비목코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <iteminfo>
- <itemlist>
- <itemexpendcd/>
- <itemexpendnm/>
- <cmt/>
- </itemlist>
- </iteminfo>
- <itemdetlinfo>
- <itemdetllist>
- <itemexpendcd/>
- <detlitemexpendcd/>
- <detlitemexpendnm/>
- <expendflag/>
- <cmt/>
- </itemdetllist>
- </itemdetlinfo>
- </main>
- <send>
- <data>
- <itemexpendcd/>
- </data>
- </send>
- <senddata>
- <execdata>
- <itemlist/>
- <itemdetllist/>
- </execdata>
- </senddata>
- <init>
- <cmb_info>
- <inititem>
- <itemexpendcd/>
- <itemexpendnm/>
- </inititem>
- </cmb_info>
- </init>
- <hidden>
- <source>
- <seqno/>
- </source>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.toggle("case1");
- button1.selected = true;
- button2.selected = false;
- submit("TRICU00903");
- readfunc();
- model.refresh();
- ]]>
- </script>
- <submission id="TRICU00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/iteminfo"/>
- <submission id="TRICU00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemdetlinfo"/>
- <submission id="TRICU00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TXICU00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata/itemlist" replace="instance" resultref="/root/hidden/source"/>
- <submission id="TXICU00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata/itemdetllist" replace="instance" resultref="/root/hidden/source"/>
- </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 readfunc() {
- model.removeNodeset("/root/main/iteminfo/itemlist");
- submit("TRICU00901");
- }
- function readfunc1() {
- model.removeNodeset("/root/main/itemdetlinfo/itemdetllist");
- submit("TRICU00902");
- }
- function Execdata(){
- for (var i = 1; i < grditem.rows; i ++){
- if (model.getValue("/root/main/iteminfo/itemlist[" + i + "]/itemexpendcd") == ""){
- messageBox("비목코드는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/iteminfo/itemlist[" + i + "]/itemexpendnm") == ""){
- messageBox("비목코드명은 필수 입력항목입니다.", "E999", "");
- return;
- }
- }
- var update = getGridUpdateData(grditem);
- model.setValue("/root/senddata/execdata/itemlist", update);
- if (submit("TXICU00901")){
- readfunc();
- }
- }
- function Execdata1(){
- for (var i = 1; i < grditemdetl.rows; i ++){
- if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/itemexpendcd") == ""){
- messageBox("비목코드는 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/detlitemexpendcd") == ""){
- messageBox("세부비목코드는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/detlitemexpendnm") == ""){
- messageBox("세부비목코드명은 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/expendflag") == ""){
- messageBox("세부비목구분은 필수 선택항목입니다.", "E999", "");
- return;
- }
- }
- var update = getGridUpdateData(grditemdetl);
- model.setValue("/root/senddata/execdata/itemdetllist", update);
- if (submit("TXICU00902")){
- readfunc1();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,781;1,1192;">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
- <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">비목코드 관리</caption>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:1194px; y2:87px; "/>
- <group id="group3" style="left:0px; top:20px; width:1194px; height:37px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption73" class="search_name" visibility="hidden" style="left:30px; top:8px; width:86px; height:17px; ">비목코드 :</caption>
- <button id="button6" class="btn1_letter2" navindex="6" style="left:1129px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (button1.selected == true){
- readfunc();
- }else{
- readfunc1();
- }
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/data/itemexpendcd" visibility="hidden" appearance="minimal" style="left:120px; top:7px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/inititem">
- <label ref="itemexpendnm"/>
- <value ref="itemexpendcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- readfunc1();
- ]]>
- </script>
- </select1>
- </group>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:0px; top:65px; width:80px; height:22px; ">
- <caption>비목코드</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- caption73.visible = false;
- combo1.visible = false;
- button1.selected = true;
- button2.selected = false;
- readfunc();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:90px; width:1192px; height:691px; ">
- <case id="case1">
- <datagrid id="grditem" nodeset="/root/main/iteminfo/itemlist" caption="비목코드^비목코드명^비고" colsep="^" colwidth="100, 439, 609" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1189px; height:625px; ">
- <col disabled="true" ref="itemexpendcd" type="input" format="999" style="text-align:center; "/>
- <col ref="itemexpendnm" type="input" style="text-align:left; "/>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grditem.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn2_letter3" navindex="21" style="left:1016px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grditem.addRow();
- var irow = grditem.row;
- grditem.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" navindex="22" style="left:1073px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grditem.deleteItem(grditem.row);
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter3" navindex="30" style="left:1133px; top:5px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- Execdata();
- ]]>
- </script>
- </button>
- </case>
- <case id="case2" selected="true">
- <button id="button5" class="btn2_letter3" navindex="21" style="left:1072px; top:9px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grditemdetl.addRow();
- var irow = grditemdetl.row;
- if (model.getValue("/root/send/data/itemexpendcd") != ""){
- model.setValue("/root/main/itemdetlinfo/itemdetllist[" + irow + "]/itemexpendcd", model.getValue("/root/send/data/itemexpendcd"));
- }
- grditemdetl.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" navindex="22" style="left:1129px; top:9px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grditemdetl.deleteItem(grditemdetl.row);
- ]]>
- </script>
- </button>
- <datagrid id="grditemdetl" nodeset="/root/main/itemdetlinfo/itemdetllist" caption="비목코드^세부비목코드^세부비목코드명^세부비목구분^비고" colsep="^" colwidth="135, 113, 326, 119, 458" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1189px; height:625px; ">
- <col disabled="true" ref="itemexpendcd" type="combo" format="999" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/inititem">
- <label ref="itemexpendnm"/>
- <value ref="itemexpendcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="detlitemexpendcd" type="input" format="99999" style="text-align:center; "/>
- <col ref="detlitemexpendnm" type="input" style="text-align:left; "/>
- <col ref="expendflag" type="combo" style="text-align:left; ">
- <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>6</value>
- </item>
- <item>
- <label>문헌구입비</label>
- <value>7</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="cmt" type="input" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grditemdetl.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button8" class="btn5_letter3" navindex="30" style="left:1125px; top:660px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- Execdata1();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="button2" class="btn_sw" group="tab" selected="true" style="left:81px; top:65px; width:95px; height:22px; ">
- <caption>비목상세코드</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRICU00903");
- caption73.visible = true;
- combo1.visible = true;
- button1.selected = false;
- button2.selected = true;
- readfunc1();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|