123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- <?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>전공의 BP등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <trngbpno>
- <trngbpnolist/>
- </trngbpno>
- <excel>
- <excellist/>
- </excel>
- </main>
- <hidden>
- </hidden>
- <temp>
- </temp>
- <init>
- <systemflag>T</systemflag>
- </init>
- <send>
- <trngbpno>
- <instcd/>
- <baseym/>
- <deptcd/>
- <apprtcdrflag/>
- </trngbpno>
- <save>
- <trngbpnolist/>
- </save>
- <attach>
- <file/>
- <instcd/>
- </attach>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- misfGridInit(grd_trngbpnolist);
- misfMsterDetailSet(grd_trngbpnolist, null, "TRRTS03701" ,"Y");
-
- misfComboComCdListMulti("R0305,R0151", "cmb_instcd,cmb_apprtcdrflag");
- submit("TRRTS00602");
-
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- model.setValue("/root/send/trngbpno/instcd", dutplceinstcd);
-
- var today = getCurrentDate();
- ipt_baseym.value = today.substring(0, 6);
-
- addComboItem( "cmb_apprtcdrflag", "전체", "", "above");
- model.setValue(cmb_apprtcdrflag.attribute("ref"), "");
-
- if (dutplceinstcd == "001" && getUserInfo("dutplcecd") == "4110100000") {
- cmb_instcd.disabled = false;
- }else{
- cmb_instcd.disabled = true;
- }
- ]]>
- </script>
- <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngbpno" resultref="/root/main/tisorddeptcdlist"/>
- <bind id="bind1" ref="/root/main/ngdtamt/ngdtamtlist/ngdtamt" calculate="../weekno * 20000 + ../holino * 40000"/>
- <submission id="TRRTS03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngbpno" resultref="/root/main/trngbpno"/>
- <submission id="TXRTS03701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TXRTS03702" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
- </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/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript">
- <![CDATA[
- function fExcelUpload() {
- var maxsize = upload1.attribute("filesize");
- var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- var filelist = filename.split("|");
- model.removeNodeset("/root/main/list/filelist");
- model.removeNodeset("/root/send/attach");
- //타이틀을 획득한다.
- var s = new String(filelist[filelist.length-1]);
- var ss = s.split("\\");
- if(filename !=""){
- //작업 전 row를 추가 >파일명 유/무에 따른 분기>
- for(var i = 0 ; i < filelist.length ; i++ ){
- grd_attach.addRow(false);
-
- if(filelist[i] == ""){
- //alert(grd_attach.rows - 1);
- grd_attach.removeRow(false);
- grd_attach.refresh();
- }else{
- grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
- //파일크기('tfHelper.checkFileSize' 참조)
- var fileCnt = upload1.getFileCount();
- var lastIndex = fileCnt - 1;
- var fileSize = upload1.getFileSize(lastIndex);
- grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
-
- if (!checkFileSize(upload1)){
- grd_attach.removeItem();
- messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
- return;
- }
- }
- }
- model.makeValue("/root/send/attach/instcd",cmb_instcd.value);
-
- openLoadingBar("파일업로드 작업중입니다... ") ;
- submit("TXRTS03702");
- closeLoadingBar();
- //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; ">전공의 BP등록</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:60px; height:17px; ">년월 :</caption>
- <datagrid id="grd_trngbpnolist" nodeset="/root/main/trngbpno/trngbpnolist" caption="임상과^사번^성명^년차^I/R^BP번호^휴대폰^instcd^posdeptcd^posdeptcd^baseym|임상과^사번^성명^년차^I/R^BP번호^휴대폰^instcd^posdeptcd^posdeptcd^baseym" colsep="^" colwidth="351, 157, 149, 99, 97, 156, 140, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:70px; width:1190px; height:670px; ">
- <col ref="deptnm" type="output">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="emplno" type="inputbutton" style="text-align:center; "/>
- <col ref="emplnm" style="text-align:center; "/>
- <col ref="anual" style="text-align:center; "/>
- <col ref="apprtcdrflag" style="text-align:center; "/>
- <col ref="bpno" type="input" style="text-align:center; "/>
- <col ref="mpphonno" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="posdeptcd" visibility="hidden"/>
- </datagrid>
- <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_baseym", "cmb_instcd") ) {
- return false;
- }
-
- submit("TRRTS03701");
- // if ( !isRequiredControls("ipt_yy", "ipt_mm", "cmb_instcd") ) {
- // return false;
- // }
- // model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
- // ipt_mm.refresh();
- //
- // submit("TRRTS03001");
- ]]>
- </script>
- </button>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_trngbpnolist.col == grd_trngbpnolist.colRef("emplno")){
- var recv_list = "emplno,emplnm";
- rpbfOpenPopUpList("SPRPB00101", grd_trngbpnolist, recv_list,"ipt_systemflag","N");
- model.refresh();
- }
- ]]>
- </script>
- <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1190px; y2:67px; "/>
- <select1 id="cmb_instcd" ref="/root/send/trngbpno/instcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:260px; top:14px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:174px; top:14px; width:94px; height:17px; ">근무병원 :</caption>
- <input id="ipt_baseym" ref="/root/send/trngbpno/baseym" inputtype="date" format="yyyy-mm" style="left:65px; top:14px; width:80px; height:19px; "/>
- <button id="btn_execl" class="btn2_letter4" style="left:1125px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "") {
- grd_trngbpnolist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_deptcd" ref="/root/send/trngbpno/deptcd" class="combo_s_essential" disabled="false" appearance="minimal" style="left:490px; top:14px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/tisorddeptcdlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:414px; top:14px; width:94px; height:17px; ">임상과 :</caption>
- <caption id="caption2" class="search_name" style="left:639px; top:15px; width:99px; height:17px; ">전공의구분 :</caption>
- <select1 id="cmb_apprtcdrflag" ref="/root/send/trngbpno/apprtcdrflag" class="combo_s_essential" disabled="false" appearance="minimal" style="left:740px; top:15px; width:125px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="button1" class="btn2_letter3" visibility="hidden" style="left:1015px; top:45px; width:53px; 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_reptinfo.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" visibility="hidden" style="left:1070px; top:45px; width:53px; 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_reptinfo.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter6" style="left:920px; top:45px; width:76px; height:19px; ">
- <caption>엑셀Upload</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( !isRequiredControls("ipt_baseym", "cmb_instcd") ) {
- return false;
- }
- fExcelUpload();
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:62px; top:45px; width:708px; height:20px; font-weight:bold; color:#ff0000; ">※ Excel Upload 작업시 Excel저장 양식 그대로 작성 하시기 바랍니다.</caption>
- <upload id="upload1" nodeset="/root/send/attach/file" ext="xls" filecount="5" filesize="41943040" validate="true" style="left:890px; top:45px; width:20px; height:20px; "/>
- <input id="input1" ref="/root/init/systemflag" visibility="hidden" style="left:880px; top:15px; width:95px; height:19px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1130px; top:3px; width:56px; height:22px; text-align:left; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSave("TXRTS03701");
- btn_search.dispatch("DOMActivate");
- model.refresh();
- /*
- var retMes = messageBox("저장 하시겠습니까?", "Q999");
- if ( retMes != 6) {
- return;
- }
-
- model.setValue("/root/send/save", grd_trngbpnolist.getUpdateData("update"));
-
- if (submit("TXRTS03701")){
- grd_trngbpnolist.clearStatus();
- }*/
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:605px; top:430px; width:505px; height:69px; ">
- <col ref="file" style="text-align:center; "/>
- <col ref="filesize" format="#,###" style="text-align:right; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|