123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <list>
- <fixtrscnfminfo>
- <fixtrscnfmlist/>
- </fixtrscnfminfo>
- <bcfixtrsinfo>
- <bcfixtrslist>
- <chk/>
- <inptflag/>
- <rowno/>
- <execyy/>
- <goodflag/>
- <instcd/>
- <usedeptcd/>
- <usedeptnm/>
- <fixasetcd/>
- <seqno/>
- <goodflagengnm/>
- <goodmodel/>
- <possndd/>
- <suplplcenm/>
- <prodcmpynm/>
- <orginsprst/>
- <possndeptcd/>
- <possndeptnm/>
- <mvflag/>
- <cmt/>
- </bcfixtrslist>
- </bcfixtrsinfo>
- <bcfixtrstempinfo>
- <bcfixtrsinfotemplist/>
- </bcfixtrstempinfo>
- </list>
- </main>
- <send>
- <search>
- <instcd/>
- <goodflag/>
- <usedeptcd/>
- <usedeptnm/>
- <fixasetcd/>
- <goodflagengnm/>
- <infoflag>M</infoflag>
- </search>
- <fixtrscnfmlist/>
- <savetype/>
- <barcdinfo>
- <instcd/>
- <fixasetcd/>
- <goodflag/>
- </barcdinfo>
- <bcfixtrslist/>
- </send>
- <init>
- </init>
- <temp/>
- </root>
- </instance>
- <submission id="TRRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/fixtrscnfminfo"/>
- <submission id="TRRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/barcdinfo" resultref="/root/main/list/bcfixtrstempinfo"/>
- <submission id="TXRFE02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TXRFE02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
-
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- misfComboComCdList('Z0007', cmb_instcd);
-
-
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
- model.setValue(ipt_usedeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(ipt_usedeptnm.attribute("ref"), getUserInfo("dutplcenm"));
- model.removeNodeset("/root/main/list/fixtrscnfminfo");
- model.removeNodeset("/root/main/list/bcfixtrsinfo");
- model.refresh();
-
- }
-
- function fCheckSaveData()
- {
- if(model.getValue(ipt_usedeptcd.attribute("ref")).length== 0 )
- {
- messageBox("사용부서를" ,"C002");
- model.setFocus("ipt_usedeptcd");
- return false;
- }
- }
- ]]>
- </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; ">재물조사(비품답사)</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:107px; x2:1194px; y2:107px; "/>
- <caption id="caption21" class="tit_2" style="left:5px; top:91px; width:143px; height:13px; ">비품 답사(의료 장비)</caption>
- <datagrid id="grd_fixtrscnfmlist" nodeset="/root/main/list/fixtrscnfminfo/fixtrscnfmlist" visibility="visible" caption="입력^조회 방식^(고정자산) 순번^순번^실시년도^물품구분^기관코드^사용부서코드^자산코드^장비명^모델명^구입일자^거래처^제조원^실사결과^현보유부서코드^현보유부서명^이동^비고" colsep="^" colwidth="45, 73, 99, 49, 80, 69, 80, 80, 98, 192, 88, 80, 94, 119, 69, 100, 149, 46, 166" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:114px; width:1194px; height:352px; font-weight:normal; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" visibility="visible" style="text-align:center; "/>
- <col ref="inptflag" visibility="hidden"/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col ref="rowno" visibility="visible" style="text-align:center; "/>
- <col ref="execyy" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" type="combo">
- <choices>
- <item>
- <label>의료장비</label>
- <value>E</value>
- </item>
- <item>
- <label>일반비품</label>
- <value>G</value>
- </item>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="usedeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflagengnm" style="text-align:left; padding-left:10; "/>
- <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
- <col ref="possndd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col ref="suplplcenm" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- <col checkvalue="Y,N" ref="orginsprst" type="checkbox" style="text-align:left; "/>
- <col ref="possndeptcd" type="inputbutton" style="text-align:center; "/>
- <col ref="possndeptnm" style="text-align:left; padding-left:10; "/>
- <col checkvalue="Y,N" ref="mvflag" type="checkbox" style="text-align:left; "/>
- <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var orginsprst = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("orginsprst"));
- var inptflag = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("inptflag"));
- var chk = grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("chk"));
- if ( grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("orginsprst")
- && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("possndeptcd")
- && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("mvflag")
- && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("cmt")
- && grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("chk") ){
- return;
- }
- if (inptflag == "R"){
- if (grd_fixtrscnfmlist.col != grd_fixtrscnfmlist.colRef("chk")){
- grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
- messageBox("미입력된 건이므로 수정" ,"E001");
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("orginsprst")) = "N";
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
-
- }
- if (chk == "Y"){
- grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 1;
- }else{
- grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
- }
- return;
-
- }else{
- if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("chk")){
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("chk")) = "N";
- grd_fixtrscnfmlist.rowStatus(grd_fixtrscnfmlist.row) = 0;
-
- }
- }
- //title click시 접근 자체를 금지
- if (grd_fixtrscnfmlist.row == grd_fixtrscnfmlist.fixedRows-1){
- return;
- }
- //항목이 이동 및 현보유부서코드 아닌 경우 접근 금지.
- if (!( grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("mvflag")
- || grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd"))){
- return;
- }
-
- //이동 처리 관련 로직
- if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("mvflag")){
-
- if (orginsprst == "Y"){
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
- grd_fixtrscnfmlist.rebuild();
- messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
- return;
- }
-
- if (grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd")).length == 0){
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("mvflag")) = "N";
- grd_fixtrscnfmlist.rebuild();
- messageBox("현사용부서를" ,"C001");
- return;
- }
- }
- //현보유부서 관련 로직
- if (grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd")){
-
- if (orginsprst == "Y"){
- messageBox("실사결과 본 장비는 사용부서에서 보유하고 있으므로 선택" ,"E001");
- return;
- }else{
- if(grd_fixtrscnfmlist.col == grd_fixtrscnfmlist.colRef("possndeptcd")){
- //현보유부서코드 버튼을 눌렀을 때
- var recv_list = "possndeptcd,possndeptnm";
- rpbfOpenDeptCdHelp(grd_fixtrscnfmlist,recv_list, model.getValue("/root/send/search/instcd"), "instcd");
- if ( grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("usedeptcd"))
- == grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd"))){
- messageBox("사용부서와 현보유부서가 일치하여 변경할 수","I004");
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptcd")) = "";
- grd_fixtrscnfmlist.valueMatrix(grd_fixtrscnfmlist.row, grd_fixtrscnfmlist.colRef("possndeptnm")) = "";
-
- return;
- }
- }
- }
-
- grd_fixtrscnfmlist.col = 17;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:485px; width:143px; height:14px; ">바코드 물품 정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:501px; x2:1194px; y2:501px; "/>
- <button id="button2" class="btn2_letter4" style="left:1125px; top:480px; 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>
- <button id="btn_deptmove" class="btn2_letter7" style="left:1090px; top:85px; width:97px; height:19px; ">
- <caption>부서 이동 실시</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/send/savetype", "M");
- var retMes = messageBox("부서 이동을 실시 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- var updtdata = getGridUpdateData(grd_fixtrscnfmlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/fixtrscnfmlist", updtdata);
- misfSave("TXRFE02201");
- btn_search.dispatch("DOMActivate");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:17px; width:1195px; height:63px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd")) return;
- if(!isRequiredControls("cmb_goodflag")) return;
- if(!isRequiredControls("ipt_usedeptcd")) return;
-
- submit("TRRFE02201");
- for(i=grd_fixtrscnfmlist.fixedRows; i < grd_fixtrscnfmlist.rows;i++){
- var jobtype = grd_fixtrscnfmlist.valueMatrix(i,grd_fixtrscnfmlist.colRef("inptflag"));
-
- if( jobtype == 'X'){
- grd_fixtrscnfmlist.rowStyle(i, "all", "background-color") = "white";
- }else{
- grd_fixtrscnfmlist.rowStyle(i, "all", "background-color") ="#ffff99";
- }
-
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:125px; top:10px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:30px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:125px; top:36px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_goodflag" class="search_name" style="left:30px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
- <caption id="cap_usedeptcd" class="search_name" style="left:500px; top:10px; width:89px; height:17px; ">사용부서 :</caption>
- <input id="ipt_usedeptnm" ref="/root/send/search/usedeptnm" class="input_search" style="left:758px; top:9px; width:232px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_usedeptnm.value == ""){
- ipt_usedeptcd.value = "";
- }else {
- misfValidationCheck("02", "", "usedeptcd,usedeptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" style="left:735px; top:12px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //misfOpenPopUpList("02", ipt_usedeptcd,"","usedeptcd,usedeptnm");
- var recv_list = "usedeptcd,usedeptnm";
- misfOpenPopUpList("02", ipt_usedeptcd,"", recv_list, model.getValue("/root/send/instcd"), "instcd") ;
- //misfOpenPopUpList("02", ipt_usedeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_usedeptcd" ref="/root/send/search/usedeptcd" class="input_search" style="left:595px; top:9px; width:135px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_usedeptcd.value == ""){
- ipt_usedeptnm.value = "";
- }else {
- misfValidationCheck("02", "", "usedeptcd,usedeptnm");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_fixasetcd" class="icon_search" style="left:735px; top:37px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // ,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm
- var temp = "fixasetcd,goodflagengnm";
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fixasetnm" ref="/root/send/search/goodflagengnm" class="input_search" style="left:758px; top:36px; width:232px; height:19px; text-align:left; padding-left:10; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetnm.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
- "goodflagengnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflagengnm",
- ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_fixasetcd.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_fixasetcd" ref="/root/send/search/fixasetcd" class="input_search" style="left:595px; top:36px; width:135px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetcd.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
- "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "", "fixasetcd,goodflagengnm",
- ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd,goodflag","cmb_instcd,cmb_goodflag");
- }else{
- ipt_fixasetnm.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="cap_fixasetcd" class="search_name" style="left:500px; top:36px; width:89px; height:17px; ">자산코드 :</caption>
- </group>
- <button id="btn_excel" class="btn2_letter2" style="left:1040px; top:85px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chk;
-
- for (var i=grd_fixtrscnfmlist.fixedRows; i<grd_fixtrscnfmlist.rows; i++){
- chk = grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("chk"));
- inptflag = grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("inptflag"));
-
- if (chk == "Y" && inptflag == "R"){
- grd_fixtrscnfmlist.rowStatus(i) = 1;
- }
- }
-
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- model.setValue("/root/send/savetype", "S");
- for (i=grd_fixtrscnfmlist.fixedRows;i<grd_fixtrscnfmlist.rows;i++){
- if ( grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("inptflag")) == "R"
- && grd_fixtrscnfmlist.valueMatrix(i, grd_fixtrscnfmlist.colRef("chk")) == "Y" ){
- grd_fixtrscnfmlist.rowStatus(i) = 1
- }
- }
-
- var updtdata = getGridUpdateData(grd_fixtrscnfmlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/fixtrscnfmlist", updtdata);
- misfSave("TXRFE02201");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fixasetcd_barcd" ref="/root/send/barcdinfo/fixasetcd" style="left:135px; top:480px; width:120px; height:19px; "/>
- <button id="btn_input" class="btn2_letter2" style="left:260px; top:480px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd")) return;
- if(!isRequiredControls("cmb_goodflag")) return;
- if(!isRequiredControls("ipt_usedeptcd")) return;
- model.setValue("/root/send/barcdinfo/instcd", model.getValue(cmb_instcd.attribute("ref")));
- model.setValue("/root/send/barcdinfo/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
- for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
- if ( grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("instcd")) == model.getValue(cmb_instcd.attribute("ref"))
- && grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("fixasetcd")) == model.getValue(ipt_fixasetcd_barcd.attribute("ref"))){
- messageBox("이미 입력된 데이타 ","I009");
- return;
- }
-
- }
- submit("TRRFE02202");
- if (model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/fixasetcd").length == 0){
- messageBox("존재하지 않는 데이타 ","I009");
- return;
- }
-
- grd_bcfixtrsinfo.addRow();
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("chk")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/chk");
- if (grd_bcfixtrsinfo.row == 1){
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("rowno")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/rowno");
- }else{
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("rowno")) = parseInt(grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row-1, grd_bcfixtrsinfo.colRef("rowno")))+1;
- }
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("execyy")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/execyy");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodflag")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodflag");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("instcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/instcd");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/usedeptcd");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptnm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/usedeptnm");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("fixasetcd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/fixasetcd");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodflagengnm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodflagengnm");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("goodmodel")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/goodmodel");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndd")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/possndd");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("suplplcenm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/suplplcenm");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("prodcmpynm")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/prodcmpynm");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("orginsprst")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/orginsprst");
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("mvflag")) = model.getValue("/root/main/list/bcfixtrstempinfo/bcfixtrstemplist/mvflag");
- if (grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("usedeptcd")) == model.getValue("/root/send/search/usedeptcd")){
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndeptcd")) = "";
- }else{
- grd_bcfixtrsinfo.valueMatrix(grd_bcfixtrsinfo.row, grd_bcfixtrsinfo.colRef("possndeptcd")) = model.getValue("/root/send/search/usedeptcd");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_exec" class="btn2_letter5" style="left:1045px; top:480px; width:75px; height:19px; ">
- <caption>실사 적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
- if (grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("usedeptcd")) == model.getValue(ipt_usedeptcd.attribute("ref"))){
- grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("orginsprst")) = "Y";
- grd_bcfixtrsinfo.rowStatus(i) = 2;
- }else{
- grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("orginsprst")) = "N";
- grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("possndeptcd")) = model.getValue(ipt_usedeptcd.attribute("ref"));
- grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("mvflag")) = "Y";
- grd_bcfixtrsinfo.rowStatus(i) = 1;
- }
- }
- model.refresh();
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- var updtdata = getGridUpdateData(grd_bcfixtrsinfo);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
- model.setValue("/root/send/bcfixtrslist", updtdata);
- misfSave("TXRFE02202");
- for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
- grd_bcfixtrsinfo.deleteRow(i);
- }
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" style="left:305px; top:480px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chk, count=0;
-
- for (var i=grd_bcfixtrsinfo.fixedRows; i<grd_bcfixtrsinfo.rows; i++){
- chk = grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("chk"));
-
- if (chk == "Y"){
- grd_bcfixtrsinfo.deleteRow(i);
- }
- ++count;
- grd_bcfixtrsinfo.valueMatrix(i, grd_bcfixtrsinfo.colRef("rowno")) = count;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_fixasetcd_barcd" class="btn2_letter6" style="left:350px; top:480px; width:86px; height:19px; ">
- <caption>자산코드 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var temp = "fixasetcd,goodflagengnm";
- if(!isRequiredControls("cmb_instcd")) return;
- if(!isRequiredControls("cmb_goodflag")) return;
- if(!isRequiredControls("ipt_usedeptcd")) return;
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd_barcd,"", temp, "SPRSD00240","instcd,goodflag","cmb_instcd,cmb_goodflag");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_bcfixtrsinfo" nodeset="/root/main/list/bcfixtrsinfo/bcfixtrslist" caption="삭제^순번^실시년도^기관코드^물품코드^실사결과^현보유 부서코드^이동^부서 코드^부서명^장비코드^장비명^모델^구입일자^거래처^제조원" colsep="^" colwidth="40, 51, 100, 100, 100, 100, 100, 50, 100, 100, 100, 241, 120, 110, 164, 83" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:507px; width:1194px; height:230px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="rowno" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="execyy" visibility="hidden"/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="orginsprst" visibility="hidden"/>
- <col ref="possndeptcd" visibility="hidden"/>
- <col ref="mvflag" visibility="hidden"/>
- <col ref="usedeptcd" style="text-align:center; "/>
- <col ref="usedeptnm" style="text-align:left; padding-left:10; "/>
- <col ref="fixasetcd" style="text-align:center; "/>
- <col ref="goodflagengnm" style="text-align:left; padding-left:10; "/>
- <col disabled="true" ref="goodmodel" _key="true" style="text-align:left; padding-left:10; "/>
- <col ref="possndd" format="yyyy/mm/dd" style="text-align:center; "/>
- <col disabled="true" ref="suplplcenm" style="text-align:left; padding-left:10; "/>
- <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
- </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" 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>
|