123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>추가전송 물품코드조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <ipgoinfo>
- <ipgolist>
- <chk/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <allsizespecidnm/>
- <goodmodel/>
- <deliveunit/>
- <goodunitcost/>
- <prodcmpynm/>
- <custnm/>
- <perchgr/>
- <safestocqty/>
- <sendqty/>
- <rtninqty/>
- <allsizespecid/>
- <suppdeptcd/>
- <custcd/>
- <custnm/>
- <perchgr/>
- <cntctel/>
- <faxno/>
- <mpphontel/>
- <inflag/>
- <iodate/>
- <indate/>
- <inqty/>
- </ipgolist>
- </ipgoinfo>
- </main>
- <send>
- <custnm/>
- <prodcmpynm/>
- <goodnm/>
- <goodcd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- </send>
- <init>
- <baseinfo>
- <intiunit/>
- </baseinfo>
- </init>
- <hidden>
- <item/>
- </hidden>
- <cmb_info>
- <dpcminfo>
- <dpcmcust>
- <custnm/>
- <perchgr/>
- <cntctel/>
- <faxno/>
- <mpphontel/>
- <email/>
- <auttrsmflag/>
- <custcd/>
- <suppdeptcd/>
- <instcd/>
- <trsmtrid/>
- <useyn/>
- </dpcmcust>
- </dpcminfo>
- </cmb_info>
- </root>
- </instance>
- <submission id="TRAGA05301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ipgoinfo"/>
- <submission id="TXAGA01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- zbcfGetCodeList( new Array("R0039"), new Array("/root/init/baseinfo/intiunit") );
-
- submit("TRAGA00101");
-
- model.removeNodeset("/root/main/ipgoinfo/ipgolist");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TXAGA01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAGA00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/cmb_info/dpcminfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1130" pageheight="607" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1075px; height:524px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1074px; height:42px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1074px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:977px; y1:7px; x2:977px; y2:34px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="6" style="left:995px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/goodcd",model.getValue("/root/send/goodcd").toUpperCase());
- model.removeNodeset("/root/main/ipgoinfo/ipgolist");
- submit("TRAGA05301");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:12px; width:86px; height:17px; ">거래처명 :</caption>
- <caption id="caption4" class="search_name" style="left:240px; top:12px; width:99px; height:17px; ">제조회사명 :</caption>
- <input id="input3" ref="/root/send/prodcmpynm" navindex="3" style="left:345px; top:11px; width:120px; height:19px; "/>
- <caption id="caption5" class="search_name" style="left:480px; top:12px; width:93px; height:17px; ">물 품 명 :</caption>
- <input id="input5" ref="/root/send/goodnm" navindex="5" style="left:575px; top:11px; width:125px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:715px; top:12px; width:105px; height:17px; ">물 품 코 드 :</caption>
- <input id="input1" ref="/root/send/goodcd" navindex="5" style="left:825px; top:11px; width:130px; height:19px; "/>
- <select1 id="combo1" ref="/root/send/custnm" appearance="minimal" editmode="input" style="left:105px; top:11px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/cmb_info/dpcminfo">
- <label ref="dpcmcust/custnm"/>
- <value ref="dpcmcust/custnm"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:3px; y1:54px; x2:1074px; y2:55px; "/>
- <datagrid id="datagrid1" nodeset="/root/main/ipgoinfo/ipgolist" caption="선택^물품코드^물품명^규격^All Size^모델^단위^단가^제조회사^거래처^담당자^안전재고량^전송량^반납량^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11" colsep="^" colwidth="35, 72, 143, 86, 85, 81, 58, 76, 93, 82, 56, 72, 55, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:3px; top:55px; width:1071px; height:467px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="allsizespecidnm"/>
- <col ref="goodmodel"/>
- <col ref="deliveunit" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/intiunit/R0039">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="prodcmpynm"/>
- <col ref="custnm"/>
- <col ref="perchgr"/>
- <col ref="safestocqty" format="#,###" style="text-align:right; "/>
- <col ref="sendqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="rtninqty" type="input" visibility="hidden" format="#,###" style="text-align:right; "/>
- <col ref="allsizespecid" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="custcd" visibility="hidden"/>
- <col ref="custnm" visibility="hidden"/>
- <col ref="perchgr" visibility="hidden"/>
- <col ref="cntctel" visibility="hidden"/>
- <col ref="faxno" visibility="hidden"/>
- <col ref="mpphontel" visibility="hidden"/>
- <col ref="inflag"/>
- <col ref="iodate"/>
- <col ref="indate"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (datagrid1.colRef("sendqty") == datagrid1.col || datagrid1.colRef("rtninqty") == datagrid1.col){
- if (parseInt(model.getValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/sendqty")) > 0 ||
- parseInt(model.getValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/rtninqty")) > 0){
- model.setValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/chk", "Y");
- }else{
- model.setValue("/root/main/ipgoinfo/ipgolist[" + datagrid1.row + "]/chk", "N");
- }
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1074px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">추가전송물품코드조회</caption>
- </group>
- <button id="btn_exit" class="btn1_letter2" navindex="5" style="left:1020px; top:540px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:960px; top:540px; width:56px; height:22px; ">
- <caption>전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < datagrid1.rows; i++){
- if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") == "Y"){
- if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty") == "0" || model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/sendqty") == ""){
- messageBox(i + "번째 선택한 행에서 전송수량이 입력되지 않았습니다.", "E999", "");
- return;
- }
- }
- if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/mpphontel") == ""){
- messageBox(i + "번째 핸드폰 번호가 등록되지 않아 전송할 수 없습니다.", "E999", "");
- return;
- }
- }
- if ( messageBox("","Q003")==6 ) {
- for (var i = 1; i < datagrid1.rows; i++){
- if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") == "Y"){
- if (model.getValue("/root/main/ipgoinfo/ipgolist[" + i + "]/chk") != "0"){
- datagrid1.addStatus(i, "update");
- }
- }
- }
- datagrid1.refresh();
- var update = getGridUpdateData(datagrid1);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
- if (submit("TXAGA01302")){
- // if (submit("TXAGA01101")){
- messageBox("정상적으로 처리 되었습니다.", "E999", "");
- btn_sea.dispatch("DOMActivate");
- // }
- }
- }
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|