123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351 |
- <?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="">
- <init>
- <lrglists>
- <lrglist>
- <chkflag/>
- <lrgcd/>
- <lrgnm/>
- <uedt/>
- <rgstyn/>
- </lrglist>
- </lrglists>
- <mdllists>
- <mdllist>
- <chkflag/>
- <mdlcd/>
- <mdlnm/>
- <uedt/>
- <lrgcd/>
- <rgstyn/>
- </mdllist>
- </mdllists>
- <smllists>
- <smllist>
- <chkflag/>
- <smlcd/>
- <smlnm/>
- <uedt/>
- <lrgcd/>
- <mdlcd/>
- <rgstyn/>
- </smllist>
- </smllists>
- </init>
- <main>
- <cond>
- <lrgcd/>
- <mdlcd/>
- <refuseflag>Y</refuseflag>
- </cond>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRMNP04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/lrglists/lrglist"/>
- <submission id="TRMNP04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/mdllists/mdllist"/>
- <submission id="TRMNP04304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/smllists/smllist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TXMNP04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/lrglists/lrglist"/>
- <submission id="TXMNP04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/mdllists/mdllist"/>
- <submission id="TXMNP04303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/smllists/smllist"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../emr/opanstweb/js/SMMNP04300.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1010" pageheight="680" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:990px; height:657px; ">
- <line id="line1" class="line_1" style="x1:1px; y1:25px; x2:326px; y2:25px; "/>
- <datagrid id="grd_lrglist" nodeset="/root/init/lrglists/lrglist" class="datagrid2" caption="^코드^대분류^사용
여부" colsep="^" colwidth="25, 50, 160, 50, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:325px; height:619px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="lrgcd" style="text-align:center; "/>
- <col ref="lrgnm" type="input"/>
- <col ref="uedt" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rgstyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_lrglist.col == 2 ) {
- for( var iRow = 1; iRow <= grd_lrglist.rows; iRow++ ) {
- if( iRow == grd_lrglist.row ) {
- grd_lrglist.rowStyle( grd_lrglist.row , "data", "color") = "#2D2DD2";
- }else {
- grd_lrglist.rowStyle( iRow , "data", "color") = "#000000";
- }
- }
- fmdlComboCall();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption22" class="tit_2" style="left:4px; top:9px; width:121px; height:14px; ">대분류</caption>
- <button id="button5" class="btn2_letter3" navindex="7" style="left:227px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_lrglist.addRow();
- model.setValue("/root/init/lrglists/lrglist[" + (parseInt(grd_lrglist.rows)-1) + "]/uedt", "Y");
- model.setValue("/root/init/lrglists/lrglist[" + (parseInt(grd_lrglist.rows)-1) + "]/rgstyn", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter2" navindex="7" style="left:283px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/send");
- //model.makeValue("/root/send/savedata", grd_lrglist.getUpdateData());
- //grd_lrglist.clearStatus();
- var chkflag, lrgcd, lrgnm, rgstyn, stat, uedt;
- var cnt = 0;
- var lrglist = "m▦lrgcd▦lrgnm▦uedt";
- for( var i = 1; i <= grd_lrglist.rows; i++ ) {
- chkflag = model.getValue("/root/init/lrglists/lrglist[" + i + "]/chkflag");
- lrgcd = model.getValue("/root/init/lrglists/lrglist[" + i + "]/lrgcd");
- lrgnm = model.getValue("/root/init/lrglists/lrglist[" + i + "]/lrgnm");
- rgstyn = model.getValue("/root/init/lrglists/lrglist[" + i + "]/rgstyn");
- uedt = model.getValue("/root/init/lrglists/lrglist[" + i + "]/uedt");
- if( rgstyn == "Y" ) { stat = "U"; } else { stat = "I" }
- if( chkflag == "true" ) {
- lrglist = lrglist + "▩" + stat + "▦" + lrgcd + "▦" + lrgnm + "▦" + uedt;
- cnt++;
- }
- }
- if( cnt > 0 ) {
- model.makeValue("/root/send/savedata", lrglist);
- submit("TXMNP04301") ;
- }else {
- messageBox("대분류를 선택한 것이 없습니다.!", "E000");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" navindex="7" style="left:613px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/send");
- var chkflag, lrgcd, mdlcd, mdlnm, rgstyn, stat, uedt, temprgst;
- var cnt = 0;
- var mdllist = "m▦lrgcd▦mdlcd▦mdlnm▦uedt";
- for( var i = 1; i <= grd_mdllist.rows; i++ ) {
- chkflag = model.getValue("/root/init/mdllists/mdllist[" + i + "]/chkflag");
- lrgcd = model.getValue("/root/init/mdllists/mdllist[" + i + "]/lrgcd");
- mdlcd = model.getValue("/root/init/mdllists/mdllist[" + i + "]/mdlcd");
- mdlnm = model.getValue("/root/init/mdllists/mdllist[" + i + "]/mdlnm");
- rgstyn = model.getValue("/root/init/mdllists/mdllist[" + i + "]/rgstyn");
- uedt = model.getValue("/root/init/mdllists/mdllist[" + i + "]/uedt");
- mdlcd = mdlcd.getLeftPad(2, '0');
- if( rgstyn == "Y" ) { stat = "U"; } else { stat = "I" }
- if( chkflag == "true" ) {
- if( mdlcd == "" ) {
- messageBox("중분류 코드를 입력하셔야 합니다.!", "E000");
- return;
- }else {
- if( rgstyn != "Y" ) {
- var row = grd_mdllist.findRow(mdlcd, 1, 2, false, false);
- temprgst = model.getValue("/root/init/mdllists/mdllist[" + row + "]/rgstyn");
- //if( row < (grd_mdllist.rows-1) ) {
- if( temprgst == "Y" ) {
- messageBox("이미 등록된 코드가 있습니다.!", "E000");
- return;
- }
- }
- }
- mdllist = mdllist + "▩" + stat + "▦" + lrgcd + "▦" + mdlcd + "▦" + mdlnm + "▦" + uedt;
- cnt++;
- }
- }
- if( cnt > 0 ) {
- model.makeValue("/root/send/savedata", mdllist);
- submit("TXMNP04302") ;
- }else {
- messageBox("중분류를 선택한 것이 없습니다.!", "E000");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" navindex="7" style="left:557px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_mdllist.addRow();
- model.setValue("/root/init/mdllists/mdllist[" + (parseInt(grd_mdllist.rows)-1) + "]/uedt", "Y");
- model.setValue("/root/init/mdllists/mdllist[" + (parseInt(grd_mdllist.rows)-1) + "]/rgstyn", "N");
- model.setValue("/root/init/mdllists/mdllist[" + (parseInt(grd_mdllist.rows)-1) + "]/lrgcd", model.getValue("/root/main/cond/lrgcd"));//대분류
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:330px; top:9px; width:121px; height:13px; ">중분류</caption>
- <line id="line2" class="line_1" style="x1:330px; y1:25px; x2:655px; y2:25px; "/>
- <button id="button4" class="btn5_letter2" navindex="7" style="left:943px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removenode("/root/send");
- var chkflag, lrgcd, mdlcd, smlcd, smlnm, rgstyn, stat, uedt, temprgst;
- var cnt = 0;
- var smllist = "m▦lrgcd▦mdlcd▦smlcd▦smlnm▦uedt";
- for( var i = 1; i <= grd_smllist.rows; i++ ) {
-
- chkflag = model.getValue("/root/init/smllists/smllist[" + i + "]/chkflag");
- lrgcd = model.getValue("/root/init/smllists/smllist[" + i + "]/lrgcd");
- mldcd = model.getValue("/root/init/smllists/smllist[" + i + "]/mdlcd");
- smlcd = model.getValue("/root/init/smllists/smllist[" + i + "]/smlcd");
- smlnm = model.getValue("/root/init/smllists/smllist[" + i + "]/smlnm");
- rgstyn = model.getValue("/root/init/smllists/smllist[" + i + "]/rgstyn");
- uedt = model.getValue("/root/init/smllists/smllist[" + i + "]/uedt");
- smlcd = smlcd.getLeftPad(2, '0');
- if( rgstyn == "Y" ) { stat = "U"; } else { stat = "I" }
- if( chkflag == "true" ) {
- if( smlcd == "" ) {
- messageBox("소분류 코드를 입력하셔야 합니다.!", "E000");
- return;
- }else {
- if( rgstyn != "Y" ) {
- var row = grd_smllist.findRow(smlcd, 1, 2, false, false);
- temprgst = model.getValue("/root/init/smllists/smllist[" + row + "]/rgstyn");
- if( temprgst == "Y" ) {
- //if( row < (grd_smllist.rows-1) ) {
- messageBox("이미 등록된 코드가 있습니다.!", "E000");
- return;
- }
- }
- }
- smllist = smllist + "▩" + stat + "▦" + lrgcd + "▦" + mldcd + "▦" + smlcd + "▦" + smlnm + "▦" + uedt;
- cnt++;
- }
- }
- if( cnt > 0 ) {
- model.makeValue("/root/send/savedata", smllist);
- submit("TXMNP04303") ;
- }else {
- messageBox("소분류를 선택한 것이 없습니다.!", "E000");
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" navindex="7" style="left:887px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_smllist.addRow();
- model.setValue("/root/init/smllists/smllist[" + (parseInt(grd_smllist.rows)-1) + "]/uedt", "Y");
- model.setValue("/root/init/smllists/smllist[" + (parseInt(grd_smllist.rows)-1) + "]/rgstyn", "N");
- model.setValue("/root/init/smllists/smllist[" + (parseInt(grd_smllist.rows)-1) + "]/lrgcd", model.getValue("/root/main/cond/lrgcd"));//대분류
- model.setValue("/root/init/smllists/smllist[" + (parseInt(grd_smllist.rows)-1) + "]/mdlcd", model.getValue("/root/main/cond/mdlcd"));//중분류
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:660px; top:9px; width:121px; height:13px; ">소분류</caption>
- <line id="line3" class="line_1" style="x1:660px; y1:25px; x2:985px; y2:25px; "/>
- <datagrid id="grd_mdllist" nodeset="/root/init/mdllists/mdllist" class="datagrid2" caption="^코드^중분류^사용
여부^대분류" colsep="^" colwidth="25, 50, 160, 50, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:330px; top:30px; width:325px; height:619px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="mdlcd" type="input" style="text-align:center; "/>
- <col ref="mdlnm" type="input"/>
- <col ref="uedt" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="lrgcd" visibility="hidden" style="text-align:center; "/>
- <col ref="rgstyn" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( grd_mdllist.col == 2 ) {
- for( var iRow = 1; iRow <= grd_mdllist.rows; iRow++ ) {
- if( iRow == grd_mdllist.row ) {
- grd_mdllist.rowStyle( grd_mdllist.row , "data", "color") = "#2D2DD2";
- }else {
- grd_mdllist.rowStyle( iRow , "data", "color") = "#000000";
- }
- }
- fsmlComboCall();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_smllist" nodeset="/root/init/smllists/smllist" class="datagrid2" caption="^코드^소분류^사용
여부^대분류^중분류" colsep="^" colwidth="25, 50, 160, 50, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:660px; top:30px; width:325px; height:619px; ">
- <col ref="chkflag" type="checkbox" style="text-align:center; "/>
- <col ref="smlcd" type="input" style="text-align:center; "/>
- <col ref="smlnm" type="input"/>
- <col ref="uedt" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="lrgcd" visibility="hidden" style="text-align:center; "/>
- <col ref="mdlcd" visibility="hidden" style="text-align:center; "/>
- <col ref="rgstyn" visibility="hidden"/>
- </datagrid>
- <select1 id="radio1" ref="/root/main/cond/refuseflag" overflow="visible" appearance="full" cols="3" style="left:73px; top:7px; width:147px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:110px; height:13px; ">물품분류등록</caption>
- </xhtml:body>
- </xhtml:html>
|