123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <?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>
- <instcd/>
- <goodflag/>
- <newmatrprcsstat>
- <label>미접수</label>
- <value>0</value>
- <label>접수</label>
- <value>1</value>
- <label>반려</label>
- <value>2</value>
- <label>심사</label>
- <value>3</value>
- </newmatrprcsstat>
- </init>
- <send>
- <sendlist>
- <instcd/>
- <goodflag/>
- <reqfromdd/>
- <reqtodd/>
- <recedd/>
- <newmatrprcsstat/>
- <reqdeptcd/>
- <reqdeptnm/>
- <reqpsnid/>
- <reqpsnnm/>
- </sendlist>
- <newmeterialdetail/>
- </send>
- <main>
- <list>
- <newmeterialdetail/>
- </list>
- </main>
- <temp/>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TRRSD04001" ref="/root/send/sendlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/newmeterial"/>
- <submission id="TXRSD04201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" 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">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
-
- misfGridInit(grd_newmeterial);
- model.resetInstanceNode("/root/send");
-
- misfMsterDetailSet(grd_newmeterial,null,"TRRSD04001","Y");
- grd_newmeterial.fixedcellcheckbox(0,1) = true;
-
- misfComboComCdListMulti("Z0007,R0025","cmb_instcd,cmb_goodflag");
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(opt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
- model.setValue(opt_reqpsnid.attribute("ref") , getUserInfo("userid"));
- model.setValue(opt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
- // rdo_newmatrprcsstat.select(0);
- model.refresh();
- }
-
- function fDataCheck() {
- var updtdata = getGridUpdateData(grd_newmeterial);
- model.refresh();
- if (updtdata != "" ) return true;
- else return false;
- }
-
- function fSearchCheck() {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관구분은 " ,"I003");
- model.setFocus("cmb_instcd");
- return false;
- }
- if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
- {
- messageBox("물품구분은","I003");
- model.setFocus("cmb_goodflag");
- return false;
- }
- }
-
- function fChangeStatus( flag, flagnm ) {
- var cnt = grd_newmeterial.rows;
- var temp = 0;
- for ( var i=0; i<cnt; i++ ) {
- var select = model.getValue(grd_newmeterial.attribute("nodeset")+"[" + i + "]/chk");
- // 화면의 체크 값 확인
- if (select != 0) {
- temp = temp + 1;
- // 불출 수량이 있을 경우 상태 변경 불가.
- if( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") != 0 ) {
- grd_newmeterial.select(i, 3)=true;
- break;
- } else {
- // 현재 요청한 접수 상태가 이전 상태와 동일한지 확인
- if ( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") != flag ) {
- model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat", flag );
- model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstatnm", flagnm );
- grd_newmeterial.rowStatus( i ) = 2;
- var cur_row = grd_newmeterial.row;
- var status = grd_newmeterial.valueMatrix(cur_row, grd_newmeterial.colRef("m"));
- if(status !="insert" && status !="delete") grd_newmeterial.addStatus(cur_row,"update");
- }
- }
- } else {
- grd_newmeterial.rowStatus( i ) = 0;
- }
- // if( grd_reqdetaillist.rowStatus(i)==2 ) grd_reqdetaillist.rowStatus(i) = 0;
- }
- if( temp<=0 ) messageBox ("선택한 항목이","I004");
- }
-
- ]]>
- </script>
- </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:243px; height:14px; ">신규재료접수</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:111px; height:13px; ">신규품목</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
- <select1 id="rdo_newmatrprcsstat" ref="/root/send/sendlist/newmatrprcsstat" overflow="visible" appearance="full" cols="4" cellspacing="5" style="left:87px; top:57px; width:278px; height:15px; background-color:transparent; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/newmatrprcsstat">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <datagrid id="grd_newmeterial" nodeset="/root/main/list/newmeterialdetail" caption="^기관코드^청구일자^청구순번^물품구분^신청부서^품명^품명^구입예정가^납품업체^제조회사^진행사항^진행사항^비고" colwidth="25, 30, 30, 30, 30, 150, 150, 169, 203, 100, 161, 30, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:107px; width:1195px; height:628px; ">
- <col ref="chk" type="checkbox" checkvalue="1,0"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="reqdd" visibility="hidden"/>
- <col ref="reqseqno" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="reqdeptnm"/>
- <col ref="goodengnm"/>
- <col ref="goodhngnm"/>
- <col/>
- <col ref="maincust"/>
- <col ref="prodcmpynm"/>
- <col ref="newmatrprcsstat" visibility="hidden"/>
- <col ref="newmatrprcsstatnm"/>
- <col/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_newmeterial.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button6" class="btn2_letter2" style="left:1152px; top:81px; width:42px; height:19px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fChangeStatus( "1", "접수" );
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:5px; top:87px; width:118px; height:13px; ">신청내역</caption>
- <line id="line1" class="line_1" style="x1:1px; y1:102px; x2:1195px; y2:102px; "/>
- <button id="button7" class="btn2_letter4" visibility="hidden" style="left:1020px; top:81px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- </button>
- <button id="button9" class="btn2_letter4" visibility="hidden" style="left:1086px; top:81px; width:64px; height:19px; ">
- <caption>선택취소</caption>
- </button>
- <line id="line6" class="line_3" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
- <output id="opt_reqdeptnm" ref="/root/send/sendlist/reqdeptnm" class="output_fix" appearance="output" style="left:608px; top:56px; width:262px; height:19px; "/>
- <output id="opt_reqpsnnm" ref="/root/send/sendlist/reqpsnnm" class="output_fix" appearance="output" style="left:1009px; top:56px; width:182px; height:19px; "/>
- <output id="opt_reqpsnid" ref="/root/send/sendlist/reqpsnid" class="output_fix" appearance="output" style="left:945px; top:56px; width:61px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:580px; top:29px; width:100px; height:23px; vertical-align:middle; ">신청일자*</caption>
- <caption id="caption2" class="cell_1" style="left:0px; top:29px; width:85px; height:23px; vertical-align:middle; ">기관구분*</caption>
- <select1 id="cmb_goodflag" ref="/root/send/sendlist/goodflag" class="combo_default" appearance="minimal" style="left:375px; top:32; width:202px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="cell_1" style="left:873px; top:53px; width:70px; height:23px; vertical-align:middle; ">신청자</caption>
- <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_default" appearance="minimal" style="left:87px; top:32; width:183px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_reqfromdd" ref="/root/send/sendlist/reqfromdd" class="input_default" inputtype="date" style="left:683px; top:32px; width:92px; height:19px; "/>
- <input id="ipt_reqtodd" ref="/root/send/sendlist/reqtodd" class="input_default" inputtype="date" style="left:778px; top:32px; width:92px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:873px; top:29px; width:70px; height:23px; vertical-align:middle; ">접수일자</caption>
- <caption id="caption16" class="cell_1" style="left:0px; top:53px; width:85px; height:23px; vertical-align:middle; ">상태</caption>
- <caption id="caption8" class="cell_1" style="left:462px; top:53px; width:85px; height:23px; vertical-align:middle; ">신청부서</caption>
- <caption id="caption9" class="cell_1" style="left:273px; top:29px; width:100px; height:23px; vertical-align:middle; ">물품구분*</caption>
- <input id="ipt_recedd" ref="/root/send/sendlist/recedd" class="input_default" inputtype="date" style="left:945px; top:32px; width:92px; height:19px; "/>
- <output id="opt_reqdeptcd" ref="/root/send/sendlist/reqdeptcd" class="output_fix" appearance="output" style="left:548px; top:56px; width:57px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1135px; top:30px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fSearchCheck() == false) return;
- if ( fDataCheck() ) {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- } else {
- misfMsterDetailRetrieve();
- model.refresh();
- }
- } else {
- misfMsterDetailRetrieve();
- model.refresh();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fDataCheck() ) {
- misfSave("TXRSD04201");
- misfMsterDetailRetrieve();
- model.refresh();
- } else {
- messageBox("변경된 데이터가","I004");
- return;
- }
- ]]>
- </script>
- </button>
- <line id="line32" class="line_2" style="x1:0px; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|