123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- <?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>거래처 관리 HELP</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <custlist/>
- </list>
- </main>
- <init>
- <refcond>
- <label>거래처명</label>
- <value>custnm</value>
- <label>사업자번호</label>
- <value>entrregno</value>
- </refcond>
- </init>
- <send>
- <retrnm/>
- <refcond/>
- <custstat>1</custstat>
- <instcd/>
- <purcuseyn/>
- <nutruseyn/>
- <pharmuseyn/>
- <ctmsuseyn/>
- </send>
- <target/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRRAC90601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <script type="javascript">
- <![CDATA[
- function fInit()
- {
- rdo_refcond.select(0);
-
- model.removeNode("/root/main/list/custlist");
-
- if(instance1.selectNodes("/root/target/validation/custlist").length == 0)
- {
- btn_search.dispatch("DOMActivate");
- }
- else
- {
- model.copyNode("/root/main/list","/root/target/validation");
-
- model.refresh();
- }
-
- if(model.getValue("/root/target/defaultvalue/instcd") != "")
- {
- model.setValue("/root/send/instcd", model.getValue("/root/target/defaultvalue/instcd"));
- }
-
- misfMsterDetailSet(grd_custlist, null, "TRRAC90601", "N");
-
- model.setFocus("ipt_refcond");
-
- var mainViewer = getMainViewer();
-
- /* 2013.03.12 박준범 : SMRAC00600(거래처 관리 프로그램) 에서는 본 popup을 호출하지 않기에 comment처리함
- if(mainViewer.javascript.getScreenID() == "SMRAC00600")
- {
- cmb_custstat.value = model.getValue("root/target/defaultvalue/custuseyn");
- cmb_custstat.refresh();
- }
- */
- //2013.03.12 박준범 - 전체거래처가 보일 수 있도록 조건 추가
- if(opener.javascript.getScreenID() == "SMRAD02500" ) { // SMRAD02500 : 대금지급상황조회(전체)
- cmb_custstat.value = "" ; //거래상태 : 전체
- }
- else
- {
- cmb_custstat.value = 1;
- cmb_custstat.refresh();
- cmb_custstat.visible = false;
- caption4.visible = false;
-
- }
- var csv_custnm = opener.window.javascript.getParameter("PPRAC00600_custnm");
- if (csv_custnm != ""){
- model.resetInstanceNode("/root/main/custinfo/custnm");
- model.makeValue("/root/main/custinfo/custnm", csv_custnm);
- model.setValue("/root/send/refcond", "custnm");
- model.setValue("/root/send/retrnm", model.getValue("/root/main/custinfo/custnm"));
- model.setValue("/root/send/custstat", "1");
- misfMsterDetailRetrieve();
- }
- }
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1000" pageheight="570" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:950px; height:525px; ">
- <group id="group2" style="left:0px; top:5px; width:950; height:59px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:950; height:59px; "/>
- <input id="ipt_refcond" ref="/root/send/retrnm" class="input_s_essential" style="left:395px; top:8px; width:148px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_refcond.value = ipt_refcond.currentText;
-
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_refcond.value != "")
- {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:879px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:864px; y1:5px; x2:864px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:100px; height:17px; ">조회조건 :</caption>
- <select1 id="rdo_refcond" ref="/root/send/refcond" class="radio_search" appearance="full" cols="2" overflow="visible" style="left:120px; top:8px; width:148px; height:20px; border-style:solid; ">
- <choices>
- <itemset nodeset="/root/init/refcond">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- model.setFocus("ipt_refcond");
- ]]>
- </script>
- </select1>
- <caption id="caption4" class="search_name" style="left:596px; top:9px; width:94px; height:17px; ">거래 상태 :</caption>
- <select1 id="cmb_custstat" ref="/root/send/custstat" class="combo_s_essential" navindex="14" appearance="minimal" style="left:695px; top:8px; width:105px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>거래중</label>
- <value>1</value>
- </item>
- <item>
- <label>거래종료</label>
- <value>2</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/send/purcuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:160px; top:33px; width:70px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용않함</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/pharmuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:420px; top:33px; width:70px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용않함</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/send/nutruseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:290px; top:33px; width:70px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용않함</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption15" class="search_name" style="left:15px; top:34px; width:134px; height:17px; ">업무구분 :</caption>
- <caption id="caption16" style="left:120px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">구매</caption>
- <caption id="caption17" style="left:249px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">영양</caption>
- <caption id="caption18" style="left:378px; top:35px; width:40px; height:15px; font-weight:bold; text-align:center; ">약국</caption>
- <select1 id="combo4" ref="/root/send/ctmsuseyn" class="combo_s_essential" navindex="14" appearance="minimal" style="left:555px; top:33px; width:70px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용않함</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" style="left:503px; top:35px; width:57px; height:15px; font-weight:bold; text-align:center; ">CTMS</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:72px; width:145px; height:13px; ">거래처리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:950px; y2:87px; "/>
- <datagrid id="grd_custlist" nodeset="/root/main/list/custlist" class="grd_custlist" caption="거래처코드^거래처^사업자번호^대표자명^전화번호^주소^업태^종목^시작일자^종료일자" colsep="^" colwidth="78, 109, 111, 60, 88, 215, 100, 100, 80, 80" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:93px; width:950px; height:427px; ">
- <col ref="custcode"/>
- <col ref="custnm"/>
- <col ref="entrregno" format="999-99-99999"/>
- <col ref="prsdnm"/>
- <col ref="cntctel"/>
- <col ref="addr"/>
- <col ref="bizcont"/>
- <col ref="item"/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_custlist.isCell(event.target) && grd_custlist.row >= grd_custlist.fixedRows )
- {
- btn_confirm.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_openpsn" class="btn2_letter5" style="left:875px; top:66px; width:75px; height:19px; ">
- <caption>거래처등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.visible = false;
-
- model.makeNode("/root/source");
- model.copyNode("/root/source","/root/target");
-
- modal("SPRAC00600","","","","","/root/source", "/root/target" );
-
- window.close();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:8px; top:524px; width:950; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:837px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- misfPopUpListReturn(grd_custlist);
-
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:894px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
-
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:950; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|