123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- <?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>
- <goodlist>
- <item/>
- </goodlist>
- <itemlist>
- <item/>
- </itemlist>
- </main>
- <send>
- <data>
- <bdioflag>I</bdioflag>
- <itemflag>N</itemflag>
- <itemcd/>
- </data>
- <req>
- <data/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- </send>
- <init>
- <cmb_info>
- <initexecroom/>
- </cmb_info>
- </init>
- <hidden>
- <item>
- </item>
- </hidden>
- <tmp>
- <suplcustcd/>
- <suplcustnm/>
- <prodcmpycd/>
- <prodcmpynm/>
- </tmp>
- <combo>
- <speclist/>
- </combo>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- model.removeNodeset("/root/main/goodlist/item");
- model.removeNodeset("/root/main/speclist/item");
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.refresh();
-
- model.setFocus("ipt_speccd");
-
- //submit("TRAES09001", false);
-
- submit("TRAEA01301", false);
- submit("TRAEB03201");
- submit("TRAEB01802");
-
- ]]>
- </script>
- <submission id="TRAEB03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/combo/speclist"/>
- <submission id="TXAEB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodlist"/>
- <submission id="TRAEB01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemlist"/>
- <submission id="TRAES09001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- <submission id="TRAEA01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance" replace="instance" resultref="/root/init/cmb_info"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript">
- <![CDATA[
- function fnGetMainList()
- {
- if(submit("TRAEB01802"))
- {
- model.removeNodeset("/root/main/goodlist/item");
- }
- }
- ]]>
- </script>
- <xhtml:body guideline="1,1195;2,786;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:170px; height:14px; ">핵종/화합물 제품코드관리</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1190px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:82px; x2:1195px; y2:82px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1126px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fnGetMainList();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:60px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_itemlist.row < 1)
- {
- messageBox("핵종이나 화합물이 선택되지", "E007");
- return false;
- }
-
- grd_prodlist.addRow();
- grd_prodlist.row = grd_prodlist.bottomRow;
-
- var cnt = parseInt(grd_prodlist.row);
-
- var mainrowcnt = parseInt(grd_itemlist.row);
-
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/suppdeptcd",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/suppdeptcd") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/bdioflag",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/bdioflag") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/itemflag",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemflag") );
-
- model.setValue("/root/main/goodlist/item[" + cnt + "]/itemcd",
- model.getValue("/root/main/itemlist/item[" + mainrowcnt + "]/itemcd") );
- model.setValue("/root/main/goodlist/item[" + cnt + "]/unitcost", "0" );
- model.setValue("/root/main/goodlist/item[" + cnt + "]/excuroomcd", "-" );
- model.setValue("/root/main/goodlist/item[" + cnt + "]/ioflag", "O" );
- grd_prodlist.isReadOnly(cnt, 1) = false;
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1142px; top:60px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // grd_prodlist.addStatus(grd_prodlistt.row,"delete");
- deleteSelectedRows(grd_prodlist, true);
- ]]>
- </script>
- </button>
- <datagrid id="grd_itemlist" nodeset="/root/main/itemlist/item" allowselection="false" caption="이름" colsep="^" colwidth="190, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:85px; width:228px; height:665px; ">
- <col ref="itemnm" type="output"/>
- <col ref="itemcd" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_itemlist.row == 0)
- {
- return false;
- }
-
- var rownum = grd_itemlist.row;
-
- model.setValue("/root/send/data/bdioflag", model.getValue("/root/main/itemlist/item[" + rownum + "]/bdioflag"));
- model.setValue("/root/send/data/itemflag", model.getValue("/root/main/itemlist/item[" + rownum + "]/itemflag"));
- model.setValue("/root/send/data/itemcd", model.getValue("/root/main/itemlist/item[" + rownum + "]/itemcd"));
-
- submit("TRAEB03301");
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
- <button id="button1" class="btn4_letter2" style="left:1078px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!astfNullValidation("/root/main/goodlist/item", "suplcustcd", "거래처를")) return false;
- if(!astfNullValidation("/root/main/goodlist/item", "prodcmpycd", "제조회사를")) return false;
-
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_prodlist);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
-
- if (submit("TXAEB03301")) {
-
- }
- submit("TRAEB03301");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) {
- opener.model.setValue("/root/init/updtyn","N");
- }
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_prodlist" nodeset="/root/main/goodlist/item" caption="제품코드^제품명^거래처^거래처^제조회사^제조회사^규격^용량^Act^단가^검사실^입출고구분^지원부서" colsep="^" colwidth="76, 150, 90, 110, 65, 110, 68, 55, 55, 64, 100, 72, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:230px; top:85px; width:965px; height:665px; ">
- <col disabled="true" ref="goodcd" type="input"/>
- <col ref="goodnm" type="input"/>
- <col editable="false" ref="suplcustcd" type="inputbutton">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- misfOpenPopUpList("14", ipt_suplcmpy, "", "suplcustcd,suplcustnm");
- model.refresh();
- var selectedrow = grd_prodlist.selectedCells.item(0).row;
- if(model.getValue("/root/tmp/suplcustcd") != "")
- {
- var suplcustcd = model.getValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustcd");
- var tmpsuplcustcd = model.getValue("/root/tmp/suplcustcd");
- if ( suplcustcd != "" && suplcustcd != tmpsuplcustcd ) {
- grd_prodlist.rowStatus(selectedrow) = 2;
- }
- // grd_prodlist.rowStatus(selectedrow) =2; 2009-07-28 추가(Insert)인데 Update로 인식하여 추가가 안되는현상 수정.
-
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustcd", model.getValue("/root/tmp/suplcustcd"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/suplcustnm", model.getValue("/root/tmp/suplcustnm"));
- model.refresh();
- }
- ]]>
- </script>
- </col>
- <col disabled="true" ref="suplcustnm" type="input"/>
- <col editable="false" ref="prodcmpycd" type="inputbutton">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPAEB00301","","");
- model.refresh();
- var selectedrow = grd_prodlist.selectedCells.item(0).row;
- if(model.getValue("/root/tmp/prodcmpycd") != "")
- {
- var prodcmpycd = model.getValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpycd");
- var tmpprodcmpycd = model.getValue("/root/tmp/prodcmpycd");
- if ( prodcmpycd != "" && prodcmpycd != tmpprodcmpycd) {
- grd_prodlist.rowStatus(selectedrow) = 2;
- }
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpycd", model.getValue("/root/tmp/prodcmpycd"));
- model.setValue("/root/main/goodlist/item[" + selectedrow + "]/prodcmpynm", model.getValue("/root/tmp/prodcmpynm"));
- }
- model.refresh();
- ]]>
- </script>
- </col>
- <col disabled="true" ref="prodcmpynm" type="input"/>
- <col ref="speccd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/combo/speclist/item">
- <label ref="specnm"/>
- <value ref="speccd"/>
- </itemset>
- </choices>
- </col>
- <col ref="vol" type="input" format="#,###.00" style="text-align:right; "/>
- <col ref="act" type="input" format="#,###.00" style="text-align:right; "/>
- <col ref="unitcost" type="input" format="#,###" style="text-align:right; "/>
- <col ref="excuroomcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="ioflag" type="combo">
- <choices>
- <item>
- <label>입고</label>
- <value>I</value>
- </item>
- <item>
- <label>출고</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="itemcd" visibility="hidden"/>
- </datagrid>
- <caption id="caption1" class="search_name" style="left:20px; top:30px; width:99px; height:17px; ">체내외구분 :</caption>
- <select1 id="combo1" ref="/root/send/data/itemflag" class="combo_search" appearance="minimal" style="left:413px; top:28px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>핵종</label>
- <value>N</value>
- </item>
- <item>
- <label>화합물</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fnGetMainList();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:308px; top:30px; width:99px; height:17px; ">물품구분 :</caption>
- <select1 id="cmb_ioflag" ref="/root/send/data/bdioflag" class="combo_search" appearance="minimal" style="left:125px; top:28px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>체내</label>
- <value>I</value>
- </item>
- <item>
- <label>체외</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fnGetMainList();
- ]]>
- </script>
- </select1>
- <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:615px; top:60px; width:150px; height:19px; "/>
- <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:615px; top:60px; width:150px; height:19px; "/>
- <input id="ipt_prodcmpycd" ref="/root/tmp/propcmpycd" visibility="hidden" style="left:785px; top:60px; width:150px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|