123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670 |
- <?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>
- <mainlist>
- <uselist>
- <goodcd/>
- <goodnm/>
- <iodd/>
- <qty/>
- <usernm/>
- <ioflag/>
- <sectcd/>
- <suppdeptcd/>
- </uselist>
- <wlnlist>
- <goodcd/>
- <goodnm/>
- <iodd/>
- <qty/>
- <usernm/>
- <ioflag/>
- <sectcd/>
- <suppdeptcd/>
- </wlnlist>
- </mainlist>
- <goodlist>
- <item>
- <goodcd/>
- <goodnm/>
- <speccd/>
- <safestocqty/>
- <exstocqty/>
- <wlnqty/>
- <sumqty/>
- <useqty/>
- <stocqty/>
- <reqqty/>
- </item>
- </goodlist>
- <dyestoclist>
- <item>
- <goodcd/>
- <goodnm/>
- <instcd/>
- <speccd/>
- <demand/>
- <outgo/>
- <rem/>
- <iodd/>
- <suppdeptcd/>
- <sectcd/>
- <reqid/>
- <reqdd/>
- <outid/>
- <outdd/>
- <gubun/>
- <reqnm/>
- <outnm/>
- <recid/>
- <recnm/>
- <recdd/>
- <iodd/>
- </item>
- </dyestoclist>
- <goodinfo/>
- <dyecdpamlist>
- <item>
- <pid/>
- <hngnm/>
- <excuexectodd/>
- <basecdflagdesc/>
- <calcscorcd/>
- <excucdnm/>
- <goodcd/>
- <goodnm/>
- <drugqty/>
- <speccd/>
- <prcpdd/>
- <instcd/>
- <excuroomcd/>
- </item>
- </dyecdpamlist>
- <list2>
- <item>
- <check/>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <excudd/>
- </item>
- </list2>
- </main>
- <send>
- <srchiodd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <srchsectcd/>
- <srchgoodcd/>
- <srchgoodnm/>
- <srchexcuroomgrp/>
- <srchfromdd/>
- <excuroomgrpcdid/>
- <srchsuppdeptcd/>
- <excuroomcd/>
- <req>
- <data1/>
- </req>
- <srchreqid/>
- <srchoutid/>
- <srchgubun>T</srchgubun>
- <srchtodd/>
- </send>
- <cmb_info>
- <initexcuroomgrp2>
- <excuroomgrpcdid/>
- <excuroomgrpcdnm/>
- </initexcuroomgrp2>
- <goodlist>
- <item/>
- </goodlist>
- <init/>
- </cmb_info>
- <temp>
- <goodcd/>
- <goodnm/>
- <speccd/>
- <safestocqty/>
- <inswlniodd/>
- <inswlngoodcd/>
- <inswlnqty/>
- <setwlniodd/>
- <setwlngoodcd/>
- <setwlnqty/>
- <insuseiodd/>
- <insusegoodcd/>
- <insuseqty/>
- <setuseiodd/>
- <setusegoodcd/>
- <setuseqty/>
- <count/>
- </temp>
- <rexprnt>
- <dyestoclist>
- <srchiodd/>
- <srchsectcd/>
- <srchexcuroomgrp/>
- <srchsudept/>
- </dyestoclist>
- </rexprnt>
- <init>
- <cmb_info2/>
- <excuroomcdlist/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchsuppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
-
- model.removeNodeset("/root/main/mainlist");
- //model.removeNodeset("/root/main/speclist/item");
-
-
- astGetComboList( new Array("X0001"), new Array("/root/init/cmb_info2") );
- submit("TRAEA01301");
-
- cmb_sectcd.select(1);
-
- //조회
- rdo_gubun.value = "T"; //전체
- getDyeList();
- grd_dyelist.frozenCols = 6;
- //btn_req.disible = true;
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/">
- <script type="javascript" ev:event="xforms-submit-done">
- <![CDATA[
-
- var rowcnt = grd_mainlist.rows;
- for(var i = 0; i < rowcnt; i++ )
- {
- if(model.getValue("/root/tmp/rem") == "")
- {
- model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
- }
- }
- sortGrid(grd_mainlist);
- ]]>
- </script>
- </submission>
- <submission id="TRAEB03501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodinfo"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/cmb_info"/>
- <submission id="TRAEB03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/goodlist"/>
- <submission id="TRAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/mainlist"/>
- <submission id="TXAEB03401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TRAEQ01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/goodlist"/>
- <submission id="TRAEA00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/excuroomcdlist"/>
- <submission id="TXAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TXAEB03404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TRAEB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyecdpamlist"/>
- <submission id="TRAEA01306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info2"/>
- <submission id="TRAEB03408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/dyestoclist"/>
- <submission id="TXAEB03406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
- <submission id="TRAEA00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list2"/>
- <submission id="TRAAA00001"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
-
- function getDyeList()
- {
- btn_req.disabled = false;
- btn_reqcnl.disabled = false;
-
- btn_save.disabled = false;
-
- if( model.getValue("/root/send/srchfromdd") == "" ){
- messageBox("입고일자를", "I007");
- return;
- }
-
- if( model.getValue("/root/send/srchsectcd") == "" ){
- messageBox("검사실을", "I007");
- return;
- }
-
- var gubun = model.getValue("/root/send/srchgubun") ;
-
- if ( gubun == "S") { //미신청
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_reqcnl.disabled = true;
- btn_in.disabled = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = false;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
- } else if ( gubun == "C") { //청구취소
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_reqcnl.disabled = true;
- btn_in.disabled = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = false;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
- } else if ( gubun == "R") { //청구
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_save.disabled = true;
- btn_req.disabled = true;
- btn_reqcnl.disabled = false;
- btn_in.disabled = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
- } else if ( gubun == "O") { //청구확인
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_save.disabled = true;
- btn_req.disabled = true;
- btn_reqcnl.disabled = true;
- btn_in.disabled = false;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = false;
- } else if ( gubun == "I") { //수령
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_save.disabled = true;
- btn_req.disabled = true;
- btn_reqcnl.disabled = true;
- btn_in.disabled = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
- } else if ( gubun == "T") { //전체
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_save.disabled = true;
- btn_req.disabled = true;
- btn_reqcnl.disabled = true;
- btn_in.disabled = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('demand')) = true;
- grd_dyelist.colDisabled ( grd_dyelist.colRef('outgo')) = true;
- }
-
- model.setValue("/root/send/srchtodd", model.getValue("/root/send/srchfromdd"));
-
- if (submit("TRAEB03408") ) {
- if( model.getValue("/root/main/dyestoclist/item[1]/srchflag") == "2" ){ // 데이터가 없을경우 활성화.
- for(var a = 1 ; a <= grd_dyelist.rows ; a++ ){
- grd_dyelist.addStatus( a ,"insert");
- }
- }
- }
-
-
- //model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1210" pageheight="780" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:205px; height:15px; ">조영제/재료 청구 관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:730px; ">
- <group id="group4" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption19" class="search_name" style="left:10px; top:9px; width:105px; height:17px; ">조회일자 :</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:95px; top:8px; width:90px; height:19px; "/>
- <line id="line6" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
- <caption id="caption20" class="search_name" style="left:205px; top:8px; width:83px; height:17px; ">검사실 :</caption>
- <button id="btn_retrieve" class="btn1_letter2" navindex="5" style="left:1129px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- getDyeList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_sectcd" ref="/root/send/srchsectcd" navindex="4" appearance="minimal" style="left:285px; top:8px; width:187px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cmb_info/initexcuroomgrp2">
- <label ref="excuroomgrpcdnm"/>
- <value ref="excuroomgrpcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/excuroomcd", model.getValue("/root/send/srchsectcd"));
- model.removeNodeset("/root/main/list2/item");
- if (submit("TRAEA00202")){
- model.setValue("/root/send/excuroomcd", "");
- // if (grd_curerlist.rows > 1){
- // for (var i = 1; i < grd_curerlist.rows; i ++){
- // model.setValue("/root/main/list2/item[" + i + "]/basecdflagdesc", model.getValue("/root/main/list2/item[" + i + "]/basecd"));
- // }
- // }
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="rdo_gubun" ref="/root/send/srchgubun" appearance="full" cols="7" overflow="visible" style="left:555px; top:10px; width:350px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- <item>
- <label>미신청</label>
- <value>S</value>
- </item>
- <item>
- <label>청구취소</label>
- <value>C</value>
- </item>
- <item>
- <label>청구</label>
- <value>R</value>
- </item>
- <item>
- <label>청구확인</label>
- <value>O</value>
- </item>
- <item>
- <label>수령</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:490px; top:10px; width:83px; height:17px; ">구분 :</caption>
- </group>
- <caption id="caption22" class="tit_2" style="left:0px; top:58px; width:105px; height:13px; ">입출고 현황</caption>
- <line id="line7" class="line_1" style="x1:0px; y1:74px; x2:1193px; y2:74px; "/>
- <button id="btn_excsave" class="btn2_letter4" style="left:490px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls"); // 2009-07-01 엑셀저장 두번째 저장 실패 오류 확인 두번째 테스트
- if (filename != "") {
- grd_dyelist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:609px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_goodlist.addStatus(grd_goodlistt.row,"delete");
- deleteSelectedRows(grd_dyelist, true);
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:555px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_dyelist.addRow();
- grd_dyelist.row = grd_dyelist.bottomRow;
-
- //var cnt = parseInt(grd_dyelist.row);
- //grd_dyelist.isReadOnly(cnt, 5) = true;
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn3_letter2" style="left:695px; top:50px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
-
- if( cnt > 0 ) {
- for( var i= 1; i <= grd_dyelist.rows; i++){
- model.makeValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.makeValue("/root/main/dyestoclist/item[" + i + "]/gubun", model.getValue("/root/send/srchgubun") );
- }
-
- if( model.getValue("/root/send/srchfromdd") == "" ){
- messageBox("입고일자를", "I007");
- } else {
- if( messageBox("조영제 재고정보를","Q002")==6 ) {
- model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
- submit("TXAEB03406");
- getDyeList();
- }
- }
- }else{
- messageBox("저장할 입고정보가", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_req" class="btn3_letter2" style="left:840px; top:50px; width:56px; height:22px; ">
- <caption>청구</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
-
- if( cnt > 0 ) {
- for( var i = 1; i <= cnt; i++){
- var demand = model.getValue("/root/main/dyestoclist/item[" + i + "]/demand") ;
-
- if ( demand == null || demand == "" || demand == "0") {
- messageBox("청구량 정보가 0이거나 없습니다.", "E016");
- return;
- }
-
- model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "R");
- grd_dyelist.addStatus(i, "update");
- }
-
- grd_dyelist.refresh();
-
- //alert( grd_dyelist.getUpdateData());
-
- if( messageBox("조영제 청구를","Q002")==6 ) {
-
- model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
- submit("TXAEB03406");
-
- rdo_gubun.value = "R"; //불출 신청
- getDyeList();
-
- }
- }else{
- messageBox("저장할 청구정보가", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_in" class="btn3_letter4" style="left:1025px; top:50px; width:80px; height:22px; ">
- <caption>수령확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
-
- //alert("cnt = " + cnt);
-
- if( cnt > 0 ) {
- for( var i = 1; i <= cnt; i++){
- var outgo = model.getValue("/root/main/dyestoclist/item[" + i + "]/outgo") ;
-
- if ( outgo == null || outgo == "" || outgo == "0" ) {
- messageBox("수령확인량 장보가가 0이거나 없습니다.", "E016");
- return;
- }
-
- model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "I");
- grd_dyelist.addStatus(i, "update");
- }
-
- grd_dyelist.refresh();
-
- //alert( grd_dyelist.getUpdateData());
- if( messageBox("조영제 수령확인을","Q002")==6 ) {
-
- model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
- submit("TXAEB03406");
-
- rdo_gubun.value = "I"; //수령
- getDyeList();
- }
-
- }else{
- messageBox("저장할 수령확인정보가", "I004");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_dyelist" nodeset="/root/main/dyestoclist/item" caption="조영제/재료코드^조영제/재료명^규격(ml)^청구량^수령량^상태^청구자1^청구자^입출고일자^청구일자^청구일자^확인자id^청구확인자^청구확인일자^청구확인일자^수령자id^수령자^수령일자^수령일자^비고^caption2^caption3^caption4" colsep="^" colwidth="97, 312, 55, 62, 62, 66, 56, 66, 100, 70, 54, 54, 68, 62, 57, 52, 53, 66, 59, 189, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:79px; width:1193px; height:646px; ">
- <col ref="goodcd" type="inputbutton" style="text-align:left; padding-left:10; "/>
- <col ref="goodnm" type="output" style="text-align:left; padding-left:10; "/>
- <col ref="speccd" type="output" format="#.#" style="text-align:right; padding-right:20; "/>
- <col ref="demand" type="input" format="##.#" style="text-align:right; padding-right:20; "/>
- <col ref="outgo" type="input" format="##.#" style="text-align:right; padding-right:20; "/>
- <col ref="gubun" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>미신청</label>
- <value>S</value>
- </item>
- <item>
- <label>청구</label>
- <value>R</value>
- </item>
- <item>
- <label>청구취소</label>
- <value>C</value>
- </item>
- <item>
- <label>청구확인</label>
- <value>O</value>
- </item>
- <item>
- <label>수령</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col ref="reqid" type="output" visibility="hidden"/>
- <col ref="reqnm" type="output"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="reqdd"/>
- <col ref="reqtm"/>
- <col ref="outid" type="output" visibility="hidden"/>
- <col ref="outnm" type="output"/>
- <col ref="outdd"/>
- <col ref="outtm"/>
- <col ref="recid" type="output" visibility="hidden"/>
- <col ref="recnm" type="output"/>
- <col ref="recdd"/>
- <col ref="rectm"/>
- <col ref="rem" type="input"/>
- <col ref="sectcd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = grd_dyelist.col;
-
- if( grd_dyelist.colAttribute(colidx, "ref") == "goodcd" ){
-
- modal("SPAEB00401", "", "200", "200", "popup", "/root/hidden/pseursrvinfo", "/root/init/pseursrvinfo");
- model.refresh();
- var selectedrow = grd_dyelist.selectedCells.item(0).row;
- if(model.getValue("/root/temp/goodcd") != "")
- {
- model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/goodcd", model.getValue("/root/temp/goodcd"));
- model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/goodnm", model.getValue("/root/temp/goodnm"));
- model.makeValue("/root/main/dyestoclist/item[" + selectedrow + "]/speccd", model.getValue("/root/temp/speccd"));
- }
- model.setValue("/root/temp/goodcd", "");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_reqcnl" class="btn4_letter4" style="left:895px; top:50px; width:104px; height:22px; ">
- <caption>청구취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
-
- //alert("cnt = " + cnt);
-
- if( cnt > 0 ) {
- for( var i = 1; i <= cnt; i++){
- model.setValue("/root/main/dyestoclist/item[" + i + "]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1") );
- //청구취소
- model.setValue("/root/main/dyestoclist/item[" + i + "]/gubun", "C");
- grd_dyelist.addStatus(i, "update");
- }
-
- grd_dyelist.refresh();
-
- if( messageBox("조영제 청구취소를","Q002")==6 ) {
- model.setValue("/root/send/req/data1", grd_dyelist.getUpdateData());
- submit("TXAEB03406");
-
- rdo_gubun.value = "C"; //미신청
- getDyeList();
- }
-
- }else{
- messageBox("저장할 청구취소정보가", "I004");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:745px; width:1195px; height:25px; ">
- <button id="button2" class="btn6_letter2" navindex="6" visibility="hidden" style="left:0px; top:0px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = getNodesetCount("/root/main/dyestoclist/item");
- for( var i = 1; i <= cnt; i++){
- model.makeNode("/root/rexprnt/dyestoclist/item[" + i + "]");
- model.copyNode("/root/rexprnt/dyestoclist/item[" + i + "]", "/root/main/dyestoclist/item["+ i +"]");
- model.setValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcd", grd_dyelist.labelMatrix(i+1,2));
- model.makeValue("/root/rexprnt/dyestoclist/item[" + i + "]/goodcdd", model.getValue("/root/main/dyestoclist/item["+ i +"]/goodcd"));
- }
- model.setValue("/root/rexprnt/dyestoclist/srchiodd", ipt_fromdd.label + " ~ " + ipt_todd.label );
- if( model.getValue("/root/send/srchexcuroomgrp") != "" ){
- model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", cmb_excuroomgrp.label );
- }else{
- model.setValue("/root/rexprnt/dyestoclist/srchexcuroomgrp", "" );
- }
-
- if( model.getValue("/root/send/srchsectcd" ) != "" ){
- model.setValue("/root/rexprnt/dyestoclist/srchsectcd", cmb_sectcd.label );
- }else{
- model.setValue("/root/rexprnt/dyestoclist/srchsectcd", "" );
- }
- model.setValue("/root/rexprnt/dyestoclist/srchsudept", getUserInfo("dutplcenm") );
- model.refresh();
-
- exeReportPreview("RPAEB03401", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- model.removeNodeset("/root/rexprnt/dyestoclist/item");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|