123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952 |
- <?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: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>
- <cond>
- <deptcnts/>
- <instcd/>
- <userid/>
- <stocym/>
- <depthngnm/>
- <totcnts/>
- <instnm/>
- <usernm/>
- </cond>
- <phaminfo>
- </phaminfo>
- <phamuseinfo>
- <dummy/>
- <phamuselist/>
- </phamuseinfo>
- <toggle2_cond>
- <instcd/>
- <stocym/>
- <userid/>
- <usernm/>
- <stocflag/>
- <stocdd/>
- </toggle2_cond>
- <toggle3_cond>
- <instcd/>
- <goodflag/>
- <stocym/>
- <userid/>
- <usernm/>
- </toggle3_cond>
- <toggle4_cond>
- <instcd/>
- <stocym/>
- <userid/>
- <usernm/>
- <stocdeptcd/>
- <stocdeptnm/>
- </toggle4_cond>
- <toggle5_cond>
- <instcd/>
- <stocym/>
- <instnm/>
- <srchflag>1</srchflag>
- </toggle5_cond>
- <toggle6_cond>
- <instcd/>
- <fromstocym/>
- <instnm/>
- <tostocym/>
- </toggle6_cond>
- <outendrsltinfo/>
- <drugacctinfo/>
- <goodinfo/>
- <good_cond>
- <goodcd/>
- <goodnm/>
- <flag/>
- <instcd/>
- <stocym/>
- </good_cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- <orddept/>
- <goodflag/>
- </init>
- <hidden/>
- <tmp>
- <cnts/>
- </tmp>
- </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="../../../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" ev:event="xforms-ready">
- <![CDATA[
-
- // rszfUserGoodFlagList(cmb_cond3goodflag, getUserInfo("userid"));
- // var sDate = getCurrentDate();
- // var cDate = sDate.substring(0, 6);
- // model.setValue("/root/main/cond/stocym" , cDate);
- // model.setValue(opt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- // model.setValue("/root/main/cond/userid", getUserId());
- btn_01.dispatch("DOMActivate");
- rdo_srchflag.dispatch("xforms-value-changed");
- // model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function saveGridToExcel(grdObj){
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grdObj.saveExcel(fileName, "SheetName", false, false, "", "", true);
- }
- }
- ]]>
- </script>
- <submission id="TRRSZ00123" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRRST06901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/phaminfo"/>
- <submission id="TRRST06903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/main/phaminfo"/>
- <submission id="TXRST06901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/phamuseinfo/phamuselist" resultref="/root/hidden"/>
- <submission id="TXRST06902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle2_cond" resultref="/root/hidden"/>
- <submission id="TRRST06902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle2_cond" resultref="/root/tmp/cntinfo"/>
- <submission id="TXRST06903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle3_cond" resultref="/root/hidden"/>
- <submission id="TXRST06904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle4_cond" resultref="/root/hidden"/>
- <submission id="TRRST06905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle5_cond" resultref="/root/main/outendrsltinfo"/>
- <submission id="TRRST06906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/good_cond" resultref="/root/main/goodinfo"/>
- <submission id="TRRST06907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/toggle6_cond" resultref="/root/main/drugacctinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="2,765;1,1182;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:105px; height:13px; ">출고마감처리</caption>
- <case id="case1" selected="true" style="left:0px; top:0px; width:640px; height:340px; "/>
- <switch id="switch1" style="left:0px; top:40px; width:1135px; height:705px; ">
- <case id="case1" selected="true">
- <datagrid id="grd_phamlist" nodeset="/root/main/phaminfo/phamlist" caption="대분류^약품코드^구입단가^비용계정비^구코드^복지부분류^약품명^총합^금액^부서코드1^부서코드2^부서코드3^부서코드4^부서코드5^부서코드6^부서코드7^부서코드8^부서코드9^부서코드10" colsep="^" colwidth="0, 100, 60, 0, 0, 0, 170, 70, 0, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:93px; width:1120px; height:610px; ">
- <col ref="c1"/>
- <col imemode="alpha" ref="c2" type="inputbutton"/>
- <col ref="c3" format="#,###.#" style="text-align:right; "/>
- <col ref="c4"/>
- <col ref="c5"/>
- <col ref="c6"/>
- <col ref="c7" type="input"/>
- <col ref="c8" format="#,###.#" style="text-align:right; "/>
- <col ref="c9"/>
- <col ref="c10" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c11" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c12" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c13" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c14" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c15" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c16" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c17" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c18" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="c19" type="input" format="#,###.#" style="text-align:right; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_phamlist.row > 1) {
- model.resetInstanceNode("/root/main/good_cond");
- model.setValue("/root/main/good_cond/stocym", model.getValue("/root/main/cond/stocym"));
- model.setValue("/root/main/good_cond/instcd", model.getValue("/root/main/cond/instcd"));
- if (grd_phamlist.col == grd_phamlist.colRef("c2") ||grd_phamlist.col == grd_phamlist.colRef("c7")) {
- if (grd_phamlist.col == grd_phamlist.colRef("c2")) {
- model.setValue("/root/main/good_cond/flag", "C");
- model.setValue("/root/main/good_cond/goodcd", grd_phamlist.valueMatrix(grd_phamlist.row, grd_phamlist.col));
- } else if (grd_phamlist.col == grd_phamlist.colRef("c7")) {
- model.setValue("/root/main/good_cond/flag", "N");
- model.setValue("/root/main/good_cond/goodnm", grd_phamlist.valueMatrix(grd_phamlist.row, grd_phamlist.col));
- }
- submit("TRRST06906");
-
- var nodeCnts = getNodesetCount("/root/main/goodinfo/goodlist");
- if (nodeCnts >= "2") {
- grd_goodlist.visible = true;
- } else if (nodeCnts == "1" ){
- var goodcd = model.getValue("/root/main/goodinfo/goodlist/goodcd");
- var goodnm = model.getValue("/root/main/goodinfo/goodlist/goodnm");
- var goodunitcost = model.getValue("/root/main/goodinfo/goodlist/goodunitcost");
- var row2 = grd_phamlist.row;
-
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c2" , goodcd)
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c7" , goodnm)
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c3" , goodunitcost)
- } else {
- messageBox("조회된 결과가 없습니다.", "I");
- }
- } else if (grd_phamlist.col == grd_phamlist.colRef("c10") ||grd_phamlist.col == grd_phamlist.colRef("c11")
- ||grd_phamlist.col == grd_phamlist.colRef("c12") ||grd_phamlist.col == grd_phamlist.colRef("c13")
- ||grd_phamlist.col == grd_phamlist.colRef("c14") ||grd_phamlist.col == grd_phamlist.colRef("c15")
- ||grd_phamlist.col == grd_phamlist.colRef("c16") ||grd_phamlist.col == grd_phamlist.colRef("c17")
- ||grd_phamlist.col == grd_phamlist.colRef("c18") ||grd_phamlist.col == grd_phamlist.colRef("c19")) {
- var row2 = grd_phamlist.row
-
- var c10 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c10");
- if (isNull(c10)) {
- c10 = 0;
- }
- var c11 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c11");
- if (isNull(c11)) {
- c11 = 0;
- }
- var c12 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c12");
- if (isNull(c12)) {
- c12 = 0;
- }
- var c13 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c13");
- if (isNull(c13)) {
- c13 = 0;
- }
- var c14 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c14");
- if (isNull(c14)) {
- c14 = 0;
- }
- var c15 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c15");
- if (isNull(c15)) {
- c15 = 0;
- }
- var c16 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c16");
- if (isNull(c16)) {
- c16 = 0;
- }
- var c17 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c17");
- if (isNull(c17)) {
- c17 = 0;
- }
- var c18 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c18");
- if (isNull(c18)) {
- c18 = 0;
- }
- var c19 = model.getValue("/root/main/phaminfo/phamlist[" + row2 + "]/c19");
- if (isNull(c19)) {
- c19 = 0;
- }
-
- var totalsum = parseInt(c10) + parseInt(c11) + parseInt(c12) + parseInt(c13) + parseInt(c14)
- + parseInt(c15) + parseInt(c16) + parseInt(c17) + parseInt(c18) + parseInt(c19)
- model.setValue("/root/main/phaminfo/phamlist[" + row2 + "]/c8" , totalsum);
- grd_phamlist.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/main/phamuseinfo/phamuselist" visibility="hidden" caption="대분류명^약품코드^관리실코드^수량^구입단가^총합계" colsep="^" colwidth="57, 99, 89, 56, 74, 61" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:550px; width:475px; height:125px; ">
- <col ref="c1"/>
- <col ref="c2"/>
- <col ref="stocdeptcd"/>
- <col ref="cnt"/>
- <col ref="c3"/>
- <col ref="c8"/>
- </datagrid>
- <button id="btn_loadexcel" class="btn2_letter7" disabled="true" style="left:1020px; top:72px; width:97px; height:19px; ">
- <caption>데이터가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_phamlist.loadExcel(fileName, 1);
- ]]>
- </script>
- </button>
- <group id="group2" style="left:0px; top:0px; width:1120px; height:70px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1115px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:5px; top:16px; width:89px; height:17px; ">기관코드 :</caption>
- <output id="opt_instcd" ref="/root/main/cond/instcd" class="output_fix" style="left:95px; top:15px; width:30px; height:19px; "/>
- <output id="opt_instcdnm" ref="/root/main/cond/instnm" class="output_fix" style="left:128px; top:15px; width:202px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:40px; width:88px; height:17px; ">작 업 자 :</caption>
- <output id="opt_jobuser" ref="/root/main/cond/userid" class="output_fix" style="left:95px; top:40px; width:75px; height:19px; "/>
- <output id="opt_jobusernm" ref="/root/main/cond/usernm" class="output_fix" style="left:178px; top:40px; width:152px; height:19px; "/>
- <button id="btm_init" class="btn4_letter2" style="left:1035px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TRRST06901", false) == true) {
- var grd_deptcd = model.getValue("/root/main/phaminfo/deptlist/grd_deptcd");
- if (!isNull(grd_deptcd)) {
- grd_phamlist.caption = "대분류^약품코드^구입단가^비용계정비^구코드^복지부분류^약품명^총합^금액^" + grd_deptcd;
- }
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="cap_fromdd" class="search_name" style="left:355px; top:16px; width:101px; height:17px; ">작업년월</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:455px; top:15px; width:97px; height:19px; text-align:center; "/>
- <button id="button2" class="btn1_letter2" style="left:975px; top:25px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/phamuseinfo");
- model.makeNode("/root/main/phamuseinfo/dummy")
- // model.resetInstanceNode(root.main.phamuseinfo.phamuselist);
-
- var deptcnts = model.getValue("/root/main/cond/deptcnts");
- if (isNull(deptcnts)) {
- messageBox("부서갯수를 입력해 주세요", "C");
- return;
- }
-
- var stocym = model.getValue("/root/main/cond/stocym");
- if (isNull(stocym)) {
- messageBox("작업년월을 입력하십시오", "C");
- return;
- }
-
- // 엑셀에서 데이터를 가지고 와서 실제 사용할 수 있는 데이터 형태로 가공한다.
- var ins = document.models( 0 ).instances( 0 );
- var nodes = ins.selectNodes( "/root/main/phaminfo/phamlist" );
-
- // 속도를 위해서 그리드의 리스트를 먼저 만들어 둔다.
- var length = (parseInt(nodes.length) -1) * deptcnts;
- for(i = 0; i < length ; i++) {
- var newNode = instance1.createElement("phamuselist");
- var node = root.main.phamuseinfo;
- var destNode = root.main.phamuseinfo.dummy;
- node.insertAfter(newNode ,destNode);
- }
- var nodes2 = ins.selectNodes( "/root/main/phamuseinfo/phamuselist" );
- var instcd = model.getValue("/root/main/cond/instcd");
- var userid = model.getValue("/root/main/cond/userid");
- var stocym = model.getValue("/root/main/cond/stocym");
- var cnt=0;
- for(i=1; i<nodes.length; i++) {
- var childnode = nodes.item(i).childnodes;
-
- for(j = 0; j < deptcnts; j++) {
- //대분류명 node copy
- var newNode = childnode.item(0).cloneNode( true );
- nodes2.item(cnt).appendChild(newNode);
-
- //약품코드 node copy
- var newNode = childnode.item(1).cloneNode( true );
- nodes2.item(cnt).appendChild(newNode);
-
- //구입단가 node copy
- var newNode = childnode.item(2).cloneNode( true );
- nodes2.item(cnt).appendChild(newNode);
- //총합계 node copy
- var newNode = childnode.item(7).cloneNode( true );
- nodes2.item(cnt).appendChild(newNode);
-
- //관리부서 node copy
- var firstChildnode = nodes.item(0).childnodes;
- newNode = instance1.createElement("stocdeptcd");
- newNode.value = firstChildnode.item(j+9).value;
- nodes2.item(cnt).appendChild(newNode);
-
- //수량 node copy
- newNode = instance1.createElement("cnt");
- newNode.value = childnode.item(j+9).value;
- nodes2.item(cnt).appendChild(newNode);
-
- // 기관코드를 조회한다.
- newNode = instance1.createElement("instcd");
- newNode.value = instcd
- nodes2.item(cnt).appendChild(newNode);
-
-
- //사용자 ID를 넣어준다.
- newNode = instance1.createElement("userid");
- newNode.value = userid
- nodes2.item(cnt).appendChild(newNode);
-
- //작업년월을 넣어준다.
- newNode = instance1.createElement("stocym");
- newNode.value = stocym
- nodes2.item(cnt).appendChild(newNode);
-
- cnt++;
- }
- }
-
- if(submit("TXRST06901")){
- if (submit("TRRST06901", false) == true) {
- var grd_deptcd = model.getValue("/root/main/phaminfo/deptlist/grd_deptcd");
- if (!isNull(grd_deptcd)) {
- grd_phamlist.caption = "대분류^약품코드^구입단가^비용계정비^구코드^복지부분류^약품명^총합^금액^" + grd_deptcd;
- }
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:965px; y1:10px; x2:965px; y2:63px; "/>
- <caption id="caption3" class="search_name" style="left:565px; top:16px; width:102px; height:17px; ">부서코드찾기</caption>
- <input id="ipt_depthngnm" ref="/root/main/cond/depthngnm" class="input_s_essential" style="left:675px; top:15px; width:97px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if (event.keyCode == "13") {
- btn_deptsrch.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_deptsrch" class="icon_search" style="left:776px; top:17px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/send/reqdata/instcd" , model.getValue("root/main/cond/instcd"));
- model.makeValue("/root/send/reqdata/depthngnm" , ipt_depthngnm.currentText);
- getRszDeptCdList("/root/send/reqdata", "/root/init/orddept");
- var nodeCnts = getNodesetCount("/root/init/orddept/deptlist/deptcd")
- if (nodeCnts > 0 ) {
- group1.visible = true;
- } else {
- messageBox("검색된 결과가 없습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <output id="output1" style="left:795px; top:15px; width:140px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:355px; top:40px; width:101px; height:17px; ">부서갯수</caption>
- <input id="input2" ref="/root/main/cond/deptcnts" class="input_s_essential" appearance="input" style="left:455px; top:40px; width:97px; height:19px; text-align:center; "/>
- </group>
- <datagrid id="grd_goodlist" nodeset="/root/main/goodinfo/goodlist" visibility="hidden" caption="약품코드^약품명^구코드^단가^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 100, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:75px; top:260px; width:580px; height:139px; ">
- <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
- <col ref="goodnm" type="output" style="text-align:left; "/>
- <col ref="oldcd"/>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="instcd" visibility="hidden" _key="true"/>
- <col ref="goodflag" visibility="hidden" _key="true"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- var row = grd_goodlist.row;
-
- var goodcd = model.getValue("/root/main/goodinfo/goodlist[" + row + "]/goodcd");
- var goodnm = model.getValue("/root/main/goodinfo/goodlist[" + row + "]/goodnm");
- var goodunitcost = model.getValue("/root/main/goodinfo/goodlist[" + row + "]/goodunitcost");
-
- var row2 = grd_phamlist.row;
-
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c2" , goodcd)
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c7" , goodnm)
- model.makeValue("/root/main/phaminfo/phamlist[" + row2 + "]/c3" , goodunitcost)
- grd_goodlist.visible = false;
- model.refresh();
-
-
- }
- ]]>
- </script>
- </datagrid>
- <button id="button10" class="btn2_letter3" style="left:865px; top:72px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/phaminfo/phamlist/c1" , "대분류");
- model.makeValue("/root/main/phaminfo/phamlist/c2" , "약품코드");
- model.makeValue("/root/main/phaminfo/phamlist/c3" , "구입단가");
- model.makeValue("/root/main/phaminfo/phamlist/c4" , "비용계정비");
- model.makeValue("/root/main/phaminfo/phamlist/c5" , "구코드");
- model.makeValue("/root/main/phaminfo/phamlist/c6" , "복지부분류");
- model.makeValue("/root/main/phaminfo/phamlist/c7" , "약품명");
- model.makeValue("/root/main/phaminfo/phamlist/c8" , "총합");
- model.makeValue("/root/main/phaminfo/phamlist/c9" , "금액");
- if(isNull(model.getValue("/root/main/phaminfo/phamlist/c10"))) {
- model.makeValue("/root/main/phaminfo/phamlist/c10" , "부서코드");
- }
- model.makeValue("/root/main/phaminfo/phamlist/c11" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c12" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c13" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c14" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c15" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c16" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c17" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c18" , "");
- model.makeValue("/root/main/phaminfo/phamlist/c19" , "");
- grd_phamlist.refresh();
- grd_phamlist.addRow();
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter7" style="left:920px; top:72px; width:97px; height:19px; ">
- <caption>실사량 가져오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRRST06903");
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn5_letter3" style="left:810px; top:72px; width:53px; height:19px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var Stocy = model.getValue("/root/main/cond/stocym").substring(0,4);
- var Stocm = model.getValue("/root/main/cond/stocym").substring(5,7);
- misfSaveExcel(grd_phamlist , Stocy+"년"+Stocm+"월"+" "+"재고실사내역");
- ]]>
- </script>
- </button>
- </case>
- <case id="case2">
- <select1 id="radio1" ref="/root/main/toggle2_cond/stocflag" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:165px; top:19px; width:345px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>처방출고처리</label>
- <value>P</value>
- </item>
- <item>
- <label>수액처방출고처리</label>
- <value>H</value>
- </item>
- <item>
- <label>청구내역출고처리</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_stocym" ref="/root/main/toggle2_cond/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:282px; top:62px; width:95px; height:19px; "/>
- <caption id="caption61" class="tit_2" style="left:60px; top:60px; width:100px; height:13px; ">청구내역 출고</caption>
- <button id="button39" img="/com/commonweb/images/geomsaek4.gif" hoverImg="/com/commonweb/images/geomsaek4_o.gif" style="left:362px; top:73px; width:23px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; ">
- <caption/>
- </button>
- <select1 id="cmb_instcd" ref="/root/main/toggle2_cond/instcd" class="combo_essential" appearance="minimal" style="left:282px; top:40px; width:223px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line23" class="line_2" style="x1:181px; y1:82px; x2:508px; y2:82px; "/>
- <line id="line35" class="line_3" style="x1:181px; y1:104px; x2:508px; y2:104px; "/>
- <caption id="caption7" class="cell_1" style="left:172px; top:84px; width:108px; height:19px; vertical-align:middle; ">작업자</caption>
- <caption id="caption44" class="cell_1" style="left:172px; top:62px; width:108px; height:19px; vertical-align:middle; ">마감년월</caption>
- <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:50px; top:15px; width:465px; height:120px; border-color:#788daf; "/>
- <line id="line2" class="line_2" style="x1:181px; y1:60px; x2:508px; y2:60px; "/>
- <button id="btn_gen" class="btn2_letter2" style="left:462px; top:107px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var stocflag = model.getValue("/root/main/toggle2_cond/stocflag");
- if (stocflag == "P") {
- for (var i = 1; i <= 31; i++ ) {
- var dd = "";
- if ( i < 10) {
- dd = "0" + (i).toString();
- } else {
- dd = (i).toString();
- }
-
- var stocdd = model.getValue("/root/main/toggle2_cond/stocym") + dd;
- model.setValue("/root/main/toggle2_cond/stocdd", stocdd);
- submit("TXRST06902");
- }
- if (submit("TRRST06902") == true) {
- var cnts = getNodesetCount("/root/tmp/cntinfo/cntlist");
- if (cnts > 1 ) {
- messageBox("처방출고처리가 완료되지 않았습니다. \n 다시 생성버튼을 눌러주세요.", "I");
- } else {
- messageBox("성공적으로 처방출고처리 되었습니다.", "I");
- }
- }
- }else if(stocflag == "H"){
- for (var i = 1; i <= 31; i++ ) {
- var dd = "";
- if ( i < 10) {
- dd = "0" + (i).toString();
- } else {
- dd = (i).toString();
- }
-
- var stocdd = model.getValue("/root/main/toggle2_cond/stocym") + dd;
- model.setValue("/root/main/toggle2_cond/stocdd", stocdd);
- submit("TXRST06902");
- }
- if (submit("TRRST06902") == true) {
- var cnts = getNodesetCount("/root/tmp/cntinfo/cntlist");
- if (cnts > 1 ) {
- messageBox("처방출고처리가 완료되지 않았습니다. \n 다시 생성버튼을 눌러주세요.", "I");
- } else {
- messageBox("성공적으로 처방출고처리 되었습니다.", "I");
- }
- }
- }else {
- if (submit("TXRST06902") == true) {
- messageBox("작업이 성공적으로 수행되었습니다.", "I");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption9" class="cell_1" style="left:172px; top:40px; width:108px; height:19px; vertical-align:middle; ">기관코드</caption>
- <line id="line7" class="line_1" style="x1:170px; y1:35px; x2:506px; y2:35px; "/>
- <input id="ipt_userid" ref="/root/main/toggle2_cond/userid" class="input_default" appearance="input" style="left:282px; top:84px; width:79px; height:19px; "/>
- <input id="ipt_usernm" ref="/root/main/toggle2_cond/usernm" class="input_default" appearance="input" style="left:365px; top:84px; width:140px; height:19px; "/>
- </case>
- <case id="case3">
- <input id="ipt_cond3stocym" ref="/root/main/toggle3_cond/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:162px; top:84px; width:90px; height:19px; "/>
- <caption id="caption1" class="tit_2" style="left:55px; top:20px; width:100px; height:14px; ">마감처리</caption>
- <select1 id="cmb_cond3instcd" ref="/root/main/toggle3_cond/instcd" class="combo_essential" appearance="minimal" style="left:162px; top:40px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line3" class="line_2" style="x1:51px; y1:105px; x2:378px; y2:105px; "/>
- <line id="line4" class="line_3" style="x1:51px; y1:126px; x2:378px; y2:126px; "/>
- <caption id="caption5" class="cell_1" style="left:52px; top:84px; width:108px; height:19px; vertical-align:middle; ">작업년월</caption>
- <shape id="rectangle1" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:50px; top:15px; width:335px; height:140px; border-color:#788daf; "/>
- <button id="button7" class="btn2_letter2" style="left:332px; top:129px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TXRST06903") == true) {
- messageBox("작업이 성공적으로 수행되었습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <line id="line5" class="line_2" style="x1:51px; y1:82px; x2:378px; y2:82px; "/>
- <input id="ipt_cond3userid" ref="/root/main/toggle3_cond/userid" class="input_default" appearance="input" style="left:162px; top:106px; width:79px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:52px; top:106px; width:108px; height:19px; vertical-align:middle; ">작업자</caption>
- <caption id="caption10" class="cell_1" style="left:52px; top:40px; width:108px; height:19px; vertical-align:middle; ">기관코드</caption>
- <input id="ipt_cond3usernm" ref="/root/main/toggle3_cond/usernm" class="input_default" appearance="input" style="left:245px; top:106px; width:130px; height:19px; "/>
- <line id="line6" class="line_1" style="x1:51px; y1:35px; x2:378px; y2:35px; "/>
- <caption id="caption11" class="cell_1" style="left:52px; top:62px; width:108px; height:19px; vertical-align:middle; ">물품구분</caption>
- <line id="line9" class="line_2" style="x1:51px; y1:60px; x2:378px; y2:60px; "/>
- <select1 id="cmb_cond3goodflag" ref="/root/main/toggle3_cond/goodflag" appearance="minimal" style="left:162px; top:62px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case4">
- <input id="ipt_cond4userid" ref="/root/main/toggle4_cond/userid" class="input_default" appearance="input" style="left:172px; top:94px; width:79px; height:19px; "/>
- <line id="line8" class="line_2" style="x1:61px; y1:70px; x2:388px; y2:70px; "/>
- <input id="ipt_cond4usernm" ref="/root/main/toggle4_cond/usernm" class="input_default" appearance="input" style="left:255px; top:94px; width:130px; height:19px; "/>
- <input id="input9" ref="/root/main/toggle4_cond/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:172px; top:72px; width:90px; height:19px; "/>
- <shape id="rectangle2" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:60px; top:25px; width:335px; height:140px; border-color:#788daf; "/>
- <line id="line10" class="line_2" style="x1:61px; y1:114px; x2:388px; y2:114px; "/>
- <line id="line11" class="line_3" style="x1:61px; y1:137px; x2:388px; y2:137px; "/>
- <line id="line12" class="line_2" style="x1:61px; y1:92px; x2:388px; y2:92px; "/>
- <line id="line13" class="line_1" style="x1:61px; y1:45px; x2:388px; y2:45px; "/>
- <button id="button6" class="btn2_letter2" style="left:342px; top:139px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (submit("TXRST06904") == true) {
- messageBox("작업이 성공적으로 수행되었습니다.", "I");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_cond4instcd" ref="/root/main/toggle4_cond/instcd" class="combo_essential" appearance="minimal" style="left:172px; top:50px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="cell_1" style="left:62px; top:50px; width:108px; height:19px; vertical-align:middle; ">기관</caption>
- <caption id="caption13" class="tit_2" style="left:65px; top:30px; width:100px; height:14px; ">출고전표처리</caption>
- <caption id="caption14" class="cell_1" style="left:62px; top:72px; width:108px; height:19px; vertical-align:middle; ">작업년월</caption>
- <caption id="caption15" class="cell_1" style="left:62px; top:116px; width:108px; height:19px; vertical-align:middle; ">작업부서</caption>
- <caption id="caption16" class="cell_1" style="left:62px; top:94px; width:108px; height:19px; vertical-align:middle; ">작업자</caption>
- <input id="ipt_deptcd" ref="/root/main/toggle4_cond/stocdeptcd" class="input_default" appearance="input" style="left:172px; top:116px; width:79px; height:19px; "/>
- <input id="ipt_deptnm" ref="/root/main/toggle4_cond/stocdeptnm" class="input_default" appearance="input" style="left:255px; top:116px; width:130px; height:19px; "/>
- </case>
- <case id="case5">
- <datagrid id="datagrid3" nodeset="/root/main/outendrsltinfo/outendrsltlist" caption="작업년월^대분류
코드^대분류명^비용계정명^비용계정코드^dcntnm^dcntcd^ 이월수량^ 전월이월
금액^ 입고수량^ 입고금액^출고수량^ 출고금액^ 재고수량^재고금액|작업년월^대분류
코드^대분류명^비용계정명^비용계정코드^dcntnm^dcntcd^ 이월수량^ 전월이월
금액^ 입고수량^ 입고금액^출고수량^ 출고금액^ 재고수량^재고금액" colsep="^" colwidth="57, 45, 64, 94, 24, 12, 17, 82, 113, 112, 113, 98, 127, 91, 118" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:62px; width:1090px; height:635px; ">
- <col ref="stocym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="goodlrgcd" visibility="hidden"/>
- <col ref="goodlrgnm" style="text-align:left; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="dcntnm" visibility="hidden"/>
- <col ref="dcntcd" visibility="hidden"/>
- <col ref="beftotqty00" format="#,###.#" style="text-align:right; "/>
- <col ref="appunitcost00" format="#,###.#" style="text-align:right; "/>
- <col ref="winqty01" format="#,###.#" style="text-align:right; "/>
- <col ref="winamt" format="#,###.#" style="text-align:right; "/>
- <col ref="outcnts" format="#,###.#" style="text-align:right; "/>
- <col ref="totuseamt" format="#,###.#" style="text-align:right; "/>
- <col ref="stoccnts" format="#,###.#" style="text-align:right; "/>
- <col ref="stocamt" format="#,###.#" style="text-align:right; "/>
- </datagrid>
- <caption id="caption18" class="tit_2" style="left:0px; top:45px; width:140px; height:14px; ">출고마감 처리 결과</caption>
- <button id="button4" class="btn2_letter2" style="left:1025px; top:40px; width:44px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- saveGridToExcel(datagrid3);
- ]]>
- </script>
- </button>
- <group id="group3" style="left:0px; top:0px; width:1090px; height:40px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:-10px; top:0px; width:1095px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption17" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
- <output id="output2" ref="/root/main/toggle5_cond/instcd" class="output_fix" style="left:95px; top:10px; width:30px; height:19px; "/>
- <output id="output3" ref="/root/main/toggle5_cond/instnm" class="output_fix" style="left:128px; top:10px; width:202px; height:19px; "/>
- <button id="button9" class="btn4_letter2" style="left:970px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(submit("TRRST06905")){
- datagrid3.subtotal("clear", 0, 0);
- for(iCol = 1; iCol <=datagrid3.cols ; iCol++){
- if((datagrid3.colRef("stocym")!= iCol)&&(datagrid3.colRef("acntnm")!= iCol)) {
- datagrid3.subtotal("sum", 1, iCol, "format:(-)#,###.0; ", "background-color:#ffff99; font-weight:bold; ", datagrid3.colRef("stocym"), "합계");
- }
- }
-
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption19" class="search_name" style="left:355px; top:11px; width:101px; height:17px; ">작업년월</caption>
- <input id="input1" ref="/root/main/toggle5_cond/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:455px; top:10px; width:97px; height:19px; text-align:center; "/>
- <line id="line14" class="line_4" style="x1:885px; y1:5px; x2:885px; y2:38px; "/>
- <select1 id="rdo_srchflag" ref="/root/main/toggle5_cond/srchflag" appearance="full" cols="2" overflow="visible" style="left:635px; top:10px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>대분류별</label>
- <value>1</value>
- </item>
- <item>
- <label>비용계정별</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srchflag = model.getValue("/root/main/toggle5_cond/srchflag");
- if(srchflag=="1"){
- datagrid3.colHidden(datagrid3.colRef("goodlrgnm"))=false;
- datagrid3.colHidden(datagrid3.colRef("acntnm"))=true;
- }else if(srchflag=="2"){
- datagrid3.colHidden(datagrid3.colRef("goodlrgnm"))=true;
- datagrid3.colHidden(datagrid3.colRef("acntnm"))=false;
-
- }
- ]]>
- </script>
- </select1>
- <caption id="caption20" class="search_name" style="left:570px; top:11px; width:60px; height:17px; ">구분 :</caption>
- <caption id="caption21" class="search_name" style="left:570px; top:11px; width:60px; height:17px; ">구분 :</caption>
- <input id="input3" ref="/root/main/toggle5_cond/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:455px; top:10px; width:97px; height:19px; text-align:center; "/>
- <caption id="caption22" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
- <caption id="caption23" class="search_name" style="left:355px; top:11px; width:101px; height:17px; ">작업년월</caption>
- <output id="output4" ref="/root/main/toggle5_cond/instcd" class="output_fix" style="left:95px; top:10px; width:30px; height:19px; "/>
- <output id="output5" ref="/root/main/toggle5_cond/instnm" class="output_fix" style="left:128px; top:10px; width:202px; height:19px; "/>
- </group>
- </case>
- <case id="case6">
- <group id="group4" style="left:0px; top:0px; width:1090px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:-10px; top:0px; width:1095px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption24" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
- <output id="output6" ref="/root/main/toggle5_cond/instcd" class="output_fix" style="left:95px; top:10px; width:30px; height:19px; "/>
- <output id="output7" ref="/root/main/toggle5_cond/instnm" class="output_fix" style="left:128px; top:10px; width:202px; height:19px; "/>
- <button id="button13" class="btn4_letter2" style="left:970px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(submit("TRRST06907")){
- datagrid4.subtotal("clear", 0, 0);
- for(iCol = 1; iCol <=datagrid4.cols ; iCol++){
- if( (datagrid4.colRef("stocym")!= iCol) && (datagrid4.colRef("acntnm")!= iCol) ) {
- datagrid4.subtotal("sum", 1, iCol, "format:(-)#,###.0; ", "background-color:#ffff99; font-weight:bold; ", datagrid4.colRef("stocym"), "합계");
- }
- }
-
-
- }
- ]]>
- </script>
- </button>
- <caption id="caption25" class="search_name" style="left:355px; top:11px; width:101px; height:17px; ">작업년월</caption>
- <input id="input4" ref="/root/main/toggle5_cond/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:455px; top:10px; width:97px; height:19px; text-align:center; "/>
- <line id="line15" class="line_4" style="x1:885px; y1:5px; x2:885px; y2:38px; "/>
- <input id="input5" ref="/root/main/toggle6_cond/fromstocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:455px; top:10px; width:97px; height:19px; text-align:center; "/>
- <caption id="caption28" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기관코드 :</caption>
- <caption id="caption29" class="search_name" style="left:355px; top:11px; width:101px; height:17px; ">작업년월</caption>
- <output id="output8" ref="/root/main/toggle6_cond/instcd" class="output_fix" style="left:95px; top:10px; width:30px; height:19px; "/>
- <output id="output9" ref="/root/main/toggle6_cond/instnm" class="output_fix" style="left:128px; top:10px; width:202px; height:19px; "/>
- <caption id="caption27" class="search_n_b" style="left:560px; top:12px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="input6" ref="/root/main/toggle6_cond/tostocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:581px; top:11px; width:97px; height:19px; text-align:center; "/>
- </group>
- <datagrid id="datagrid4" nodeset="/root/main/drugacctinfo/drugacctlist" caption="작업년월^비용계정명^비용계정코드^dcntnm^dcntcd^이월수량^전월이월금액^ 입고수량^ 입고금액^ 재고수량^재고금액|작업년월^비용계정명^비용계정코드^dcntnm^dcntcd^이월수량^전월이월금액^ 입고수량^ 입고금액^ 재고수량^재고금액" colsep="^" colwidth="178, 94, 24, 12, 17, 100, 140, 112, 142, 111, 146" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:62px; width:1090px; height:635px; ">
- <col ref="stocym" style="text-align:center; "/>
- <col ref="acntnm" style="text-align:left; "/>
- <col ref="acntcd" visibility="hidden"/>
- <col ref="dcntnm" visibility="hidden"/>
- <col ref="dcntcd" visibility="hidden"/>
- <col ref="beftotqty00" format="#,###.#" style="text-align:right; "/>
- <col ref="appunitcost00" format="#,###.#" style="text-align:right; "/>
- <col ref="winqty01" format="#,###.#" style="text-align:right; "/>
- <col ref="winamt" format="#,###.#" style="text-align:right; "/>
- <col ref="stoccnts" format="#,###.#" style="text-align:right; "/>
- <col ref="stocamt" format="#,###.#" style="text-align:right; "/>
- </datagrid>
- <button id="button14" class="btn2_letter2" style="left:1025px; top:40px; width:44px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- saveGridToExcel(datagrid4);
- ]]>
- </script>
- </button>
- <caption id="caption26" class="tit_2" style="left:0px; top:45px; width:140px; height:14px; ">약품 회계자료조회</caption>
- </case>
- </switch>
- <button id="button1" class="btn_sw" group="tab" style="left:231px; top:20px; width:115px; height:22px; ">
- <caption>마감처리</caption>
- <toggle case="case3" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rszfUserInstList(cmb_cond3instcd,getUserInfo("userid"));
- model.setValue(cmb_cond3instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_cond3userid.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_cond3usernm.attribute("ref") , getUserInfo("usernm"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
- model.setValue(cmb_cond3goodflag.attribute("ref") , "PH");
- model.setValue("/root/main/toggle3_cond/stocym" , model.getValue("/root/main/cond/stocym"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn_sw" visibility="hidden" group="tab" style="left:796px; top:20px; width:115px; height:22px; ">
- <caption>사용분 전표처리</caption>
- <toggle case="case4" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rszfUserInstList(cmb_cond4instcd ,getUserInfo("userid"));
- model.setValue(cmb_cond4instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(ipt_cond4userid.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_cond4usernm.attribute("ref") , getUserInfo("usernm"));
- model.setValue("/root/main/toggle4_cond/stocym" , model.getValue("/root/main/cond/stocym"));
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:650px; top:115px; width:255px; height:185px; ">
- <datagrid id="datagrid2" nodeset="/root/init/orddept/deptlist" caption="부서명^부서코드명^영문약어" colsep="^" colwidth="100, 82, 55" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:25px; width:255px; height:160px; ">
- <col ref="depthngnm"/>
- <col ref="deptcd" type="input"/>
- <col ref="deptengabbr"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- datagrid2.editCell();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (datagrid2.col == datagrid2.colRef("depthngnm")) {
- grd_phamlist.valueMatrix(grd_phamlist.row, grd_phamlist.col) = model.getValue("/root/init/orddept/deptlist[" + datagrid2.row + "]/deptcd");
- group1.visible = false;
- } else {
- datagrid2.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter3" style="left:185px; top:4px; width:53px; height:19px; ">
- <caption>숨기기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <button id="button8" class="btn_sw" group="tab" style="left:346px; top:20px; width:115px; height:22px; ">
- <caption>처리결과</caption>
- <toggle case="case5" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rszfUserInstList(cmb_cond4instcd ,getUserInfo("userid"));
- model.setValue("/root/main/toggle5_cond/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue(output3.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue("/root/main/toggle5_cond/stocym" , model.getValue("/root/main/cond/stocym"));
- model.setValue("/root/main/toggle5_cond/srchflag","2");
- model.refresh();
- rdo_srchflag.dispatch("xforms-value-changed");
-
- ]]>
- </script>
- </button>
- <button id="btn_01" class="btn_sw" group="tab" selected="true" style="left:1px; top:20px; width:115px; height:22px; ">
- <caption>재고실사내역</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfUserGoodFlagList(cmb_cond3goodflag, getUserInfo("userid"));
- var sDate = getCurrentDate();
- var cDate = sDate.substring(0, 6);
- model.setValue("/root/main/cond/stocym" , cDate);
- model.setValue(opt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue("/root/main/cond/userid", getUserId());
- model.setValue("/root/main/cond/usernm", getUserInfo("usernm"));
-
- model.toggle("case1");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_03" class="btn_sw" disabled="true" group="tab" style="left:116px; top:20px; width:115px; height:22px; ">
- <caption>청구내역출고처리</caption>
- <!--<toggle case="case2" ev:event="DOMActivate"/>-->
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_userid.attribute("ref") , getUserInfo("userid"));
- model.setValue(ipt_usernm.attribute("ref") , getUserInfo("usernm"));
- model.setValue("/root/main/toggle2_cond/stocym", model.getValue("/root/main/cond/stocym"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button12" class="btn_sw" group="tab" style="left:460px; top:20px; width:115px; height:22px; ">
- <caption>회계자료조회</caption>
- <toggle case="case6" ev:event="DOMActivate"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- rszfUserInstList(cmb_cond4instcd ,getUserInfo("userid"));
- model.setValue("/root/main/toggle6_cond/instcd" , getUserInfo("dutplceinstcd"));
- model.setValue(output9.attribute("ref"), getUserInfo("dutplceinstnm"));
- model.setValue("/root/main/toggle6_cond/tostocym" , model.getValue("/root/main/cond/stocym"));
- model.setValue("/root/main/toggle6_cond/fromstocym" , model.getValue("/root/main/cond/stocym"));
- model.refresh();
-
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|