123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658 |
- <?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="">
- <send>
- <data1>
- <dutplceinstcd/>
- <dutplcecd/>
- <jobkindcd>-</jobkindcd>
- <jobposcd/>
- <workterm>-</workterm>
- <preststatcd>-</preststatcd>
- <dutplcenm/>
- </data1>
- <data2>
- <docinfo>
- <dutplcecd/>
- <dutunitcd/>
- <userid/>
- <specordyn/>
- <fromdd/>
- <setfromdd/>
- <savejudg/>
- <dutunitnm/>
- <usernm/>
- <jobkindnm/>
- <dutplcenm/>
- <dutplceinstcd/>
- <todd/>
- </docinfo>
- </data2>
- </send>
- <main>
- <list>
- <grdinfolist/>
- </list>
- </main>
- <init>
- <R0061list>
- <R0061>
- <cdnm/>
- <cdid/>
- </R0061>
- </R0061list>
- <R0062list>
- <R0062>
- <cdnm/>
- <cdid/>
- </R0062>
- </R0062list>
- <Z0007list>
- <Z0007>
- <cdnm/>
- <cdid/>
- </Z0007>
- </Z0007list>
- <P0109list>
- <P0109>
- <cdnm/>
- <cdid/>
- </P0109>
- </P0109list>
- </init>
- <hidden>
- <rcv/>
- <updflag/>
- <rsltflag>
- <resultvalue1/>
- </rsltflag>
- <savejudg>1</savejudg>
- </hidden>
- </root>
- </instance>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("R0061","R0062","Z0007"), new Array("/root/init/R0061list","/root/init/R0062list","/root/init/Z0007list"));
-
- // 의사선택진료여부 관리 2012.02.13 by 조중래
- pamfGetCodeList(new Array("P0109"), new Array("/root/init/P0109list"));
-
- var nodeList = instance1.selectNodes("/root/init/P0109list/P0109");
- var userid = getUserId();
- for (i = 1; i <= nodeList.length; i++) {
-
- if (userid == model.getValue("/root/init/P0109list/P0109[" + i + "]/cdid")) {
-
- button6.disabled = false;
- break;
- }
- }
-
- //2007.12.27 일단 의사,치과의사만 보이게 => 직위코드는 어떤 기준으로 보여줘야하는지 문의??
- //2008.05.15 -CBJ- 직종코드 itemset으로 대체
- //cmb_jobkind.choices.itemset.attribute("nodeset") = "/root/init/R0061list/R0061[(cdid = '0330' or cdid = '0332')]";
- // 2007.05.13 -CBJ- 근무지가관 소속기관으로 자동 설정
- model.setValue("/root/send/data1/dutplceinstcd", getUserInfo("dutplceinstcd"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMB01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/list/grdinfolist"/>
- <submission id="TXPMB01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/docinfo" resultref="/root/hidden/rsltflag"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.resetInstanceNode("/root/send/data1");
- model.resetInstanceNode("/root/main/list/grdinfolist");
- grd_drinfo.refresh();
-
- model.setValue("/root/send/data1/dutplceinstcd", getUserInfo("dutplceinstcd"));
-
- model.refresh();
- }
-
- function fSetPercentage() {
- var iTotalCount = 0;
- var gridRows = grd_drinfo.rows - grd_drinfo.fixedRows;
-
- var deptArray = new Array(gridRows); // 부서별 의사수를 저장
- var countArray = new Array(gridRows); // 부서내 선택진료의사 수 저장
- //alert("deptArraySize : " + deptArray.length )
- if (gridRows > 0) {
- var iCount = 0;
- var iDept = 0;
-
- if(gridRows == 1) {
- var sSpecordyn = model.getValue("/root/main/list/grdinfolist/specordyn");
- if(sSpecordyn == "Y") {
- deptArray[0] = 1;
- countArray[0] = 1;
- iTotalCount++;
- } else {
- deptArray[0] = 1;
- countArray[0] = 0;
- }
- } else {
-
- // 선택진료여부체크
- OUT_LOOP :for (var i = 1 ; i <= gridRows ;i++) {
- for (var j = i ; j <= gridRows ; j++) {
-
- // 같은 부서에 해당하는 의사 수
- // var sFirstdutunitnm = model.getValue("/root/main/list/grdinfolist[" + i + "]/dutunitnm");
- // var sSeconddutunitnm = model.getValue("/root/main/list/grdinfolist[" + j + "]/dutunitnm");
- var sFirstdutunitnm = model.getValue("/root/main/list/grdinfolist[" + i + "]/dutplcenm");
- var sSeconddutunitnm = model.getValue("/root/main/list/grdinfolist[" + j + "]/dutplcenm");
- if(sFirstdutunitnm == sSeconddutunitnm) {
- iDept++;
-
- // 선택진료여부 카운트
- var sSpecordyn = model.getValue("/root/main/list/grdinfolist[" + j + "]/specordyn");
- if(sSpecordyn == "Y") {
- iCount++;
- iTotalCount++;
- }
- // 진료과가 하나일 때
- if (j == gridRows) {
-
- deptArray[i-1] = iDept;
- countArray[i-1] = iCount;
- i = j-1;
- iDept = 0;
- iCount = 0;
- // 최종라인에 도달하면 루프를 빠져 나간다.
- break OUT_LOOP;
- }
- // 진료과가 변경될 때 이전 과에 대한 정보를 저장
- } else {
-
- deptArray[i-1] = iDept;
- countArray[i-1] = iCount;
-
- i = j-1;
- iDept = 0;
- iCount = 0;
-
- break;
- }
- }
- }
- }
-
- // 통계 칼럼에 퍼센트 표시 -- 2011.05.17 이경민 적용일자, 수정적용일 추가
- for (var idx = 1 ; idx <= gridRows ; idx++) {
- var deptCount = deptArray[idx-1];
- var specordCount = countArray[idx-1];
- if (deptCount != undefined) {
- var dPercent = Math.round(parseInt(specordCount) / parseInt(deptCount) * 100);
- dPercent = dPercent.toString() + "%";
- model.makeNode("/root/main/list/grdinfolist[" + idx + "]/setfromdd");
-
- model.setValue("/root/main/list/grdinfolist[" + idx + "]/percentage", dPercent);
- model.setValue("/root/main/list/grdinfolist[" + idx + "]/setfromdd", getCurrentDate());
- var mergetext = dPercent;
- } else {
- model.makeNode("/root/main/list/grdinfolist[" + idx + "]/setfromdd");
-
- // model.setValue("/root/main/list/grdinfolist[" + idx + "]/percentage", "");
- model.setValue("/root/main/list/grdinfolist[" + idx + "]/percentage", mergetext);
- model.setValue("/root/main/list/grdinfolist[" + idx + "]/setfromdd", getCurrentDate());
- }
- }
- }
-
- // 마지막에 행 추가
- grd_drinfo.addRow(false, false);
- grd_drinfo.clearStatus();
-
- // 추가된 행에 전체 선택진료의사 퍼센트 표시
- var totalPercent = Math.round(iTotalCount / gridRows * 100) + "%";
- model.setValue("/root/main/list/grdinfolist[" + (gridRows+1) + "]/dutplcenm", "전체");
- model.setValue("/root/main/list/grdinfolist[" + (gridRows+1) + "]/percentage", totalPercent);
- setRowStyle("grd_drinfo", "1", "전체", "dutunitnm", "equal");
-
- // 진료과 Merge
- grd_drinfo.mergeCells = "bycol";
- grd_drinfo.mergeCells = "byrestriccol";
- grd_drinfo.mergeCol(1) = true;
- grd_drinfo.mergeCol(2) = false;
- grd_drinfo.mergeCol(3) = false;
- grd_drinfo.mergeCol(4) = false;
- grd_drinfo.mergeCol(5) = false;
- grd_drinfo.mergeCol(6) = false;
- grd_drinfo.mergeCol(7) = false;
- grd_drinfo.mergeCol(8) = false;
- grd_drinfo.mergeCol(9) = false;
- grd_drinfo.mergeCol(10) = false;
- grd_drinfo.mergeCol(11) = false;
- grd_drinfo.mergeCol(12) = true;
- grd_drinfo.merge();
-
- }
-
- model.refresh();
- function fPrntSeq(){
- var nodeList= instance1.selectNodes("/root/main/list/grdinfolist");
- if((nodeList != null) && (nodeList.length >0 )){
- exeReportPreview("RPPMB01001", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- }else{
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1201;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:616px; width:719px; height:27px; ">
- <button id="button4" class="btn4_letter2" style="left:592px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata/datalist",grd_choiordapp.getupdatedata());
-
- if ( submit("TXPMC01502") ) {
- model.copyNode("/root/main/spec", "/root/hidden/tmp");
- //grd_insukind.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
- //submit("TRPMB00201");
- model.refresh();
- grd_choiordapp.clearStatus();
-
- }
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:719px; y2:0px; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:650px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:13px; ">의사선택진료여부관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1185px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1185px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:6px; top:9px; width:99px; height:17px; ">근무지기관 :</caption>
- <line id="line13" style="x1:1114px; y1:8px; x2:1114px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:954px; top:8px; width:62px; height:17px; ">직종 :</caption>
- <caption id="caption7" class="search_name" visibility="visible" style="left:440px; top:8px; width:62px; height:17px; ">직위 :</caption>
- <caption id="caption8" class="search_name" style="left:233px; top:9px; width:73px; height:17px; ">근무지 :</caption>
- <select1 id="cmb_jobkind" ref="/root/send/data1/jobkindcd" visibility="hidden" appearance="minimal" style="left:1019px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>의사</label>
- <value>0330</value>
- </item>
- <item>
- <label>치과의사</label>
- <value>0332</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_jobposcd" ref="/root/send/data1/jobposcd" visibility="visible" appearance="minimal" style="left:505px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>교수</label>
- <value>1782</value>
- </item>
- <item>
- <label>임상교수</label>
- <value>1847</value>
- </item>
- <item>
- <label>전임강사</label>
- <value>1788</value>
- </item>
- </choices>
- </select1>
- <button id="btn_dutplcecd" class="icon_search" style="left:418px; top:9px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sdutplceinstcd = model.getValue("/root/send/data1/dutplceinstcd");
- if (sdutplceinstcd != null && sdutplceinstcd != " " & sdutplceinstcd != "") {
- zbcfOpenAssignedInstDeptCodeList(sdutplceinstcd, "depthngnm","", "/root/send/data1/dutplcecd", "/root/send/data1/dutplcenm", null, null, new Array("deptcd", "depthngnm"));
- } else {
- C("근무지기관을 먼저 선택", "I008");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:600px; top:9px; width:89px; height:17px; ">근속기간 :</caption>
- <caption id="caption3" class="search_name" style="left:770px; top:9px; width:86px; height:17px; ">근속상태 :</caption>
- <select1 id="cmb_workterm" ref="/root/send/data1/workterm" appearance="minimal" style="left:690px; top:8px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>10년이상</label>
- <value>10</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_preststat" ref="/root/send/data1/preststatcd" appearance="minimal" style="left:860px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>정상근무</label>
- <value>01</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_dutplceinstcd" ref="/root/send/data1/dutplceinstcd" disabled="true" appearance="minimal" style="left:108px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/Z0007list/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // var sdutplceinstcd = model.getValue("/root/send/data1/dutplceinstcd");
- // if (sdutplceinstcd != null && sdutplceinstcd != " " & sdutplceinstcd != "") {
- // zbcfOpenAssignedInstDeptCodeList(sdutplceinstcd, "depthngnm","", "/root/main/item/posdeptcd", "/root/main/item/dutunitnm", null, null, new Array("deptcd", "depthngnm"));
- // }
- ]]>
- </script>
- </select1>
- <input id="ipt_dutplcecd" ref="/root/send/data1/dutplcecd" style="left:309px; top:8px; width:106px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- var sdutplcecd = model.getValue("/root/send/data1/dutplcecd");
- if (sdutplcecd != null && sdutplcecd != " " && sdutplcecd != "") {
- btn_dutplcecd.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </input>
- <button id="btn_reference" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/list/grdinfolist");
- model.refresh();
-
- model.setValue("/root/send/data1/jobkindcd", "-"); //2010-12-27 이동식 수정 경북대는 직종코드가 정확하지 않아 직종코드 전체로 세팅
- //model.setValue("/root/send/data1/jobposcd", ""); //2010-12-27 이동식 수정 경북대는 직위코드가 정확하지 않아 직위코드 전체로 세팅
-
- var sDutplceinstcd = model.getValue("/root/send/data1/dutplceinstcd");
- if (sDutplceinstcd == "") {
- messageBox("근무지기관을", "C001");
- return false;
- }
-
- submit("TRPMB01003");
-
- model.setValue("/root/send/data1/jobposcd", "");
-
- // 통계정보설정
- fSetPercentage();
- ]]>
- </script>
- </button>
- </group>
- <line id="line8" class="line_1" style="x1:0px; y1:131px; x2:1185px; y2:130px; "/>
- <caption id="caption20" class="tit_2" style="left:5px; top:115px; width:113px; height:13px; ">의사정보 리스트</caption>
- <datagrid id="grd_drinfo" nodeset="/root/main/list/grdinfolist" caption="부서^사원번호^이름^직종^직위^근속/나이^근무상태^선택진료여부^적용일자^최종수정자^최종수정일^통계^부서위치^수정적용일" colsep="^" colwidth="141, 74, 82, 90, 90, 110, 88, 80, 100, 78, 138, 68, 100, 100" dataheight="23" extendlastcol="scroll" rowheader="update" rowheight="23" rowsep="|" subtotalposition="below" style="left:0px; top:135px; width:1185px; height:608px; ">
- <col ref="dutplcenm" style="text-align:center; "/>
- <col ref="userid" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="jobkindnm" style="text-align:center; "/>
- <col ref="jobposnm" style="text-align:center; "/>
- <col ref="worktermage" style="text-align:center; "/>
- <col ref="preststatnm" style="text-align:center; "/>
- <col class="gridinput" disabled="true" ref="specordyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>비적용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="percentage" format="##,#%" style="text-align:center; "/>
- <col ref="dutplcecd" visibility="hidden"/>
- <col ref="setfromdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_drinfo.row;
- if(row > 0){
- model.resetInstanceNode("/root/main/roominfo");
-
- model.copyNode("/root/send/data2/docinfo","/root/main/list/grdinfolist[" + row + "]");
-
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter2" style="left:1140px; top:109px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_drinfo.saveExcel(file);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:1095px; top:109px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fPrntSeq();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:71px; x2:1185px; y2:70px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:100px; height:13px; ">의사정보</caption>
- <caption id="caption10" class="cell_1" style="left:0px; top:74px; width:37px; height:23px; vertical-align:middle; ">부서</caption>
- <caption id="caption12" class="cell_1" style="left:321px; top:74px; width:34px; height:23px; vertical-align:middle; ">사번</caption>
- <line id="line3" class="line_2" style="x1:0px; y1:98px; x2:1180px; y2:98px; "/>
- <caption id="caption17" class="cell_1" style="left:401px; top:74px; width:33px; height:23px; vertical-align:middle; ">이름</caption>
- <input id="ipt_dutunitnm1" ref="/root/send/data2/docinfo/dutplcenm" class="input_default" disabled="true" navindex="3" imemode="disabled" maxlength="2" style="left:38px; top:76px; width:162px; height:19px; "/>
- <input id="ipt_userid1" ref="/root/send/data2/docinfo/userid" class="input_default" disabled="true" navindex="3" imemode="disabled" maxlength="2" style="left:357px; top:76px; width:41px; height:19px; "/>
- <input id="ipt_usernm1" ref="/root/send/data2/docinfo/usernm" class="input_default" disabled="true" navindex="3" imemode="disabled" style="left:436px; top:76px; width:50px; height:19px; "/>
- <input id="ipt_jobkindnm1" ref="/root/send/data2/docinfo/jobkindnm" class="input_default" disabled="true" navindex="3" imemode="disabled" style="left:526px; top:76px; width:57px; height:19px; "/>
- <caption id="caption9" class="cell_1" style="left:489px; top:74px; width:35px; height:23px; vertical-align:middle; ">직종</caption>
- <caption id="caption15" class="cell_1" style="left:1037px; top:74px; width:79px; height:23px; vertical-align:middle; ">선택진료여부</caption>
- <select1 id="cmb_specordyn1" ref="/root/send/data2/docinfo/specordyn" class="combo_search" appearance="minimal" style="left:1118px; top:76px; width:63px; height:19px; ">
- <choices>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>비적용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <!--091209 test-->
- <select1 id="rdo_savePattern" ref="/root/hidden/savejudg" visibility="visible" appearance="full" cols="2" overflow="visible" style="left:970px; top:50px; width:140px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일괄저장</label>
- <value>1</value>
- </item>
- <item>
- <label>개별저장</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <!--091209 test-->
- <caption id="caption18" style="left:405px; top:50px; width:556px; height:15px; color:#ff0000; ">* 일괄저장은 근무부서에 상관없이 일괄수정되며, 개별저장은 선택한 근무부서에 대해서만 수정됩니다.</caption>
- <caption id="caption19" class="cell_1" style="left:586px; top:74px; width:60px; height:23px; vertical-align:middle; ">시작일자</caption>
- <input id="ipt_setfromdd" ref="/root/send/data2/docinfo/setfromdd" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:948px; top:76px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_drinfo.row;
-
- if(row > 0){
- //grd_drinfo.valueMatrix(row, Number(grd_drinfo.colRef("setfromdd"))) = model.getValue(ipt_setfromdd.attribute("ref"));
- model.setValue("/root/main/list/grdinfolist[" + row + "]/setfromdd", model.getValue(ipt_setfromdd.attribute("ref")));
- model.refresh();
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption11" class="cell_1" style="left:879px; top:74px; width:67px; height:23px; vertical-align:middle; ">수정적용일</caption>
- <input id="ipt_fromdd" ref="/root/send/data2/docinfo/fromdd" class="input_default" disabled="true" navindex="3" imemode="disabled" format="yyyy-mm-dd" style="left:648px; top:76px; width:66px; height:19px; "/>
- <input id="ipt_dutunitcd" ref="/root/send/data2/docinfo/dutplcecd" class="input_default" disabled="true" navindex="3" imemode="disabled" maxlength="2" style="left:202px; top:76px; width:83px; height:19px; "/>
- <input id="input1" ref="/root/send/data2/docinfo/dutplceinstcd" class="input_default" disabled="true" navindex="3" imemode="disabled" maxlength="2" style="left:287px; top:76px; width:31px; height:19px; "/>
- <caption id="caption13" class="cell_1" style="left:717px; top:74px; width:60px; height:23px; vertical-align:middle; ">종료일자</caption>
- <input id="input2" ref="/root/send/data2/docinfo/todd" class="input_default" disabled="true" navindex="3" imemode="disabled" format="yyyy-mm-dd" style="left:780px; top:76px; width:66px; height:19px; "/>
- </group>
- <button id="button6" class="btn5_letter4" disabled="true" style="left:1118px; top:62px; width:64px; height:19px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (isNull(model.getValue("/root/send/data2/docinfo/userid"))) {
- messageBox("수정할 정보가 선택되지 않았습니다.", "C000");
- return;
- }
-
- //일괄저장일지 개발저장일지 판별
- var saveJudg = model.getValue("/root/hidden/savejudg");
-
- if(saveJudg == 1) {
- if( messageBox("일괄저장으로 하시겠습니까?","Q999","")!=6) {
- return;
- }
- } else if (saveJudg == 2) {
- if( messageBox("개별저장으로 하시겠습니까?","Q999","")!=6) {
- return;
- }
- }
-
- // 수정구분 설정
- model.makeValue("/root/send/data2/docinfo/savejudg", saveJudg);
-
- // 저장
- if (submit("TXPMB01003") == true) {
- messageBox("선택진료여부 수정 성공","E999","");
- btn_reference.dispatch("DOMActivate");
- } else {
- messageBox("선택진료여부 수정 실패","E999","");
- }
-
-
- /*
- model.copyNode("/root/main/list/grdinfolist[" + row + "]","/root/main/docinfo");
- var rowstatus = grd_drinfo.rowStatus(row);
- if(rowstatus == '0'){
- grd_drinfo.addStatus(row,"update");
- }
- model.refresh();
- }
-
- if (grd_drinfo.row >= grd_drinfo.fixedRows) {
- // 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환 (tfHelper.js)
- var updflag = getGridUpdateData(grd_drinfo);
- model.setValue("/root/hidden/updflag",updflag);
- var updchk = model.getValue("/root/hidden/updflag");
- if (updchk != null && updchk != " " && updchk != "") {
- model.setValue("/root/send/data2/grddrinfo",grd_drinfo.getUpdateData());
- //alert("grd_drinfo.getUpdateData()==="+grd_drinfo.getUpdateData());
- //091209 test
- model.setValue("/root/main/list/grdinfolist[" + row + "]/dutplcecd",dutplcecdVal);
- //091209 test
- if (submit("TXPMB01003") == true) {
- if (model.getValue("/root/hidden/rsltflag/resultvalue1") > 0) {
- messageBox("선택진료여부 수정성공","E999","");
- btn_reference.dispatch("DOMActivate");
- return false;
- } else {
- messageBox("선택진료여부 수정 실패","E999","");
- return false;
- }
- }
- }
- }
- */
- ]]>
- </script>
- </button>
- <group id="group5" style="left:0px; top:757px; width:1185px; height:27px; ">
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:880px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1053px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_drinfo.row >= grd_drinfo.fixedRows) {
- // 그리드 업데이트 데이터 반환, 업데이트 정보가 없을경우 "" 반환 (tfHelper.js)
- var updflag = getGridUpdateData(grd_drinfo);
- model.setValue("/root/hidden/updflag",updflag);
- var updchk = model.getValue("/root/hidden/updflag");
- if (updchk != null && updchk != " " && updchk != "") {
- model.setValue("/root/send/data2/grddrinfo",grd_drinfo.getUpdateData());
- if (submit("TXPMB01003") == true) {
- if (model.getValue("/root/hidden/rsltflag/resultvalue1") > 0) {
- messageBox("선택진료여부 수정성공","E999","");
- btn_reference.dispatch("DOMActivate");
- return false;
- } else {
- messageBox("선택진료여부 수정 실패","E999","");
- return false;
- }
- }
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1112px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|