123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <?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>
- <radhclos>
- <closyn/>
- <closdd/>
- <lastupdtrid/>
- <lastupdtdt/>
- </radhclos>
- </main>
- <send>
- <closdd/>
- <save>
- <radhclos/>
- </save>
- <searchdt/>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자권한
- fCheckAuth();
-
- //현재 달
- var curdate = getCurrentDate().toDate().getDateFormat("YYYYMM");
- model.setValue("/root/send/closdd", curdate);
-
- //그리드 초기화
- misfGridInit(grd_radhcloslist);
-
-
- //데이타 셋
- misfMsterDetailSet(grd_radhcloslist,null, "TRRAD00402" ,"Y");
-
- fGetRadhclos();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_search.disabled = !checkAuth("R") ;
- btn_save.disabled = !checkAuth("X") ;
- }
-
- //전표마감 날짜 생성
- function setCalendar() {
-
- var dateObj = model.getValue("/root/send/closdd").toDate();
-
- dateObj.setDate(1);
-
- var strYYYY = dateObj.getDateFormat("YYYY");
- var strMM = dateObj.getDateFormat("MM");
- //현재 조회한 달의 마자막 날짜 가지고 옮
- var days =dateObj.getAddDate(1,"M").getMonthDay();
- for( var i = 1; i <= days; i++ ) {
-
- misfGridIUD(grd_radhcloslist,"A");
- //전표마감 날짜를 생성한다.
- grd_radhcloslist.valueMatrix(i,2) = new Date(strYYYY,strMM,i).getDateFormat("YYYYMMDD");
- }
-
- }
-
- //전표마감관리 리스트 조회
- function fGetRadhclos() {
-
- //리스트 조회
- misfMsterDetailRetrieve();
-
- // 전표마감을 한번도 하지 않았을 경우
- if(grd_radhcloslist.rows == 1) {
-
- setCalendar();
- }
-
- }
- //전표마감 저장
- function fSetRadhclos() {
-
- //저장할지의 여부 확인
- if(messageBox("","Q002") == 7) {
- return false;
- }
-
- //저장할 데이타를 가지고 node copy
- var sNoteList = getGridUpdateData(grd_radhcloslist);
- if(sNoteList == "") {
- messageBox("변경된 데이터가","I004");
- return false;
- }else if(sNoteList != "") {
- model.resetInstanceNode("/root/send/save");
- model.makeNode("/root/send/save/radhclos");
- model.setValue("/root/send/save/radhclos", grd_radhcloslist.getUpdateData());
- misfSave("TXRAD00402");
- misfMsterDetailRetrieve();
- }
-
- }
-
- ]]>
- </script>
- <submission id="TXRAD00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save"/>
- <submission id="TRRAD00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/closdd" resultref="/root/main/radhclos"/>
- </model>
- <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="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">품의마감관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetRadhclos();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기준년도 :</caption>
- <input id="input_s_essential" ref="/root/send/closdd" class="input_s_essential" format="yyyy-mm" style="left:100; top:9; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetRadhclos();
- ]]>
- </script>
- </input>
- </group>
- <caption id="caption11" class="tit_2" style="left:10px; top:55px; width:117px; height:14px; ">품의마감</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
- <datagrid id="grd_radhcloslist" nodeset="/root/main/radhclos" caption="확인^마감일자^마감자^마감작업일시" colsep="^" colwidth="115, 150, 150, 159" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:75px; width:620px; height:660px; ">
- <col checkvalue="Y,N" ref="closyn" type="checkbox"/>
- <col ref="closdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </datagrid>
- <button id="btn_cancel" class="btn2_letter4" style="left:183px; top:49px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_radhcloslist.nodeset).length ; i++)
- {
- model.setValue(grd_radhcloslist.nodeset + "[" + i + "]/closyn", "N");
- grd_radhcloslist.addStatus(i, "update");
- }
- ]]>
- </script>
- </button>
- <button id="btn_all" class="btn2_letter4" style="left:113px; top:49px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i <= model.instance1.selectNodes(grd_radhcloslist.nodeset).length ; i++)
- {
- model.setValue(grd_radhcloslist.nodeset + "[" + i + "]/closyn", "Y");
- grd_radhcloslist.addStatus(i, "update");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRadhclos();
- ]]>
- </script>
- </button>
- <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|