123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>입고전표마감작업</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <usernm/>
- <userid/>
- <instcd/>
- <stocdeptcd/>
- <stocdeptnm/>
- <goodflag/>
- <stocym/>
- <reqdd/>
- </cond>
- </main>
- <init>
- <total>
- <amt/>
- <suplamt/>
- <valaddtax/>
- </total>
- </init>
- <send>
- </send>
- <hidden>
- <temp/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TXRST06801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inslip" resultref="/root/temp"/>
- <submission id="TXRST06802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inslip" resultref="/root/temp"/>
- <submission id="TRRST06801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/"/>
- <bind id="amt" ref="/root/init/total/amt" calculate="sum(/root/main/list/detailist/amt)" type="xsd:float"/>
- <bind id="suplamt" ref="/root/init/total/suplamt" calculate="sum(/root/main/list/detailist/suplamt)" type="xsd:float"/>
- <bind id="valaddtax" ref="/root/init/total/valaddtax" calculate="sum(/root/main/list/detailist/valaddtax)" type="xsd:float"/>
- </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/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue("/root/main/cond/userid", getUserInfo("userid"));
- model.setValue("/root/main/cond/usernm", getUserInfo("usernm"));
- var sDate = getCurrentDate();
- var cDate = sDate.substring(0, 6);
- model.setValue("/root/main/cond/stocym" , cDate);
- model.setValue("/root/main/cond/reqdd" , sDate);
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue("/root/main/cond/goodflag", "PH");
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1220;2,707;1,448;1,349;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:950px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line7" class="line_1" style="x1:0px; y1:114px; x2:950px; y2:114px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:380; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">입고전표마감</caption>
- </group>
- <button id="btn_gen" class="btn2_letter4" style="left:828px; top:94px; width:64px; height:19px; ">
- <caption>전표발행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- // model.setValue(ipt_defrayreqdd.attribute("ref"),model.getValue(ipt_slipdd.attribute("ref")));
-
- // if (model.getValue(ipt_defrayreqdd.attribute("ref")) == "") {
- // alert("출금요청일을 입력 하십시요!!" );
- // return;
- // }
-
- //
- var query014 = "N";
- var iPath = "/root/send/inslip/";
-
- var vdate = new Date();
- var HH = vdate.getHours();
- var MI = vdate.getMinutes();
- var SS = vdate.getSeconds();
- var vTime = HH +"" + MI +"" + SS;
-
- var vSlipDate = model.getValue("/root/main/cond/reqdd"); // 기표일자
- var stocym = model.getValue("/root/main/cond/stocym");
- var fromdd = stocym + "01";
- var todd = stocym + "31";
-
- var vBizpk = getUserInfo("dutplceinstcd") +"_" // 기관
- + vSlipDate +"_" // 기표일자
- + getCurrentDate()+ vTime +'_I_DRG'; // 작업일시
-
- var vSlipCmt = vSlipDate.substr(0,4) + "."
- + vSlipDate.substr(4,2) + "."
- + vSlipDate.substr(6,2) + " 월분 약품 구입대금지급"; // 대표적요
- if (getUserInfo("dutplceinstcd") =="014") {
- query014 = "Y";
- }
-
- model.makeValue(iPath + "instcd" , getUserInfo("dutplceinstcd") ); // 기관코드
- model.makeValue(iPath + "genrdd" , vSlipDate ); // 생성일자
- model.makeValue(iPath + "stocym" , stocym ); // 생성일자
- model.makeValue(iPath + "slipflag" , "6" ); // 전표구분 (1:일반전표, 2:입원수익전표 3:외래수익전표 4:건진수익전표 5:급여전표 6:물류입고전표 7:물류출고전표 8:감가상각전표)
- model.makeValue(iPath + "bizpk" , vBizpk ); // 업무별 Primary Key
- model.makeValue(iPath + "slipdeptcd" , getUserInfo("dutplcecd") ); // 구매부서
- model.makeValue(iPath + "unslwrit" , getUserInfo("userid" ) ); // 전표작성자
- model.makeValue(iPath + "defrayreqdd" , vSlipDate ); // 출금요청일
- model.makeValue(iPath + "slipcmt" , vSlipCmt ); // 전표대표적요
- model.makeValue(iPath + "usedd" , vSlipDate.substr(0,6)+"01" ); // 사용일자
- model.makeValue(iPath + "endmonth" , vSlipDate.substr(0,6) ); // 작업년월
- model.makeValue(iPath + "fromdd" , fromdd ); // 입고일자 FROM
- model.makeValue(iPath + "todd" , todd ); // 입고일자 TO
- model.makeValue(iPath + "frslipdd" , fromdd ); // 기표일자 FROM
- model.makeValue(iPath + "toslipdd" , todd ); // 기입고일자 TO
- model.makeValue(iPath + "frcalcdocudd" , fromdd ); // 계산서일자 FR
- model.makeValue(iPath + "tocalcdocudd" , todd ); // 계산서일자 TO
- model.makeValue(iPath + "frcalccnfmdd" , fromdd ); // 정산확정일자 FR
- model.makeValue(iPath + "tocalccnfmdd" , todd ); // 정산확정일자 TO
- model.makeValue(iPath + "slipinclusion" , "" ); // 기표대상 포함여부
- model.makeValue(iPath + "query014" , query014 );
- if (submit("TXRST06801") == true) {
- var slipno = model.getValue("/root/temp/insliplist/slipno");
- if (!isNull(slipno)) {
- messageBox("전표번호는 " + slipno + "입니다.", "I");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption61" class="tit_2" style="left:4px; top:99px; width:123px; height:13px; ">전표 분개 리스트</caption>
- <input id="ipt_stocym" ref="/root/main/cond/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:765px; top:25px; width:90px; height:19px; "/>
- <input id="input2" ref="/root/main/cond/reqdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:765px; top:50px; width:90px; height:19px; "/>
- <button id="button29" class="icon_search" style="left:195px; top:54px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "stocdeptcd,stocdeptnm";
- misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/main/cond/instcd" class="combo_essential" appearance="minimal" style="left:111px; top:25px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_goodflag" ref="/root/main/cond/goodflag" class="combo_essential" appearance="minimal" style="left:485px; top:25px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_deptnm" ref="/root/main/cond/stocdeptnm" class="input_default" appearance="input" style="left:214px; top:49px; width:162px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnm.value.length == 0)
- ipt_deptcd.value = "";
- else
- misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptcd" ref="/root/main/cond/stocdeptcd" class="input_default" appearance="input" style="left:111px; top:49px; width:79px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcd.value.length == 0)
- ipt_deptnm.value = "";
- else
- misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:15px; top:25px; width:76px; height:17px; ">기관코드</caption>
- <caption id="caption7" class="search_name" style="left:405px; top:25px; width:76px; height:17px; ">물품구분</caption>
- <caption id="caption9" class="search_name" style="left:15px; top:49px; width:76px; height:17px; ">작업부서</caption>
- <caption id="caption10" class="search_name" style="left:405px; top:50px; width:76px; height:17px; ">작업자</caption>
- <caption id="caption1" class="search_name" style="left:680px; top:25px; width:76px; height:17px; ">마감년월</caption>
- <caption id="caption2" class="search_name" style="left:680px; top:50px; width:76px; height:17px; ">기표일자</caption>
- <datagrid id="grd_autosliplist" nodeset="/root/main/list/detailist" caption="기관코드^주거래처^입고일^합계금액^공급가액^부가가치세^증빙적요^매입매출구분^과세구분" colsep="^" colwidth="0, 127, 100, 100, 100, 100, 237, 81, 72" explorerbar="move" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:120px; width:950px; height:588px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="rlanm" style="text-align:left; "/>
- <col ref="notefactspec1" format="yyyy-mm-dd" style="text-align:left; "/>
- <col ref="amt" format="(-)#,###" style="text-align:right; "/>
- <col ref="suplamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="valaddtax" format="(-)#,###" style="text-align:right; "/>
- <col ref="mainrec" style="text-align:left; "/>
- <col disabled="true" ref="taxbillflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>매입</label>
- <value>1</value>
- </item>
- <item>
- <label>매출</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="taxkind" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>과세</label>
- <value>01</value>
- </item>
- <item>
- <label>영세율</label>
- <value>02</value>
- </item>
- <item>
- <label>대손세액가감</label>
- <value>03</value>
- </item>
- <item>
- <label>비과세</label>
- <value>04</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <button id="btn_req" class="btn1_letter2" style="left:886px; top:35px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/list/detailist");
- submit("TRRST06801");
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:875px; y1:25px; x2:875px; y2:69px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button1" class="btn2_letter6" style="left:739px; top:94px; width:86px; height:19px; ">
- <caption>발행내역삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // model.setValue(ipt_defrayreqdd.attribute("ref"),model.getValue(ipt_slipdd.attribute("ref")));
-
- // if (model.getValue(ipt_defrayreqdd.attribute("ref")) == "") {
- // alert("출금요청일을 입력 하십시요!!" );
- // return;
- // }
-
- //
- var query014 = "N";
- var iPath = "/root/send/inslip/";
-
- var vdate = new Date();
- var HH = vdate.getHours();
- var MI = vdate.getMinutes();
- var SS = vdate.getSeconds();
- var vTime = HH +"" + MI +"" + SS;
-
- var vSlipDate = model.getValue("/root/main/cond/reqdd"); // 기표일자
- var stocym = model.getValue("/root/main/cond/stocym");
- var fromdd = stocym + "01";
- var todd = stocym + "31";
-
- var vBizpk = getUserInfo("dutplceinstcd") +"_" // 기관
- + vSlipDate +"_" // 기표일자
- + getCurrentDate()+ vTime +'_I_DRG'; // 작업일시
-
- var vSlipCmt = vSlipDate.substr(0,4) + "."
- + vSlipDate.substr(4,2) + "."
- + vSlipDate.substr(6,2) + " 월분 약품 구입대금지급"; // 대표적요
- if (getUserInfo("dutplceinstcd") =="014") {
- query014 = "Y";
- }
-
- model.makeValue(iPath + "instcd" , getUserInfo("dutplceinstcd") ); // 기관코드
- model.makeValue(iPath + "genrdd" , vSlipDate ); // 생성일자
- model.makeValue(iPath + "stocym" , stocym ); // 생성일자
- model.makeValue(iPath + "slipflag" , "6" ); // 전표구분 (1:일반전표, 2:입원수익전표 3:외래수익전표 4:건진수익전표 5:급여전표 6:물류입고전표 7:물류출고전표 8:감가상각전표)
- model.makeValue(iPath + "bizpk" , vBizpk ); // 업무별 Primary Key
- model.makeValue(iPath + "slipdeptcd" , getUserInfo("dutplcecd") ); // 구매부서
- model.makeValue(iPath + "unslwrit" , getUserInfo("userid" ) ); // 전표작성자
- model.makeValue(iPath + "defrayreqdd" , vSlipDate ); // 출금요청일
- model.makeValue(iPath + "slipcmt" , vSlipCmt ); // 전표대표적요
- model.makeValue(iPath + "usedd" , vSlipDate.substr(0,6)+"01" ); // 사용일자
- model.makeValue(iPath + "endmonth" , vSlipDate.substr(0,6) ); // 작업년월
- model.makeValue(iPath + "fromdd" , fromdd ); // 입고일자 FROM
- model.makeValue(iPath + "todd" , todd ); // 입고일자 TO
- model.makeValue(iPath + "frslipdd" , fromdd ); // 기표일자 FROM
- model.makeValue(iPath + "toslipdd" , todd ); // 기입고일자 TO
- model.makeValue(iPath + "frcalcdocudd" , fromdd ); // 계산서일자 FR
- model.makeValue(iPath + "tocalcdocudd" , todd ); // 계산서일자 TO
- model.makeValue(iPath + "frcalccnfmdd" , fromdd ); // 정산확정일자 FR
- model.makeValue(iPath + "tocalccnfmdd" , todd ); // 정산확정일자 TO
- model.makeValue(iPath + "slipinclusion" , "" ); // 기표대상 포함여부
- model.makeValue(iPath + "query014" , query014 );
- if (submit("TXRST06802") == true) {
- messageBox(stocym + "전표발행내역이 삭제되었습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <input id="input3" ref="/root/main/cond/userid" disabled="true" style="left:485px; top:50px; width:65px; height:19px; "/>
- <input id="input4" ref="/root/main/cond/usernm" disabled="true" style="left:555px; top:50px; width:70px; height:19px; "/>
- <button id="btn_excel" class="btn5_letter3" style="left:895px; top:94px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_autosliplist);
- ]]>
- </script>
- </button>
- <output id="opt_amt" ref="/root/init/total/amt" class="output_fix" format="#,###" style="left:234px; top:90px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_suplamt" ref="/root/init/total/suplamt" class="output_fix" format="#,###" style="left:405px; top:90px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <output id="opt_valaddtax" ref="/root/init/total/valaddtax" class="output_fix" format="#,###" style="left:555px; top:90px; width:90px; height:19px; font-weight:bold; text-align:right; "/>
- <caption id="caption16" style="left:170px; top:93px; width:64px; height:15px; text-align:right; ">총금액:</caption>
- <caption id="caption3" style="left:344px; top:93px; width:54px; height:15px; text-align:right; ">공급가:</caption>
- <caption id="caption4" style="left:505px; top:93px; width:49px; height:15px; text-align:right; ">부가세:</caption>
- </xhtml:body>
- </xhtml:html>
|