123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../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>
- <acntcdprntlist>
- <seq/>
- <acntcd/>
- <prntnm/>
- <calform/>
- <prntnm1/>
- <prntnm2/>
- <prntnm3/>
- <prntkind/>
- </acntcdprntlist>
- <R0022>53</R0022>
- </main>
- <send>
- <prntkind/>
- <prntseq/>
- <acntcdprntlist/>
- <prntseqnm/>
- </send>
- <hidden>
- <seqchk/>
- <seqcount/>
- </hidden>
- <init>
- <R0022list>
- <R0022>
- <cdnm/>
- <cdid/>
- </R0022>
- </R0022list>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/send/prntseq","1");
- model.removenode( "/root/main/acntcdprntlist");
-
- //콩통코드 자료
- // zbcfGetCodeList(new Array("R0022"), new Array("/root/init/R0022list"));
-
- misfComboComCdList("R0022", cmb_prntkind);
- //cmb_prntkind.select(0);
- //model.refresh();
-
- misfMsterDetailSet(grd_acntcdprntlist, null, "TRRBC00701", "Y");
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //조회
- function fGetAactcdprtlist()
- {
- model.setValue( "/root/send/prntkind", cmb_prntkind.value);
-
- if(model.getValue("/root/send/prntseq") == "1")
- {
- model.setValue("/root/send/prntseqnm", "seq");
- }
- else
- {
- model.setValue("/root/send/prntseqnm","acntcd");
- }
-
- misfMsterDetailRetrieve(); // submit("TRRBC00701");
- }
-
- //정렬 순서로 sort함.
- function fGetSortSeq()
- {
- var num = grd_acntcdprntlist.rows- 1;
- if(rdo_seq.value == 1)
- {
- grd_acntcdprntlist.sort(1, 2, num, 2) = "asc";
- }
- else
- {
- grd_acntcdprntlist.sort(1, 3, num, 3) = "asc";
- }
- model.refresh();
- }
-
- //출력물순서 저장
- function fInsAactcdprtlist()
- {
- var updtdata = getGridUpdateData(grd_acntcdprntlist);
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- checkKeyColumn( "grd_acntcdprntlist" );
-
- //중복체크에 대한 부부이 빠져있음.
- model.setValue("/root/send/acntcdprntlist",grd_acntcdprntlist.getUpdateData());
-
- rtn = messageBox("", "Q002");
-
- if(rtn != "6" ) return false;
-
- // if(submit("TXRBC00701"))
- // {
- // grd_acntcdprntlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- // fGetAactcdprtlist();
- // }
-
- misfSave("TXRBC00701");
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
- <submission id="TRRBC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntcdprntlist"/>
- <submission id="TXRBC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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:293px; 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_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fGetAactcdprtlist();
-
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:104px; height:17px; ">출력물 종류 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_prntkind" ref="/root/main/R0022" class="combo_s_essential" appearance="minimal" style="left:125px; top:8px; width:140; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/R0022list/R0022">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:330px; top:9px; width:104px; height:17px; ">정 렬 순 서 :</caption>
- <select1 id="rdo_seq" ref="/root/send/prntseq" class="radio_search" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:440px; top:8px; width:190px; height:20px; vertical-align:middle; border-style:none; ">
- <choices>
- <item>
- <label>출력순서</label>
- <value>1</value>
- </item>
- <item>
- <label>계정코드</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetSortSeq();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="button18" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_acntcdprntlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfGridIUD(grd_acntcdprntlist, "A");
- grd_acntcdprntlist.valueMatrix(grd_acntcdprntlist.rows-1, grd_acntcdprntlist.colRef("prntkind")) = cmb_prntkind.value;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_acntcdprntlist" nodeset="/root/main/acntcdprntlist" caption="출력순서^계정코드^출력명^계산식^기타1^기타2^기타3^출력물 종류" colsep="^" colwidth="89, 103, 180, 253, 167, 167, 167, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:70px; width:1194px; height:663px; ">
- <col ref="seq" type="input" maxlength="4" _key="true" style="text-align:center; "/>
- <col ref="acntcd" type="inputbutton" maxlength="8"/>
- <col ref="prntnm" type="input" maxlength="20"/>
- <col ref="calform" type="input" maxlength="50"/>
- <col ref="prntnm1" type="input" maxlength="20"/>
- <col ref="prntnm2" type="input" maxlength="20"/>
- <col ref="prntnm3" type="input" maxlength="20"/>
- <col ref="prntkind" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- misfOpenPopUpList("05", grd_acntcdprntlist, "", "acntcd,prntnm");
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- if(grd_acntcdprntlist.col == grd_acntcdprntlist.colRef("acntcd"))
- {
- misfValidationCheck("05", "", "acntcd,prntnm");
- misfCheckDupData(grd_acntcdprntlist, grd_acntcdprntlist.colRef("acntcd"))
- model.refresh();
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="button3" class="btn2_letter2" style="left:1040px; top:50px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfSaveExcel(grd_acntcdprntlist);
-
- ]]>
- </script>
- </button>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">출력 목록</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="button39" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fInsAactcdprtlist();
-
- ]]>
- </script>
- </button>
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button23" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|