123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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>
- <assgtrgtmanlist>
- <assgtrgtman>
- <pid/>
- <hngnm/>
- <sex/>
- <age/>
- <io/>
- <depthngnm/>
- <deptcd/>
- </assgtrgtman>
- </assgtrgtmanlist>
- <patinfo>
- <patinfolist>
- <hngnm/>
- </patinfolist>
- </patinfo>
- <subinfolist>
- <ordspec>
- <lvl/>
- <prcpnm/>
- <prcpdd/>
- <rgstr/>
- <cnfmexecr/>
- <optexecr/>
- <execprcpuniqno/>
- <check/>
- <pid/>
- <prcpno/>
- <excuroomcd/>
- </ordspec>
- <bfassgprescond>
- <usernm/>
- <assgdd/>
- </bfassgprescond>
- </subinfolist>
- <assgprescondlist>
- <assgprescond>
- <curernm/>
- <curerid/>
- <assgdd/>
- <lastupdusr/>
- <lastupdtdt/>
- <execprcpuniqno/>
- </assgprescond>
- </assgprescondlist>
- <assglistbycurer>
- <curerprescond>
- <execrid/>
- <execdd/>
- <execyn/>
- <count/>
- </curerprescond>
- </assglistbycurer>
- <codelist/>
- </main>
- <send>
- <req>
- <data/>
- <uniqnolist/>
- </req>
- <excuroomcd/>
- <execdd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <fromdd/>
- <todd/>
- <pid/>
- <deptcd/>
- <io/>
- <execprcpuniqno/>
- <prcpdd/>
- <flag/>
- <retroomcd/>
- <assgflag/>
- <grupcdid/>
- <jciyn/>
- </send>
- <init>
- <curerprescondlist>
- <curerprescond>
- <sortno/>
- <usernm/>
- <userid/>
- </curerprescond>
- </curerprescondlist>
- <assgprescondlistbycurer>
- <curerprescond>
- </curerprescond>
- </assgprescondlistbycurer>
- <excuroomlist>
- <excuroom>
- <basecd/>
- <basecdflagdesc/>
- </excuroom>
- </excuroomlist>
- <treeflag>true</treeflag>
- <cmb_info/>
- </init>
- <hidden>
- <count/>
- <deptcd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
-
- var deptcd = getParameter("SMAEA01200_Param_doctorYn");
-
- if (deptcd == "Y") {
- model.setValue("/root/send/globalinstance/instance1", "2220000000");
- }
-
- model.setValue("/root/send/fromdd", getCurrentDate());//.toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate());
- model.setValue("/root/send/execdd", getCurrentDate().substr(0,6));
-
- model.removeNodeset("/root/main/assgtrgtmanlist/assgtrgtman");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
- model.removeNodeset("/root/main/assglistbycurer/curerprescond");
-
- submit("TRAEA01801");
- cmb_excuroom.select(0);
-
- submit("TRAEA01802");
-
- model.setValue("/root/send/flag","bf");
- submit("TRAEA01803");
- submit("TRAEA01201", false);
-
- grd_ordspec.fixedcellcheckbox(0,0) =true;
-
- cmb_excuroom2.select(0);
-
- // JCI 적용 여부
- model.setValue("/root/send/grupcdid","JCI01");
- model.removenode("/root/main/codelist");
- if (submit("TRAEB00010")) {
- var cnt = getNodesetCount("/root/main/codelist/item");
- if (cnt > 0) {
- var jciyn = model.getValue("/root/main/codelist/item[1]/cdid");
- model.setValue("/root/send/jciyn", jciyn);
- if (jciyn == "Y") {
- btn_patedu.visible = true;
- } else {
- btn_patedu.visible = false;
- }
- } else {
- btn_patedu.visible = false;
- }
- }
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/excuroomlist"/>
- <submission id="TRAEA01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/curerprescondlist"/>
- <submission id="TRAEA01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/assgtrgtmanlist"/>
- <submission id="TRAEA01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/subinfolist"/>
- <submission id="TRAEA01805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/assglistbycurer"/>
- <submission id="TXAEA01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
- <submission id="TRAEA01806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/assgprescondlist"/>
- <submission id="TRAEA01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/globalinstance/instance1" resultref="/root/init/cmb_info"/>
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/codelist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 치료사배정(재활)
- * @ver : 2007.05.16
- * @by : 이선경
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 치료사별 실시/미실시 데이터를 grd_allassgprescond에 바인딩 하는 Function
- */
- function fCurerExecPresCondList() {
- /*
- model.removeNodeset("/root/init/assgprescondlistbycurer/curerprescond");
- model.removeNodeset("/root/main/assglistbycurer/curerprescond");
- model.refresh();
-
- model.copyNode("/root/init/assgprescondlistbycurer","/root/init/curerprescondlist");
-
-
-
- for (var i = 1; i < grd_curerprescond.rows ; i++) {
- for (var j = 1; j <= validday; j++) {
- model.makeValue("/root/init/assgprescondlistbycurer/curerprescond[" + i + "]/d"+j, "./.");
- }
- }
- */
-
- var validday = (model.getValue("/root/send/execdd")+"01").toDate().getMonthDay();
-
- if(validday == 28) {
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = true;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = true;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
- } else if(validday == 29) {
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = true;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
- }else if (validday == 30) {
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = false;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = true;
- } else {
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d29")) = false;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d30")) = false;
- grd_allassgprescond.colHidden(grd_allassgprescond.colRef("d31")) = false;
- }
-
- var startrow = grd_curerprescond.row+1;
- if(startrow <= 0) {
- startrow = 1;
- }
-
- submit("TRAEA01805");
- /*
- var precount = "./.";
- var data = "./.";
-
- for (var i = 1; i <= grd_temp.rows-1; i++) {
- var curerid = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execrid");
- var dd = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execdd");
- var execyn = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/execyn");
- var count = model.getValue("/root/main/assglistbycurer/curerprescond[" + i + "]/count");
-
- alert(execyn);
- if (execyn == "Y") {
- data = precount.setReplaceWord("./", count + "/");
- alert(data + " " + precount);
- } else if (execyn == "N") {
- data = precount.setReplaceWord("/.", "/" + count);
- alert(data + " " + precount);
- }
- var rowidx = grd_allassgprescond.findRow(curerid, 1, parseInt(grd_allassgprescond.colRef("userid")));
-
- if (rowidx > 0){
- alert(data);
- model.setValue("/root/init/assgprescondlistbycurer/curerprescond[" + rowidx + "]/d" + dd, data);
- }
- }
- */
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <datagrid id="grd_assgtrgtman" nodeset="/root/main/assgtrgtmanlist/assgtrgtman" caption="등록번호^환자명^성별^나이^구분^진료과^deptcd^orddd^cretno" colsep="^" colwidth="60, 60, 30, 30, 31, 68, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:85px; width:305px; height:230px; ">
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output"/>
- <col ref="sex" type="output"/>
- <col ref="age" type="output"/>
- <col ref="io" type="output"/>
- <col ref="depthngnm" type="output"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- grd_ordspec.fixedcellischeck(0,0) =false;
-
- model.removeNodeset("/root/main/subinfolist");
- model.refresh();
-
- if( isDataCell() ){
-
- //model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- var idx = grd_assgtrgtman.row;
-
- model.setValue("/root/send/deptcd", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/deptcd"));
- model.setValue("/root/send/pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/pid"));
- model.setValue("/root/send/io", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + idx + " ]/io"));
- model.setValue("/root/send/fromdd", ipt_fromdd.value);
- model.setValue("/root/send/todd", ipt_todd.value);
-
- submit("TRAEA01804", false);
-
- model.setValue("/root/send/pid", "");
- model.refresh();
-
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_ordspec,2,1,true);
- } else {
- setTree(grd_ordspec,2,1,false);
- }
-
- for(var k = 1; k < grd_ordspec.rows; k++) {
- if (model.getValue("/root/main/subinfolist/ordspec[" + k + "]/lvl") == 1) {
-
- if(grd_ordspec.valueMatrix(k, grd_ordspec.colRef("cnfmexecrnm")) == "") {
- grd_ordspec.valueMatrix(k, grd_ordspec.colRef("cnfmexecrnm")) = grd_ordspec.valueMatrix(k+1, grd_ordspec.colRef("cnfmexecrnm"));
- }
-
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_assgtrgtman.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">치료사 배정</caption>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:1080px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:10px; top:30px; width:88px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">처방일자 :</caption>
- <caption id="caption21" class="tit_2" style="left:5px; top:329px; width:111px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">이전 배정현황</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:345px; x2:310px; y2:346px; "/>
- <caption id="caption18" class="cell_1" style="left:5px; top:470px; width:120px; height:23px; vertical-align:middle; ">치료사별 실시 현황</caption>
- <caption id="caption15" class="cell_1" style="left:220px; top:470px; width:91px; height:23px; vertical-align:middle; ">(실시/미실시)</caption>
- <caption id="caption1" class="tit_2" style="left:320px; top:63px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">처방내역</caption>
- <line id="line3" class="line_1" style="x1:318px; y1:81px; x2:1090px; y2:82px; "/>
- <caption id="caption2" class="tit_2" style="left:1096px; top:6px; width:82px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">치료사현황</caption>
- <line id="line4" class="line_1" style="x1:1097px; y1:51px; x2:1195px; y2:51px; "/>
- <line id="line5" class="line_1" style="x1:5px; y1:81px; x2:310px; y2:82px; "/>
- <caption id="caption4" class="tit_2" style="left:5px; top:505px; width:82px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">배정현황</caption>
- <line id="line6" class="line_1" style="x1:2px; y1:520px; x2:1192px; y2:521px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1016px; top:27px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(ipt_fromdd.value > ipt_todd.value){
- messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- }
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- model.setValue("/root/send/flag","bf");
- submit("TRAEA01803",false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- btn_assgtrgtman.selected = true;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:949px; top:470px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>배정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*var update = getGridUpdateData(grd_assgprescond);
-
- if(update == ""){
- messageBox("치료사를 ", "C002");
- } else {
- */
- for (var i = 1; i < grd_ordspec.rows; i ++){
- var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
-
- if(check == "Y") {
- if (model.getValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrnm") == ""){
- messageBox(i + "번째 행에 확정치료사를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- }
- }
- var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y' and lvl='2']");
-
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- model.setValue("/root/send/req/uniqnolist", rCSV);
-
- model.setValue("/root/send/assgflag", "Y");
-
- //model.setValue("/root/send/req/data",update);
- //model.setValue("/root/send/req/pid",model.getValue("/root/send/subinfo/pid"));
- //model.setValue("/root/send/req/excuroomcd",model.getValue("/root/send/excuroomcd"));
- submit("TXAEA01801",false);
-
- submit("TRAEA01803", false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
- model.setValue("/root/send/pid", "");
- model.refresh();
-
- //messageBox("치료사 배정이 ", "I001");
- //}
- ]]>
- </script>
- </button>
- <datagrid id="grd_bfassgprescond" nodeset="/root/main/subinfolist/bfassgprescond" caption="치료사^배정일자" colsep="^" colwidth="85, 195" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:348px; width:305px; height:117px; ">
- <col ref="usernm"/>
- <col ref="assgdd" format="yyyy-mm-dd"/>
- </datagrid>
- <datagrid id="grd_ordspec" nodeset="/root/main/subinfolist/ordspec" caption="^±^level^내용^처방일자^등록자^확정치료사^임시치료사^pid" colsep="^" colwidth="34, 22, 100, 399, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:318px; top:85px; width:770px; height:380px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox"/>
- <col/>
- <col ref="lvl" visibility="hidden"/>
- <col ref="prcpnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="rgstr"/>
- <col ref="cnfmexecrnm"/>
- <col ref="cnfmexecrid" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="excuroomcd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
-
- model.setValue("/root/send/pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + " ]/pid"));
-
- if (model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/lvl") == 1) {
- var check = model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/check");
-
- for (var i = grd_ordspec.row + 1; i < grd_ordspec.rows; i++) {
- if (model.getValue("/root/main/subinfolist/ordspec[" + i + "]/lvl") == 2) {
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/check", check);
- } else {
- return;
- }
- }
- } else {
- /*if (model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/lvl") == 1) {
- model.setValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/check","N");
- return 0;
- } else {
- model.setValue("/root/send/execprcpuniqno",model.getValue("/root/main/subinfolist/ordspec[ " + grd_ordspec.row + "]/execprcpuniqno"));
- model.setValue("/root/send/prcpdd",model.getValue("/root/main/subinfolist/ordspec[ " + grd_ordspec.row + "]/prcpdd"));
- submit("TRAEA01806", false);
- */
-
- //}
- }
-
- model.setValue("/root/send/pid", "");
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_allassgprescond" nodeset="/root/main/assglistbycurer/curerprescond" caption="치료사^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31" colsep="^" colwidth="70, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:2px; top:524px; width:1193px; height:232px; ">
- <col ref="usernm"/>
- <col ref="d1"/>
- <col ref="d2"/>
- <col ref="d3"/>
- <col ref="d4"/>
- <col ref="d5"/>
- <col ref="d6"/>
- <col ref="d7"/>
- <col ref="d8"/>
- <col ref="d9"/>
- <col ref="d10"/>
- <col ref="d11"/>
- <col ref="d12"/>
- <col ref="d13"/>
- <col ref="d14"/>
- <col ref="d15"/>
- <col ref="d16"/>
- <col ref="d17"/>
- <col ref="d18"/>
- <col ref="d19"/>
- <col ref="d20"/>
- <col ref="d21"/>
- <col ref="d22"/>
- <col ref="d23"/>
- <col ref="d24"/>
- <col ref="d25"/>
- <col ref="d26"/>
- <col ref="d27"/>
- <col ref="d28"/>
- <col ref="d29"/>
- <col ref="d30"/>
- <col ref="d31"/>
- <col ref="userid" visibility="hidden"/>
- </datagrid>
- <datagrid id="grd_curerprescond" nodeset="/root/init/curerprescondlist/curerprescond" caption="No^치료사" colsep="^" colwidth="30, 64" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:1098px; top:55px; width:97px; height:411px; ">
- <col ref="sortno" type="output" visibility="hidden"/>
- <col ref="usernm" type="output"/>
- <col ref="userid" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
-
- var assgid = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curerprescond.row + "]/userid");
- var assgnm = model.getValue("/root/init/curerprescondlist/curerprescond[" + grd_curerprescond.row + "]/usernm");
-
- for(var i = 1; i < grd_ordspec.rows; i++) {
- var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
-
- if(check == "Y") {
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrid", assgid);
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/cnfmexecrnm", assgnm);
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/assgdd", getCurrentDate());
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/excuroomcd", model.getValue("/root/send/excuroomcd"));
- }
- }
-
- for(var i = 1; i < grd_ordspec.rows; i++) {
- var check = model.getValue("/root/main/subinfolist/ordspec[" + i + "]/check");
-
- if(check == "Y") {
- model.setValue("/root/main/subinfolist/ordspec[" + i + "]/check", "N");
- }
- }
- //alert(rCSV);
-
- //if(model.getValue("/root/main/subinfolist/ordspec[" + grd_ordspec.row + "]/execprcpuniqno") != 0) {
-
- /*grd_assgprescond.addRow();
- model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/curernm", model.getValue("/root/init/curerprescondlist/curerprescond [" + grd_curerprescond.row + "]/usernm"));
- model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/curerid", model.getValue("/root/init/curerprescondlist/curerprescond [" + grd_curerprescond.row + "]/userid"));
- model.makeValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/assgdd", getCurrentDate());
- */
- model.refresh();
- /*
- var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y']");
-
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 선택해 주십시오.","I999");
- return "0";
- }
-
- model.setValue("/root/send/req/uniqnolist", rCSV);
- */
- //model.setValue("/root/main/assgprescondlist/assgprescond["+ grd_assgprescond.row + "]/execprcpuniqno", model.getValue("/root/main/subinfolist/ordspec [" + grd_ordspec.row + "]/execprcpuniqno"));
- //grd_assgprescond.refresh();
- //}
-
-
- }
- ]]>
- </script>
- </datagrid>
- <input id="ipt_curerexecprescond" ref="/root/send/execdd" class="input_search" inputtype="date" format="yyyy-mm" style="left:127px; top:470px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fCurerExecPresCondList();
- ]]>
- </script>
- </input>
- <button id="btn_assgtrgtman" class="btn_sw" navindex="5" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:5px; top:58px; width:72px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>배정대상자</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/flag","bf");
-
- submit("TRAEA01803", false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_assgman" class="btn_sw" group="tab" selected="false" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:77px; top:58px; width:48px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
- <caption>배정자</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/flag","aft");
-
- submit("TRAEA01803",false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_excuroom" ref="/root/send/excuroomcd" class="combo_default" appearance="minimal" editmode="search" style="left:1095px; top:25px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/excuroomlist/excuroom">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/basecd", model.getValue("/root/send/excuroomcd"));
- submit("TRAEA01802");
- fCurerExecPresCondList();
- ]]>
- </script>
- </select1>
- <datagrid id="grd_temp" nodeset="/root/main/assglistbycurer/curerprescond" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5" colsep="^" colwidth="100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:360px; top:580px; width:430px; height:160px; ">
- <col ref="execrid"/>
- <col ref="execdd"/>
- <col ref="execyn"/>
- <col ref="count"/>
- </datagrid>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="3" style="left:405px; top:28px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_sea","DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button61" class="icon_search" style="left:508px; top:30px; width:16px; height:16px; background-image:../../../com/commonweb/images/icon_search.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/pid","/root/main/send");
-
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:315px; top:29px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" style="left:203px; top:28px; width:100px; height:19px; text-align:center; "/>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" style="left:100px; top:28px; width:100px; height:19px; text-align:center; "/>
- <output id="opt_patnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:530px; top:29px; width:117px; height:19px; "/>
- <select1 id="radio1" ref="/root/init/treeflag" appearance="full" cols="2" overflow="visible" style="left:400px; top:60px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>통합적 보기</label>
- <value>true</value>
- </item>
- <item>
- <label>세부적 보기</label>
- <value>false</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var flag = model.getValue("/root/init/treeflag");
-
- if (flag == "true") {
- setTree(grd_ordspec,2,1,true);
- } else {
- setTree(grd_ordspec,2,1,false);
- }
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:660px; top:30px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">치료실 :</caption>
- <select1 id="cmb_excuroom2" ref="/root/send/retroomcd" class="combo_default" navindex="3" appearance="minimal" style="left:735px; top:28px; width:107px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initexecroom">
- <label ref="excuroomcdnm"/>
- <value ref="excuroomcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(ipt_fromdd.value > ipt_todd.value){
- messageBox("조회시작일자가 조회종료일자보다 큽니다. 다시","C002");
- }
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- model.setValue("/root/send/flag","bf");
- submit("TRAEA01803",false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- btn_assgtrgtman.selected = true;
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_assgcncl" class="btn4_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1010px; top:470px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>배정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*var update = getGridUpdateData(grd_assgprescond);
-
- if(update == ""){
- messageBox("치료사를 ", "C002");
- } else {
-
- */
- var nodeList = instance1.selectNodes("/root/main/subinfolist/ordspec[check='Y' and lvl='2']");
-
- var rCSV = getNodeListCSV(nodeList);
-
- //alert(rCSV);
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return "0";
- }
-
- model.setValue("/root/send/req/uniqnolist", rCSV);
-
- model.setValue("/root/send/assgflag", "N");
-
- //model.setValue("/root/send/req/data",update);
- //model.setValue("/root/send/req/pid",model.getValue("/root/send/subinfo/pid"));
- //model.setValue("/root/send/req/excuroomcd",model.getValue("/root/send/excuroomcd"));
- submit("TXAEA01801",false);
-
- submit("TRAEA01803", false);
-
- model.removeNodeset("/root/main/subinfolist/ordspec");
- model.removeNodeset("/root/main/subinfolist/bfassgprescond");
- model.removeNodeset("/root/main/assgprescondlist/assgprescond");
-
- model.setValue("/root/send/pid", "");
- model.refresh();
-
- //messageBox("치료사 배정이 ", "I001");
- //}
- ]]>
- </script>
- </button>
- <button id="button6" class="btn3_letter7" style="left:3px; top:760px; width:116px; height:22px; ">
- <caption>Alarm Notify</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- //modal("SPAEA02000", "", "", "" ,"SPAEA02000", "", "");
- openInternal("modeless_topmost","SPAEA02000","scn",1,1000,0,0,"","", "min:hidden;max:hidden;", 0);
- ]]>
- </script>
- </button>
- <button id="button14" class="btn3_letter4" style="left:125px; top:760px; width:80px; height:22px; ">
- <caption>결과조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //상단정보 초기화
- delPatientInfos();
-
- modal("SMAER00800","","","","","/root/send/data/srchpid","/root/send/data/singdata/srchpid");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn3_letter6" style="left:210px; top:760px; width:104px; height:22px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- setParameter("SMMRI00400_param_pid", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/pid"));
- setParameter("SMMRI00400_param_chosflag", model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/io"));
- //내원구분은 I O S E D 모두 가능
-
- modal("SMMRI00400", "", "", "" ,"SMMMR01600", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_patedu" class="btn3_letter4" style="left:317px; top:760px; width:80px; height:22px; background-image:../../../com/commonweb/images/btn3_letter9.gif; ">
- <caption>환자교육</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var pid = model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/pid");
- var ordd = model.getValue("/root/main/assgtrgtmanlist/assgtrgtman[" + grd_assgtrgtman.row + "]/orddd");
- var orddd = ordd.substring(0,8);
- var cretno = ordd.substring(8, ordd.length);
-
- var educd = "";
- var educnts = "";
-
- setParameter("SPMRJ00200_pid", pid); // 수진키 필수
- setParameter("SPMRJ00200_orddd", orddd); // 수진키 필수
- setParameter("SPMRJ00200_cretno", cretno); // 수진키 필수
- setParameter("SPMRJ00200_educd", educd); // 교육항목 옵션
- setParameter("SPMRJ00200_educnts", educnts); // 교육내용 옵션
- modal("SPMRJ00200");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|