123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- <?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>
- <returnlist>
- <newunslno/>
- </returnlist>
- </main>
- <send>
- <instcd/>
- <oldunsldd/>
- <oldunslno/>
- <newunsldd/>
- </send>
- <hidden>
- </hidden>
- <init>
- </init>
- <temp>
- </temp>
- <target/>
- </root>
- </instance>
- <submission id="TXRAD00161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
- <submission id="TXRAD00162" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/returnlist"/>
- </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="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //초기화
- //========================================================================================
- function fInitialize()
- {
- var instcd = model.getValue("/root/target/copyshiftslipinfo/instcd");
- var oldunsldd = model.getValue("/root/target/copyshiftslipinfo/oldunsldd");
- var oldunslno = model.getValue("/root/target/copyshiftslipinfo/oldunslno");
- var jobflag = model.getValue("/root/target/copyshiftslipinfo/jobflag");
-
- //alert("instcd : " + instcd + " oldunsldd : " + oldunsldd + " oldunslno : " + oldunslno + " jobflag : " + jobflag);
-
- if(instcd == "" || oldunsldd == "" || oldunslno == "" || jobflag == "")
- {
- messageBox("잘못된 정보입니다.\n시스템 담당자에게 문의하세요","I000");
- btn_close.dispatch("DOMActivate");
- }
-
- if(jobflag == 'copy')
- {
- btn_copyslip.visible = true;
- btn_shiftslip.visible = false;
- cap_title.value = "전표 복사";
- cap_title.refresh();
- cap_slipcopy_1.visible = true;
- cap_slipcopy_2.visible = true;
- cap_slipcopy_3.visible = true;
- cap_slipcopy_4.visible = true;
- cap_slipshift_1.visible = false;
- cap_slipshift_2.visible = false;
- cap_slipshift_3.visible = false;
- cap_slipshift_4.visible = false;
- }
- else if(jobflag == 'shift')
- {
- btn_copyslip.visible = false;
- btn_shiftslip.visible = true;
- cap_title.value = "전표 날짜 변겅";
- cap_title.refresh();
- cap_slipcopy_1.visible = false;
- cap_slipcopy_2.visible = false;
- cap_slipcopy_3.visible = false;
- cap_slipcopy_4.visible = false;
- cap_slipshift_1.visible = true;
- cap_slipshift_2.visible = true;
- cap_slipshift_3.visible = true;
- cap_slipshift_4.visible = true;
- }
-
- model.setValue("/root/send/instcd", instcd);
- model.setValue("/root/send/oldunsldd", oldunsldd);
- model.setValue("/root/send/oldunslno", oldunslno);
- model.setValue("/root/send/newunsldd", oldunsldd);
- ipt_newunsldd.refresh();
-
- var receiveref = model.getValue("/root/target/receiveref");
- if(checkOpener()) opener.model.setValue(receiveref + "/newunslno", "0000");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="565" pageheight="300" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:544; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:190px; height:14px; ">전표 복사 / 전표 날짜 변경</caption>
- </group>
- <group id="group2" style="left:0px; top:12px; width:543px; height:250px; "/>
- <group id="grp_btn" scroll="auto" style="left:0px; top:266px; width:544px; height:27px; ">
- <button id="btn_shiftslip" class="btn4_letter10" visibility="hidden" style="left:332px; top:2px; width:152px; height:22px; color:#ff0000; ">
- <caption>전표 날짜 변경 실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(ipt_newunsldd.value.length != 8) //수정 필요
- {
- messageBox("날짜가 정확하지 ","E007");
- return;
- }
-
- ret = messageBox("날짜를 변경 하시겠습니까?","Q999");
- if (ret == "6")
- {
- if (submit("TXRAD00162"))
- {
- messageBox("날짜 변경이 완료되었습니다. \n 날짜 변경된 전표를 확인해 보시기 바랍니다.","I000");
-
- var receiveref = model.getValue("/root/target/receiveref");
-
- if(checkOpener())
- {
- opener.model.setValue(receiveref + "/newunslno", model.getValue("/root/main/returnlist/newunslno"));
- opener.model.setValue(receiveref + "/newunsldd", model.getValue("/root/send/newunsldd"));
- }
- }
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:488px; top:2; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" visibility="hidden" style="x1:0px; y1:0px; x2:543px; y2:0px; "/>
- <button id="btn_copyslip" class="btn4_letter7" visibility="hidden" style="left:368px; top:2px; width:116px; height:22px; color:#ff0000; ">
- <caption>전표 복사 실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(ipt_newunsldd.value.length != 8) //수정 필요
- {
- messageBox("날짜가 정확하지 ","E007");
- return;
- }
-
- ret = messageBox("전표를 복사 하시겠습니까?","Q999");
- if (ret == "6")
- {
- if (submit("TXRAD00161"))
- {
- messageBox("복사가 완료되었습니다. \n 복사된 전표를 확인해 보시기 바랍니다.","I000");
-
- var receiveref = model.getValue("/root/target/receiveref");
-
- if(checkOpener())
- {
- opener.model.setValue(receiveref + "/newunslno", model.getValue("/root/main/returnlist/newunslno"));
- opener.model.setValue(receiveref + "/newunsldd", model.getValue("/root/send/newunsldd"));
- }
-
- }
- window.close();
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" style="left:0px; top:12px; width:543px; height:250px; "/>
- <group id="group6" style="left:0px; top:12px; width:543px; height:250px; ">
- <input id="ipt_newunsldd" ref="/root/send/newunsldd" class="input_s_essential" inputtype="date" style="left:120px; top:47px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:5px; top:45px; width:110px; height:23px; ">적용 날짜</caption>
- </group>
- <caption id="cap_slipcopy_1" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">전 표 복 사</caption>
- <caption id="cap_slipcopy_2" class="cell_1" visibility="hidden" style="left:5px; top:85px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">
- <![CDATA[1. 전송, 승인요청, 승인 상태의 모든 전표는 복사가 가능합니다.
- 복사된 전표는 미전송 상태가 됩니다.]]>
- </caption>
- <caption id="cap_slipcopy_3" class="cell_1" visibility="hidden" style="left:5px; top:140px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">2. 각종 증빙과 접대비 내역, 이체계좌등록 내역 등의 모든 정보가 복사 됩니다.</caption>
- <caption id="cap_slipcopy_4" class="cell_1" visibility="hidden" style="left:5px; top:195px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">3. 전표 번호는 적용 날짜에서 가장 높은 번호로 만들어집니다.</caption>
- <caption id="cap_slipshift_1" class="cell_1" visibility="hidden" style="left:5px; top:20px; width:530px; height:30px; font-size:12pt; font-weight:bold; text-align:center; vertical-align:middle; ">전 표 날 짜 변 경</caption>
- <caption id="cap_slipshift_2" class="cell_1" visibility="hidden" style="left:5px; top:85px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">1. 전송된 전표는 날짜를 변경 할 수 없습니다.</caption>
- <caption id="cap_slipshift_3" class="cell_1" visibility="hidden" style="left:5px; top:140px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">2. 각종 증빙과 접대비 내역, 이체계좌등록 내역 등의 모든 정보가 유지 됩니다.</caption>
- <caption id="cap_slipshift_4" class="cell_1" visibility="hidden" style="left:5px; top:195px; width:530px; height:48px; font-size:10pt; font-weight:normal; text-align:left; vertical-align:middle; ">3. 전표 번호는 적용 날짜에서 가장 높은 번호로 만들어집니다.</caption>
- </xhtml:body>
- </xhtml:html>
|