123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453 |
- <?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>일반청구 Set 관리</xhtml:title>
- <model id="model1" id6="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <reqmst>
- <reqsetmst/>
- </reqmst>
- <reqset>
- <reqsetlist/>
- </reqset>
- </list>
- <codelist>
- <allsizespecid/>
- <goodspec/>
- <goodmodel/>
- <chk/>
- <qty/>
- </codelist>
- </main>
- <temp/>
- <hidden/>
- <print>
- <result/>
- <instnm/>
- <reqflagnm/>
- <reqdeptnm/>
- </print>
- <init>
- <goodflag/>
- <reqdeptcd/>
- </init>
- <send>
- <reqlist>
- <instcd/>
- <reqflag/>
- <reqdeptcd/>
- <reqdeptnm/>
- <goodsetnm/>
- <reqpridflag/>
- </reqlist>
- <save>
- <reqsetlist/>
- </save>
- <reqsetmst>
- <instcd/>
- <reqflag/>
- <reqdeptcd/>
- <goodsetnm/>
- <reqprid/>
- </reqsetmst>
- <allsize>
- <instcd/>
- <goodcd/>
- <goodspec/>
- </allsize>
- <setname>
- <instcd/>
- <reqdeptcd/>
- <reqdeptcdnm/>
- <goodsetnm/>
- <oldgoodsetnm/>
- <updateflag/>
- </setname>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- // grd_reqsetlist.fixedcellcheckbox(0,1) = true;
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD00211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlist" resultref="/root/main/list/reqmst"/>
- <submission id="TRRSD00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqsetmst" resultref="/root/main/list/reqset"/>
- <submission id="TXRSD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSD00213" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlist" resultref="/root/print/result"/>
- <submission id="TRRSD00281" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/allsize" resultref="/root/main/codelist"/>
- <submission id="TXRSD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setname" 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="../../../mis/reqweb/js/SMRSD00200.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일반청구SET 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:23px; width:1195px; height:759px; ">
- <group id="grp_sea" style="left:0px; top:5px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:86px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/reqlist/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8px; width:147px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- cmb_reqflag.dispatch("xforms-value-changed");
- ]]>
- </script>
- </select1>
- <button id="btn_reqdeptcd" class="icon_search" visibility="visible" style="left:472px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_reqdeptnm" ref="/root/send/reqlist/reqdeptnm" class="output_fix" appearance="output" style="left:492px; top:8px; width:181px; height:19px; "/>
- <caption id="cap_reqdeptcd" class="search_name" style="left:275px; top:9px; width:86px; height:17px; ">청구부서 :</caption>
- <line id="line30" class="line_4" style="x1:1035px; y1:8px; x2:1035px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1056px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDataSearch();
- ]]>
- </script>
- </button>
- <output id="opt_goodflag" ref="/root/init/goodflag" visibility="hidden" style="left:800px; top:2px; width:100px; height:19px; "/>
- <input id="ipt_reqdeptcd" ref="/root/send/reqlist/reqdeptcd" class="input_default" style="left:360px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_reqdeptcd.value.length == 0)
- opt_reqdeptnm.value = "";
- else
- misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
-
- model.setValue("/root/init/reqdeptcd", ipt_reqdeptcd.value);
-
- ipt_reqdept.refresh();
-
- fDataSearch();
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdept" ref="/root/init/reqdeptcd" class="input_default" visibility="hidden" style="left:700px; top:2px; width:95px; height:19px; "/>
- <caption id="caption7" style="left:695px; top:12px; width:301px; height:15px; color:#339966; ">:: Set명 Double Click시 변경 가능합니다. 중복 주의要!!</caption>
- <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:7px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdatamst = getGridUpdateData(grd_reqsetmst);
- var updtdata = getGridUpdateData(grd_reqsetlist);
-
- if (updtdatamst !="" || updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <line id="line1" class="line_1" style="x1:330px; y1:67px; x2:1195px; y2:67px; "/>
- <datagrid id="grd_reqsetlist" nodeset="/root/main/list/reqset/reqsetlist" caption="물품코드^Size^품명^규격^모델^제조회사^수량^단위^비고^청구주기^청구구분^ALLSIZEOLD" colsep="^" colwidth="95, 33, 203, 140, 87, 73, 65, 50, 130, 64, 65, 100, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:330px; top:70px; width:865px; height:684px; ">
- <!-- <col ref="chk" type="checkbox"/> -->
- <col class="input_essential" disabled="false" ref="goodcd" type="inputbutton"/>
- <col ref="allsizespecid"/>
- <col ref="goodnm"/>
- <col ref="goodspec" type="inputbutton"/>
- <col ref="goodmodel"/>
- <col ref="prodcmpynm"/>
- <col ref="goodqty" type="input" format="#,###" style="text-align:right; "/>
- <col ref="deliveunit" style="text-align:center; "/>
- <col ref="cmt" type="input"/>
- <col ref="reqpridnm"/>
- <col ref="reqflagnm"/>
- <col ref="allsizespecidold" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdeptcd" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col ref="goodsetnm" visibility="hidden"/>
- <col ref="allsizeyn" visibility="hidden"/>
- <col ref="allsizespecidnm" visibility="hidden"/>
- <col ref="prodcmpycd" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fSetListButtonClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqsetlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grp_allsize.attribute("visibility") ="hidden" ;
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:5px; top:53px; width:95px; height:13px; ">청구 SET</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:67px; x2:325px; y2:67px; "/>
- <datagrid id="grd_reqsetmst" nodeset="/root/main/list/reqmst/reqsetmst" caption="기관코드^청구주기^청구부서코드^청구부서명^청구구분^물품SET명" colsep="^" colwidth="0, 0, 0, 100, 0, 277" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="false" mergecells="byrestriccol" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:72px; width:325px; height:684px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqprid" visibility="hidden"/>
- <col class="input_essential" disabled="true" ref="reqdeptcd" type="inputbutton"/>
- <col ref="reqdeptnm"/>
- <col ref="reqflag" visibility="hidden"/>
- <col disabled="true" ref="goodsetnm" type="input"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- /*
- var updtdata = getGridUpdateData(grd_reqsetmst);
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if( updtdata != "" ) {
- if (ret != 6) { // not OK
- return;
- }
- }
- */
- //입력일 경우 조회하지 않는다
- if(grd_reqsetmst.rowStatus(grd_reqsetmst.row) == "1")
- {
- misfGridInit(grd_reqsetlist);
- }
- else {
- misfGridInit(grd_reqsetlist);
- misfMsterDetailRetrieve();
-
- model.setValue("/root/init/reqdeptcd", model.getValue("/root/main/list/reqmst/reqsetmst["+grd_reqsetmst.row+ "]/reqdeptcd"));
- ipt_reqdept.refresh();
- fSetListColor();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- alert(grd_reqsetmst.col);
- if (grd_reqsetmst.col == 2) {//부서코드 버튼을 눌렀을 때
- var recv_list = "reqdeptcd,reqdeptnm";
- misfOpenPopUpList("02", grd_reqsetmst,"", recv_list) ;
- var cur_row = grd_reqsetmst.row;
- var status = grd_reqsetmst.valueMatrix(cur_row, grd_reqsetmst.colRef("m"));
- if(status !="insert" && status !="delete") grd_reqsetmst.addStatus(cur_row,"update");
- }
-
- if (grd_reqsetmst.col == 6) {// Set명 버튼을 눌렀을 때
- fUpdateSetNameView();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqsetmst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fUpdateSetNameView();
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" style="left:805px; top:46px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // fDeleteRow(grd_reqsetlist);
-
- misfGridIUD(grd_reqsetlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:1036px; top:46px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_reqsetlist);
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:750px; top:46px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fDataCheck() == false ) return;
- fGridAddRow( grd_reqsetmst , grd_reqsetlist );
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:330px; top:53px; width:335px; height:13px; ">일반청구 SET 목록(일반청구 대상 물품만 등록 가능)</caption>
- <button id="button1" class="btn2_letter3" style="left:261px; top:46px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_reqsetmst,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:206px; top:46px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( fDataCheck() == false ) return;
- fGridAddRow( grd_reqsetmst , null );
- ]]>
- </script>
- </button>
- <button id="btn_setcopy" class="btn2_letter7" style="left:937px; top:46px; width:97px; height:19px; ">
- <caption>타부서SET복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCopyButtonClick();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1137px; top:45px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fSaveCheck() == false ) return ;
-
- var updtdata = getGridUpdateData(grd_reqsetlist);
-
-
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }else {
- if (Updatecheckdatagrid() == false)
- {
- messageBox("같은물품의 중복된 Size가 존재하여 저장","E001");
- return;
- }
- }
-
- misfSave("TXRSD00201");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" style="left:1080px; top:45px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (!isRequiredControls("cmb_instcd" )) return;
- // if (!isRequiredControls("cmb_reqflag" )) return;
- if (!isRequiredControls("ipt_reqdeptcd")) return;
-
- //model.resetInstanceNode("/root/print/result");
-
- model.setValue("/root/print/instnm", cmb_instcd.label);
- // model.setValue("/root/print/reqflagnm", cmb_reqflag.label);
- model.setValue("/root/print/reqdeptnm", opt_reqdeptnm.value);
- // ipt_reqdeptcd.value = '2010000000';
-
- submit("TRRSD00213");
-
- exeReportPreview("RPRSD00201", "XMLSTR");
- ]]>
- </script>
- </button>
- <group id="grp_allsize" visibility="hidden" showeffect="slidepositive 500" style="left:825px; top:125px; width:364px; height:300px; ">
- <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:362px; height:300px; border-color:#339966; border-width:2px; "/>
- <datagrid id="grd_codelist" nodeset="/root/main/codelist" class="grd_prodcmpylist" caption="C^ID^명칭^모델^수량" colsep="^" colwidth="30, 40, 140, 76, 51" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="false" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" style="left:2px; top:40px; width:357px; height:257px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="allsizespecid" style="text-align:center; "/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="qty" type="input"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if (grd_codelist.isCell(event.target ) && grd_codelist.row >= grd_codelist.fixedRows ) {
- // fAllSizeSelect(grd_codelist.row) ;
- // btn_confirm.dispatch("DOMActivate");
- //}
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_codelist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_confirm" class="btn4_letter2" style="left:285px; top:10px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllSizeSelect() ;
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" style="left:693px; top:51px; width:50px; height:15px; ">All Size</caption>
- <caption id="caption3" class="color_6" style="left:675px; top:50px; width:15px; height:15px; background-color:#FFFF00; "/>
- <button id="button3" class="btn2_letter5" style="left:860px; top:46px; width:75px; height:19px; ">
- <caption>상비품추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetListBaseClick();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_setname" visibility="hidden" style="left:330px; top:95px; width:425px; height:145px; border-color:#99ccff; border-width:2px; border-style:solid; ">
- <input id="ipt_setinstcd" ref="/root/send/setname/instcd" disabled="true" visibility="hidden" maxlength="15" style="left:193px; top:8px; width:50px; height:19px; "/>
- <input id="ipt_setdeptcd" ref="/root/send/setname/reqdeptcd" disabled="true" maxlength="15" style="left:123px; top:43px; width:100px; height:19px; "/>
- <input id="ipt_setdeptnm" ref="/root/send/setname/reqdeptcdnm" disabled="true" maxlength="15" style="left:229px; top:43px; width:180px; height:19px; "/>
- <input id="ipt_oldsetname" ref="/root/send/setname/oldgoodsetnm" disabled="true" maxlength="15" style="left:123px; top:73px; width:285px; height:19px; "/>
- <input id="ipt_setname" ref="/root/send/setname/goodsetnm" class="input_default" style="left:123px; top:108px; width:285px; height:19px; "/>
- <caption id="caption25" class="search_name" style="left:8px; top:43px; width:111px; height:17px; ">청 구 부 서 :</caption>
- <caption id="caption2" class="search_name" style="left:8px; top:73px; width:112px; height:17px; ">변경전SET명 :</caption>
- <caption id="caption5" class="search_name" style="left:8px; top:108px; width:112px; height:17px; ">변경후SET명 :</caption>
- <caption id="caption26" navindex="-1" style="left:8px; top:8px; width:175px; height:20px; font-weight:bold; text-align:center; vertical-align:middle; border-color:#ff0000; border-width:2px; border-style:outset; ">청구 Set명 변경</caption>
- <line id="line8" class="line_3" style="x1:3px; y1:36px; x2:411px; y2:36px; "/>
- <button id="button12" class="btn4_letter2" style="left:350px; top:8px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpdateSetNameExit();
- ]]>
- </script>
- </button>
- <button id="button13" class="btn4_letter2" style="left:285px; top:8px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpdateSetName();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|