123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880 |
- <?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>
- <therpinfo>
- <therplist/>
- </therpinfo>
- <cond>
- <fromdd/>
- <todd/>
- <wardcd/>
- <pid/>
- <hngnm/>
- </cond>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- </patinfolist>
- </patinfo>
- <iptbox>
- <wardcd/>
- <roomcd/>
- </iptbox>
- <popupendflag/>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <bdioflag>I</bdioflag>
- <itemflag>N</itemflag>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data2>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <acptdd/>
- </data2>
- <nuclcdapplist/>
- <wardcd/>
- </send>
- <hidden>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <newElement/>
- </hidden>
- <init>
- <today/>
- <item>
- <examcurecdlist>
- <excucd/>
- <excucdnm/>
- </examcurecdlist>
- <roomlist/>
- </item>
- </init>
- <tmp>
- <list1/>
- <suplcustcd/>
- <suplcustnm/>
- </tmp>
- <temp/>
- <combo/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- group1.attribute("height") = 0;
- ]]>
- </script>
- <submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04104" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
- <submission id="TRMMO04106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/wardlist"/>
- <submission id="TRMMO04107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/roomlist"/>
- <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/init"/>
- <submission id="TXAEB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/therpinfo"/>
- <submission id="TRAEB02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/therpinfo"/>
- <submission id="TRAEB02802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/item"/>
- <submission id="TRAEB02803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/patinfo"/>
- <submission id="TRAEB02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list2"/>
- <submission id="TXAEB02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <submission id="TRAEB01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/combo/nuclcd"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <bind id="bind1" ref="/root/main/therpinfo/therplist/rsrvdd" readonly="../pid != ''"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[var sTHERPLIST_PATH = "/root/main/therpinfo/therplist";
- /**
- * @desc : Therapy일정관리 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize(){
-
- aezfSetSuppDeptcd();
-
- //조회기간 시작일자는 현재, 종료일자는 7일 후로 설정한다.
- model.setValue("/root/init/today", getCurrentDate());
- var fromdd = ((getCurrentDate()).toDate()).getAddDate(-7);
- model.setValue("/root/main/cond/fromdd", fromdd.getDateFormat());
- var todd = ((getCurrentDate()).toDate()).getAddDate(7);
- model.setValue("/root/main/cond/todd" , todd.getDateFormat());
-
- //콤보박스에 설정될 부서리스트 조회
- //reqGetDeptList("/root/send/reqdata", "/root/init/deptlist", "", getUserInfo("dutplceinstcd"));
-
- // 진료과/진료의 조회
- submit("TRPMOCOM01");
-
- //콤보박스에 설정된 병실리스트 조회
- //reqGetRoomList("3050123000");
- //reqGetRoomList("3050135000");
- model.setValue("/root/send/wardcd","3050135000");
- model.makeValue("/root/send/reqdata/newoldyb","1");
- model.makeValue("/root/send/reqdata/srchexamcurecd","THD%");
-
- submit("TRAEB02802");
-
- submit("TRAEB01802");
-
- //Therapy일정리스트 그리드 초기화
- model.removeNodeset(sTHERPLIST_PATH);
- model.refresh();
- }
-
- /**
- * @desc : Therapy 일정리스트 한줄 추가
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fAddRow(){
- //그리드 한줄 추가 후에 refresh, disabled상태 유지 모두 true
- grd_therapy.addRow();
- var iRow = grd_therapy.row;
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/genrdd", getCurrentDate());
- //예약일자는 기본을 현재일자로 설정
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/rsrvdd", getCurrentDate());
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/calcscorcd", "THD071N");
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/updtimpsiyn", "N");
- grd_therapy.col = 4;
- grd_therapy.editCell();
- model.refresh();
- }
- /**
- * @desc : Therapy 일정 저장
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSaveTherapyInfo(){
- if(fChkValidSaveData()==true){
- model.setValue("/root/send/savedata", grd_therapy.getUpdateData());
- if (submit("TXAEB02801")) {
- // 핵종 사용량 일정 조회
- fReqTherapyInfo();
- // 수정 권한 체크
- fSetAuthGrid();
- }
- }
- }
-
- /**
- * @desc : Therapy 일정 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqTherapyInfo(){
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- if ( submit("TRAEB02801") ) {
- // 수정 권한 체크
- fSetAuthGrid();
- }
- }
-
- /**
- * @desc : 수정권한 체크
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSetAuthGrid(){
- var userid = getUserId();
- for (var i=1; i<grd_therapy.rows; i++) {
- var updtimpsiyn = grd_therapy.valueMatrix(i, grd_therapy.colRef("updtimpsiyn"));
- var rsrvdd = grd_therapy.valueMatrix(i, grd_therapy.colRef("rsrvdd"));
-
- grd_therapy.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_therapy.rowstyle( i , "data" , "color" ) = "#000000";
-
- // 수정 권한 최태성 팀장님만 있음
- // if (updtimpsiyn == "Y" && "80030977" != userid ) {
- // if (updtimpsiyn == "Y") {
- // grd_therapy.isReadOnly(i,grd_therapy.colRef("rsrvdd"), i, grd_therapy.colRef("updtimpsiyn")) = true;
- // }
-
- if (rsrvdd < getCurrentDate() ) {
- grd_therapy.rowstyle( i , "data" , "background-color" ) = "#F0FFFF";
- }
- }
- }
-
-
- /**
- * @desc : Therapy 일정 삭제
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fDelRow(){
- var iRow = grd_therapy.row;
- var updtimpsiyn = grd_therapy.valueMatrix(iRow, grd_therapy.colRef("updtimpsiyn"));
- if (updtimpsiyn == "Y") {
- messageBox("해당 핵종에 대해서는 임의로 삭제를", "E001");
- return false;
- }
- var iStatus = grd_therapy.rowStatus(iRow);
-
- if(iStatus == 1 || iStatus == 3){
- grd_therapy.deleteRow(iRow);
- }else{
- grd_therapy.rowStatus(iRow) = 4;
- }
- }
- /**
- * @desc : 환자정보 확인버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkCfrmBtn(){
- var iRow = grd_patinfopopup.row;
- fSetPatInfo(iRow);
-
- group1.attribute("height") = 0;
-
- btn_add.disabled = false;
- btn_del.disabled = false;
- btn_save.disabled= false;
- btn_req.disabled = false;
- btn_getpatinfo.disabled = false;
- }
-
- /**
- * @desc : 환자정보 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqPatInfo(paramflag, param, param2){
- var iRow = grd_therapy.row;
-
- if(reqPatInfo(paramflag, "otpt", param, param2) == true){ //환자정보 조회
- var iCnt = getNodeSetCnt("/root/init/patnm/patnm");
-
- if(iCnt > 1){ //조회결과가 두 줄 이상인 경우, grid를 화면에 보여준다.
- group1.attribute("top") = 116 + (23 * (grd_therapy.rows - 2));
- group1.attribute("height") = 170;
- btn_add.disabled = true;
- btn_del.disabled = true;
- btn_save.disabled= true;
- btn_req.disabled = true;
- btn_getpatinfo.disabled = true;
- }else{
- fSetPatInfo(1); //조회결과가 한 줄인 경우, grid를 보여주는 것 없이 바로 결과값을 setting
- }
- }else{
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/pid" , "");
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm", "");
- model.refresh();
- }
- }
-
-
- /**
- * @desc : 환자정보 설정
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fSetPatInfo(iRow){
- sPid = model.getValue("/root/init/patnm/patnm[" + iRow + "]/pid");
- sHngNM = model.getValue("/root/init/patnm/patnm[" + iRow + "]/hngnm");
- sDeptCD = model.getValue("/root/init/patnm/patnm[" + iRow + "]/deptcd");
- sDrID = model.getValue("/root/init/patnm/patnm[" + iRow + "]/drid");
- sDrNM = model.getValue("/root/init/patnm/patnm[" + iRow + "]/drnm");
-
- var iCurRow = grd_therapy.row;
- model.setValue("/root/main/therpinfo/therplist[" + iCurRow + "]/pid", sPid);
- model.setValue("/root/main/therpinfo/therplist[" + iCurRow + "]/hngnm", sHngNM);
- model.setValue("/root/main/therpinfo/therplist[" + iCurRow + "]/orddeptcd", sDeptCD);
- model.setValue("/root/main/therpinfo/therplist[" + iCurRow + "]/orddrid", sDrID);
- model.setValue("/root/main/therpinfo/therplist[" + iCurRow + "]/orddrnm", sDrNM);
- model.refresh();
- }
- /**
- * @desc : 환자정보 취소버튼 클릭
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkCnClBtn(){
- group1.attribute("height") = 0;
- btn_add.disabled = false;
- btn_del.disabled = false;
- btn_save.disabled= false;
- btn_req.disabled = false;
- btn_getpatinfo.disabled = false;
- }
-
- /**
- * @desc : 그리드 input button클릭
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fClkGrdInptBtn(){
- //model.setValue("/root/hidden/srchcond", "2");
- modal("SPPMC02500", "1", 100, 100, "SPPMC02500", "/root/hidden", "/root/send");
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- if(model.getValue("/root/main/popupendflag") != "cancel"){
- var iRow = grd_therapy.row;
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/pid" , sPid);
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm", sHngnm);
- }
- }
- /**
- * @desc : 저장데이터의 무결성검사
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fChkValidSaveData() {
-
- var update = getGridUpdateData(grd_therapy);
-
- if ( update == "" ) {
- messageBox("저장할 내역이", "I004");
- return;
- } else {
- var sDoseVal = model.getValue(sTHERPLIST_PATH + "[doseval='" + "" + "']/rsrvdd");
- var sRoomCD = model.getValue(sTHERPLIST_PATH + "[roomcd='" + "" + "']/rsrvdd");
- var sPid = model.getValue(sTHERPLIST_PATH + "[pid='" + "" + "']/rsrvdd");
- var sHngNM = model.getValue(sTHERPLIST_PATH + "[hngnm='" + "" + "']/rsrvdd");
- var sDeptCD = model.getValue(sTHERPLIST_PATH + "[orddeptcd='" + "" + "']/rsrvdd");
- var sOrddrid = model.getValue(sTHERPLIST_PATH + "[orddrid='" + "" + "']/rsrvdd");
-
- if (sDoseVal != "") {
- messageBox("Dose 값을", "C001");
- return false;
- // } else if (sRoomCD != ""){
- // messageBox("병실을 ", "C002");
- // return false;
- } else if (sPid != ""){
- messageBox("등록번호를 ", "C001");
- return false;
- } else if (sHngNM != ""){
- messageBox("환자명를 ", "C001");
- return false;
- } else if (sDeptCD != ""){
- messageBox("진료과 ", "C001");
- return false;
- } else if (sOrddrid != ""){
- messageBox("진료의 ", "C001");
- return false;
- // } else if (sOrddrnm != ""){
- // messageBox("입력한 환자의 접수정보가 없습니다. 환자를 다시", "C001");
- // return false;
-
- } else {
- return true;
- }
- }
- }
-
- /*** 주간 단위 핵종 신청량저장 ***/
- function chkUpdatedData() {
- if ( messageBox("", "Q002") == 6 ) {
-
- var nodeCnt = getNodesetCount("/root/main/list2/nuclcdapplist");
- nodeCnt = (nodeCnt*1) +1;
-
- for (var i=1; i<nodeCnt; i++) {
- var appdd = model.getValue("/root/main/list2/nuclcdapplist["+ i + "]/appdd");
- if (appdd == "") {
- messageBox("신청일자는 필수 입력입니다.", "I");
- return;
- }
-
- // 비고 size 제한 255
- var rem = model.getValue("/root/main/list2/nuclcdapplist["+ i + "]/rem");
- var iRemLength = getStringLength(rem);
-
- if (iRemLength > 255) {
- messageBox("비고 내용이 입력 범위를 초과하였습니다.", "I");
- return;
- }
-
- // true => Y , false=> N 변경 [DB size :CHARACTER(1)]
- var cnfmyn = model.getValue("/root/main/list2/nuclcdapplist["+ i + "]/cnfmyn");
- if (cnfmyn == "true") {
- model.setValue("/root/main/list2/nuclcdapplist["+ i + "]/cnfmyn","Y");
- } else {
- model.setValue("/root/main/list2/nuclcdapplist["+ i + "]/cnfmyn","N");
- }
- }
-
- var update = getGridUpdateData(grd_nuclcdapplist);
-
- if ( update == "" ) {
- messageBox("업데이트 정보가 없습니다.", "I");
- return;
- } else {
- model.setValue("/root/send/nuclcdapplist", update);
-
- if ( submit("TXAEB02701") ) {
- // 저장 후 재 조회
- submit("TRAEB02702");
- }
- model.refresh();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1100" pageheight="791" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption22" class="tit_2" style="left:1px; top:48px; width:181px; height:14px; ">핵종 사용량 일정</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:63px; x2:1084px; y2:63px; "/>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1084px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_req" class="btn1_letter2" style="left:1022; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReqTherapyInfo();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1006px; y1:8px; x2:1006px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:11px; width:91px; height:17px; ">조회기간 :</caption>
- <input id="input1" ref="/root/main/cond/fromdd" inputtype="date" style="left:95px; top:10px; width:85px; height:19px; "/>
- <input id="input2" ref="/root/main/cond/todd" inputtype="date" style="left:201px; top:10px; width:85px; height:19px; "/>
- <caption id="caption2" style="left:185px; top:11px; width:20px; height:20px; ">~</caption>
- <caption id="caption5" class="search_name" style="left:322px; top:10px; width:91px; height:17px; ">등록번호 :</caption>
- <input id="input4" ref="/root/main/cond/pid" style="left:413px; top:10px; width:88px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- fReqTherapyInfo();
- }
- ]]>
- </script>
- </input>
- <button id="btn_getpatinfo" class="icon_search" style="left:507px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/data2/srchcond", "2");
- model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
-
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
-
- var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- model.setValue("/root/main/cond/pid", sPid);
- model.setValue("/root/main/cond/hngnm", sHngnm);
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_therapy" nodeset="/root/main/therpinfo/therplist" caption="genrdd^genrno^일자^환자명^등록번호^진료과^병실^의사ID^의사명^검사^Dose(mCi)^변경불가^Dose(mCi)" colsep="^" colwidth="0, 0, 100, 104, 96, 161, 85, 0, 87, 259, 79, 69" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:0px; top:68px; width:1084px; height:507px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col ref="genrdd"/>
- <col ref="genrno"/>
- <col ref="rsrvdd" type="inputdate"/>
- <col ref="hngnm" type="inputbutton"/>
- <col ref="pid" type="input"/>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="roomcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/item/roomlist">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddrnm"/>
- <col ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="calcscorcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/item/examcurecdlist">
- <label ref="excucdnm"/>
- <value ref="excucd"/>
- </itemset>
- </choices>
- </col>
- <col ref="doseval" type="input" format="#,###.000" style="text-align:right; "/>
- <col ref="updtimpsiyn" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- btn_grdpatinfo.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var iCol = grd_therapy.col;
- if(iCol != 3){
- fClkGrdInptBtn();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // grd_therapy.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp = '"+ cmb_orddept.value +"']";
- // cmb_orddr.refresh();
- ]]>
- </script>
- </datagrid>
- <group id="group1" style="left:335px; top:116px; width:411px; height:170px; border-color:transparent; border-style:none; ">
- <caption id="caption3" class="tit_2" style="left:1px; top:0px; width:144px; height:13px; ">환자정보</caption>
- <line id="line2" class="line_1" style="x1:1px; y1:14px; x2:409px; y2:14px; "/>
- <datagrid id="grd_patinfopopup" nodeset="/root/init/patnm/patnm" caption="등록번호^환자명^진료과^진료의사^진료과코드^의사코드" colsep="^" colwidth="107, 100, 100, 100, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:19px; width:409px; height:121px; ">
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="deptnm"/>
- <col ref="drnm"/>
- <col ref="deptcd"/>
- <col ref="drid"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fClkCfrmBtn();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter2" style="left:320px; top:142px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkCfrmBtn();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:364px; top:142px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fClkCnClBtn();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_srchpatnm" disabled="true" style="left:460px; top:10px; width:50px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- reqPatInfo("pid", model.getValue("/root/main/cond/pid"), "ptbs");
- model.setValue("/root/main/cond/hngnm", model.getValue("/root/init/patnm/patnm/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdpatinfo" disabled="true" style="left:567px; top:41px; width:100px; height:20px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var iPidCol = grd_therapy.colRef("pid");
- var iNmCol = grd_therapy.colRef("hngnm");
-
- var iCol = grd_therapy.col;
- var iRow =grd_therapy.row;
-
- model.setValue("/root/send/data2/pid", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/pid"));
- model.setValue("/root/send/data2/hngnm", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm"));
-
- if ( submit("TRAEB02803") ) {
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
-
- /*
- if(iCol == iPidCol){ //등록번호 조회
- //reqPatInfo(paramFlag, tblFlag, param, param2)
- fReqPatInfo("pid", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/pid"), model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/rsrvdd"));
- }else if(iCol == iNmCol){ //환자명 조회
- fReqPatInfo("hngnm", model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/hngnm"), model.getValue(sTHERPLIST_PATH + "[" + iRow + "]/rsrvdd"));
- }
- */
-
- model.recalculate();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" style="left:999px; top:43px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveTherapyInfo();
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter3" style="left:891px; top:43px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter3" style="left:945px; top:43px; width:53px; height:19px; ">
- <caption>핵삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelRow();
- ]]>
- </script>
- </button>
- <output id="ipt_patnm" ref="/root/main/cond/hngnm" class="output_fix" style="left:530px; top:10px; width:72px; height:19px; "/>
- <button id="button3" class="btn2_letter2" style="left:1042px; top:43px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- for (var row=1; row<grd_therapy.rows; row++) {
- model.makeValue("/root/main/therpinfo/therplist["+ row + "]/calcscornm", grd_therapy.labelMatrix(row, grd_therapy.colRef("calcscorcd")));
- model.makeValue("/root/main/therpinfo/therplist["+ row + "]/orddeptnm", grd_therapy.labelMatrix(row, grd_therapy.colRef("orddeptcd")));
- }
- model.refresh();
- exeReportPreview("RPAEB02800", "XMLSTR", "/root/main/therpinfo/therplist");
- ]]>
- </script>
- </button>
- <datagrid id="grd_nuclcdapplist" nodeset="/root/main/list2/nuclcdapplist" caption="기준일자^지원부서코드^일련번호^신청일^핵종^판매회사^판매회사명^신청량^확인^비고" colsep="^" colwidth="100, 100, 100, 100, 120, 100, 150, 100, 53, 433" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:600px; width:1085px; height:135px; ">
- <col ref="basedd" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="appdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="nuclcd" type="combo">
- <choices>
- <itemset nodeset="/root/combo/itemlist/item">
- <label ref="itemnm"/>
- <value ref="itemcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="suplcmpy" type="inputbutton">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- misfOpenPopUpList("14", ipt_suplcmpy, "", "suplcustcd,suplcustnm");
- model.refresh();
- var selectedrow = grd_nuclcdapplist.selectedCells.item(0).row;
- model.setValue("/root/main/list2/nuclcdapplist[" + selectedrow + "]/suplcmpy", model.getValue("/root/tmp/suplcustcd"));
- model.setValue("/root/main/list2/nuclcdapplist[" + selectedrow + "]/suplcmpynm", model.getValue("/root/tmp/suplcustnm"));
- model.refresh();
- ]]>
- </script>
- </col>
- <col ref="suplcmpynm" type="output"/>
- <col ref="appqty" type="input" format="#,###.00" maxlength="10" style="text-align:right; "/>
- <col ref="cnfmyn" type="checkbox"/>
- <col ref="rem" type="input"/>
- </datagrid>
- <caption id="caption4" class="tit_2" style="left:0px; top:580px; width:149px; height:13px; ">핵종별 신청내역</caption>
- <button id="button5" class="btn2_letter3" style="left:976px; top:580px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_nuclcdapplist.addRow();
-
- row = grd_nuclcdapplist.rows;
- row = row -1;
-
- model.makeValue("/root/main/list2/nuclcdapplist["+ row + "]/basedd",model.getValue("/root/send/mon"));
- model.makeValue("/root/main/list2/nuclcdapplist["+ row + "]/suppdeptcd",model.getValue("/root/send/suppdeptcd"));
- model.makeValue("/root/main/list2/nuclcdapplist["+ row + "]/appdd",getCurrentDate());
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1031px; top:580px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_nuclcdapplist.row;
- grd_nuclcdapplist.deleteRow(row);
- ]]>
- </script>
- </button>
- <button id="btn_close" class="btn4_letter2" style="left:1025px; top:740px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
-
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:910px; top:740px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- chkUpdatedData();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn4_letter2" style="left:967px; top:740px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.copyNode("/root/tmp/list1", "/root/main/list1");
-
- var rowcnt = getNodesetCount("/root/tmp/list1/nuclcdlist");
- rowcnt = (rowcnt*1) +1;
-
- var seq = "";
- var monnm = grd_nuclcdlist.valueMatrix(0, 3);
- var tuenm = grd_nuclcdlist.valueMatrix(0, 5);
- var wednm = grd_nuclcdlist.valueMatrix(0, 7);
- var thunm = grd_nuclcdlist.valueMatrix(0, 9);
- var frinm = grd_nuclcdlist.valueMatrix(0, 11);
- var satnm = grd_nuclcdlist.valueMatrix(0, 13);
- for (var i=1; i<rowcnt; i++) {
- seq = model.getValue("/root/tmp/list1/nuclcdlist["+ i + "]/seq");
- if (seq == "1") {
- model.setValue("/root/tmp/list1/nuclcdlist["+ i + "]/seq","▣");
- } else if (seq == "2") {
- model.setValue("/root/tmp/list1/nuclcdlist["+ i + "]/seq","-");
- }
- if (i == 1) {
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/monnm",monnm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/tuenm",tuenm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/wednm",wednm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/thunm",thunm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/frinm",frinm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/satnm",satnm);
- model.makeValue("/root/tmp/list1/nuclcdlist["+ i + "]/todate",opt_date.label);
- }
- }
-
- exeReportPreview("RPAEB02700", "XMLSTR", "/root/tmp/list1");
- ]]>
- </script>
- </button>
- <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:590px; top:740px; width:90px; height:19px; "/>
- <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:370px; top:740px; width:85px; height:19px; "/>
- <button id="btn_Previous" class="icon_left" style="left:837px; top:43px; width:26px; height:19px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 기준일자
- var setDate = model.getValue("/root/main/cond/fromdd");
- var sysDate = setDate.toDate("YYYYMMDD");
-
- var nowDate = sysDate.getAddDate(-14,"D");
- nowDate = nowDate.getDateFormat("YYYYMMDD");
- // 기준일자 생성
- model.makeValue("/root/main/cond/fromdd",nowDate);
- model.makeValue("/root/main/cond/todd",setDate);
- model.refresh();
-
- fReqTherapyInfo();
- ]]>
- </script>
- <caption/>
- </button>
- <button id="button6" class="icon_right" style="left:864px; top:43px; width:26px; height:19px; ">
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 기준일자
- var setDate = model.getValue("/root/main/cond/todd");
- var sysDate = setDate.toDate("YYYYMMDD");
-
- var nowDate = sysDate.getAddDate(14,"D");
- nowDate = nowDate.getDateFormat("YYYYMMDD");
- // 기준일자 생성
- model.makeValue("/root/main/cond/fromdd",setDate);
- model.makeValue("/root/main/cond/todd",nowDate);
- model.refresh();
-
- fReqTherapyInfo();
- ]]>
- </script>
- <caption/>
- </button>
- </xhtml:body>
- </xhtml:html>
|