123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?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>SMRWD01700_전출자조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <carempl>
- <carempllist>
- </carempllist>
- </carempl>
- </list>
- </main>
- <send>
- <carempl>
- <ym/>
- <mngtinstcd/>
- <outinstcd/>
- </carempl>
- <search>
- <name/>
- <searchflag>name</searchflag>
- <count>0</count>
- </search>
- </send>
- <save>
- <carempllist>
- </carempllist>
- </save>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_carempl);
- misfMsterDetailSet(grd_carempl,null, "TRRWD01701" ,"Y");
-
- misfComboComCdList("R0305", cmb_outinstcd,'N');
-
- grd_carempl.selectionMode = "byrows";
- grd_carempl.focusColor = "#ccffcc";
-
- var curdate = getCurrentDate();
- model.setValue(ipt_ym.attribute("ref") , curdate.substr(0, 6));
-
- model.setValue("/root/send/carempl/mngtinstcd" , getUserInfo("dutplceinstcd"));
- rwcComboMngtinstBase(cmb_instcd,getUserInfo("dutplceinstcd"),model.getValue(ipt_ym.attribute("ref")));
-
- grd_carempl.dataHeight = 19;
-
- grd_carempl.fixedcellcheckbox(0,1) = true; // 그리드에 있는 전체선택 체크박스
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRRWD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/main/list/carempl"/>
- <submission id="TXRWD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/carempllist" 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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.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" src="../../../mis/paydedufactmngtweb/js/RWD001.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fDefaultSetting() {
- model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/mngtinstcd" , model.getValue(cmb_instcd.attribute("ref")));
- model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/yy" , model.getValue(ipt_ym.attribute("ref")));
- model.refresh();
- }
-
- function fCheckRetrieveData()
- {
- if(model.getValue(ipt_ym.attribute("ref")).length== 0 ) {
- messageBox("해당년도를 " ,"C002");
- model.setFocus("ipt_ym");
- return false;
- }
- return true;
- }
-
- //이름찾기
- function fSearch(pColRef, pValue, pErrorValue, pCount)
- {
- var endRow = grd_carempl.row;
- var endRows = grd_carempl.rows;
- var count = 0;
-
- var pStartRow = grd_carempl.fixedRows;
-
- if( (grd_carempl.row+1) == grd_carempl.rows) {
- pStartRow = grd_carempl.fixedRows;
- }else {
- pStartRow = grd_carempl.row+1;
- }
-
- for(var i = grd_carempl.fixedRows; i < grd_carempl.rows; i++) {
- if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef))) {
- count++;
- }
- }
- pCount.value = count;
-
- for(var i = pStartRow; i <= endRows; i++) {
- if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef))) {
- grd_carempl.select(i, 3) = true;
- grd_carempl.row = i;
- return;
- }
-
- if(i == grd_carempl.rows) {
- endRows = endRow;
- i=0;
- }else if(endRow == i) {
- messageBox("조회한 " + cmb_search.label + "[" + pErrorValue + "]" + "가 없습니다.", "");
- return;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="700">
- <group id="group1" style="left:0px; top:0px; width:1000px; 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:38px; width:1000px; height:562px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1000px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:935px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (cmb_outinstcd.value == "" ) {
- messageBox("전출기관을", "C002");
- }
- else if( cmb_instcd.value == cmb_outinstcd.value ) {
- messageBox("관리기관과 같은 전출기관은 선택","E001"); // E001 = 할 수 없습니다.
- model.setFocus("cmb_outinstcd");
- }
- else {
- misfMsterDetailRetrieve();
- }
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:925px; y1:13px; x2:925px; y2:42px; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:999px; y2:70px; "/>
- <select1 id="cmb_instcd" ref="/root/send/carempl/mngtinstcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:363px; top:18px; width:127px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:10px; top:19px; width:93px; height:17px; ">년도 :</caption>
- <datagrid id="grd_carempl" nodeset="/root/main/list/carempl/carempllist" caption="^순번^사번^성명^연락처^근무상태^직위^급여기관^근무병원^근무부서^스티커번호^차량종류^차량번호^차량번호^비고^변경관리기관|^순번^사번^성명^연락처^근무상태^직위^급여기관^근무병원^근무부서^스티커번호^차량종류^번호1^번호2^비고^변경관리기관" colsep="^" colwidth="30, 35, 58, 50, 78, 60, 65, 95, 95, 80, 70, 55, 50, 40, 82, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:75px; width:1000px; height:485px; ">
- <col checkvalue="Y,N" ref="flagyn" type="checkbox"/>
- <col ref="seq"/>
- <col ref="emplno" type="output" style="text-align:center; "/>
- <col ref="name" style="text-align:center; "/>
- <col ref="mpphonno"/>
- <col ref="preststatcd" style="text-align:center; "/>
- <col ref="jobposnm" type="output"/>
- <col ref="payinst"/>
- <col ref="dutplceinst"/>
- <col ref="deptnm"/>
- <col ref="stickerno"/>
- <col ref="carkind"/>
- <col ref="carno1"/>
- <col ref="carno2"/>
- <col ref="cmd"/>
- <col ref="outinstcd"/>
- <col ref="yy" visibility="hidden"/>
- <col ref="mngtinstcd" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_carempl.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <input id="ipt_ym" ref="/root/send/carempl/ym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:73px; top:18px; width:87px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:265px; top:19px; width:96px; height:17px; ">관 리 기 관:</caption>
- <button id="btn_exceldetail" class="btn2_letter4" style="left:931px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_carempl.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <output id="opt_count" ref="/root/send/search/count" class="output_fix" style="left:860px; top:50px; width:35px; height:19px; color:#ff0000; text-align:center; "/>
- <select1 id="cmb_search" ref="/root/send/search/searchflag" appearance="minimal" style="left:658px; top:50px; width:82px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>이름</label>
- <value>name</value>
- </item>
- <item>
- <label>스티커번호</label>
- <value>stickerno</value>
- </item>
- <item>
- <label>차량번호</label>
- <value>carno2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_search.value == "stickerno") {
- ipt_search.attribute("format") = "";
- }else if(cmb_search.value == "carno2") {
- ipt_search.attribute("format") = "9999999999";
- }else {
- ipt_search.attribute("format") = "";
- }
- ipt_search.value = "";
- opt_count.value = 0;
- model.setFocus("ipt_search");
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:578px; top:50px; width:85px; height:17px; ">Search :</caption>
- <input id="ipt_search" ref="/root/send/search/name" class="input_default" imemode="hangul" style="left:743px; top:50px; width:115px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13 || event.keyCode == 9 ) {
- model.setFocus("grd_carempl");
- var pErrorValue = ipt_search.currentText;
- ipt_search.refresh();
- fSearch(cmb_search.value, ipt_search.value, pErrorValue, opt_count);
-
- model.setFocus("ipt_search");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_outinstcd" ref="/root/send/carempl/outinstcd" class="combo_s_essential" appearance="minimal" style="left:675px; top:18px; width:135px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( cmb_instcd.value == cmb_outinstcd.value ) {
- messageBox("관리기관과 같은 전출기관은 선택","E001"); // E001 = 할 수 없습니다.
- model.setFocus("cmb_outinstcd");
- }
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:577px; top:19px; width:96px; height:17px; ">전 출 기 관:</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1000px; height:27px; ">
- <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1000px; y2:25px; "/>
- <button id="btn_paysave" class="btn4_letter2" style="left:941px; top:3px; width:56px; height:22px; ">
- <caption>전출</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("ipt_ym"))return;
- var retMes = messageBox("대상자를 전출처리 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
- for(var i=2; i<grd_carempl.rows; i++) {
- if( grd_carempl.valueMatrix(i, grd_carempl.colRef("flagyn")) == "Y") {
- grd_carempl.addStatus(i, "update") ;
- }
- else {
- grd_carempl.removeStatus(i, "update") ;
- }
- }
- model.refresh();
- // model.setValue("/root/save",grd_carempl.getUpdateData() );
- misfSave("TXRWD01701");
- misfMsterDetailRetrieve();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|