123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>처방 희망일 지정</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <prcplist>
- <prcpinfo/>
- </prcplist>
- </main>
- <send>
- <pid/>
- </send>
- <hidden>
- <dayflag>T</dayflag>
- <hopedd/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPEA00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcplist/prcpinfo"/>
- <submission id="TXPEA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/prcplist/prcpinfo" replace="instance" resultref="/root/main/prcplist/prcpinfo"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- grd_prcp.fixedcellcheckbox(0, grd_prcp.colRef("chk")) = true;
- grd_prcp.fixedcellischeck(0, grd_prcp.colRef("chk")) = true;
-
- var pid = opener.javascript.getParameter("SPPEA00103_pid");
-
- if (pid != "") {
- model.setValue("/root/send/pid", pid);
- ipt_pid.refresh();
- btn_search.dispatch("DOMActivate");
- }
-
- model.setValue("/root/hidden/hopedd", getCurrentDate());
- ipt_hopedd.refresh();
-
- ]]>
- </script>
- </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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:125px; height:13px; ">
- <![CDATA[처방 희망일 지정]]>
- </caption>
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:285px; top:20px; width:910px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_prcp" nodeset="/root/main/prcplist/prcpinfo" backcoloralternate="transparent" caption="^등록번호^이름^처방일^진료과^진료의^구분^처방코드^처방명^상태^시행부서^다음진료일^다음검사일^처방희망일" colsep="^" colwidth="25, 60, 60, 80, 110, 60, 40, 80, 220, 80, 110, 80, 80, 90" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1195px; height:675px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="orddepthngnm"/>
- <col ref="orddrnm"/>
- <col ref="prcpgenrflagnm"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm" style="text-align:left; "/>
- <col ref="prcpstatnm"/>
- <col ref="prcpexecdeptnm"/>
- <col ref="nextorddd" format="yyyy-mm-dd"/>
- <col ref="nextrsrvdd" format="yyyy-mm-dd"/>
- <col ref="prcphopedd" format="yyyy-mm-dd" style="font-weight:bold; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_prcp.row;
- var chk = model.getValue("/root/main/prcplist/prcpinfo[" + row + "]/chk") == "Y" ? "N" : "Y";
-
- model.setValue("/root/main/prcplist/prcpinfo[" + row + "]/chk", chk);
-
- if (chk != "Y") {
- model.setValue("/root/main/prcplist/prcpinfo[" + row + "]/prcphopedd", model.getValue("/root/main/prcplist/prcpinfo[" + row + "]/org_prcphopedd"));
- }
- grd_prcp.refresh();
-
- grd_prcp.rowStyle(row, "data", "background-color") = chk == "Y" ? "#ffffc7" : "#ffffff";
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if (grd_prcp.col != grd_prcp.colRef("chk")) {
- return;
- }
-
- var chk = model.getValue("/root/main/prcplist/prcpinfo[" + grd_prcp.row + "]/chk");
-
- if (chk != "Y") {
- model.setValue("/root/main/prcplist/prcpinfo[" + grd_prcp.row + "]/prcphopedd", model.getValue("/root/main/prcplist/prcpinfo[" + grd_prcp.row + "]/org_prcphopedd"));
- }
-
- grd_prcp.rowStyle(grd_prcp.row, "data", "background-color") = chk == "Y" ? "#ffffc7" : "#ffffff";
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_prcp.row > 0 || grd_prcp.col != grd_prcp.colRef("chk")) {
- return;
- }
-
- grd_prcp.allStyle("data", "background-color") = grd_prcp.fixedcellischeck(0, grd_prcp.colRef("chk")) ? "#ffffc7" : "#ffffff";
-
- ]]>
- </script>
- </datagrid>
- <line id="line16" class="line_1" style="x1:0px; y1:80px; x2:1195px; y2:80px; "/>
- <select1 id="rdo_dayflag" ref="/root/hidden/dayflag" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:470px; top:29px; width:300px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>오늘</label>
- <value>T</value>
- </item>
- <item>
- <label>진료 예약일</label>
- <value>O</value>
- </item>
- <item>
- <label>검사 예약일</label>
- <value>E</value>
- </item>
- <item>
- <label>직접 지정</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- switch (model.getValue("/root/hidden/dayflag")) {
- case "T" :
- ipt_hopedd.disabled = true;
- model.setValue("/root/hidden/hopedd", getCurrentDate());
- break;
- case "O" :
- ipt_hopedd.disabled = true;
- model.setValue("/root/hidden/hopedd", "");
- break;
- case "E" :
- ipt_hopedd.disabled = true;
- model.setValue("/root/hidden/hopedd", "");
- break;
- case "D" :
- ipt_hopedd.disabled = false;
- model.setValue("/root/hidden/hopedd", getCurrentDate());
- break;
- default : break;
- }
-
- rdo_dayflag.refresh();
- ipt_hopedd.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_hopedd" ref="/root/hidden/hopedd" disabled="true" inputtype="date" style="left:785px; top:28px; width:100px; height:19px; font-weight:bold; text-align:center; background-color:#ffffa0; "/>
- <button id="btn_set" class="btn2_letter4" style="left:895px; top:28px; width:64px; height:19px; ">
- <caption>일괄지정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var flag = model.getValue("/root/hidden/dayflag");
- var hopedd = model.getValue("/root/hidden/hopedd");
-
- var path = "/root/main/prcplist/prcpinfo";
- var cnt = instance1.selectNodes(path).length;
-
- for (var i = 1; i <= cnt; i++) {
- if (model.getValue(path + "[" + i + "]/chk") != "Y") {
- continue;
- }
-
- if (flag == "O") {
- model.setValue(path + "[" + i + "]/prcphopedd", model.getValue(path + "[" + i + "]/nextorddd"));
- } else if (flag == "E") {
- model.setValue(path + "[" + i + "]/prcphopedd", model.getValue(path + "[" + i + "]/nextrsrvdd"));
- } else {
- model.setValue(path + "[" + i + "]/prcphopedd", hopedd);
- }
-
- grd_prcp.cellStyle("color", i, grd_prcp.colRef("prcphopedd")) = "#0000ff";
- grd_prcp.cellStyle("font-weight", i, grd_prcp.colRef("prcphopedd")) = "bold";
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:27px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (messageBox("처방 희망일을 저장하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- submit("TXPEA00104");
-
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <caption id="caption75" class="search_name" style="left:295px; top:29px; width:166px; height:17px; ">처방 희망일 일괄 지정 :</caption>
- <caption id="caption1" class="tit_2" style="left:0px; top:65px; width:105px; height:13px; ">대상 처방 목록</caption>
- <button id="btn_close" class="btn4_letter2" style="left:1131px; top:27px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:275px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" navindex="1" style="left:98px; top:28px; width:70px; height:19px; font-weight:bold; text-align:center; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- inputEnterKey("btn_search", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <line id="line13" class="line_4" style="x1:200px; y1:27px; x2:200px; y2:49px; "/>
- <button id="btn_pid" class="icon_search" style="left:175px; top:29px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeNode("/root/main/patinfo/patinfolist");
-
- modal("SPPMC02500", "", "200", "200");
-
- if (model.getValue("/root/main/popupendflag") != "cancel") {
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- btn_search.dispatch("DOMActivate");
- } else {
- model.removenode("/root/main/patinfo");
- }
- ]]>
- </script>
- </button>
- <caption id="caption17" class="search_name" style="left:5px; top:29px; width:91px; height:17px; ">등록번호 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:210px; top:27px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/pid") == "") {
- messageBox("등록번호를 입력해 주십시오.", "E999");
- return;
- }
-
- grd_prcp.fixedcellischeck(0, grd_prcp.colRef("chk")) = true;
-
- submit("TRPEA00112");
-
- var cnt = instance1.selectNodes("/root/main/prcplist/prcpinfo").length;
-
- grd_prcp.allStyle("data", "background-color") = "#ffffc7";
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1055px; y1:27px; x2:1055px; y2:49px; "/>
- </xhtml:body>
- </xhtml:html>
|