123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- <?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>
- <narclist>
- <narclist>
- <extsum/>
- <totsum/>
- <drugcd/>
- <keepqty/>
- <flagqty/>
- <spqty2/>
- <deleqty/>
- <rtnqty/>
- <realdeleqty/>
- <iosumdeleqty/>
- <windqty/>
- <destqty/>
- <spqty1/>
- <af_extsum/>
- <af_totsum/>
- <svcmt/>
- <monthsum/>
- </narclist>
- </narclist>
- <prntlist>
- <narclist/>
- </prntlist>
- </main>
- <send>
- <srchinfo>
- <yyyymm/>
- <dd/>
- </srchinfo>
- <saveinfo>
- <data1/>
- </saveinfo>
- <data>
- <print1>
- <item/>
- </print1>
- </data>
- <srchdata>
- <preview/>
- </srchdata>
- </send>
- <init/>
- <hidden>
- <popup>
- <prcp>
- <item>
- <name>행추가</name>
- <param>add</param>
- </item>
- <item>
- <name>행복사</name>
- <param>copy</param>
- </item>
- <item>
- <name>행삭제</name>
- <param>del</param>
- </item>
- </prcp>
- </popup>
- </hidden>
- <temp>
- <printdatalist/>
- </temp>
- </root>
- </instance>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/pharmacyweb/js/SMADT30100.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/srchinfo/yyyymm", getCurrentDate().substr(0,6));
- fSetTab();
- model.refresh();
- ]]>
- </script>
- <submission id="TRADT30901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" replace="instance" resultref="/root/main/narclist"/>
- <submission id="TXADT30901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXADT30902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRADT30902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prntlist"/>
- <submission id="TRADT30903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/send/data/print1"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 마약향정처방관리 엑셀다운
- * @ver : 2008.10.09
- * @by :
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 엑셀 저장
- */
- function fExeSaveToExcel(){
- var fileName = window.fileDialog("save", ",", false, "마약일계표 "+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_narclist.saveExcel(fileName);
- }
- }
-
- function fSetTab(){
-
- var terms = model.getValue("/root/send/srchinfo/yyyymm")+ "01";
- terms = terms.toDate("YYYYMMDD").getMonthDay();
-
- if (terms=="") {
- return false;
- }
- for ( var i =1; i<32 ; i++){
- if(i <= terms) {
- (document.controls("btn_d" + i)).visible=true;
- } else {
- (document.controls("btn_d" + i)).visible=false;
- }
- }
-
- model.refresh();
- }
-
-
- function DOMActivate(){
- //event.stopPropagation();
- var controlObj = document.controls(event.currentTarget);
- if (controlObj != null){
- var btn_text =controlObj.text;
- var btn_dd = Number(btn_text);
-
- if ( btn_dd > 0 && btn_dd < 32 ){
- if(btn_dd < 10) {
- model.setValue( "/root/send/srchinfo/dd" , "0" + btn_text);
- } else {
- model.setValue( "/root/send/srchinfo/dd" , btn_text);
- }
-
- submit("TRADT30901");
-
- grd_narclist.colStyle(grd_narclist.colRef("deleqty"), "data", "background-color") = "#fcd2c1";
- grd_narclist.colStyle(grd_narclist.colRef("rtnqty"), "data", "background-color") = "#fcd2c1";
- grd_narclist.colStyle(grd_narclist.colRef("destqty"), "data", "background-color") = "#fcd2c1";
- grd_narclist.colStyle(grd_narclist.colRef("spqty1"), "data", "background-color") = "#fcd2c1";
- // for(var i = 0; i < grd_narclist.rows; i++) {
- // grd_narclist.colAttribute(1, "merge") =
- // }
- }
- }
- return;
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- if(popupParam == "add") {
- //grd_narclist.addItem();
- } else if(popupParam == "del") {
- grd_narclist.addStatus(grd_narclist.row,"delete");
- }
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:211px; height:14px; ">마약일계표</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:0px; width:1195px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption9" class="search_name" style="left:10px; top:8px; width:97px; height:17px; ">조회년월 :</caption>
- <input id="ipt_fstdd" ref="/root/send/srchinfo/yyyymm" class="input_search" inputtype="date" format="yyyy-mm" appearance="input" style="left:100px; top:5px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTab();
- ]]>
- </script>
- </input>
- </group>
- <switch id="switch1" class="sw_no_border" style="left:0px; top:80px; width:1195px; height:664px; "/>
- <button id="btn_prcp" class="btn4_letter8" style="left:1060px; top:5px; width:128px; height:22px; ">
- <caption>상비품/비고 저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var update = getGridUpdateData(grd_narclist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- for(var i = 0 ; i < grd_narclist.rows; i++) {
- if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag1") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty1") != "" ) {
- messageBox("D0의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
- return 0;
- }
- if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag2") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty2") != "" ) {
- messageBox("D1의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
- return 0;
- }
- if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag3") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty3") != "" ) {
- messageBox("D2의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
- return 0;
- }
- if(model.getValue("/root/main/narclist/narclist[" + i + "]/remflag4") == "" && model.getValue("/root/main/narclist/narclist[" + i + "]/remqty4") != "" ) {
- messageBox("N의 비고수량이 입력되었으므로 출고구분을 선택하여 주십시오.", "I");
- return 0;
- }
- }
-
- model.setValue( "/root/send/saveinfo/data1", grd_narclist.getUpdateData());
- if(submit("TXADT30901")) {
- submit("TRADT30901");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_d1" class="btn_sw" visibility="hidden" group="tab" style="left:3px; top:55px; width:37px; height:22px; ">
- <caption>1</caption>
- </button>
- <button id="btn_d2" class="btn_sw" visibility="hidden" group="tab" style="left:40px; top:55px; width:37px; height:22px; ">
- <caption>2</caption>
- </button>
- <button id="btn_d3" class="btn_sw" visibility="hidden" group="tab" style="left:77px; top:55px; width:37px; height:22px; ">
- <caption>3</caption>
- </button>
- <button id="btn_d4" class="btn_sw" visibility="hidden" group="tab" style="left:114px; top:55px; width:37px; height:22px; ">
- <caption>4</caption>
- </button>
- <button id="btn_d5" class="btn_sw" visibility="hidden" group="tab" style="left:151px; top:55px; width:37px; height:22px; ">
- <caption>5</caption>
- </button>
- <button id="btn_d6" class="btn_sw" visibility="hidden" group="tab" style="left:188px; top:55px; width:37px; height:22px; ">
- <caption>6</caption>
- </button>
- <button id="btn_d7" class="btn_sw" visibility="hidden" group="tab" style="left:225px; top:55px; width:37px; height:22px; ">
- <caption>7</caption>
- </button>
- <button id="btn_d8" class="btn_sw" visibility="hidden" group="tab" style="left:262px; top:55px; width:37px; height:22px; ">
- <caption>8</caption>
- </button>
- <button id="btn_d9" class="btn_sw" visibility="hidden" group="tab" style="left:299px; top:55px; width:37px; height:22px; ">
- <caption>9</caption>
- </button>
- <button id="btn_d10" class="btn_sw" visibility="hidden" group="tab" style="left:336px; top:55px; width:37px; height:22px; ">
- <caption>10</caption>
- </button>
- <button id="btn_d11" class="btn_sw" visibility="hidden" group="tab" style="left:373px; top:55px; width:37px; height:22px; ">
- <caption>11</caption>
- </button>
- <button id="btn_d12" class="btn_sw" visibility="hidden" group="tab" style="left:410px; top:55px; width:37px; height:22px; ">
- <caption>12</caption>
- </button>
- <button id="btn_d13" class="btn_sw" visibility="hidden" group="tab" style="left:447px; top:55px; width:37px; height:22px; ">
- <caption>13</caption>
- </button>
- <button id="btn_d14" class="btn_sw" visibility="hidden" group="tab" style="left:484px; top:55px; width:37px; height:22px; ">
- <caption>14</caption>
- </button>
- <button id="btn_d15" class="btn_sw" visibility="hidden" group="tab" style="left:521px; top:55px; width:37px; height:22px; ">
- <caption>15</caption>
- </button>
- <button id="btn_d16" class="btn_sw" visibility="hidden" group="tab" style="left:558px; top:55px; width:37px; height:22px; ">
- <caption>16</caption>
- </button>
- <button id="btn_d17" class="btn_sw" visibility="hidden" group="tab" style="left:595px; top:55px; width:37px; height:22px; ">
- <caption>17</caption>
- </button>
- <button id="btn_d18" class="btn_sw" visibility="hidden" group="tab" style="left:632px; top:55px; width:37px; height:22px; ">
- <caption>18</caption>
- </button>
- <button id="btn_d19" class="btn_sw" visibility="hidden" group="tab" style="left:669px; top:55px; width:37px; height:22px; ">
- <caption>19</caption>
- </button>
- <button id="btn_d20" class="btn_sw" visibility="hidden" group="tab" style="left:706px; top:55px; width:37px; height:22px; ">
- <caption>20</caption>
- </button>
- <button id="btn_d21" class="btn_sw" visibility="hidden" group="tab" style="left:743px; top:55px; width:37px; height:22px; ">
- <caption>21</caption>
- </button>
- <button id="btn_d22" class="btn_sw" visibility="hidden" group="tab" style="left:780px; top:55px; width:37px; height:22px; ">
- <caption>22</caption>
- </button>
- <button id="btn_d23" class="btn_sw" visibility="hidden" group="tab" style="left:817px; top:55px; width:37px; height:22px; ">
- <caption>23</caption>
- </button>
- <button id="btn_d24" class="btn_sw" visibility="hidden" group="tab" style="left:854px; top:55px; width:37px; height:22px; ">
- <caption>24</caption>
- </button>
- <button id="btn_d25" class="btn_sw" visibility="hidden" group="tab" style="left:891px; top:55px; width:37px; height:22px; ">
- <caption>25</caption>
- </button>
- <button id="btn_d26" class="btn_sw" visibility="hidden" group="tab" style="left:928px; top:55px; width:37px; height:22px; ">
- <caption>26</caption>
- </button>
- <button id="btn_d27" class="btn_sw" visibility="hidden" group="tab" style="left:965px; top:55px; width:37px; height:22px; ">
- <caption>27</caption>
- </button>
- <button id="btn_d28" class="btn_sw" visibility="hidden" group="tab" style="left:1002px; top:55px; width:37px; height:22px; ">
- <caption>28</caption>
- </button>
- <button id="btn_d29" class="btn_sw" visibility="hidden" group="tab" style="left:1039px; top:55px; width:37px; height:22px; ">
- <caption>29</caption>
- </button>
- <button id="btn_d30" class="btn_sw" visibility="hidden" group="tab" style="left:1076px; top:55px; width:37px; height:22px; ">
- <caption>30</caption>
- </button>
- <button id="btn_d31" class="btn_sw" visibility="hidden" group="tab" style="left:1113px; top:55px; width:37px; height:22px; ">
- <caption>31</caption>
- </button>
- <button id="button1" class="btn4_letter7" style="left:935px; top:5px; width:116px; height:22px; ">
- <caption>일계표 재고반영</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var node = instance1.selectNodes("/root/main/narclist/narclist");
- model.setValue( "/root/send/saveinfo/data1", getNodeListCSV(node));
- if(submit("TXADT30902")) {
- submit("TRADT30901");
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:760px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_narclist.rows>1) {
- fExeSaveToExcel();
- }
- ]]>
- </script>
- </button>
- <button id="button8" class="btn6_letter8" style="left:990px; top:760px; width:128px; height:22px; ">
- <caption>월사용현황보고서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRADT30902");
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30901", "XMLSTR", "RPADT30901", "", "false","","","","","true", "", "");
- } else {
- exeReportPreview("RPADT30901", "XMLSTR", "RPADT30901", "", "true","","","","","true", "", "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_narclist" nodeset="/root/main/narclist/narclist" class="datagrid2" backcoloralternate="#f0f0f0" caption="약품코드^전일재고^전일재고^전일재고^전일재고^전일재고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^출고^입고/이송^입고/이송^입고/이송^당일재고^당일재고^당일재고^당일재고^당일재고^당월 누적사용|약품코드^창고^병동약국^외래약국^병동상비품^병원총재고^병동약국^병동약국^병동약국^외래약국^외래약국^외래약국^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고수량/출고구분^비고기록^창고입고^이송^이송^창고^병동약국^외래약국^병동상비품^병원총재고^당월 누적사용|약품코드^창고^병동약국^외래약국^병동상비품^병원총재고^출고^반환^출고-반환^출고^반환^출고-반환^D0^D0^D1^D1^D2^D2^N^N^비고기록^창고입고^병동약국^외래약국^창고^병동약국^외래약국^병동상비품^병원총재고^당월 누적사용" colsep="^" colwidth="109, 56, 60, 61, 80, 77, 45, 40, 64, 39, 45, 68, 38, 19, 43, 19, 41, 19, 43, 19, 100, 59, 62, 64, 58, 73, 67, 74, 76, 59" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1195px; height:665px; ">
- <col ref="drugcd" style="text-align:center; "/>
- <col ref="bf_warestocqty" type="input" format="#####.99" style="text-align:right; "/>
- <col ref="bf_instocqty" type="input" format="#####.99" style="text-align:right; "/>
- <col ref="bf_outstocqty" type="input" format="#####.99" style="text-align:right; "/>
- <col ref="bf_fixstocqty" type="input" format="#####.99" style="text-align:right; "/>
- <col ref="bf_totstocqty" type="input" format="#####.99" style="text-align:right; "/>
- <col ref="indeleqty" format="#####.99" style="text-align:right; "/>
- <col ref="inrtnqty" format="#####.99" style="text-align:right; "/>
- <col ref="inrealdeleqty" format="#####.99" style="text-align:right; "/>
- <col ref="outdeleqty" format="#####.99" style="text-align:right; "/>
- <col ref="outrtnqty" format="#####.99" style="text-align:right; "/>
- <col ref="outrealdeleqty" format="#####.99" style="text-align:right; "/>
- <col ref="remqty1" type="input" format="(-)#####.99" style="text-align:right; "/>
- <col ref="remflag1" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>병동약국재고 출고</label>
- <value>1</value>
- </item>
- <item>
- <label>창고재고 출고</label>
- <value>2</value>
- </item>
- <item>
- <label>
- <![CDATA[병동약국재고 -> 상비품 이동]]>
- </label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[창고재고 -> 상비품 이동]]>
- </label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="remqty2" type="input" format="(-)#####.99" style="text-align:right; "/>
- <col ref="remflag2" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>병동약국재고 출고</label>
- <value>1</value>
- </item>
- <item>
- <label>창고재고 출고</label>
- <value>2</value>
- </item>
- <item>
- <label>
- <![CDATA[병동약국재고 -> 상비품 이동]]>
- </label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[창고재고 -> 상비품 이동]]>
- </label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="remqty3" type="input" format="(-)#####.99" style="text-align:right; "/>
- <col ref="remflag3" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>병동약국재고 출고</label>
- <value>1</value>
- </item>
- <item>
- <label>창고재고 출고</label>
- <value>2</value>
- </item>
- <item>
- <label>
- <![CDATA[병동약국재고 -> 상비품 이동]]>
- </label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[창고재고 -> 상비품 이동]]>
- </label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="remqty4" type="input" format="(-)#####.99" style="text-align:right; "/>
- <col ref="remflag4" type="combo">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>병동약국재고 출고</label>
- <value>1</value>
- </item>
- <item>
- <label>창고재고 출고</label>
- <value>2</value>
- </item>
- <item>
- <label>
- <![CDATA[병동약국재고 -> 상비품 이동]]>
- </label>
- <value>3</value>
- </item>
- <item>
- <label>
- <![CDATA[창고재고 -> 상비품 이동]]>
- </label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="remcmt" type="input" style="text-align:left; "/>
- <col ref="winqty" format="#####.99" style="text-align:right; "/>
- <col ref="intranqty" format="#####.99" style="text-align:right; "/>
- <col ref="outtranqty" format="#####.99" style="text-align:right; "/>
- <col ref="warestocqty" format="#####.99" style="text-align:right; "/>
- <col ref="instocqty" format="#####.99" style="text-align:right; "/>
- <col ref="outstocqty" format="#####.99" style="text-align:right; "/>
- <col ref="fixstocqty" format="#####.99" style="text-align:right; "/>
- <col ref="totstocqty" format="#####.99" style="text-align:right; "/>
- <col ref="monthsum" format="#####.99" style="text-align:right; "/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- //setPopupMenu("grd_narclist", true, "/root/hidden/popup/prcp/item", "name", "param");
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- // initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- //for(var i = 1 ; i < grd_narclist.rows; i++) {
- model.refresh();
-
- var idx = grd_narclist.row - 2;
- var bf_warestocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_warestocqty");
- var bf_instocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_instocqty");
- var bf_outstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_outstocqty");
- var bf_fixstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_fixstocqty");
- var bf_totstocqty = model.getValue("/root/main/narclist/narclist[" + idx + "]/bf_totstocqty");
-
- if(grd_narclist.col == grd_narclist.colRef("bf_warestocqty") || grd_narclist.col == grd_narclist.colRef("bf_instocqty") ||
- grd_narclist.col == grd_narclist.colRef("bf_outstocqty")) {
- model.setValue("/root/main/narclist/narclist[" + idx + "]/bf_totstocqty", Number(bf_warestocqty) + Number(bf_instocqty) + Number(bf_outstocqty) + Number(bf_fixstocqty) );
- }
-
- if(grd_narclist.col == grd_narclist.colRef("bf_fixstocqty") ) {
- model.setValue("/root/main/narclist/narclist[" + idx + "]/bf_warestocqty", bf_totstocqty - bf_instocqty - bf_outstocqty - bf_fixstocqty);
- }
-
- model.refresh();
-
- //}
- ]]>
- </script>
- </datagrid>
- <button id="button19" class="btn6_letter6" style="left:880px; top:760px; width:104px; height:22px; ">
- <caption>수불대장출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //수불대장 조회
- submit("TRADT30903", false);
- model.makeValue("/root/send/srchdata/enddd", model.getValue("/root/send/data/print1/item/enddd"));
- model.makeValue("/root/send/srchdata/stocprntyn", "Y");
- model.refresh();
-
- if(model.getValue("/root/send/srchdata/enddd") != "") {
- if (checkbox2.value == 1) { //미리보기가 체크된 경우
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "false","","","","","true", "", "");
- } else {
- exeReportPreview("RPADT30302", "XMLSTR", "RPADT30302", "", "true","","","","","true", "", "");
- }
- model.removeNodeset("/root/send/data/print1/item");
- }
-
- ]]>
- </script>
- </button>
- <select id="checkbox2" ref="/root/send/srchdata/preview" class="checkbox_search" overflow="visible" appearance="full" cols="2" rows="1" style="left:800px; top:765px; width:68px; height:14px; border-style:none; ">
- <choices>
- <item>
- <label>미리보기</label>
- <value>1</value>
- </item>
- </choices>
- </select>
- </xhtml:body>
- </xhtml:html>
|