123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732 |
- <?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="">
- <main>
- <orddeptcd/>
- <orddrid/>
- <gnrlordflag>N</gnrlordflag>
- <innrtel/>
- <reprordfild/>
- <result/>
- <orddrlist>
- <list/>
- </orddrlist>
- <yy/>
- <mm/>
- <dd/>
- <dw/>
- <srchorddrlistdate/>
- </main>
- <send>
- <orddeptcd/>
- <orddrid/>
- <gnrlordflag/>
- <innrtel/>
- <reprordfild/>
- <srchorddrdate/>
- <orddrdate/>
- </send>
- <init>
- <P0037list>
- <P0037>
- <cdnm/>
- <cdid/>
- </P0037>
- </P0037list>
- <P0406list>
- <P0406>
- <cdid/>
- <cdnm/>
- </P0406>
- </P0406list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0037","P0406"), new Array("/root/init/P0037list","/root/init/P0406list"));
- pamGetDeptCDDrIDList();
- model.refresh();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
-
- model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
- // submit("TRPMB02205");
-
- var curDate = model.getValue("/root/main/srchorddrlistdate");
- var strDay = curDate.toDate().getDayOfWeek("K");
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
-
-
- model.setValue("/root/main/orddeptcd","");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- // setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
- // setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
- // setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
-
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TXPMB02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TXPMB02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TXPMB02204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TRPMB02205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/orddrlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
-
- function fInitialize(){
- var curDate = getCurrentDate();
- var strDay = getCurrentDate().toDate().getDayOfWeek("K");
-
- model.resetInstanceNode("/root/main");
- model.resetInstanceNode("/root/send");
-
- model.removeNodeset("/root/main/orddrlist");
-
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
- model.setValue("/root/main/srchorddrlistdate", curDate);
- model.setValue("/root/main/gnrlordflag","N");
-
- model.refresh();
-
- }
-
-
- function setGridBorderHiddenRestricColRef( gridID, rstRef, ecpRef ) {
-
- var rowNumArray = changeValueRowNumArray( gridID, rstRef );
- var srtRow, endRow;
- var gridObj = document.all.item(gridID);
-
- var exceptRefArray = ecpRef.split("^");
- var exceptColArray = new Array();
- var exceptFlag = false;
-
- var i, j, k;
-
- // 제외 할 컬럼 인덱스 Array 담기
- for( var i = 0; i < exceptRefArray.length; i++ ) {
- exceptColArray[i] = gridObj.colRef(exceptRefArray[i]);
- }
-
- for( i = gridObj.fixedCols; i < gridObj.cols; i++ ) {
-
- // 현재 컬럼이 제외 할 컬럼에 포함시 Falg 설정
- for( j = 0; j < exceptColArray.length; j++ ) {
- if( i == exceptColArray[j]) {
-
- exceptFlag = true;
- break;
- }
- }
-
- if( !exceptFlag ) {
- for( k = 1; k <= rowNumArray.length; k++ ) {
-
- if( rowNumArray[k] - rowNumArray[k - 1] != 1 ) {
- srtRow = rowNumArray[k - 1];
- if( rowNumArray[k] == null )
- endRow = gridObj.rows - 1
- else
- endRow = rowNumArray[k] - 1;
- // alert(srtRow + " / " + endRow);
-
- gridObj.cellStyle("border-top-width", srtRow + 1, i, endRow, i) = 0;
- gridObj.cellStyle("border-bottom-width", srtRow, i, endRow - 1, i) = 0;
- }
- }
- }
- exceptFlag = false;
- }
- }
-
- function setGridMergeColRestricColRef( gridID, rstRef, trgRef ) {
-
- var rowNumArray = changeValueRowNumArray( gridID, rstRef );
- // alert(rowNumArray);
- var srtRow, endRow;
-
- var gridObj = document.all.item(gridID);
-
- var trgCol = gridObj.colRef(trgRef);
-
- var tmpCellValue = null;
- var curCellValue = null;
- var tmpRow;
- var curRow;
-
- var i, j;
- for( i = 1; i <= rowNumArray.length; i++ ) { // < - 1, 4, 5, 7
-
- if( rowNumArray[i] - rowNumArray[i - 1] != 1 ) {
- srtRow = rowNumArray[i - 1];
- if( rowNumArray[i] == null )
- endRow = gridObj.rows - 1
- else
- endRow = rowNumArray[i] - 1;
- // 1 ~ 5
- for( var j = srtRow; j <= endRow; j++ ) {
-
- // 첫번째 로우면...
- if( j == srtRow) {
- tmpCellValue = gridObj.valueMatrix(j, trgCol);
- tmpRow = srtRow;
- }
- // 아니면...
- else {
- // 값이 바뀌면...
- if( tmpCellValue != gridObj.valueMatrix(j, trgCol) ) {
- if( tmpRow < j - 1 ) {
- gridObj.mergeByFree(tmpRow, trgCol, j - 1, trgCol);
- tmpCellValue = gridObj.valueMatrix(j, trgCol);
- tmpRow = j;
- }
- else {
- tmpCellValue = gridObj.valueMatrix(j, trgCol);
- tmpRow = j;
- }
-
- }
- // 값이 같으면...
- else {
- // 마지막 로우면...
- if( j == endRow ) {
- if( tmpRow != j ) {
- gridObj.mergeByFree(tmpRow, trgCol, j, trgCol);
- }
- }
- }
- }
- }
- }
- }
-
- }
-
- function changeValueRowNumArray( gridID, rstRef ) {
-
- var gridObj = document.all.item(gridID);
- var rowNumArray = new Array();
- var trgCol = gridObj.colRef(rstRef);
-
- for( var i = gridObj.fixedRows; i < gridObj.rows; i++ ) {
- if( i == gridObj.fixedRows ) {
- rowNumArray[0] = i;
- }
- else {
- if( gridObj.valueMatrix(rowNumArray[rowNumArray.length - 1], trgCol) != gridObj.valueMatrix(i , trgCol) )
- rowNumArray[rowNumArray.length] = i;
- }
- }
- return rowNumArray
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">외래선택진료의사진료표</caption>
- </group>
- <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button2" class="btn4_letter3" navindex="8" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //function fInitialize() {
- //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
- fInitialize();
-
- //}
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button1" class="btn3_letter3" navindex="8" style="left:0px; top:5px; width:68px; height:22px; ">
- <caption>Excel</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_ddrlist.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter2" navindex="8" style="left:70px; top:5px; width:68px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var nodeList= instance1.selectNodes("/root/main/orddrlist/list");
- if((nodeList != null) && (nodeList.length >0 )){
- exeReportPreview("RPPMB02202", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }else{
-
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
- <line id="line3" class="line_2" style="x1:0px; y1:98px; x2:1194px; y2:98px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:97px; x2:1194px; y2:97px; "/>
- <group id="group6" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line5" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption10" class="search_name" style="left:883px; top:8px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="ipt_srch" ref="/root/main/srchorddrlistdate" class="input_search" navindex="1" inputtype="date" style="left:980px; top:8px; width:113px; height:19px; "/>
- <button id="btn_srchorddrdate" class="btn1_letter2" navindex="2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/srchorddrlistdate") == ""){
- messageBox("조회일자가 입력되지", "E007");
- model.setFocus("ipt_srch");
- return;
- }
-
- model.removeNodeset("/root/main/orddrlist");
-
- model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
- submit("TRPMB02205");
-
- var curDate = model.getValue("/root/main/srchorddrlistdate");
- var strDay = curDate.toDate().getDayOfWeek("K");
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
-
-
- model.setValue("/root/main/orddeptcd","");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- grd_ddrlist.rebuildStyle();
- grd_ddrlist.rebuild();
-
- setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
-
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption11" class="tit_2" style="left:6px; top:55px; width:191px; height:14px; ">외래선택진료의사진료표 수정</caption>
- <line id="line9" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:75px; width:60px; height:23px; vertical-align:middle; ">진료과</caption>
- <caption id="caption13" class="cell_1" style="left:562px; top:75px; width:85px; height:23px; vertical-align:middle; ">일반진료여부</caption>
- <caption id="caption15" class="tit_2" style="left:6px; top:110px; width:186px; height:13px; ">외래선택진료의사진료리스트</caption>
- <line id="line10" class="line_1" style="x1:0px; y1:125px; x2:1194px; y2:125px; "/>
- <line id="line11" class="line_3" style="x1:0px; y1:97px; x2:1194px; y2:97px; "/>
- <button id="button6" class="btn5_letter2" style="left:1106px; top:50px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/orddeptcd") == "") {
- messageBox("진료과가 선택되지", "E007");
- model.setFocus("cmb_orddeptcd");
- return;
- }
-
- if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
- messageBox("전화번호", "C001");
- model.setFocus("ipt_tel");
- return;
- }
-
-
- model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
- model.setValue("/root/send/orddrid", cmb_orddrid.value);
- if (cmb_gnrlordflag.value == "") {
- model.setValue("/root/send/gnrlordflag", "N");
- }else{
- model.setValue("/root/send/gnrlordflag", cmb_gnrlordflag.value);
- }
- model.setValue("/root/send/innrtel", model.getValue("/root/main/innrtel"));
- model.setValue("/root/send/reprordfild", model.getValue("/root/main/reprordfild"));
-
- submit("TRPMB02201",false);
- if (model.getValue("/root/main/result/orddeptcd") == ""){
- messageBox("해당 진료과의 진료의사 정보가 존재하지 않습니다. 해당 정보는 수정하실 수","I004");
- return;
- }
-
-
- if (submit("TXPMB02202") == true ) {
- messageBox("정상적으로 수정", "I001");
- }
-
-
- model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
- submit("TRPMB02205");
-
- var curDate = model.getValue("/root/main/srchorddrlistdate");
- var strDay = curDate.toDate().getDayOfWeek("K");
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
-
-
- model.setValue("/root/main/orddeptcd","");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- grd_ddrlist.rebuildStyle();
- grd_ddrlist.rebuild();
-
- setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
-
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption16" class="cell_1" style="left:347px; top:75px; width:60px; height:23px; vertical-align:middle; ">진료의사</caption>
- <caption id="caption18" class="cell_1" style="left:723px; top:75px; width:61px; height:23px; vertical-align:middle; ">내선번호</caption>
- <caption id="caption19" class="cell_1" style="left:905px; top:74px; width:85px; height:23px; vertical-align:middle; ">대표진료분야</caption>
- <output id="output3" ref="/root/main/yy" style="left:980px; top:105px; width:45px; height:19px; text-align:right; "/>
- <caption id="caption22" style="left:1025px; top:105px; width:15px; height:20px; ">년</caption>
- <caption id="caption23" style="left:1070px; top:105px; width:15px; height:20px; ">월</caption>
- <output id="output4" ref="/root/main/mm" style="left:1045px; top:105px; width:25px; height:19px; text-align:right; "/>
- <output id="output5" ref="/root/main/dd" style="left:1090px; top:105px; width:25px; height:19px; text-align:right; "/>
- <caption id="caption24" style="left:1115px; top:105px; width:15px; height:20px; ">일</caption>
- <output id="output6" ref="/root/main/dw" style="left:1140px; top:105px; width:25px; height:19px; text-align:right; "/>
- <caption id="caption25" style="left:1165px; top:105px; width:26px; height:20px; ">요일</caption>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:62px; top:76px; width:283px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
-
- model.setValue("/root/main/orddrid", "");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- ipt_tel.disabled = true;
- ipt_reprordfild.disabled = true;
- cmb_gnrlordflag.disabled = false;
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/orddeptcd",cmb_orddeptcd.value);
-
- submit("TRPMB02201",false);
- model.setValue("/root/main/gnrlordflag",model.getValue("/root/main/result/gnrlordflag"));
- model.refresh();
-
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_search" navindex="4" appearance="minimal" editmode="search" style="left:409px; top:76px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ipt_tel.disabled = false;
- ipt_reprordfild.disabled = false;
- cmb_gnrlordflag.disabled = true;
-
- model.setValue("/root/send/orddrid", cmb_orddrid.value);
- submit("TRPMB02201",false);
-
- //model.setValue("/root/main/gnrlordflag", model.getValue("/root/main/result/gnrlordflag"));
- model.setValue("/root/main/innrtel", model.getValue("/root/main/result/innrtel"));
- model.setValue("/root/main/reprordfild", model.getValue("/root/main/result/reprordfild"));
-
- model.refresh();
-
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
-
- if (model.getValue("/root/main/orddrid") == "") {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
-
- model.setValue("/root/main/orddrid", "");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- ipt_tel.disabled = true;
- ipt_reprordfild.disabled = true;
- cmb_gnrlordflag.disabled = false;
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/orddeptcd",cmb_orddeptcd.value);
-
- submit("TRPMB02201",false);
- model.setValue("/root/main/gnrlordflag",model.getValue("/root/main/result/gnrlordflag"));
- model.refresh();
- }
-
- ]]>
- </script>
- </select1>
- <select1 id="cmb_gnrlordflag" ref="/root/main/gnrlordflag" class="combo_search" navindex="5" appearance="minimal" style="left:650px; top:76px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>AM</label>
- <value>AM</value>
- </item>
- <item>
- <label>PM</label>
- <value>PM</value>
- </item>
- <item>
- <label>AMPM</label>
- <value>AMPM</value>
- </item>
- <item>
- <label>없음</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_tel" ref="/root/main/innrtel" class="input_default" navindex="6" maxlength="4" style="left:785px; top:76px; width:118px; height:19px; "/>
- <input id="ipt_reprordfild" ref="/root/main/reprordfild" class="input_default" navindex="7" imemode="hangul" style="left:992px; top:76px; width:202px; height:19px; "/>
- <datagrid id="grd_ddrlist" nodeset="/root/main/orddrlist/list" caption="^오전^오전^오전^오후^오후^오후|^선택진료의사^일반의사^일반의사^선택진료의사^일반의사^일반의사|^선택진료의사^전문의^일반^선택진료의사^전문의^일반" colsep="^" colwidth="256, 165, 173, 126, 174, 182, 119" dataheight="25" defaultrows="2" extendlastcol="scroll" fixedcols="1" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" selectionmode="free" style="left:0px; top:130px; width:1195px; height:610px; text-align:center; ">
- <col ref="deptnm"/>
- <col disabled="true" ref="am_sp_orddr" style="left:110px; top:63px; width:255px; height:23px; "/>
- <col disabled="true" ref="am_orddr"/>
- <col disabled="true" ref="am_gnrlordflag"/>
- <col ref="pm_sp_orddr" style="left:1138px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="pm_orddr"/>
- <col ref="pm_gnrlordflag"/>
- </datagrid>
- <group id="group7" style="left:0px; top:125px; width:255px; height:67px; background-color:transparent; ">
- <line id="line12" class="line_3" style="x1:5px; y1:9px; x2:250px; y2:67px; "/>
- <caption id="caption26" style="left:9px; top:41px; width:42px; height:20px; ">진료과</caption>
- <caption id="caption27" style="left:215px; top:25px; width:35px; height:20px; ">구분</caption>
- </group>
- <button id="button5" class="btn5_letter2" style="left:1061px; top:50px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/orddeptcd") == "") {
- messageBox("진료과가 선택되지", "E007");
- model.setFocus("cmb_orddeptcd");
- return;
- }
-
- if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
- messageBox("전화번호", "C001");
- model.setFocus("ipt_tel");
- return;
- }
-
-
- //해당 데이터가 존재하는지 체크
- submit("TRPMB02201",false);
- if (model.getValue("/root/main/result/orddeptcd") != ""){
- messageBox("이미 존재합니다. 해당 정보는 추가하실 수","I004", "해당사항은 수정처리하시기 바랍니다.");
- return;
- }
-
- model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
- model.setValue("/root/send/orddrid", cmb_orddrid.value);
- if (cmb_gnrlordflag.value == "") {
- model.setValue("/root/send/gnrlordflag", "N");
- }else{
- model.setValue("/root/send/gnrlordflag", cmb_gnrlordflag.value);
- }
- model.setValue("/root/send/innrtel", model.getValue("/root/main/innrtel"));
- model.setValue("/root/send/reprordfild", model.getValue("/root/main/reprordfild"));
-
- //insert
- if (submit("TXPMB02203") == true ) {
- messageBox("정상적으로 추가", "I001");
- }
-
-
- model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
- submit("TRPMB02205");
-
- var curDate = model.getValue("/root/main/srchorddrlistdate");
- var strDay = curDate.toDate().getDayOfWeek("K");
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
-
-
- model.setValue("/root/main/orddeptcd","");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- grd_ddrlist.rebuildStyle();
- grd_ddrlist.rebuild();
-
- setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter2" style="left:1151px; top:50px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("선택된 진료과 의사정보를 진료표에서", "Q001") != 6) return;
-
- if (model.getValue("/root/main/orddeptcd") == "") {
- messageBox("진료과가 선택되지", "E007");
- model.setFocus("cmb_orddeptcd");
- return;
- }
- if (model.getValue("/root/main/orddrid") == "") {
- messageBox("진료의사가 선택되지", "E007");
- model.setFocus("cmb_orddeptcd");
- return;
- }
-
- if (model.getValue("/root/main/innrtel") <= '0000' || model.getValue("/root/main/innrtel") >= '9999') {
- messageBox("전화번호", "C001");
- model.setFocus("ipt_tel");
- return;
- }
-
- //해당 데이터가 존재하는지 체크
- submit("TRPMB02201",false);
- if (model.getValue("/root/main/result/orddeptcd") == ""){
- messageBox("해당 진료과의 진료의사 정보가 존재하지 않습니다. 해당 정보는 삭제 하실 수","I004");
- return;
- }
-
-
- model.setValue("/root/send/orddeptcd", cmb_orddeptcd.value);
- model.setValue("/root/send/orddrid", cmb_orddrid.value);
-
-
- if (submit("TXPMB02204",false) == true ) {
- messageBox("정상적으로 삭제", "I001");
- model.setValue("/root/main/orddeptcd", "");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
- model.refresh();
- }
-
-
- model.setValue("/root/send/orddrdate", model.getValue("/root/main/srchorddrlistdate"));
- submit("TRPMB02205");
-
- var curDate = model.getValue("/root/main/srchorddrlistdate");
- var strDay = curDate.toDate().getDayOfWeek("K");
- model.setValue("/root/main/yy", curDate.substring(0,4));
- model.setValue("/root/main/mm", curDate.substring(4,6));
- model.setValue("/root/main/dd", curDate.substring(6,8));
- model.setValue("/root/main/dw", strDay);
-
-
- model.setValue("/root/main/orddeptcd","");
- model.setValue("/root/main/orddrid","");
- model.setValue("/root/main/gnrlordflag","");
- model.setValue("/root/main/innrtel","");
- model.setValue("/root/main/reprordfild","");
-
- grd_ddrlist.rebuildStyle();
- grd_ddrlist.rebuild();
-
- setGridBorderHiddenRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag^pm_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","am_gnrlordflag");
- setGridMergeColRestricColRef("grd_ddrlist", "deptnm","pm_gnrlordflag");
-
-
- model.refresh();
-
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|