123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>단가계약 Master Setting</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <purcconinfo>
- <purcconmainlist>
- <instcd/>
- <purccondd/>
- <purcconno/>
- <suplplcecd/>
- <suplplcenm/>
- <contermfromdd/>
- <contermtodd/>
- <fromdd/>
- </purcconmainlist>
- </purcconinfo>
- <purccnsttnnoinfo>
- <maxpurccnsttnno>
- <purcconno/>
- </maxpurccnsttnno>
- </purccnsttnnoinfo>
- <bfnotinoinfo>
- <bfnotino/>
- </bfnotinoinfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <purccondd/>
- <purcconno/>
- <purcconnoyn>Y</purcconnoyn>
- </search>
- <save>
- <purcconlist/>
- </save>
- <nosearch>
- <instcd/>
- <purccondd/>
- </nosearch>
- </send>
- <init>
- </init>
- <temp>
- </temp>
- </root>
- </instance>
- <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
- <submission id="TRRSP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcconinfo"/>
- <submission id="TRRSP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purcconnoinfo"/>
- <submission id="TXRSP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/purccontweb/js/SMRSP00600.js"/>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">단가계약 Master Setting</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:685px; y2:28px; "/>
- <caption id="cap_purccnsttndd" class="cell_1" style="left:355px; top:35px; width:90px; height:23px; vertical-align:middle; ">계약일/NO</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:85px; x2:685px; y2:85px; "/>
- <button id="btn_insert" class="btn2_letter2" style="left:635px; top:5px; width:42px; height:19px; ">
- <caption>적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
-
- model.setFocus("ipt_purcconno");
- ipt_purcconno.dispatch("xforms-value-changed");
- //cal_contermfromdd.dispatch("xforms-value-changed");
- model.refresh();
-
-
-
-
- ]]>
- </script>
- </button>
- <line id="line18" class="line_2" style="x1:0px; y1:59px; x2:685px; y2:59px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:84px; x2:685px; y2:84px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:84px; x2:685px; y2:84px; "/>
- <input id="ipt_suplplcecd" ref="/root/main/list/purcconinfo/purcconmainlist/suplplcecd" class="input_essential" disabled="false" style="left:75px; top:62px; width:94px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_suplplcecd.value.length == 0)
- ipt_suplplcenm.value = "";
- else
- rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
- model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
- ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
- model.refresh();
-
- ]]>
- </script>
- </input>
- <output id="opt_suplplcenm" ref="/root/main/list/purcconinfo/purcconmainlist/suplplcenm" class="output_fix" style="left:190px; top:62px; width:160px; height:19px; text-align:left; padding-left:10; "/>
- <caption id="caption17" class="cell_1" style="left:0px; top:61px; width:70px; height:23px; vertical-align:middle; ">거래처</caption>
- <button id="btn_suplplcecd" class="icon_search" disabled="false" style="left:171px; top:62px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/main/list/purcconinfo/purcconmainlist/instcd" class="combo_default" disabled="true" appearance="minimal" style="left:75px; top:37px; width:275px; height:19px; text-align:left; padding-left:10; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:0px; top:35px; width:70px; height:23px; vertical-align:middle; ">기관코드</caption>
- <input id="cal_purccondd" ref="/root/main/list/purcconinfo/purcconmainlist/purccondd" inputtype="date" format="yyyy-mm-dd" style="left:450px; top:37px; width:155px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/nosearch/purccondd" , model.getValue(cal_purccondd.attribute("ref")));
- if (submit("TRRSP00102")){
- var purcconno = model.getValue("/root/main/list/purcconnoinfo/maxpurcconno/purcconno");
- model.setValue(ipt_purcconno.attribute("ref"), purcconno);
- }
- model.setValue("/root/send/nosearch/instcd" , "");
- model.setValue("/root/send/nosearch/purccondd" , "");
- model.setFocus("ipt_purcconno");
- ipt_purcconno.dispatch("xforms-value-changed");
- cal_contermfromdd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_purcconno" ref="/root/main/list/purcconinfo/purcconmainlist/purcconno" class="input_default" maxlength="4" style="left:610px; top:37px; width:68px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = model.getValue(cmb_instcd.attribute("ref"));
- var purccondd = model.getValue(cal_purccondd.attribute("ref"));
- var purcconno = model.getValue(ipt_purcconno.attribute("ref"));
- var spath = "/root/main/list/purcconinfo";
- model.setValue("/root/send/search/instcd" , model.getValue(cmb_instcd.attribute("ref") ));
- model.setValue("/root/send/search/purccondd" , model.getValue(cal_purccondd.attribute("ref")));
- model.setValue("/root/send/search/purcconno" , model.getValue(ipt_purcconno.attribute("ref")));
- model.makeValue("/root/send/search/bizflag" , "M");
- model.removeNodeset(spath);
- model.refresh();
-
- if (submit("TRRSP00101")){
- model.removeNodeset("/root/submain/list/purcconinfo");
- model.makeNode("/root/submain/list/purcconinfo");
- model.copyNode("/root/submain/list/purcconinfo", "/root/main/list/purcconinfo");
- }
- model.refresh();
-
- var vInstance = document.models(0).instances(0);
- var cnt = vInstance.selectNodes("/root/main/list/purcconinfo/purcconmainlist").length;
- //model.makeValue("/root/main/list/bfnotinoinfo/bfnotino", model.getValue(ipt_notino.attribute("ref")));
- if (cnt == 0){
- var spath = "/root/main/list/purcconinfo/purcconmainlist";
- model.makeValue(spath+"/instcd" , instcd);
- model.makeValue(spath+"/purccondd" , purccondd);
- model.makeValue(spath+"/purcconno" , purcconno);
- model.makeNode(spath+"/fromdd");
- model.makeNode(spath+"/contermfromdd");
- model.makeNode(spath+"/contermtodd" );
- model.makeNode(spath+"/suplplcecd" );
- model.makeNode(spath+"/suplplcenm" );
- }
-
- model.setFocus("ipt_purcconno");
- cal_contermfromdd.dispatch("xforms-value-changed");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption63" class="search_no_b" style="left:559px; top:62px; width:12px; height:17px; ">~</caption>
- <caption id="caption32" class="cell_1" style="left:355px; top:60px; width:90px; height:23px; vertical-align:middle; ">단가계약기간</caption>
- <input id="cal_contermfromdd" ref="/root/main/list/purcconinfo/purcconmainlist/contermfromdd" class="input_essential" disabled="false" inputtype="date" style="left:450px; top:62px; width:102px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var contermfromdd = model.getValue(cal_contermfromdd.attribute("ref"));
- //alert(contermfromdd);
- if( model.getValue(cal_contermtodd.attribute("ref")).replace("-", "").length > 0
- && model.getValue(cal_contermtodd.attribute("ref")) < model.getValue(cal_contermfromdd.attribute("ref")))
- {
- messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- model.setValue(cal_contermfromdd.attribute("ref") , "");
- model.refresh();
- }
- for(var i=1;i<grd_purccon.rows;i++){
- var fromdd = grd_purccon.valueMatrix(i,grd_purccon.colRef("fromdd"));
- if(fromdd <= contermfromdd){
- grd_purccon.rowStyle(i,"data","background-color") = "white";
- grd_purccon.valueMatrix(i,grd_purccon.colRef("valiflag")) = "Y";
- }else{
- grd_purccon.rowStyle(i,"data","background-color") = "#FFFF66";
- grd_purccon.valueMatrix(i,grd_purccon.colRef("valiflag")) = "N";
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cmb_conflag");
- else model.setFocus("cal_contermtodd");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <input id="cal_contermtodd" ref="/root/main/list/purcconinfo/purcconmainlist/contermtodd" class="input_essential" disabled="false" inputtype="date" style="left:576px; top:62px; width:102px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue(cal_contermfromdd.attribute("ref")).replace("-", "").length > 0
- && model.getValue(cal_contermtodd.attribute("ref")) < model.getValue(cal_contermfromdd.attribute("ref")) )
- {
- messageBox("계약시작일자는 계약 종료일자보다 크게 설정","E001");
- model.setValue(cal_contermtodd.attribute("ref") , "");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9)
- {
- if(event.shiftKey)model.setFocus("cal_contermfromdd");
- else model.setFocus("ipt_estmamt");
- }
- //event.preventDefault();
- ]]>
- </script>
- </input>
- <datagrid id="grd_purccon" nodeset="/root/main/list/purcconinfo/purcconsublist" caption="순번^물품코드^물품코드^품목 명칭^계정과목^규격^단가^적용일^유효성^기관코드^물품구분코드^계약일자^계약번호^거래처^단가계약기간(from)^단가계약기간(to)" colsep="^" colwidth="45, 74, 25, 116, 85, 144, 75, 74, 21, 19, 16, 18, 19, 23, 38, 30" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:95px; width:680px; height:443px; font-weight:normal; text-align:center; ">
- <col ref="purcconseq" style="text-align:center; "/>
- <col ref="goodcd" style="text-align:center; "/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodnm" style="text-align:left; padding-left:10; "/>
- <col ref="acntnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodspec" style="text-align:left; padding-left:10; "/>
- <col ref="congoodunitcost" format="#,###" style="text-align:right; "/>
- <col ref="fromdd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="valiflag" type="checkbox" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
- <col ref="purccondd" visibility="hidden" style="text-align:center; "/>
- <col ref="purcconno" visibility="hidden" style="text-align:center; "/>
- <col ref="suplplcecd" visibility="hidden"/>
- <col ref="contermfromdd" visibility="hidden"/>
- <col ref="contermtodd" visibility="hidden"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|