123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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>
- <list>
- <purcchkinfo>
- <purcchkmainlist>
- <purcchkdd/>
- <purcchkno/>
- <teamflag/>
- <acntcd/>
- <acntnm/>
- <supdd/>
- <newyn/>
- <purccondd/>
- <purcconno/>
- <calcdocukind/>
- <stmntamt/>
- <taxstmntamt/>
- <totchkamt/>
- <zerotaxrateyn/>
- <surtaxyn/>
- <exchrate/>
- <exchrateunit/>
- </purcchkmainlist>
- <purcchksublist/>
- </purcchkinfo>
- <purcdmndinfo>
- <purcdmndlist/>
- </purcdmndinfo>
- <bfpurcchkmaininfo>
- <bfpurcchkmainlist/>
- </bfpurcchkmaininfo>
- <purcchknoinfo>
- <maxpurcchkno>
- <purcchkno/>
- </maxpurcchkno>
- </purcchknoinfo>
- <balsonginfo>
- <balsongymd>
- <balsongymd/>
- </balsongymd>
- </balsonginfo>
- <purcconinfo>
- <purcconsublist/>
- </purcconinfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <wareflag/>
- <purcchkdd/>
- <purcchkno/>
- <purccondd/>
- <purcconno/>
- </search>
- <save>
- <purcchklist/>
- </save>
- <nosearch>
- <instcd/>
- <purcchkdd/>
- </nosearch>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- <tmp>
- <teamflag/>
- </tmp>
- <popchild>
- <send>
- <instcd/>
- <teamflag/>
- <acntcd/>
- <purccondd/>
- <purcconno/>
- <bizflag>C</bizflag>
- <scrnid>SPRSI10200</scrnid>
- <purccnsttndd/>
- <purccnsttnno/>
- <calcdocukind/>
- <zerotaxrateyn/>
- <taxstmntamt/>
- <stmntamt/>
- <purcchkdd/>
- <purcchkno/>
- <purcdmnddd/>
- <purcdmndno/>
- </send>
- <result>
- <flag/>
- <instcd/>
- <purcchkdd/>
- <purcchkno/>
- </result>
- </popchild>
- <dtemp>
- <purcchkdd/>
- <purcchkno/>
- </dtemp>
- </root>
- </instance>
- <submission id="TRRSI10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcchkinfo"/>
- <submission id="TRRSI10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purcchknoinfo"/>
- <submission id="TRRSI10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcdmndinfo"/>
- <submission id="TRRSI10106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/purcchkinfo/purcchkmainlist" resultref="/root/main/list/balsonginfo"/>
- <submission id="TRRSP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcconinfo"/>
- <submission id="TXRSI10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popchild/send" resultref="/root/main/list/purcconinfo"/>
- <submission id="TXRSI10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popchild/send" resultref="/root/tmp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- rszfRscsysordtLists(getUserInfo("dutplceinstcd"),getUserInfo("dutplcecd"), getUserInfo("userid"));
-
- var modelnm = model.getValue("/root/popchild/result/flag");
- if(modelnm == "SMRSK01000"){
- window.visible = false;
- btn_insert.dispatch("DOMActivate");
-
- model.setValue("/root/popchild/send/instcd", model.getValue("/root/popchild/result/instcd"));
- model.setValue("/root/popchild/send/purccondd", model.getValue("/root/popchild/result/purccondd"));
- model.setValue("/root/popchild/send/purcconno", model.getValue("/root/popchild/result/purcconno"));
- model.setValue("/root/popchild/send/purccnsttndd", model.getValue("/root/popchild/result/purccnsttndd"));
- model.setValue("/root/popchild/send/purccnsttnno", model.getValue("/root/popchild/result/purccnsttnno"));
-
- model.setValue("/root/popchild/send/purcdmnddd", model.getValue("/root/popchild/result/purcdmnddd"));
- model.setValue("/root/popchild/send/purcdmndno", model.getValue("/root/popchild/result/purcdmndno"));
-
- model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/calcdocukind", model.getValue("/root/popchild/result/calcdocukind")); //계산서유형
- model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/stmntamt", model.getValue("/root/popchild/result/stmntamt")); //계산서금액
- model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/taxstmntamt", model.getValue("/root/popchild/result/taxstmntamt")); //세금계산서금액
- model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/zerotaxrateyn", model.getValue("/root/popchild/result/zerotaxrateyn")); //영세율
- model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/purcchkdd", model.getValue("/root/popchild/result/purccondd"));
-
- cal_purcchkdd.dispatch("xforms-value-changed");
-
- if (submit("TRRSP00101")){
- grd_coninfo.refresh();
- model.removenode("/root/main/list/purcconinfo/purcconsublist[conqty=0]");
- for (var i = grd_coninfo.fixedRows;i<grd_coninfo.rows;i++){
- var chkqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkqty" )));
- var conqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("conqty" )));
- var spreqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("spreqty")));
-
- if (spreqty <= 0){
- grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "";
- }else if ((conqty - chkqty) > spreqty){
- grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "M";
- }else if ((conqty - chkqty) == spreqty){
- grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "Y";
- }else{
- grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "";
- }
- grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkyn")) = "Y"; // 부분검수 비활성화 주석처리&컬럼히든처리
- }
- grd_coninfo.rebuild();
- grd_coninfo.refresh();
- var iParam = model.getValue(grd_coninfo.nodeset);
- var nodelist = instance1.selectNodes(grd_coninfo.nodeset);
- var rCVS = getNodeListCSV(nodelist);
-
-
- if(grd_coninfo.rows == "1"){
- opener.model.setValue("/root/popparent/result","3-1"); //3-1 : 조회된 계약건자료 X
- window.close();
- }
-
- model.removenode("/root/copynode");
- model.makeNode("/root/copynode");
- var cur_row = grd_purcchk.row;
- var status = grd_purcchk.valueMatrix(cur_row, grd_purcchk.colRef("m"));
-
- setCSVToNode("/root/copynode", rCVS, "purcchksublist");
- fDataSet("/root/copynode", "purcchksublist");
-
- for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++) {
-
- grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
- grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkamt")) = parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkgoodunitcost"))) * parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkqty")));
- }
- fDispSumAmt();
-
- model.setValue(ipt_stmntamt.attribute("ref") , "");
- model.setValue(ipt_taxstmntamt.attribute("ref") , "");
- model.refresh();
- fSave();
-
- model.setValue("/root/popchild/send/purcchkdd", model.getValue("/root/send/search/purcchkdd"));
- model.setValue("/root/popchild/send/purcchkno", model.getValue("/root/send/search/purcchkno"));
-
- submit("TXRSI10102");
-
- window.close();
-
- }else{
- opener.model.setValue("/root/popparent/result","3-2"); //3-2 : 단가나품지시_구매요구자료 조회중 ERROR
- window.close();
- }
- }
- ]]>
- </script>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/winweb/js/SMRSI10100.js"/>
- <script type="javascript">
- <![CDATA[]]>
- </script>
- </xhtml:head>
- <xhtml:body style="font-family:굴림; 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:230px; height:15px; ">구매 전자결재 취소</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; ">
- <button id="btn_choidel" class="btn2_letter3" visibility="hidden" style="left:1082px; top:71px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var prestatus = grd_purcchk.valueMatrix(grd_purcchk.row,grd_purcchk.colRef("prestatus"));
- if (prestatus == "U"){
- /*if (grd_purcchk.valueMatrix(grd_purcchk.row, grd_purcchk.colRef("lastwindd")) != ""){
- messageBox(grd_purcchk.row+"번째는 입고 처리된", "I009");
- }else{*/
- grd_purcchk.rowStatus(grd_purcchk.row) = "4";
- //}
-
- }else{
- grd_purcchk.deleteRow(grd_purcchk.row);
- }
- if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
- btn_acntcd.disabled = "false";
- ipt_acntcd.disabled = "false";
- }else{
- btn_acntcd.disabled = "true";
- ipt_acntcd.disabled = "true";
- }
- //fDelSetting(grd_purcchk);
- ]]>
- </script>
- </button>
- <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
- <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1065px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var spath = "/root/main/list/purcchkinfo"
- var chkteamflag = model.getValue("/root/tmp/teamflag");
- model.removeNodeset(spath);
-
- //약품일경우 teamflag 03으로 파라미터 주기
- if(chkteamflag=="03"){
- model.makeValue("/root/send/search/teamflag" , chkteamflag);
- }else{
- model.removeNodeset("/root/send/search/teamflag");
- }
- model.setValue("/root/send/search/purccondd" , "");
- model.setValue("/root/send/search/purcconno" , "");
- if (submit("TRRSI10101")){
- model.removeNodeset("/root/submain/list/purcchkinfo");
- model.makeNode("/root/submain/list/purcchkinfo");
- model.copyNode("/root/submain/list/purcchkinfo", "/root/main/list/purcchkinfo");
- }
- var vInstance = document.models(0).instances(0);
- var cnt = vInstance.selectNodes("/root/main/list/purcchkinfo/purcchkmainlist").length;
- if (cnt == 0){
- var spath = "/root/main/list/purcchkinfo/purcchkmainlist";
- model.makeNode(spath+"/purcchkdd" );
- model.makeNode(spath+"/purcchkno" );
- model.makeNode(spath+"/purccondd" );
- model.makeNode(spath+"/purcconno" );
- model.makeNode(spath+"/supdd" );
- model.makeNode(spath+"/teamflag" );
- model.makeNode(spath+"/calcdocukind");
- model.makeNode(spath+"/acntcd" );
- model.makeNode(spath+"/acntnm" );
- model.makeNode(spath+"/newyn" );
- model.makeNode(spath+"/stmntamt" );
- model.makeNode(spath+"/taxstmntamt" );
- model.makeNode(spath+"/totchkamt" );
- model.makeNode(spath+"/zerotaxrateyn");
- }
-
- fDispSumAmt();
- fVisiSumAmt();
- if (model.getValue(cal_purcchkdd.attribute("ref")).getTrim() == ""){
- fConDisabledControl(true);
- if(document.all("btn_elctsanct") != null) btn_elctsanct.disabled = true;
- if(document.all("btn_elctsanctsearch") != null) btn_elctsanctsearch.disabled = true;
- }else{
- fConDisabledControl(false);
- if(document.all("btn_elctsanct") != null) btn_elctsanct.disabled = false;
- if(document.all("btn_elctsanctsearch") != null) btn_elctsanctsearch.disabled = false;
- }
- fDisabledControl(true);
- for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++){
- grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
- }
-
- //그리드 순번 출력. 구매품의일련번호 히든처리 -- 2011.02.22 박진억 수정
- var numberNode = "/root/main/list/purcchkinfo/purcchksublist";
- var rowNo;
- for(var i=grd_purcchk.fixedRows;i<grd_purcchk.rows;i++){
- rowNo = i - grd_purcchk.fixedRows + 1;
- model.makeValue(numberNode + "[" + i + "]/rowno" , rowNo);
- }
-
- fChkSurtaxDisabled(); // 부가가치세 활성/비활성
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:99px; top:10px; width:136px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
- <input id="cal_purcchkdd_search" ref="/root/send/search/purcchkdd" navindex="3" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetMaxChkNo(model.getValue(cal_purcchkdd_search.attribute("ref")), "ipt_purcchkno_search");
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">요청일자 :</caption>
- <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
- <input id="ipt_purcchkno_search" ref="/root/send/search/purcchkno" class="input_default" navindex="4" maxlength="4" style="left:710px; top:10px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") misfNoFormat();
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfNoFormat();
- ]]>
- </script>
- </input>
- <button id="btn_save" class="btn4_letter2" navindex="6" style="left:1126px; top:7px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSave();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/tmp/teamflag" overflow="visible" appearance="full" style="left:796px; top:11px; width:50px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>약품</label>
- <value>03</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
- <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:14px; ">구매검수 관리</caption>
- <button id="btn_excel" class="btn2_letter2" navindex="24" style="left:1142px; top:71px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_purcchk);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:150px; x2:1190px; y2:150px; "/>
- <button id="btn_purccon" class="btn2_letter5" navindex="22" style="left:1001px; top:71px; width:75px; height:19px; ">
- <caption>계약건조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_purcchk.rows - grd_purcchk.fixedRows > 0){
- if(messageBox("한번에 한건의 계약만 검수가 가능합니다.\n계속 하시겠습니까?", "Q") == 6){
- model.removeNodeset("/root/main/list/purcchkinfo/purcchksublist");
- }else{
- return;
- }
- }
- if(fChkBalsong()==false) return; // 이미 지출결의 발송한 건에 대해 계약건조회 못하도록 처리
-
- if (fDataValiChk() == false) return;
-
- model.removenode("/root/copynode");
- model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- model.makeNode("/root/copynode");
-
- setParameter("parainfo_acntcd" , model.getValue(ipt_acntcd.attribute("ref")));
- setParameter("parainfo_teamflag", model.getValue(cmb_teamflag.attribute("ref")));
- setParameter("parainfo_basedd" , model.getValue(cal_purcchkdd.attribute("ref")));
- modal("SPRSI10200");
-
- var cur_row = grd_purcchk.row;
- var status = grd_purcchk.valueMatrix(cur_row, grd_purcchk.colRef("m"));
-
- var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
- setCSVToNode("/root/copynode", CSV, "purcchksublist");
- fDataSet("/root/copynode", "purcchksublist");
-
- if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
- ipt_acntcd.disabled = false;
- btn_acntcd.disabled = false;
- }else{
- ipt_acntcd.disabled = true;
- btn_acntcd.disabled = true;
- }
-
- for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++) {
-
- grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
- grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkamt")) = parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkgoodunitcost"))) * parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkqty")));
- }
-
- if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
- btn_acntcd.disabled = "false";
- ipt_acntcd.disabled = "false";
- }else{
- btn_acntcd.disabled = "true";
- ipt_acntcd.disabled = "true";
- }
-
- fDispSumAmt();
-
- model.setValue(ipt_stmntamt.attribute("ref") , "");
- model.setValue(ipt_taxstmntamt.attribute("ref") , "");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter2" navindex="21" style="left:958px; top:71px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 금일 날자 설정
- var curdate = getCurrentDate();
- var cvtdate = curdate.toDate("YYYYMMDD");
-
- fConDisabledControl(false);
- fDisabledControl(false);
-
- model.resetInstanceNode("/root/main/list/purcchkinfo/purcchkmainlist");
- model.makeValue(ipt_newyn.attribute("ref"), "Y");
- model.makeValue("/root/main/list/purcchkinfo/purcchkmainlist/surtaxyn","N");
-
- model.removeNodeset("/root/main/list/purcchkinfo/purcchksublist");
-
- model.setValue(cal_purcchkdd.attribute("ref") , curdate);
- //model.setValue(cal_supdd.attribute("ref") , cvtdate.getAddDate(1,"M").getDateFormat("YYYYMMDD"));
- cal_purcchkdd.dispatch("xforms-value-changed");
-
- model.setValue(ipt_stmntamt.attribute("ref") , "");
- model.setValue(ipt_taxstmntamt.attribute("ref") , "");
-
- /* 경북대버전 수정 - 입력시 계산서 유형 Default 로 세금계산서 선택 2011.02.18 박진억 */
- cmb_calcdocukind.select(0);
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_newyn" ref="/root/main/list/purcchkinfo/purcchkmainlist/newyn" class="input_default" disabled="true" visibility="hidden" maxlength="1" style="left:124px; top:72px; width:61px; height:19px; text-align:center; "/>
- <caption id="caption36" class="cell_1" style="left:510px; top:100px; width:90px; height:23px; vertical-align:middle; ">팀구분</caption>
- <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
- <caption id="caption11" class="cell_1" style="left:800px; top:100px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
- <caption id="caption15" class="cell_1" style="left:265px; top:100px; width:90px; height:23px; vertical-align:middle; ">납품일</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
- <input id="cal_supdd" ref="/root/main/list/purcchkinfo/purcchkmainlist/supdd" navindex="9" inputtype="date" style="left:358px; top:102px; width:146px; height:19px; text-align:center; "/>
- <select1 id="cmb_teamflag" ref="/root/main/list/purcchkinfo/purcchkmainlist/teamflag" disabled="true" navindex="10" appearance="minimal" style="left:604px; top:102px; width:150px; height:19px; text-align:left; padding-left:10; ">
- <choices>
- <itemset nodeset="/root/init/wareflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <output id="opt_acntnm" ref="/root/main/list/purcchkinfo/purcchkmainlist/acntnm" class="output_fix" appearance="output" style="left:1006px; top:102px; width:184px; height:19px; text-align:left; padding-left:10; "/>
- <input id="ipt_acntcd" ref="/root/main/list/purcchkinfo/purcchkmainlist/acntcd" class="input_default" disabled="true" navindex="11" style="left:894px; top:102px; width:90px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
- model.refresh();
- model.setFocus("ipt_amtacnt");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_lrgcd");
- else model.setFocus("ipt_amtacnt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <button id="btn_acntcd" class="icon_search" disabled="true" navindex="12" style="left:987px; top:102px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="cal_purcchkdd" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcchkdd" navindex="7" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:102px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetMaxChkNo(model.getValue(cal_purcchkdd.attribute("ref")), "ipt_purcchkno");
- ]]>
- </script>
- </input>
- <input id="ipt_purcchkno" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcchkno" class="input_default" disabled="true" navindex="8" maxlength="4" style="left:210px; top:102px; width:51px; height:19px; text-align:center; "/>
- <caption id="cap_purcchkdd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">검수일자/NO</caption>
- <input id="cal_purccondd" ref="/root/main/list/purcchkinfo/purcchkmainlist/purccondd" disabled="true" navindex="13" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:127px; width:110px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/nosearch/purccondd" , model.getValue(cal_purccondd.attribute("ref")));
- if (submit("TRRSP00102")){
- var purcconno = model.getValue("/root/main/list/purcconnoinfo/maxpurcconno/purcconno");
- model.setValue(ipt_purcconno.attribute("ref"), purcconno);
- }
- model.setValue("/root/send/nosearch/instcd" , "");
- model.setValue("/root/send/nosearch/purccondd" , "");
-
- ipt_purcconno.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_purcconno" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcconno" class="input_default" disabled="true" navindex="14" maxlength="4" style="left:210px; top:127px; width:51px; height:19px; text-align:center; "/>
- <caption id="cap_purccondd" class="cell_1" style="left:0px; top:125px; width:90px; height:23px; vertical-align:middle; ">계약일자/NO</caption>
- <datagrid id="grd_purcchk" nodeset="/root/main/list/purcchkinfo/purcchksublist" caption="이전 상태값^일자^순번^문서종류^문서일자^문서
번호^건명^금액^전자문서번호^취소사유^신청부서^신청자^신청자^승인
여부^승인자^검수구분^기관코드^신규여부|이전 상태값^일자^순번^문서종류^문서일자^문서
번호^건명^금액^전자문서번호^취소사유^신청부서^사번^성명^승인
여부^승인자^검수구분^기관코드^신규여부" colsep="^" colwidth="36, 75, 40, 100, 75, 40, 100, 100, 100, 100, 100, 60, 60, 35, 100, 90, 19, 15" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="20" style="left:0px; top:155px; width:1190px; height:553px; font-weight:normal; text-align:center; ">
- <col ref="prestatus" visibility="hidden" style="text-align:center; "/>
- <col/>
- <col ref="rowno" style="text-align:center; "/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col/>
- <col disabled="true" ref="chkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_chkflag/comcodelist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="newyn" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- rszfOpenPopUpListByWndName(grd_purcchk,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCalcAmt();
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_chkflag" visibility="hidden" appearance="minimal" style="left:190px; top:72px; width:55px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_calcdocukind" ref="/root/main/list/purcchkinfo/purcchkmainlist/calcdocukind" class="combo_search" navindex="15" appearance="minimal" style="left:358px; top:127px; width:146px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/calcdocukind">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fVisiSumAmt();
- fChkSurtaxDisabled();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="cell_1" style="left:265px; top:125px; width:90px; height:23px; vertical-align:middle; ">계산서 유형</caption>
- <button id="btn_alldel" class="btn2_letter4" navindex="23" style="left:1077px; top:71px; width:64px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllDel();
- ]]>
- </script>
- </button>
- <caption id="cap_stmntamt" class="cell_1" style="left:510px; top:125px; width:90px; height:23px; vertical-align:middle; ">계산서 금액</caption>
- <input id="ipt_stmntamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/stmntamt" class="input_default" disabled="false" navindex="16" format="#,###" style="left:604px; top:127px; width:100px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var taxstmntamt = parseFloat(model.getValue(ipt_totchkamt.attribute("ref"))) - parseFloat(model.getValue(ipt_stmntamt.attribute("ref")))
- model.setValue(ipt_taxstmntamt.attribute("ref") , taxstmntamt);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_taxstmntamt" class="cell_1" style="left:710px; top:125px; width:100px; height:23px; vertical-align:middle; ">세금계산서 금액</caption>
- <input id="ipt_taxstmntamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/taxstmntamt" class="input_default" disabled="false" navindex="17" format="#,###" style="left:813px; top:127px; width:100px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stmntamt = parseFloat(model.getValue(ipt_totchkamt.attribute("ref"))) - parseFloat(model.getValue(ipt_taxstmntamt.attribute("ref")))
- model.setValue(ipt_stmntamt.attribute("ref") , stmntamt);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_totchkamt" class="cell_1" style="left:917px; top:125px; width:55px; height:23px; vertical-align:middle; ">총금액</caption>
- <input id="ipt_totchkamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/totchkamt" class="input_default" disabled="true" navindex="18" format="#,###" style="left:976px; top:127px; width:100px; height:19px; text-align:right; "/>
- <caption id="cap_zerotaxrateyn" class="cell_1" style="left:1080px; top:125px; width:55px; height:23px; vertical-align:middle; ">영세율</caption>
- <bool id="chk_zerotaxrateyn" navindex="19" checkvalue="Y,N" ref="/root/main/list/purcchkinfo/purcchkmainlist/zerotaxrateyn" style="left:1145px; top:130px; width:35px; height:15px; "/>
- <select id="chk_surtaxyn" ref="/root/main/list/purcchkinfo/purcchkmainlist/surtaxyn" disabled="true" navindex="-1" overflow="visible" appearance="full" style="left:451px; top:69px; width:15px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label/>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="cap_surtaxyn" class="search_name" style="left:335px; top:70px; width:115px; height:17px; ">미용성형포함 :</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" navindex="27" style="left:1126; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_elctsanct" class="btn6_letter4" disabled="true" navindex="-1" style="left:372px; top:5px; width:80px; height:22px; ">
- <caption>전자결재</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fElctSanct();
- ]]>
- </script>
- </button>
- <button id="btn_elctsanctsearch" class="btn6_letter4" disabled="true" navindex="-1" style="left:452px; top:5px; width:80px; height:22px; ">
- <caption>결재조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fElctSanctSearch();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|