123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAED00100.xrw
- * 설 명 : 치기공접수
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.09.26
- * 수정이력 : 2010.09.26 손승현 신규
- * 기 타 :
- -->
- <?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 tag="""">
- <xhtml:title>치기공 소모품대장 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <execrcodelist>
- <execrcode>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <basecdflag/>
- <basesuppdeptcd/>
- <seq/>
- </execrcode>
- </execrcodelist>
- <cnsmblslist>
- <item/>
- </cnsmblslist>
- <inqtysum/>
- <useqtysum/>
- <rcptamtsum/>
- <stockqtysum/>
- </main>
- <send>
- <srch>
- <srchfromdd/>
- <srchtodd/>
- <grupcdid/>
- <suppdeptcd/>
- <dutplceinstcd/>
- <basesuppdeptcd/>
- <srchprodid/>
- <srchprodid_1/>
- </srch>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <basecd/>
- <basecdflag/>
- <instcd/>
- </send>
- <init>
- <baseinfo>
- <initinsukind/>
- </baseinfo>
- </init>
- <hidden>
- <item>
- <count/>
- </item>
- </hidden>
- <temp>
- <templst/>
- </temp>
- <rexprnt>
- <srchfromdd/>
- <srchtodd/>
- <prodnm/>
- <metalcd/>
- </rexprnt>
- </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/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/dentalcraftweb/js/dentalcraftcombolist.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetScreenInit();
- fGetComboInit();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAAA00001"/>
- <submission id="TRAEB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/execrcodelist"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAED00106"/>
- <submission id="TRAED00500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/cnsmblslist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**
- * 콤보 초기화
- */
- function fGetComboInit() {
- aezfSetSuppDeptcd();
- model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- // 제작자 조회
- model.setValue("/root/send/basecdflag", "E");
- submit("TRAEB00801");
-
- // 콤포박스 초기화
- addComboItem("cmb_prodid", "전체", "all", "above");
- cmb_prodid.value = "all";
-
- model.refresh();
- }
- /**
- * 화면 기본 초기화
- */
- function fGetScreenInit() {
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/srch/srchfromdd", getCurrentDate() );
- model.setValue("/root/send/srch/srchtodd", getCurrentDate() );
-
- model.refresh();
- }
- function fGetCnsmblsList() {
- model.removenode("/root/main/cnsmblslist");
-
- if( model.getValue("/root/send/srch/srchprodid_1") == "all" ){
- model.setValue("/root/send/srch/srchprodid", "" );
- }else{
- model.setValue("/root/send/srch/srchprodid", model.getValue("/root/send/srch/srchprodid_1") );
- }
-
- submit("TRAED00500");
- var amt_totalsum = 0;
- var in_totalsum = 0;
- var use_totalsum = 0;
- var sto_totalsum = 0;
- var Cnt = getNodesetCount("/root/main/cnsmblslist/item");
- if( Cnt > 0 ) {
- for( var i = 1 ; i <= Cnt ; i++ ) {
- // model.setValue("/root/main/cnsmblslist/item/inqty" , model.getValue("/root/main/cnsmblslist/item/inqty") + " g");
- // model.setValue("/root/main/cnsmblslist/item/useqty", model.getValue("/root/main/cnsmblslist/item/useqty") + " g");
- // model.setValue("/root/main/cnsmblslist/item/stockqty", model.getValue("/root/main/cnsmblslist/item/stockqty") + " g");
- // model.setValue("/root/main/cnsmblslist/item/rcptamt", model.getValue("/root/main/cnsmblslist/item/rcptamt") + " 원");
-
- if(model.getValue("/root/main/cnsmblslist/item["+ i +"]/rcptamt") != "" ){
- amt_totalsum = amt_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/rcptamt") );
- }
- if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/inqty") != "" ){
- in_totalsum = in_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/inqty") );
- }
- if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/useqty") != "" ){
- use_totalsum = use_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/useqty") );
- }
- if( model.getValue("/root/main/cnsmblslist/item["+ i +"]/stockqty") != "" ){
- sto_totalsum = sto_totalsum + parseFloat( model.getValue("/root/main/cnsmblslist/item["+ i +"]/stockqty") );
- }
- model.setValue("/root/main/rcptamtsum" , amt_totalsum);
- model.setValue("/root/main/inqtysum" , in_totalsum);
- model.setValue("/root/main/useqtysum" , use_totalsum);
- model.setValue("/root/main/stockqtysum" , sto_totalsum);
- }
- }
-
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1218;2,885;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">치기공 외주 소모품대장 관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:739px; width:1055px; height:27px; ">
- <button id="btn_prt" class="btn6_letter8" style="left:1px; top:3px; width:56px; height:22px; ">
- <caption>소모품대장 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/rexprnt");
- model.removenode("/root/rexprnt/cnsmblslist");
-
- var Cnt = getNodesetCount("/root/main/cnsmblslist/item");
-
- if( Cnt > 0 ) {
- for( var i = 1 ; i <= Cnt ; i++ ) {
- model.makeNode("/root/rexprnt/cnsmblslist/item["+ i +"]");
- model.copyNode("/root/rexprnt/cnsmblslist/item["+ i +"]", "/root/main/cnsmblslist/item["+ i + "]");
- }
-
- model.setValue("/root/rexprnt/srchtodd", ipt_srchtodd.label);
- model.setValue("/root/rexprnt/srchfromdd", ipt_srchfromdd.label);
- model.setValue("/root/rexprnt/prodnm", cmb_prodid.label);
- model.setValue("/root/rexprnt/metalcd", "");
-
- exeReportPreview("RPAED00400", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }
-
- ]]>
- </script>
- </button>
- <caption id="lbl_rmedadmin" class="cell_1" style="left:733px; top:4px; width:80px; height:20px; text-align:center; vertical-align:middle; ">수납합계</caption>
- <input id="ipt_useqty" ref="/root/main/useqtysum" class="input_default" imemode="hangul" maxlength="20" format="###.#" style="left:469px; top:4px; width:81px; height:19px; text-align:right; padding-right:10; "/>
- <input id="ipt_rcptamtsum" ref="/root/main/rcptamtsum" class="input_default" imemode="hangul" maxlength="20" format="#,###" style="left:816px; top:4px; width:120px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption3" class="cell_1" style="left:308px; top:4px; width:80px; height:19px; text-align:center; vertical-align:middle; ">누계</caption>
- <input id="ipt_inqty" ref="/root/main/inqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:390px; top:4px; width:80px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption8" style="left:938px; top:8px; width:20px; height:15px; ">원</caption>
- <input id="ipt_stockqty" ref="/root/main/stockqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:549px; top:4px; width:82px; height:19px; text-align:right; padding-right:10; "/>
- <input id="input1" ref="/root/main/useqtysum" class="input_default" imemode="hangul" maxlength="20" format="###.#" style="left:474px; top:4px; width:81px; height:19px; text-align:right; padding-right:10; "/>
- <caption id="caption2" class="cell_1" style="left:313px; top:4px; width:80px; height:19px; text-align:center; vertical-align:middle; ">누계</caption>
- <input id="input2" ref="/root/main/inqtysum" class="input_default" imemode="hangul" maxlength="20" format="##.#" style="left:395px; top:4px; width:80px; height:19px; text-align:right; padding-right:10; "/>
- <input id="input3" ref="/root/main/stockqtysum" class="input_default" visibility="hidden" imemode="hangul" maxlength="20" format="##.#" style="left:554px; top:4px; width:82px; height:19px; text-align:right; padding-right:10; "/>
- </group>
- <group id="grp_main" scroll="auto" style="left:0px; top:13px; width:1060px; height:727px; ">
- <group id="grp_srch" style="left:0px; top:10px; width:1050px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:1049px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_4" style="x1:965px; y1:7px; x2:965px; y2:29px; "/>
- <button id="btn_select" class="btn1_letter2" style="left:978px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCnsmblsList();
- // fGetScreenInit();
- ]]>
- </script>
- </button>
- <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:106px; top:8px; width:100px; height:19px; "/>
- <caption id="lbl_srchdd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
- <caption id="lbl_~" class="search_no_b" style="left:208px; top:10px; width:12px; height:17px; ">~</caption>
- <caption id="caption1" class="search_name" style="left:346px; top:9px; width:60px; height:17px; ">구분 :</caption>
- <select1 id="cmb_prodid" ref="/root/send/srch/srchprodid_1" class="combo_search" appearance="minimal" style="left:410px; top:8px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/execrcodelist/execrcode">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption45" class="tit_2" style="left:5px; top:55px; width:190px; height:13px; ">외주 소모품대장 LIST</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1050px; y2:70px; "/>
- <multilinegrid id="multilinegrid1" nodeset="/root/main/cnsmblslist/item" caption="접수일자^접수번호^성명^처방의사^수입(g)^출금(g)^재고(g)^진찰부위^진찰부위^수납금액(원)^제작자^비고|접수일자^접수번호^성명^처방의사^수입(g)^출금(g)^재고(g)^진찰부위^진찰부위^수납금액(원)^제작자^비고" colsep="^" colwidth="100, 90, 90, 90, 80, 80, 80, 100, 100, 100, 90, 85" rowheader="seq" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:75px; width:1050px; height:650px; ">
- <row>
- <col ref="acptdt" rowspan="2" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="acptno" rowspan="2" type="output" format="9999-99-9999" style="text-align:center; "/>
- <col ref="hngnm" rowspan="2" type="output" style="text-align:center; "/>
- <col ref="orddrnm" rowspan="2" type="output" style="text-align:center; "/>
- <col ref="inqty" rowspan="2" type="output" format="###.#" style="text-align:right; padding-right:10; "/>
- <col ref="useqty" rowspan="2" type="output" format="###.#" style="text-align:right; padding-right:10; "/>
- <col ref="stockqty" rowspan="2" type="output" visibility="hidden" format="###.#" style="text-align:right; padding-right:10; "/>
- <col ref="tootfact11" type="output" style="text-align:right; "/>
- <col ref="tootfact12" type="output" style="text-align:left; "/>
- <col ref="rcptamt" rowspan="2" type="output" format="#,###" style="text-align:right; padding-right:10; "/>
- <col ref="prodnm" rowspan="2" type="output" style="text-align:center; "/>
- <col ref="bigo" rowspan="2" type="output" style="text-align:center; "/>
- </row>
- <row>
- <col/>
- <col ref="tootfact21" type="output" style="text-align:right; "/>
- <col ref="tootfact22" type="output" style="text-align:left; "/>
- </row>
- </multilinegrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|