123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- <?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>SMRWB00100_위원회관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <bordlist>
- <instcd/>
- <bordcd/>
- <bordnm/>
- <aprvyn/>
- <estbdd/>
- <todd/>
- <cmt/>
- </bordlist>
- </list>
- <check>
- <checklist>
- <bordcd/>
- </checklist>
- </check>
- </main>
- <send>
- <instcd/>
- <save>
- <bordlist/>
- </save>
- <checksend>
- <instcd/>
- <bordcd/>
- <bordnm/>
- </checksend>
- </send>
- <temp/>
- <init>
- <list>
- <aprvflag>
- <label>비공인</label>
- <value>N</value>
- <label>공 인</label>
- <value>Y</value>
- </aprvflag>
- </list>
- </init>
- </root>
- </instance>
- <submission id="TRRWB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TXRWB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRWB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/checksend" resultref="/root/main/check"/>
- </model>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInitialize();
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
-
- function fCheckSaveData()
- {
- if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
- {
- messageBox("기관코드를 " ,"C002");
- model.setFocus("cmb_instcd");
- return false;
- }
-
- for(var row = grd_bord.fixedRows ; row < grd_bord.rows ; row++)
- {
- if(grd_bord.valueMatrix(row , grd_bord.colRef("bordnm")).length == 0)
- {
- messageBox("위원회명을 " ,"C002");
- grd_bord.row= row ;
- grd_bord.col= grd_bord.colRef("bordnm");
- return false;
- }
-
- if(grd_bord.valueMatrix(row , grd_bord.colRef("estbdd")).length == 0)
- {
- messageBox("구성일자를 " ,"C002");
- grd_bord.row= row ;
- grd_bord.col= grd_bord.colRef("estbdd");
- return false;
- }
- }
- }
-
- function fInitialize()
- {
- misfGridInit(grd_bord);
- misfMsterDetailSet(grd_bord,null, "TRRWB00101" ,"Y");
- //misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
- model.refresh();
-
- submit("TRRWB00101");
-
- btn_search.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">위원회 현황 관리</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
- <line id="line1" class="line_1" style="x1:1px; y1:75px; x2:1195px; y2:75px; "/>
- <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(cmb_instcd.value == "") {
- messageBox("기관코드를","C002");
- }else{
- grd_bord.addRow();
- var cur_row = grd_bord.row;
- //행추가를 누를시 상위코드의 값을 자동으로 저장한다.
- model.setValue("/root/main/list/bordlist["+cur_row+"]/instcd",cmb_instcd.value);
- grd_bord.valueMatrix(cur_row, 4)="N";
- grd_bord.valueMatrix(cur_row, 6)="99991231";
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1138px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var delcnt;
- delcnt = 0;
-
- if(grd_bord.rowStatus(grd_bord.row) == 4 || grd_bord.rowStatus(grd_bord.row) == 1)//Insert 한 Row 나 Delete 한 Row는 Delete 시 이전 Delete flag 삭제
- {
- misfGridIUD(grd_bord, "D");
- }
- else
- {
- for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
- {
- if(grd_bord.rowStatus(row) == 4)
- {
- delcnt += 1;
- }
- if(delcnt == 1)
- {
- messageBox("두 개 이상 삭제하실수 ","E001");
- return false;
- }
- }
- misfGridIUD(grd_bord, "D");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:68px; top:17px; width:202px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:7px; top:18px; width:61px; height:17px; ">기관:</caption>
- <datagrid id="grd_bord" nodeset="/root/main/list/bordlist" caption="기관코드^위원회코드^위원회명^공인여부^구성일자^종료일자^비고" colsep="^" colwidth="0,0, 160, 100, 160, 160, 590" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:1px; top:75px; width:1194px; height:660px; ">
- <col ref="instcd"/>
- <col ref="bordcd"/>
- <col ref="bordnm" type="input"/>
- <col ref="aprvyn" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/list/aprvflag">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- </col>
- <col ref="estbdd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="cmt" type="input"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
- <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheckSaveData() == false)return;
-
- for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
- {
- if(grd_bord.rowStatus(row) == 4)
- {
- model.setValue("/root/send/checksend/instcd", grd_bord.valueMatrix(row, grd_bord.colRef("instcd")));
- model.setValue("/root/send/checksend/bordcd", grd_bord.valueMatrix(row, grd_bord.colRef("bordcd")));
- model.setValue("/root/send/checksend/bordnm", grd_bord.valueMatrix(row, grd_bord.colRef("bordnm")));
- submit("TRRWB00102");
- }
- }
-
- if(model.getValue("/root/main/check/checklist/bordcd") == "")
- {
- misfSave("TXRWB00101");
- }
- else
- {
- messageBox(model.getValue("/root/send/checksend/bordnm") + " 위원회는 하위 데이터가 있어 삭제하실수 ","E001");
- for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
- {
- if(grd_bord.rowStatus(row) == 4)
- {
- grd_bord.removeStatus(row, "delete");
- }
- }
- }
- model.removenode("/root/main/check/checklist/bordcd");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|