123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- <?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>수련관련 출력 조회조건</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- </main>
- <send>
- <req>
- <systemflag>T</systemflag>
- <emplnm/>
- </req>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRTP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/apprtcdrprescondlist"/>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tisorddeptcdlist"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- if (isPopup())
- {
- cap_title.text = opener.window.javascript.getParameter("SPRTP00400_title");
- model.makeValue("/root/temp/reqlist", opener.window.javascript.getParameter("SPRTP00400_reqlist"));
- model.makeValue("/root/temp/essnlist", opener.window.javascript.getParameter("SPRTP00400_essnlist"));
-
- model.makeValue("/root/temp/valupath", opener.window.javascript.getParameter("SPRTP00400_valupath"));
- model.makeValue("/root/temp/ipflaglist", opener.window.javascript.getParameter("SPRTP00400_irflaglist"));
- }
-
- //cap_title.text = "aaa";
- //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag");
- //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag,dentyn,trngflag13");
- //model.makeValue("/root/temp/essnlist", "deptcd");
-
- if (model.getValue("/root/temp/reqlist") == "")
- {
- btn_prn.disabled = true;
- return;
- }
-
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- var cur_mm = today.substring(4,6);
-
- // 연도 default 값은 금년이 되도록 수정 (2008.08.19 정성욱 수정)
- /*if (opener.window.javascript.getParameter("SPRTP00400_yydiff") != "")
- {
- cur_yy += parseInt(opener.window.javascript.getParameter("SPRTP00400_yydiff"));
- }
- */
-
- var reqArr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
-
- var ctrl;
- var pos_col1left = 10;
- var pos_col2left = 310;
-
- var pos_left = pos_col1left;
- var pos_top = 10;
- var irflag = model.getValue("/root/temp/ipflaglist")
-
- for (var i=0; i<reqArr.length; i++)
- {
-
-
- if (reqArr[i] == "fromdd" || reqArr[i] == "todd")
- {
- ctrl = document.controls("grup_fromto");
- }
- else
- {
- ctrl = document.controls("grup_" + reqArr[i]);
- }
-
- if (ctrl.attribute("visibility") == "hidden")
- {
- ctrl.attribute("left") = pos_left;
- ctrl.attribute("top") = pos_top;
-
- pos_top += parseInt(ctrl.attribute("height"));
-
- ctrl.attribute("visibility") = "visible";
- }
-
- if (reqArr[i] == "yy") {
- model.makeValue("/root/send/req/yy", cur_yy);
- } else if (reqArr[i] == "fromdd" || reqArr[i] == "todd") {
- model.makeValue("/root/send/req/" + reqArr[i], today);
- // } else if (reqArr[i] == "mm2") {
- // model.makeValue("/root/send/req/mm" , "");
- } else {
- model.makeValue("/root/send/req/" + reqArr[i], "");
- }
-
- if (reqArr[i] == "instcd") {
- rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
- addComboItem( "cmb_instcd", "전체", "", "above");
- }
- else if (reqArr[i] == "deptcd") {
- submit("TRRTS00602");
- }
- else if (reqArr[i] == "supinfqurtyyflag") {
- fAddComCdList("R0237", "rdo_supinfqurtyyflag");
- }
- else if (reqArr[i] == "apprtcdrflag") {
- fAddComCdList("R0151", "rdo_apprtcdrflag");
- }
- else if (reqArr[i] == "dentyn") {
- fAddComCdList("R0239", "rdo_dentyn");
- }
- else if (reqArr[i] == "gvnoffcordflag") {
- fAddComCdList("R0091", "chk_gvnoffcordflag");
-
- // } else if (reqArr[i] == "mm2") {
- // fAddComCdList("R0376", "cmb_mm2");
- }
- else if (reqArr[i] == "mm") {
- if (irflag == "R") {
- fAddComCdList("R0376", "cmb_mm");
- }
- else {
- fAddComCdList("R0009", "cmb_mm");
- }
- }
-
-
- }
-
- pos_top += 5;
- roundrect1.attribute("height") = pos_top;
-
- pos_top += 5;
- btn_prn.attribute("top") = pos_top;
- /*pos_top += 15 + parseInt(btn_prn.attribute("height"));
- group2.attribute("height") = pos_top;
-
- pos_top += 5;
- window.height = pos_top;*/
-
- if (g_comcd_grupids != "")
- {
- misfComboComCdListMulti(g_comcd_grupids, g_comcd_ctrls);
- var sCtrls = g_comcd_ctrls.split(",")
-
- for(var i = 0 ; i < sCtrls.length ; i++)
- {
- if(sCtrls[i] == "rdo_supinfqurtyyflag"){
- addComboItem( "rdo_supinfqurtyyflag", "전체", "", "above");
- }
- else if(sCtrls[i] == "cmb_deptcd"){
- addComboItem( "cmb_deptcd", "전체", "", "above");
- }
- else if(sCtrls[i] == "cmb_mm" ){
- addComboItem( "cmb_mm", "전체", "", "above");
- }
- // else if(sCtrls[i] == "cmb_mm2"){
- // addComboItem( "cmb_mm2", "전체", "", "above");
- // }
- }
- }
- // alert(cmb_mm.choices.itemset.attribute("nodeset"));
- // alert(cmb_mm.choices.itemset.label.attribute("ref"));
- // alert(cmb_mm.choices.itemset.value.attribute("ref"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var g_comcd_grupids = "";
- var g_comcd_ctrls = "";
-
- function fAddComCdList(grupid, ctrlid)
- {
- if (g_comcd_grupids != "")
- g_comcd_grupids += ",";
-
- g_comcd_grupids += grupid;
-
- if (g_comcd_ctrls != "")
- g_comcd_ctrls += ",";
-
- g_comcd_ctrls += ctrlid;
- }
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_prn.disabled = !checkAuth("P") ;
- }
-
- function fGetStrToArr(str)
- {
- return str.split(",");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="332" pageheight="525">
- <group id="group1" style="left:5px; top:0px; width:327px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:295px; height:13px; ">수련관련 출력 조회조건</caption>
- </group>
- <group id="group2" scroll="auto" style="left:5px; top:19px; width:322px; height:506px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:320px; height:480px; background-color:#fffbf2; border-color:#ffd799; "/>
- <group id="grup_yy" visibility="hidden" style="left:10px; top:10px; width:300px; height:30px; ">
- <caption id="cap_yy" class="search_name" style="left:10px; top:5px; width:135px; height:17px; ">년(year)</caption>
- <input id="ipt_yy" ref="/root/send/req/yy" class="input_search" maxlength="4" appearance="input" style="left:130px; top:5px; width:120px; height:19px; "/>
- </group>
- <group id="grup_mm" visibility="hidden" style="left:10px; top:40px; width:300px; height:30px; ">
- <caption id="cap_mm" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">월(month)</caption>
- <select1 id="cmb_mm" ref="/root/send/req/mm" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_mm2" visibility="hidden" style="left:10px; top:40px; width:300px; height:30px; ">
- <caption id="caption1" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">월(month)</caption>
- <select1 id="cmb_mm2" ref="/root/send/req/mm" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_instcd" visibility="hidden" style="left:10px; top:70px; width:300px; height:30px; ">
- <caption id="cap_instcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">병원</caption>
- <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_deptcd" visibility="hidden" style="left:10px; top:100px; width:300px; height:30px; ">
- <caption id="cap_deptcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">임상과</caption>
- <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_supinfqurtyyflag" visibility="hidden" style="left:10px; top:160px; width:300px; height:30px; ">
- <caption id="cap_supinfqurtyyflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">상/하반기</caption>
- <select1 id="rdo_supinfqurtyyflag" ref="/root/send/req/supinfqurtyyflag" appearance="full" cellspacing="0" cols="3" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_apprtcdrflag" visibility="hidden" style="left:10px; top:190px; width:300px; height:30px; ">
- <caption id="cap_apprtcdrflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">전공의구분</caption>
- <select1 id="rdo_apprtcdrflag" ref="/root/send/req/apprtcdrflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_dentyn" visibility="hidden" style="left:10px; top:220px; width:300px; height:30px; ">
- <caption id="cap_dentyn" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">의/치과</caption>
- <select1 id="rdo_dentyn" ref="/root/send/req/dentyn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_trngflag13" visibility="hidden" style="left:10px; top:250px; width:300px; height:30px; ">
- <caption id="cap_trngflag13" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">수료구분</caption>
- <select1 id="rdo_trngflag13" ref="/root/send/req/trngflag13" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>인턴수료</label>
- <value>1</value>
- </item>
- <item>
- <label>레지던트수료</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grup_emplno" visibility="hidden" style="left:10px; top:130px; width:300px; height:30px; ">
- <caption id="cap_emplno" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">사원번호</caption>
- <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_search" maxlength="10" appearance="input" style="left:130px; top:5px; width:69px; height:19px; "/>
- <button id="btn_helppsn" class="icon_search" style="left:255px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
- ipt_emplno.refresh();
- ipt_emplnm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="output_search" maxlength="10" appearance="input" style="left:198px; top:5px; width:52px; height:19px; "/>
- </group>
- <group id="grup_anual" visibility="hidden" style="left:10px; top:280px; width:300px; height:30px; ">
- <caption id="cap_anual" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">레지던트년차</caption>
- <select1 id="rdo_anual" ref="/root/send/req/anual" appearance="full" cellspacing="2" cols="5" overflow="visible" style="left:130px; top:5px; width:165px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grup_gvnoffcordflag" visibility="hidden" style="left:10px; top:340px; width:300px; height:136px; ">
- <caption id="cap_gvnoffcordflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">발령구분</caption>
- <select id="chk_gvnoffcordflag" ref="/root/send/req/gvnoffcordflag" overflow="visible" appearance="full" cellspacing="10" cols="2" sep="^" style="left:95px; top:5px; width:198px; height:123px; border-style:none; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select>
- </group>
- <group id="grup_fromto" visibility="hidden" style="left:10px; top:310px; width:300px; height:30px; ">
- <caption id="cap_fromto" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기간</caption>
- <input id="ipt_fromdd" ref="/root/send/req/fromdd" class="input_search" inputtype="date" style="left:115px; top:5px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/req/todd" class="input_search" inputtype="date" style="left:204px; top:5px; width:90px; height:19px; "/>
- </group>
- <button id="btn_prn" class="btn6_letter2" style="left:265px; top:482px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/temp/essnlist") != "")
- {
- var arr = fGetStrToArr(model.getValue("/root/temp/essnlist"));
-
- var ctrl;
- for (var i=0; i<arr.length; i++)
- {
- var valu = model.getValue("/root/send/req/" + arr[i]);
- var ctrl = document.controls("cap_" + arr[i]);
- if (valu == "")
- {
- messageBox(ctrl.text + " 필수입력입니다.", "I", "");
- return;
- }
- }
- }
-
- if (model.getValue("/root/send/req/mm") != "")
- {
- model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
- model.refresh();
- }
-
- var path = model.getValue("/root/temp/valupath");
- if (path == "")
- {
- path = "/root/send/req";
- }
- path += "/";
-
- var arr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
- for (var i=0; i<arr.length; i++)
- {
- opener.model.makeValue(path+arr[i], model.getValue("/root/send/req/"+arr[i]));
- }
- model.close();
- ]]>
- </script>
- </button>
- </group>
- <output id="ipt_systemflag" ref="/root/send/req/systemflag" visibility="hidden" style="left:280px; top:5px; width:35px; height:19px; "/>
- </xhtml:body>
- </xhtml:html>
|