123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- <?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>BMT 스케쥴변경관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <scheupdtinfo>
- <scheupdtlist>
- <flag/>
- <hngnm/>
- <trnptwardcd/>
- <trnptroomcd/>
- <atdoctid/>
- <diagcdnm/>
- <trnptkind/>
- <trnptschedd/>
- <updttrnptschedd/>
- <updtresn/>
- <updtdt/>
- <trnptschestat/>
- </scheupdtlist>
- </scheupdtinfo>
- <popupendflag/>
- </main>
- <init>
- <cmbinfo>
- <updtresn>
- <A0173>
- <cdid/>
- <cdnm/>
- </A0173>
- </updtresn>
- <trnptkind>
- <A0161>
- <cdid/>
- <cdnm/>
- </A0161>
- </trnptkind>
- <atdoctid>
- <A0536>
- <cdid/>
- <cdnm/>
- </A0536>
- </atdoctid>
- <deptcd>
- <A0478>
- <cdid/>
- <cdnm/>
- </A0478>
- </deptcd>
- <lrglist>
- <item>
- <hsctlrgcd/>
- <hsctlrgnm/>
- </item>
- </lrglist>
- </cmbinfo>
- </init>
- <send>
- <req>
- <trnptfromdd/>
- <trnpttodd/>
- <deptcd/>
- <atdoctid/>
- <diagcd1/>
- <trnptkind/>
- <updtresn/>
- <pid/>
- </req>
- <reqdata1>
- <deptcd/>
- </reqdata1>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <lrggrupcd>DI</lrggrupcd>
- <hsctlrgcd/>
- </send>
- <hidden>
- <count/>
- </hidden>
- <temp>
- <tempcodeinfo/>
- <tempcodeinfo2/>
- </temp>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- /* @group : 스케쥴변경관리
- * @ver : 2008.06.17
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 스케쥴 변경이력을 조회한다.
- * @param :
- */
- function readfunc(){
- if (datacheck() == false){
- return;
- }
- model.removeNodeset("/root/main/scheupdtinfo/scheupdtlist");
- submit("TRABO01001");
- if (model.getValue("/root/main/scheupdtinfo/scheupdtlist[" + 1 + "]/hngnm") == ""){
- model.removeNodeset("/root/main/scheupdtinfo/scheupdtlist");
- }
- model.refresh();
- }
- /* @group : 스케쥴변경관리
- * @ver : 2008.06.17
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 조회시 조회항목 유효성 체크
- * @param :
- */
- function datacheck(){
- if (isValidDateTime(model.getValue("/root/send/req/trnptfromdd"), "YYYYMMDD") == false){
- messageBox("From 이식일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- if (isValidDateTime(model.getValue("/root/send/req/trnpttodd")) == false){
- messageBox("To 이식일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- if (model.getValue("/root/send/req/trnptfromdd") > model.getValue("/root/send/req/trnpttodd")){
- messageBox("이식 기간일이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- return true;
- }
- /* @group : 스케쥴변경관리
- * @ver : 2008.06.17
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 진료과를 변경하면 변경된 진료과의 주치의 정보를 가져온다.
- * @param :
- */
- function fChngSrchDrId() {
- model.setValue("/root/send/reqdata1/deptcd", model.getValue("/root/send/req/deptcd"));
- if (model.getValue("/root/send/req/deptcd") == "" ) return;
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/reqdata1/deptcd", model.getValue("/root/send/globalinstance/instance1"));
- // zbcfGetCodeList( new Array("A0173", "A0161", "A0478", "A0536"),
- // new Array("/root/init/cmbinfo/updtresn", "/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid/A0536"));
-
- //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
- aboGetCodeList(new Array("A0173", "A0161", "A0478", "A0536"),
- new Array("/root/init/cmbinfo/updtresn", "/root/init/cmbinfo/trnptkind", "/root/init/cmbinfo/deptcd", "/root/init/cmbinfo/atdoctid"));
- // bmtcommon.js : 이식종류에 AUTO [00] 추가해주기
- abofSetTrnptKindCdAuto();
- // bmtcommon.js : BMT 진단대분류 조회 : 맨 앞에 공백을 추가해주기 위해서 함수로 변경
- abofGetBmtDIagLrgList();
- model.removeNodeset("/root/main/celltretdetl/celltretdetail");
- var scurrentdd = getCurrentDate();
- model.setValue("/root/send/req/trnptfromdd", scurrentdd.toDate().getAddDate(-30,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/req/trnpttodd" , scurrentdd.toDate().getAddDate(30,"D").getDateFormat("YYYYMMDD"));
- model.refresh();
- // common.js
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- model.setValue("/root/send/req/pid", condarray[0]);
- btn_sea.dispatch("onclick");
- }
- }
- ]]>
- </script>
- <submission id="TRABO01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/main/scheupdtinfo"/>
- <submission id="TRABO02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmbinfo/lrglist"/>
- <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/tempcodeinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:164px; height:14px; ">스케쥴 변경관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:140px; height:13px; ">스케쥴 history</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">기간(이식일) :</caption>
- <caption id="caption4" class="search_name" style="left:599px; top:9px; width:73px; height:17px; ">주치의 :</caption>
- <caption id="caption5" class="search_no_b" style="left:233px; top:9px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:51px; "/>
- <input id="input1" ref="/root/send/req/trnptfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:130px; top:8px; width:100px; height:19px; "/>
- <input id="input25" ref="/root/send/req/trnpttodd" class="input_s_essential" navindex="2" inputtype="date" style="left:248px; top:8px; width:100px; height:19px; "/>
- <select1 id="combo2" ref="/root/send/req/atdoctid" class="combo_search" navindex="4" appearance="minimal" style="left:687px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/atdoctid/A0536">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/send/req/diagcd1" class="combo_search" navindex="5" appearance="minimal" style="left:936px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/lrglist/item">
- <label ref="hsctlrgnm"/>
- <value ref="hsctlrgcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:847px; top:9px; width:73px; height:17px; ">진단명 :</caption>
- <select1 id="combo3" ref="/root/send/req/deptcd" class="combo_search" navindex="3" appearance="minimal" style="left:444px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/deptcd/A0478">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchDrId();
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:355px; top:9px; width:73px; height:17px; ">진료과 :</caption>
- <select1 id="combo4" ref="/root/send/req/trnptkind" class="combo_search" navindex="6" appearance="minimal" style="left:687px; top:32px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/trnptkind/A0161">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:599px; top:33px; width:86px; height:17px; ">이식종류 :</caption>
- <select1 id="combo5" ref="/root/send/req/updtresn" class="combo_search" navindex="7" appearance="minimal" style="left:936px; top:32px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmbinfo/updtresn/A0173">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:847px; top:33px; width:86px; height:17px; ">변경사유 :</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="8" style="left:1123px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- readfunc();
- ]]>
- </script>
- </button>
- <caption id="caption12" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="input2" ref="/root/send/req/pid" class="input_search" style="left:130px; top:34px; width:100px; height:19px; "/>
- </group>
- <button id="btn_excsave" class="btn2_letter4" navindex="9" style="left:1130px; top:75px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","true","스케쥴변경관리","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(file != "") {
- grd_scheupdtlist.saveExcel(file);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_scheupdtlist" nodeset="/root/main/scheupdtinfo/scheupdtlist" caption="상태^환자명^Unit^병실^주치의^진단명^이식종류^이전이식날짜^변경된이식날짜^변경사유^변경일시^이력상태" colsep="^" colwidth="57, 80, 114, 60, 73, 81, 125, 100, 100, 115, 160, 68" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:101px; width:1194px; height:634px; text-align:center; ">
- <col disabled="true" ref="flag" type="combo">
- <choices>
- <item>
- <label>이력</label>
- <value>H</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="hngnm" type="output"/>
- <col disabled="true" ref="trnptwardcd" type="output"/>
- <col disabled="true" ref="trnptroomcd"/>
- <col disabled="true" ref="atdoctid" type="output"/>
- <col disabled="true" ref="diagcdnm"/>
- <col disabled="true" ref="trnptkind"/>
- <col disabled="true" ref="trnptschedd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="updttrnptschedd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="updtresn"/>
- <col disabled="true" ref="updtdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col disabled="true" ref="trnptschestat"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_scheupdtlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- exeReportPreview("RPABO01001", "XMLSTR", "/root/main/scheupdtinfo/scheupdtlist");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|