123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- <?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>정보자산 변동사항 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <chgnhistinfo>
- <chgnhistlist/>
- </chgnhistinfo>
- <asetmoveinfo>
- <asetmovelist/>
- </asetmoveinfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <goodflag/>
- <updtdd1/>
- <updtdd2/>
- <updtflag/>
- <deptcd/>
- <deptnm/>
- <installplcecd/>
- <installplcenm/>
- <fixasetcd/>
- <name_search/>
- <userid/>
- <usernm/>
- </search>
- <prntsearch>
- <instcd/>
- <goodflag/>
- <fixasetcd/>
- <goodflaghngnm/>
- </prntsearch>
- </send>
- <init>
- <possnflagcd>
- <label>내자</label>
- <value>H</value>
- <label>외자</label>
- <value>F</value>
- </possnflagcd>
- <goodflag>
- <label>- 전 체 -</label>
- <value/>
- <label>일반비품</label>
- <value>GE</value>
- <label>의료장비</label>
- <value>EQ</value>
- </goodflag>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRRFE00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/chgnhistinfo/chgnhistlist"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- misfGridInit(grd_rfchcgmtlist);
-
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","Y");
-
- misfComboComCdListMulti("C0048,R0044",
- "cmb_instcd,cmb_updtflag");
-
- addComboItem( "cmb_updtflag", "- 전 체 -", "", "above");
- cmb_goodflag.select(0);
-
- misfComboCopyItemSet(cmb_goodflag,"",grd_rfchcgmtlist,"goodflag");
-
- grd_rfchcgmtlist.fixedcellcheckbox(0,grd_rfchcgmtlist.colRef("choice"),false) = true;
- grd_rfchcgmtlist.refresh();
-
- // 현재 날짜 기본 입력(3개월 간격 설정)
- var reqdate = getCurrentDate().toDate("YYYYMMDD");
- model.setValue(ipt_updtdd1.attribute("ref"), reqdate.getAddDate(-7, "D").getDateFormat("YYYYMMDD") );
- model.setValue(ipt_updtdd2.attribute("ref"), getCurrentDate());
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관 설정
- model.setValue(cmb_goodflag.attribute("ref"), "GE");
- model.setValue(cmb_updtflag.attribute("ref"), "4");
- cmb_updtflag
- //misfMsterDetailSet(grd_rfchcgmtlist, null, "TRRFE00201", "N");
-
- model.refresh();
- model.setFocus("ipt_fixasetcd");
- }
- ]]>
- </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:15px; ">정보자산 변동사항 조회</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:40; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:116px; x2:1194; y2:116px; "/>
- <group id="group4" style="left:0px; top:10px; width:1194px; height:81px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:81 px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_goodflag" class="search_name" style="left:309px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="14" style="left:1123; top:30; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd")) return;
- //if(!isRequiredControls("cmb_goodflag")) return;
- if(!isRequiredControls("ipt_updtdd1")) return;
- if(!isRequiredControls("ipt_updtdd2")) return;
- submit("TRRFE00302");
- grd_rfchcgmtlist.fixedcellischeck(0,grd_rfchcgmtlist.colRef("choice")) = false;
-
- ]]>
- </script>
- </button>
- <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:57px; width:89px; height:17px; ">자산코드 :</caption>
- <line id="line3" class="line_4" style="top:54; x1:1107; y1:8; x2:1107; y2:75; "/>
- <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_s_essential" disabled="true" navindex="2" appearance="minimal" style="left:399px; top:8px; width:171px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- ]]>
- </script>
- </select1>
- <caption id="cap_updtflag" class="search_name" style="left:15px; top:33px; width:86px; height:17px; ">변동구분 :</caption>
- <caption id="cap_updtdd1" class="search_name" style="left:703px; top:9px; width:86px; height:17px; ">변동일자 :</caption>
- <caption id="cap_installplcecd" class="search_name" style="left:703px; top:33px; width:88px; height:17px; ">설치장소 :</caption>
- <caption id="cap_deptcd" class="search_name" style="left:309px; top:33px; width:89px; height:17px; ">운용부서 :</caption>
- <input id="ipt_installplcenm" ref="/root/send/search/installplcenm" class="output_fix" navindex="-1" editable="false" style="left:923px; top:32px; width:168px; height:19px; "/>
- <input id="ipt_installplcecd" ref="/root/send/search/installplcecd" class="input_search" navindex="8" style="left:793px; top:32px; width:106px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_installplcecd.value == ""){
- ipt_installplcenm.value = "";
- }else {
- misfValidationCheck("02", "", "installplcecd,installplcenm");
- }
- ipt_installplcecd.refresh();
- ipt_installplcenm.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fixasetnm" ref="/root/send/search/name_search" class="input_search" navindex="11" style="left:399px; top:56px; width:277px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" navindex="10" imemode="disabled" _chartype="upper" style="left:104px; top:56px; width:171px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_updtflag" ref="/root/send/search/updtflag" class="combo_search" disabled="true" navindex="5" appearance="minimal" style="left:104px; top:32px; width:171px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_deptnm" ref="/root/send/search/deptnm" class="output_fix" navindex="-1" editable="false" style="left:528px; top:32px; width:147px; height:19px; "/>
- <input id="ipt_deptcd" ref="/root/send/search/deptcd" class="input_search" navindex="6" style="left:399px; top:32px; width:106px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfSearchDept(ipt_deptnm);
- ]]>
- </script>
- </input>
- <input id="ipt_updtdd1" ref="/root/send/search/updtdd1" class="input_s_essential" navindex="3" inputtype="date" style="left:794px; top:8px; width:100px; height:19px; text-align:center; "/>
- <input id="ipt_updtdd2" ref="/root/send/search/updtdd2" class="input_s_essential" navindex="4" inputtype="date" style="left:916px; top:8px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption16" style="left:899px; top:9px; width:17px; height:20px; vertical-align:middle; ">~</caption>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:104px; top:8px; width:171px; height:19px; text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_deptcd" class="icon_search" navindex="7" style="left:509px; top:34px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_installplcecd" class="icon_search" navindex="9" style="left:903px; top:33px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_installplcecd,"","installplcecd,installplcenm");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:310px; top:55px; width:89px; height:17px; ">자 산 명 :</caption>
- <input id="ipt_userid" ref="/root/send/search/userid" class="input_search" navindex="12" style="left:793px; top:55px; width:75px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_userid.value.length == 0)
- ipt_usernm.value = "";
- else
- misfValidationCheck("01-1", "", "userid,usernm");
- ipt_userid.refresh();
- ipt_usernm.refresh();
-
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_userid" class="icon_search" navindex="13" style="left:874px; top:55px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("01", ipt_userid, "", "userid,usernm");
- ipt_userid.refresh();
- ipt_usernm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_usernm" ref="/root/send/search/usernm" class="output_fix" navindex="-1" appearance="input" style="left:893px; top:55px; width:125px; height:19px; text-align:left; padding-left:10; "/>
- <caption id="caption3" class="search_name" style="left:703px; top:55px; width:88px; height:17px; ">담 당 자 :</caption>
- </group>
- <caption id="caption21" class="tit_2" style="left:5px; top:101px; width:148px; height:15px; ">정보자산 변동 현황List</caption>
- <button id="btn_excel" class="btn2_letter4" navindex="17" style="left:1128px; top:96px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "자산변동사항이력List", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_rfchcgmtlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_rfchcgmtlist" nodeset="/root/main/list/chgnhistinfo/chgnhistlist" caption="^변동구분^변동일자^자산구분^자산코드^자산명^규격^모델^취득일자^금액^공급처^변동전 운용부서^운용부서^비고^적요^변경설치장소^IP주소^기관코드^담당자^담당자" colsep="^" colwidth="24, 55, 69, 55, 95, 161, 91, 80, 69, 62, 119, 100, 100, 200, 138, 100, 100, 100, 45, 55" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" navindex="15" style="left:0px; top:120px; width:1194px; height:604px; ">
- <col checkvalue="Y,N" ref="choice" type="checkbox" visibility="hidden"/>
- <col disabled="true" ref="updtflag" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <item>
- <label>신규</label>
- <value>9</value>
- </item>
- <item>
- <label>이동</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="updtdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="goodflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflaghngnm" style="text-align:left; "/>
- <col ref="goodspec" style="text-align:left; "/>
- <col ref="goodmodel" style="text-align:left; "/>
- <col ref="possndd" format="yyyy-mm-dd"/>
- <col ref="fixasetamt" format="#,###" maxlength="12" style="text-align:right; "/>
- <col ref="suplplcenm"/>
- <col ref="premngtdeptnm"/>
- <col disabled="true" ref="upddeptnm" _key="true" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="cmt" style="text-align:left; "/>
- <col ref="mainrec" visibility="hidden" style="text-align:center; "/>
- <col ref="installplcenm" visibility="hidden" style="left:639px; top:23px; width:130px; height:23px; text-align:center; "/>
- <col ref="ipaddr" style="text-align:left; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="userid" style="text-align:left; "/>
- <col ref="usernm" style="text-align:left; "/>
- </datagrid>
- <button id="btn_barcodeprt" class="btn2_letter5" navindex="16" visibility="hidden" style="left:1048px; top:96px; width:75px; height:19px; ">
- <caption>바코드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var goodnm, mngtdeptnm, installplcenm;
- var node = instance1.selectNodes("/root/main/list/chgnhistinfo/chgnhistlist[choice='Y']");
-
- if (node == null || node.length < 1){
- messageBox("선택 된 자산이","I004");
- return false;
- }
-
- model.removeNodeset(grd_cpfixasetlist.nodeset);
- grd_cpfixasetlist.refresh();
-
- for (var i=0; i<node.length; i++) {
-
- var selectItem = node.item(i);
- var goodflag = selectItem.selectSingleNode("goodflag").value.getTrim();
-
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= E) => (goodflag= EQ)
- if (goodflag == "EQ") {
- goodnm = selectItem.selectSingleNode("goodflagengnm").value.getTrim();
- } else {
- goodnm = selectItem.selectSingleNode("goodflaghngnm").value.getTrim();
- }
-
- mngtdeptnm = selectItem.selectSingleNode("upddeptnm").value.getTrim();
- installplcenm = selectItem.selectSingleNode("installplcenm").value.getTrim();
-
- grd_cpfixasetlist.addRow(false);
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("fixasetcd" )) = selectItem.selectSingleNode("fixasetcd").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("possndd" )) = selectItem.selectSingleNode("possndd").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("goodnm1" )) = goodnm;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("goodspec" )) = selectItem.selectSingleNode("goodspec").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("deptnm1" )) = mngtdeptnm;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("deptnm2" )) = installplcenm;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("mngtno" )) = selectItem.selectSingleNode("mngtno").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("suplplcenm" )) = selectItem.selectSingleNode("suplplcenm").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("cmt" )) = selectItem.selectSingleNode("cmt").value;
- grd_cpfixasetlist.valueMatrix(grd_cpfixasetlist.row, grd_cpfixasetlist.colRef("ipaddr" )) = selectItem.selectSingleNode("ipaddr").value;
- }
- grd_cpfixasetlist.refresh();
- exeReportPreview("RPRFC00702","XMLSTR");
- exeReportPreview("RPRFC00703","XMLSTR");
- ]]>
- </script>
- </button>
- <datagrid id="grd_cpfixasetlist" nodeset="/root/main/list/cpfixaset/cpfixasetlist" visibility="hidden" caption="기관코드^자산코드^품명^모델^규격^SERIAL NO^공급처^구입일자^운용부서^설치장소^물품명2^IP주소^비고" colsep="^" colwidth="53, 110, 230, 100, 160, 123, 159, 75, 130, 130, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:490px; top:440px; width:679px; height:262px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodnm1" style="padding-left:5; "/>
- <col ref="goodmodel" visibility="hidden"/>
- <col ref="goodspec" style="padding-left:5; "/>
- <col ref="mngtno"/>
- <col ref="suplplcenm" style="padding-left:5; "/>
- <col ref="possndd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deptnm1"/>
- <col ref="deptnm2"/>
- <col ref="goodnm2" visibility="hidden"/>
- <col ref="ipaddr"/>
- <col ref="cmt"/>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_init" class="btn4_letter3" navindex="20" style="left:1126; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|