123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <?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>
- <condition>
- <notecd/>
- <notecdnm/>
- </condition>
- <notelist>
- <notecd/>
- <notecdnm/>
- <mngtkind/>
- <inptkind/>
- <frmt/>
- <popwnd/>
- </notelist>
- </main>
- <send>
- <notelist/>
- </send>
- <init>
- <helppopup>
- <popup>
- <cd>15</cd>
- <nm>계좌번호</nm>
- </popup>
- <popup>
- <cd>05</cd>
- <nm>대체계정</nm>
- </popup>
- <popup>
- <cd>50</cd>
- <nm>차입금관리</nm>
- </popup>
- <popup>
- <cd>51</cd>
- <nm>유가증권관리</nm>
- </popup>
- <popup>
- <cd>02</cd>
- <nm>부서코드</nm>
- </popup>
- <popup>
- <cd>01</cd>
- <nm>사번</nm>
- </popup>
- <popup>
- <cd>14</cd>
- <nm>거래처</nm>
- </popup>
- <popup>
- <cd>36</cd>
- <nm>부서코드</nm>
- </popup>
- </helppopup>
- </init>
- <temp/>
- </root>
- </instance>
- <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/RAC001.js"/>
- <submission id="TRRAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/notelist"/>
- <submission id="TXRAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fCheckAuth();//화면 권한체크
- fOpenForm();
- //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
- //공통함수 호출(help명)
- //misfGridComboComCdList("R0002", grd_notelist, "popwnd");
- misfMsterDetailSet(grd_notelist, null, "TRRAC00301", "Y");
- fGetNoteList();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- btn_prt.disabled = !checkAuth("P") ;
- }
-
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fOpenForm() {
- model.removenode("/root/main/notelist");
- model.refresh();
- }
-
- //========================================================================================
- //기재사항코드 조회
- //========================================================================================
- function fGetNoteList() {
- model.removenode("/root/main/notelist");//조회시 기존 데이터 삭제
- model.copyNode("/root/send", "/root/main/condition");
- // submit("TRRAC00301");
- misfMsterDetailRetrieve();
- misfSetReadOnlyCol(grd_notelist, "notecd");
- model.refresh();
- }
-
- //========================================================================================
- // 저장버튼 클릭시 저장 수행 함수
- //========================================================================================
- function fClickSaveBtn()
- {
-
- if(!fIsValidForSave())//저장전 유효성 검사
- return;
-
- model.resetInstanceNode("/root/send");
- model.makeNode("/root/send/notelist");
- model.setValue("/root/send/notelist", grd_notelist.getUpdateData());
- misfSave("TXRAC00301");
-
- /* model.resetInstanceNode("/root/send");
- model.makeNode("/root/send/notelist");
- model.setValue("/root/send/notelist", grd_notelist.getUpdateData());
- if(submit("TXRAC00301"))
- {
- grd_notelist.clearStatus();
- }
- */
- }
-
- //========================================================================================
- // 행추가버튼 클릭시
- //========================================================================================
- function fGrdAdd(pGrid) {
-
- pGrid.addRow();
- pGrid.editCell();
-
- model.refresh();
- }
-
- //========================================================================================
- // 행삭제버튼 클릭시
- //========================================================================================
- function fGrdDel(pGrid) {
- var cur_row = pGrid.row;
- if(cur_row > -1) {
- deleteSelectedRows(pGrid, false); //true : 바로삭제, false : 상태만 삭제로 변경
- pGrid.refresh();
- }else if(cur_row == -1) {
- messageBox("삭제하려는 행을", "C002");
- }
- }
-
- //========================================================================================
- //저장전 유효성 검사
- //========================================================================================
- function fIsValidForSave() {
- //필수 입력 항목 체크(공통 ftHelper.js)
- /* if(!isRequiredControls("ipt_acntcdi", "ipt_acntnmi", "rdo_drcustflag", "rdo_crcustflag",
- "cmb_balflag", "rdo_acntuseyn", "com_acntflag", "com_acntclsflag")) {
- return false;
- }
- */
- var sNoteList = getGridUpdateData(grd_notelist);
- if(sNoteList == "") {
- messageBox("변경된 데이터가","I004");
- return false;
- }else if(sNoteList != "") {
- return true;
- }
- }
-
- //========================================================================================
- //엑셀입력(excel file을 그리드에 입력)
- //========================================================================================
- function fInputExcel(pGrid) {
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != "") {
- pGrid.loadExcel(fileName, 1, true);
- pGrid.deleteRow(1);
-
- for(i = 1; i < pGrid.rows; i++) {
- pGrid.rowStatus(i) = 1;
- }
- pGrid.refresh();
- }
- }
- ]]>
- </script>
- </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" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; 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; "/>
- <button id="btn_search" 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[
- fGetNoteList();
- ]]>
- </script>
- </button>
- <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("ipt_notecdnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfNoteValidCheck("notecd,notecdnm")
- ]]>
- </script>
- </input>
- <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리항목코드 목록</caption>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- misfGridIUD(grd_notelist, "A");
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- misfGridIUD(grd_notelist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_excadd" class="btn2_letter4" style="left:1018px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInputExcel(grd_notelist);
- ]]>
- </script>
- </button>
- <datagrid id="grd_notelist" nodeset="/root/main/notelist" caption="기재코드^기재사항코드명^관리형태^입력유형^형식^HELP명^Return List" colsep="^" colwidth="160, 230, 90, 80, 146, 132, 320" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:1194px; height:663px; ">
- <col ref="notecd" type="input" maxlength="3" style="text-align:left; "/>
- <col ref="notecdnm" type="input"/>
- <col ref="mngtkind" type="combo">
- <choices>
- <item>
- <label>코드</label>
- <value>1</value>
- </item>
- <item>
- <label>내역</label>
- <value>2</value>
- </item>
- <item>
- <label>콤보</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="inptkind" type="combo">
- <choices>
- <item>
- <label>문자</label>
- <value>C</value>
- </item>
- <item>
- <label>숫자</label>
- <value>N</value>
- </item>
- <item>
- <label>날짜</label>
- <value>D</value>
- </item>
- <item>
- <label>백분율</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <col ref="frmt" type="input"/>
- <col id="popwnd" ref="popwnd" type="combo">
- <choices>
- <itemset nodeset="/root/init/helppopup/popup">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="returninstancelist" type="input"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_notelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter4" style="left:950px; top:50px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀출력</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInputExcel(misfSaveExcel);
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fClickSaveBtn();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|