123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAED00200.xrw
- * 설 명 : 치기공 입출고 관리
- * 설 계 자 : 손승현
- * 작 성 자 : 최예원
- * 작 성 일 : 2010.11.01
- * 수정이력 : 2010.11.01 최예원 신규
- * 기 타 :
- -->
- <?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="1">
- <xhtml:title>치 기공접수</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <eqmtlist>
- <item>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <basesuppdeptcd/>
- <basecdflag/>
- </item>
- </eqmtlist>
- <inoutlist>
- <item>
- <inoutgb/>
- <inoutseq/>
- <materialcd/>
- <inoutdt/>
- <inoutqty/>
- <cnclyn/>
- <cncldt/>
- <bigo/>
- </item>
- </inoutlist>
- <inoutdata>
- <inoutgb/>
- <materialcd/>
- <inoutdt/>
- <inoutqty/>
- <cnclyn/>
- <cncldt/>
- <bigo/>
- <inoutseq/>
- </inoutdata>
- <inoutgbcdlist>
- <item>
- <cdid>1</cdid>
- <cdnm>입고</cdnm>
- </item>
- <item>
- <cdid>2</cdid>
- <cdnm>출고</cdnm>
- </item>
- </inoutgbcdlist>
- <stocklist/>
- </main>
- <send>
- <srch>
- <srchfromdt/>
- <srchcncl/>
- <metalcd/>
- <useqty/>
- <srchtodt/>
- <inoutseq/>
- <srchmaterialcd/>
- </srch>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <basecd/>
- <basecdflag/>
- </send>
- <init>
- <item>
- <count/>
- </item>
- </init>
- <hidden>
- </hidden>
- <temp>
- <item>
- <count/>
- </item>
- </temp>
- <init2>
- <item>
- <count/>
- </item>
- </init2>
- </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" ev:event="xforms-ready">
- <![CDATA[
- fGetScreenInit();
- fGetComboInit();
- // model.setValue("/root/send/srch/srchdt", getCurrentDate());
- btn_select.dispatch( "DOMActivate" );
- model.refresh();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAED00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/acptlist"/>
- <submission id="TRAED00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eqmtlist"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAED00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inoutlist"/>
- <submission id="TXAED00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/inoutdata" resultref="/root/temp"/>
- <submission id="TXAED00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/inoutdata" resultref="/root/temp"/>
- <submission id="TRAED00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TXAED00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRAED00300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stocklist"/>
- <submission id="TXAED00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRAED00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/init"/>
- <submission id="TRAED00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/init2"/>
- <submission id="TXAED00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/inoutdata" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var click_useqty = 0;
- /**
- * 콤보 초기화
- */
- function fGetComboInit() {
- // 근무지코드 셋팅
- aezfSetSuppDeptcd();
- // 금속종류 코드 LIST(대분류)
- model.setValue("/root/send/basecdflag", "H");
- submit("TRAED00103");
- model.refresh();
- }
- /**
- * 화면 기본 초기화
- */
- function fGetScreenInit() {
- model.removeNodeset("/root/main/inoutlist");
- model.resetInstanceNode("/root/main/inoutlist");
- model.resetInstanceNode("/root/main/inoutdata");
- model.resetInstanceNode("/root/send/srch");
-
- grp_prcpinfo.disabled = true;
- // tex_bigo.disabled = true;
-
- model.setValue("/root/send/srch/srchcncl", "N" );
- var curdate = getCurrentDate();
- model.setValue("/root/send/srch/srchfromdt", curdate );
-
-
- model.setValue("/root/send/srch/srchtodt", curdate);
- // 재고 LIST 조회
- submit("TRAED00300");
- model.refresh();
- }
-
- /**
- * 입출고 LIST 조회
- */
- function fGetInoutList() {
- submit("TRAED00200");
- model.refresh();
- }
-
- function fStockInsert(){
- model.makeValue("/root/send/data/m" , "i");
- model.makeValue("/root/send/data/materialcd" , model.getValue("/root/main/inoutdata/materialcd") );
- model.makeValue("/root/send/data/materialnm" , ipt_inoutqty.label );
- model.makeValue("/root/send/data/stockqty" , model.getValue("/root/main/inoutdata/inoutqty"));
- submit("TXAED00301");
- model.refresh();
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,804;2,791;" 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:688px; width:800px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/rexprnt/inoutlist/item");
- var row = getNodesetCount("/root/main/inoutlist/item");
-
- if( row > 0 ) {
- for (var i = 1 ; i <= row ; i++ ) {
- model.makeNode("/root/rexprnt/inoutlist/item[" + i + "]");
- model.copyNode("/root/rexprnt/inoutlist/item[" + i + "]" ,"/root/main/inoutlist/item[" + i + "]" );
- model.setValue("/root/rexprnt/inoutlist/item[" + i + "]/inoutgb", grd_maininfo.labelMatrix(i, grd_maininfo.colRef("inoutgb")) );
- model.setValue("/root/rexprnt/inoutlist/item[" + i + "]/materialcd", grd_maininfo.labelMatrix(i, grd_maininfo.colRef("materialcd")) );
- }
- exeReportPreview("RPAED00200", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- } else {
- messageBox("입/출고 LIST가", "I004", "조회 또는 등록 후 출력하십시오.");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:670px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var selrow = grd_maininfo.row;
-
- if( model.getValue("/root/main/inoutdata/inoutseq") == "" ) {
- // tex_bigo.disabled = true;
- messageBox("등록버튼을 클릭하셔서 입/출고 데이터를 입력한 후", "C003");
- } else {
- if( model.getValue("/root/main/inoutdata/inoutgb") == "" ) {
- messageBox("입/출고 구분 데이터를", "C001");
- } else if ( model.getValue("/root/main/inoutdata/materialcd") == "" ) {
- messageBox("금속 종류 데이터를", "C001");
- } else if ( model.getValue("/root/main/inoutdata/inoutdt") == "" ) {
- messageBox("입/출고 일자 데이터를", "C001");
- } else if ( model.getValue("/root/main/inoutdata/inoutqty") == "" ) {
- messageBox("입/출고 수량 데이터를", "C001");
- } else {
- if( model.getValue("/root/main/inoutlist/item["+selrow+"]/cnclyn") != "Y" ){
- model.setValue("/root/send/srch/srchmaterialcd", model.getValue("/root/main/inoutdata/materialcd"));
- model.setValue("/root/send/srch/inoutseq", model.getValue("/root/main/inoutdata/inoutseq"));
- submit("TRAED00202");
- if( model.getValue("/root/init/item/count") == 0 ) { // insert
- if ( messageBox("입/출고 데이터를","Q002")==6 ) {
- model.setValue("/root/main/inoutdata/cnclyn", "N" )
- model.setValue("/root/main/inoutdata/cncldt", "" );
- submit("TXAED00200"); // 입출고 저장
-
- fGetInoutList();
- model.resetInstanceNode("/root/main/inoutdata");
- }
- } else { // update
- if ( messageBox("입/출고 비고 데이터를","Q012")==6 ) {
- submit("TXAED00202"); // 입출고 UPDATE
- model.resetInstanceNode("/root/main/inoutdata");
- }
- }
- } else {
- messageBox("이미 삭제된 입/출고 데이터" , "E008");
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_edit" class="btn4_letter2" style="left:730px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // tex_bigo.disabled = false;
- var selrow = grd_maininfo.row;
- var row = grd_maininfo.rows;
- if( row >1 ) {
- /* if( model.getValue("/root/main/inoutdata/bigo") == "" ) {
- messageBox("삭제시, 비고란에 취소사유를", "C001");
- } else {*/
- if( model.getValue("/root/main/inoutlist/item["+selrow+"]/cnclyn") != "Y" ) {
- if ( messageBox("입/출고 데이터를","Q001")==6 ) {
- model.setValue("/root/main/inoutdata/cnclyn", "Y")
- model.setValue("/root/main/inoutdata/cncldt", getCurrentDate());
- submit("TXAED00201");
- fGetInoutList();
- model.resetInstanceNode("/root/main/inoutdata");
- }
- } else {
- messageBox("이미 삭제된 입/출고 데이터" , "E008");
- }
- // }
- } else {
- messageBox("삭제할 입/출고" , "E013");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:598px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetScreenInit();
- fGetComboInit();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_main" scroll="auto" style="left:1px; top:13px; width:800px; height:675px; ">
- <group id="grp_srch" style="left:0px; top:9px; width:800px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:785px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_4" style="x1:700px; y1:7px; x2:700px; y2:29px; "/>
- <button id="btn_select" class="btn1_letter2" style="left:715px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getValue("/root/send/srch/srchcncl") == "" ){
- model.setValue("/root/send/srch/srchcncl", "N" );
- }
- model.resetInstanceNode("/root/main/inoutlist");
- fGetInoutList();
- ]]>
- </script>
- </button>
- <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdt" class="input_s_essential" inputtype="date" style="left:110px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( model.getValue("/root/send/srch/srchdt") == ""){
- if ( event.keyCode == 13 ) {
- model.refresh();
- model.removeNodeset("/root/main/inoutlist");
- fGetInoutList();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="lbl_srchsearch" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/srch/srchcncl" style="left:341px; top:7px; width:25px; height:20px; "/>
- <caption id="caption75" style="left:366px; top:8px; width:74px; height:20px; ">취소포함</caption>
- <input id="ipt_srchtodd" ref="/root/send/srch/srchtodt" class="input_s_essential" inputtype="date" style="left:230px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if( model.getValue("/root/send/srch/srchdt") == ""){
- if ( event.keyCode == 13 ) {
- model.refresh();
- model.removeNodeset("/root/main/inoutlist");
- fGetInoutList();
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:210px; top:6px; width:20px; height:25px; text-align:center; ">~</caption>
- </group>
- <datagrid id="grd_maininfo" nodeset="/root/main/inoutlist/item" caption="No^입/출고 구분^금속명^일 자^수 량^취소여부^취소일자^비고" colsep="^" colwidth="40, 80, 150, 90, 60, 70, 90, 180" dataheight="23" defaultrows="1" ellipsis="true" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:80px; width:785px; height:480px; text-align:center; ">
- <col ref="inoutseq" type="output"/>
- <col ref="inoutgb" type="combo">
- <choices>
- <itemset nodeset="/root/main/inoutgbcdlist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="materialcd" type="combo">
- <choices>
- <itemset nodeset="/root/main/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="inoutdt" type="output"/>
- <col ref="inoutqty" type="output"/>
- <col ref="cnclyn"/>
- <col ref="cncldt" format="yyyy-mm-dd"/>
- <col ref="bigo" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_maininfo.rows;
- var idx = grd_maininfo.row;
- if( row > 1 ) {
- model.copyNode("/root/main/inoutdata","/root/main/inoutlist/item["+ idx +"]");
- } else {
- messageBox("조회된 입/출고 정보가", "I004");
- }
- click_useqty = model.getValue("/root/main/inoutdata/inoutqty");
- grp_prcpinfo.disabled = true;
- // tex_bigo.disabled = true;
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption45" class="tit_2" style="left:5px; top:53px; width:105px; height:14px; ">입/출고 정보</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:785px; y2:70px; "/>
- <group id="grp_prcpinfo" disabled="true" style="left:0px; top:560px; width:785px; height:110px; ">
- <caption id="caption31" class="tit_2" style="left:8px; top:10px; width:127px; height:13px; ">입출고 등록/삭제</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:27px; x2:785px; y2:27px; "/>
- <caption id="lbl_rsrvdd" class="cell_1" style="left:196px; top:38px; width:80px; height:20px; text-align:center; vertical-align:middle; ">입/출고 일자</caption>
- <input id="ipt_rsrvdd" ref="/root/main/inoutdata/inoutdt" class="input_essential" inputtype="date" style="left:280px; top:38px; width:133px; height:19px; "/>
- <caption id="lbl_state" class="cell_1" style="left:1px; top:63px; width:80px; height:20px; text-align:center; vertical-align:middle; ">입/출고 구분</caption>
- <select1 id="cmb_inoutgb" ref="/root/main/inoutdata/inoutgb" class="combo_search" appearance="minimal" style="left:85px; top:63px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/inoutgbcdlist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption38" class="cell_1" style="left:1px; top:89px; width:80px; height:20px; text-align:center; vertical-align:middle; ">입/출고 수량</caption>
- <caption id="caption1" class="cell_1" style="left:196px; top:64px; width:80px; height:20px; text-align:center; vertical-align:middle; ">금 속 종 류</caption>
- <select1 id="cmb_materialcd" ref="/root/main/inoutdata/materialcd" class="combo_search" appearance="minimal" style="left:280px; top:64px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:1px; top:37px; width:80px; height:20px; text-align:center; vertical-align:middle; ">입/출고 N O</caption>
- <input id="ipt_inoutseq" ref="/root/main/inoutdata/inoutseq" class="input_default" disabled="true" imemode="hangul" maxlength="100" style="left:85px; top:37px; width:100px; height:19px; "/>
- <input id="ipt_inoutqty" ref="/root/main/inoutdata/inoutqty" class="input_default" imemode="hangul" maxlength="100" style="left:85px; top:89px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var inoutqty = model.getValue("/root/main/inoutdata/inoutqty");
- var flag = "";
-
- flag = isNaN(inoutqty);
- if( flag != false ) {
- messageBox("수량은 숫자로", "C001");
- }
-
- ]]>
- </script>
- </input>
- </group>
- <button id="btn_exec" class="btn2_letter2" style="left:740px; top:565px; width:42px; height:19px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/inoutdata");
- grp_prcpinfo.disabled = false;
- // tex_bigo.disabled = false;
- ipt_inoutseq.disabled = true;
-
- //입/출고NO 가져오기
- var curdate = getCurrentDate();
- submit("TRAED00201");
- model.setValue("/root/main/inoutdata/inoutdt", curdate);
- if(model.getValue("/root/hidden/item/inoutseq") == "" ) {
- model.setValue("/root/main/inoutdata/inoutseq", "1");
- } else {
- model.setValue("/root/main/inoutdata/inoutseq", model.getValue("/root/hidden/item/inoutseq") );
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="lbl_bigo" class="cell_1" style="left:425px; top:597px; width:40px; height:72px; text-align:center; vertical-align:middle; ">비고</caption>
- </group>
- <textarea id="tex_bigo" ref="/root/main/inoutdata/bigo" style="left:471px; top:610px; width:314px; height:71px; "/>
- </xhtml:body>
- </xhtml:html>
|