123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- <?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="">
- <main>
- <setcompslist/>
- </main>
- <init>
- <setflag>
- <label>SUBSET</label>
- <value>1</value>
- </setflag>
- <suplflag>
- <label>국내조달</label>
- <value>1</value>
- <label>기타</label>
- <value>2</value>
- <label>제조회사</label>
- <value>3</value>
- </suplflag>
- </init>
- <send>
- <instcd/>
- <fixasetcd/>
- <goodflaghngnm/>
- <possndd/>
- <installplcecd/>
- <installplcenm/>
- <goodspec/>
- <possnamt/>
- <cntrdeptcd/>
- <depthngnm/>
- <mngtno/>
- </send>
- <temp>
- <instcd/>
- <fixasetcd/>
- <installplcecd/>
- <installplcenm/>
- <goodspec/>
- <mngtno/>
- <cntrdeptcd/>
- <cntrdeptnm/>
- <possndd/>
- <possnamt/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
-
- fGetdata();
- ]]>
- </script>
- <submission id="TRRFC00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/setcompslist"/>
- <submission id="TXRFC00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/setcompslist" resultref="/root/temp"/>
- </model>
- <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()
- {
- model.resetInstanceNode("/root/send");
- misfGridInit(grd_setcompslist);
-
- misfComboComCdListMulti("Z0007", "cmb_instcd"); // 기관코드
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
-
- misfMsterDetailSet(grd_setcompslist, null, "TRRFC00204", "Y");
- model.refresh();
- }
-
- function fSearch()
- {
- if(!isRequiredControls("ipt_fixasetcd")) return;
-
- var updtdata = getGridUpdateData(grd_setcompslist);
-
- //기관코드 값 체크
- if ( updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- misfMsterDetailRetrieve();
-
- // misfSetReadOnlyCol(grd_setcompslist, "updtfalg,updtdd,updtflag", true);
- model.refresh();
- }
-
- function fSave()
- {
- var updtdata = getGridUpdateData(grd_setcompslist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- misfSave("TXRFC00203");
-
- btn_search.dispatch("DOMActivate");
- if (model.getValue(gvErrorMsgPath + "/type") != "error" ) btn_search.dispatch("DOMActivate");
- }
-
- function fGetdata()
- {
- var sInstcd = model.getValue("/root/temp/instcd");
- var sFixasetcd = model.getValue("/root/temp/fixasetcd");
- var sInstallplcecd = model.getValue("/root/temp/installplcecd");
- var sInstallplcenm = model.getValue("/root/temp/installplcenm");
- var sGoodspec = model.getValue("/root/temp/goodspec");
- var sMngtno = model.getValue("/root/temp/mngtno");
- var sCntrdeptcd = model.getValue("/root/temp/cntrdeptcd");
- var sCntrdeptnm = model.getValue("/root/temp/cntrdeptnm");
- var sPossndd = model.getValue("/root/temp/possndd");
- var sPossnamt = model.getValue("/root/temp/possnamt");
-
- if(sInstcd != "")
- cmb_instcd.value = model.getValue("/root/temp/instcd");
-
- if(sFixasetcd != "")
- {
- ipt_fixasetcd.value = model.getValue("/root/temp/fixasetcd");
- ipt_fixasetcd.dispatch("xforms-value-changed");
- }
-
- if(sInstallplcecd != "")
- ipt_installplcecd.value = model.getValue("/root/temp/installplcecd");
-
- if(sInstallplcenm != "")
- opt_installplcenm.value = model.getValue("/root/temp/installplcenm");
-
- if(sGoodspec != "")
- ipt_goodspec.value = model.getValue("/root/temp/goodspec");
-
- if(sMngtno != "")
- ipt_mngtno.value = model.getValue("/root/temp/mngtno");
-
- if(sCntrdeptcd != "")
- ipt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptcd");
-
- if(sCntrdeptnm != "")
- opt_cntrdeptcd.value = model.getValue("/root/temp/cntrdeptnm");
-
- if(sPossndd != "")
- ipt_possndd.value = model.getValue("/root/temp/possndd");
-
- if(sPossnamt != "")
- ipt_possnamt.value = model.getValue("/root/temp/possnamt");
- if(sFixasetcd != "")
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:1185px; height:720px; text-align:right; ">
- <datagrid id="grd_setcompslist" nodeset="/root/main/setcompslist" caption="순번^소모품코드^Set 구분^소모품 명칭^규격^수량^단가^금액^조달구분^기관코드^고정자산코드" colsep="^" colwidth="52, 110, 259, 215, 100, 100, 170, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:163px; width:1185px; height:507px; text-align:center; ">
- <col ref="compsgoodseq"/>
- <col ref="goodcd" type="input" visibility="visible"/>
- <col ref="setflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/setflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="itemnm" type="input"/>
- <col ref="setcompsspec" type="input"/>
- <col ref="compsgoodqty" type="input" format="9999999999999" style="text-align:right; "/>
- <col ref="compsgoodunitcost" type="input" format="#,###" style="text-align:right; "/>
- <col ref="goodamt" format="#,###" style="text-align:right; "/>
- <col ref="suplflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/suplflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden"/>
- <col ref="fixasetcd" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- // 수량이나 단가컬럼을 입력할때
- if(grd_setcompslist.col == grd_setcompslist.colRef("compsgoodqty") || grd_setcompslist.col == grd_setcompslist.colRef("compsgoodunitcost"))
- {
- if(grd_setcompslist.colRef("compsgoodqty") != "" && grd_setcompslist.colRef("compsgoodunitcost") != "")
- {
- var sQty = grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("compsgoodqty"));
- var sCost = grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("compsgoodunitcost"));
-
- grd_setcompslist.valueMatrix(grd_setcompslist.row, grd_setcompslist.colRef("goodamt")) = (sQty * sCost)
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_delrow" class="btn2_letter3" style="left:1129px; top:138px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_setcompslist, "D");
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1073px; top:138px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("ipt_fixasetcd")) return;
-
- misfGridIUD(grd_setcompslist, "A");
-
- var cur_row = grd_setcompslist.row;
-
- model.setValue(grd_setcompslist.attribute("nodeset")+"["+cur_row+"]/setflag",1);
- // model.setValue(grd_chgnhistlist.attribute("nodeset")+"["+cur_row+"]/fixasetcd",ipt_fixasetcd.value);
- ]]>
- </script>
- </button>
- <caption id="caption9" class="tit_2" style="left:3px; top:143px; width:140px; height:14px; text-align:left; ">소모품 구성이력</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:158px; x2:1185px; y2:158px; "/>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:262px; height:14px; ">소모품구성이력등록</caption>
- <caption id="cap_possndd" class="cell_1" style="left:404px; top:113px; width:85px; height:23px; vertical-align:middle; ">취득일자</caption>
- <input id="opt_installplcenm" ref="/root/send/installplcenm" class="output_fix" appearance="input" style="left:185px; top:90px; width:216px; height:19px; text-align:left; "/>
- <output id="ipt_installplcecd" ref="/root/send/installplcecd" class="output_fix" appearance="output" style="left:88px; top:90px; width:95px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
- "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
- ipt_installplcecd, "PPRAC00700", "","");
- model.refresh();
- ]]>
- </script>
- </output>
- <caption id="cap_mngtno" class="cell_1" style="left:677px; top:89px; width:100px; height:23px; vertical-align:middle; ">SERIAL NO</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:88px; top:66px; width:152px; height:19px; text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <output id="ipt_mngtno" ref="/root/send/mngtno" class="output_fix" appearance="output" style="left:779px; top:90px; width:200px; height:19px; text-align:left; "/>
- <output id="ipt_possnamt" ref="/root/send/possnamt" class="output_fix" appearance="output" style="left:779px; top:114px; width:200px; height:19px; text-align:left; "/>
- <caption id="cap_possnamt" class="cell_1" style="left:677px; top:113px; width:100px; height:23px; vertical-align:middle; ">취득금액</caption>
- <output id="ipt_cntrdeptcd" ref="/root/send/cntrdeptcd" class="output_fix" appearance="output" style="left:88px; top:114px; width:95px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_cntrdeptcd.value, "", "cntrdeptcd,cntrdeptnm",
- ipt_cntrdeptcd, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </output>
- <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:165px; height:14px; ">소모품 구성 이력등록</caption>
- <button id="btn_fixasetcd" class="icon_search" style="left:601px; top:66px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var temp = "fixasetcd,goodflaghngnm,cntrdeptcd,installplcenm,possnamt,goodspec,mngtno,possndd,installplcecd,depthngnm";
-
- rszfOpenPopUpListByWndName(ipt_fixasetcd,"", temp, "SPRSD00240","instcd","cmb_instcd", "Y");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="ipt_goodspec" ref="/root/send/goodspec" class="output_fix" appearance="output" style="left:491px; top:90px; width:183px; height:19px; text-align:left; "/>
- <caption id="cap_goodspec" class="cell_1" style="left:404px; top:89px; width:85px; height:23px; vertical-align:middle; ">규격</caption>
- <input id="ipt_fixasetnm" ref="/root/send/goodflaghngnm" class="input_fix" appearance="input" style="left:620px; top:66px; width:359px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_fixasetnm.value != "")
- {
- rszfValidationCheck("TRRSD00241", "rfcmfacdlist", "requirementcd,instcd,requirementnm",
- "goodflaghngnm," + cmb_instcd.value + "," + ipt_fixasetnm.value, "", "fixasetcd,goodflaghngnm",
- ipt_fixasetnm, "SPRSD00240_고정자산코드검색HELP", "instcd","cmb_instcd");
- }else{
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line2" class="line_2" style="x1:0px; y1:111px; x2:1185; y2:111px; "/>
- <output id="ipt_possndd" ref="/root/send/possndd" class="output_fix" inputtype="date" appearance="output" style="left:491px; top:114px; width:183px; height:19px; text-align:left; "/>
- <output id="opt_cntrdeptcd" ref="/root/send/depthngnm" class="output_fix" appearance="output" style="left:185px; top:114px; width:216px; height:19px; text-align:left; "/>
- <caption id="cap_installplcecd" class="cell_1" style="left:0px; top:89px; width:85px; height:23px; vertical-align:middle; ">설치장소</caption>
- <caption id="cap_instcd" class="cell_1" style="left:0px; top:65px; width:85px; height:23px; vertical-align:middle; ">기관코드</caption>
- <input id="ipt_fixasetcd" ref="/root/send/fixasetcd" class="input_essential" appearance="input" style="left:491px; top:66px; width:106px; height:19px; text-align:left; ">
- <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,goodflaghngnm",
- ipt_fixasetcd, "SPRSD00240_고정자산코드검색HELP", "instcd","cmb_instcd");
- }else{
- ipt_fixasetcd.value = "";
- ipt_fixasetnm.value = "";
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1185; y2:60px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:87px; x2:1185; y2:87px; "/>
- <caption id="cap_fixasetcd" class="cell_1" style="left:404px; top:65px; width:85px; height:23px; vertical-align:middle; ">자산코드</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:90px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line6" class="line_3" style="x1:0px; y1:136px; x2:1185; y2:136px; text-align:left; "/>
- <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:113px; width:85px; height:23px; vertical-align:middle; ">귀속부서</caption>
- </group>
- <group id="group4" style="left:0px; top:15px; width:1185px; height:27px; ">
- <button id="button26" class="btn3_letter4" visibility="hidden" style="left:58px; top:3; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- <button id="button27" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="button20" class="btn4_letter2" style="left:1057px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="button29" class="btn4_letter3" style="left:1116px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1185px; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|