123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334 |
- <?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>멸균의뢰 불출</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <gasdlvflag>2</gasdlvflag>
- <hpdlvflag>2</hpdlvflag>
- <gasdlvdd/>
- <hpdlvdd/>
- <gasreqpridflag/>
- <hpreqpridflag/>
- </main>
- <copynode/>
- <init>
- <daycount/>
- <reqdayflag/>
- </init>
- </root>
- </instance>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- model.property("certyn") = "Y";
- ]]>
- </script>
- <submission id="TRMNG00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/timlist"/>
- <submission id="TRMNG01102" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/holiyn"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- var nextreqprid = "";
- var curdd = "";
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- var dlvdd = opener.javascript.getParameter("reqdd");
- fGetHardCodeInfo("/root/main/cond", "/root/init/daycount", "152");
- if(dlvdd.toDate().getDay() == "6"){
- fGetHardCodeInfo("/root/main/cond2","/root/init/reqdayflag", "173");
- }
- var instcd = opener.javascript.getParameter("instcd");
- var reqdeptcd = opener.javascript.getParameter("reqdeptcd");
-
- model.makeValue("/root/send/reqdata/reqdeptcd",reqdeptcd);
- model.makeValue("/root/send/reqdata/instcd" , instcd);
-
- fSetReqSeq();
- }
-
- function fSetReqSeq() {
- var daykind = "";
- var dlvdd = opener.javascript.getParameter("reqdd");
- var dlvdate = dlvdd.toDate();
-
- model.makeValue("/root/send/reqdata/reqdd", dlvdd);
- submit("TRMNG01102");
-
- //getDay() : 0이면 일요일 6이면 토요일.
- if(model.getValue("/root/init/holiyn/holilist/holiyn") == "Y") { //공휴일일때..
- if(dlvdate.getDay() == "0") {
- daykind = "4";
- } else if(getCurrentWeek() == "6") {
- daykind = "2";
- } else {
- daykind = "2";
- }
- } else {
-
- if(dlvdate.getDay() == "0") {
- daykind = "4";
- } else if(dlvdate.getDay() == "6") {
- daykind = "3";
- } else {
- daykind = "1";
- }
- }
- //휴일유무를 Parameter를 넘겨서 올바른 청구차수 정보들을 가져온다.
- //daykind가 3(일요일) 인경우에는 무조건 응급, 2(평일이면서 공휴일인경우), 1(월-토 이면서 공휴일이 아닌경우)
- model.makeValue("/root/send/reqdata/daykind" , daykind);
-
- submit("TRMNG00503");
-
- var node = instance1.selectSingleNode("/root/init/tmlist/reqtimslist");
- var reqpridflag = opener.javascript.getParameter("reqprid");
- var reqtimscnt = getNodesetCount("/root/init/tmlist/reqtimslist");
-
- if(node != null) {
- if(reqpridflag == "-") { //응급일 경우 현재날짜 지정
- curdd = dlvdd;
- } else {
- for(var i = 1; i <= reqtimscnt; i++) {
- if(reqpridflag == model.getValue("/root/init/tmlist/reqtimslist["+i+"]/cdid")) {
- if(i < reqtimscnt) { // 마지막차수보다 작으면 다음 차수의 여유가 있으므로 다음 차수 지정
- nextreqprid = model.getValue("/root/init/tmlist/reqtimslist["+(i+1)+"]/cdid");
- curdd = dlvdd;
- } else { //마지막차수와 같으면 다음 차수는 다음날이기 때문에 휴일여부를 따져서 날짜 지정
- var addflag = model.getValue("/root/init/reqdayflag/codelist/cdid");
- var diffdt = "";
-
- if((addflag =="E")&&(dlvdate.getDay() == "6")){
- curdd = dlvdate.getAddDate(2,"D").getDateFormat();
- }else{
- if(dlvdate.getDay() == "6"){
- diffdt = model.getValue("/root/init/daycount/codelist/cdid");
- if (isNull(diffdt)== true) {
- diffdt = 2;
- }
- diffdt = parseInt(diffdt);
- } else {
- diffdt = 1;
- }
- curdd = dlvdate.getAddDate(diffdt,"D").getDateFormat();
- }
- nextreqprid = model.getValue("/root/init/tmlist/reqtimslist/cdid");
- }
- }
- }
- }
- }
-
- var dinfdivsgas = opener.javascript.getParameter("dinfdivsgas");
- var dinfdivshp = opener.javascript.getParameter("dinfdivshp");
-
- if(dinfdivsgas == "T") {
- model.setValue("/root/main/gasreqpridflag", nextreqprid);
- model.setValue("/root/main/gasdlvdd", curdd);
- } else {
- grp_biz1.disabled = true;
- rdo_gasdlvflag.disabled = true;
- ipt_gasdlvdd.disabled = true;
- cmb_gasreqpridflag.disabled = true;
- }
- if(dinfdivshp == "T") {
- model.setValue("/root/main/hpreqpridflag", nextreqprid);
- model.setValue("/root/main/hpdlvdd", curdd);
- } else {
- grp_biz2.disabled = true;
- rdo_hpdlvflag.disabled = true;
- ipt_hpdlvdd.disabled = true;
- cmb_hpreqpridflag.disabled = true;
- }
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="540" pageheight="200" guideline="1,733;2,748;2,744;2,732;1,737;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:520px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">멸균의뢰품 불출일 지정</caption>
- </group>
- <group id="grp_biz1" scroll="auto" style="left:0px; top:12px; width:255px; height:143px; border-right-style:solid; ">
- <caption id="caption1" style="left:0px; top:10px; width:235px; height:28px; font-weight:bold; ">
- <![CDATA[멸균의뢰품의 가스멸균의 불출정보를
- 지정합니다.]]>
- </caption>
- <select1 id="rdo_gasdlvflag" ref="/root/main/gasdlvflag" overflow="visible" appearance="full" vcellspacing="10" style="left:25px; top:40px; width:165px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>청구일자, 청구차수로 불출</label>
- <value>1</value>
- </item>
- <item>
- <label>지정불출</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_gasdlvflag.attribute("ref")) == "1") {
- ipt_gasdlvdd.disabled = true;
- cmb_gasreqpridflag.disabled = true;
-
- model.resetInstanceNode(ipt_gasdlvdd.attribute("ref"));
- model.resetInstanceNode(cmb_gasreqpridflag.attribute("ref"));
-
- ipt_gasdlvdd.refresh();
- cmb_gasreqpridflag.refresh();
- } else {
- ipt_gasdlvdd.disabled = false;
- cmb_gasreqpridflag.disabled = false;
- ipt_gasdlvdd.value = curdd;
- cmb_gasreqpridflag.value = nextreqprid;
-
- }
- ]]>
- </script>
- </select1>
- <caption id="caption2" style="left:60px; top:90px; width:80px; height:20px; font-weight:bold; ">불출예정일 :</caption>
- <caption id="caption3" style="left:48px; top:115px; width:90px; height:20px; font-weight:bold; ">예정불출차수 :</caption>
- <input id="ipt_gasdlvdd" ref="/root/main/gasdlvdd" class="input_default" inputtype="date" style="left:140px; top:90px; width:100px; height:19px; "/>
- <select1 id="cmb_gasreqpridflag" ref="/root/main/gasreqpridflag" appearance="minimal" style="left:140px; top:115px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmlist/reqtimslist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- <button id="button1" class="btn5_letter2" style="left:470px; top:162px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reqprid = opener.javascript.getParameter("reqprid");
- var reqdd = opener.javascript.getParameter("reqdd");
-
- var dinfdivsgas = opener.javascript.getParameter("dinfdivsgas");
- var dinfdivshp = opener.javascript.getParameter("dinfdivshp");
-
- if(dinfdivsgas == "T") {
- if(model.getValue(rdo_gasdlvflag.attribute("ref")) == "1") {
- opener.javascript.setParameter("CERTYN", "Y");
- opener.window.javascript.setParameter("gasdlvdd",reqdd);
- opener.window.javascript.setParameter("gasreqpridflag",reqprid);
- opener.window.javascript.setParameter("gasdlvflag" ,"1");
-
- } else if(model.getValue(rdo_gasdlvflag.attribute("ref")) == "2"){
- opener.javascript.setParameter("CERTYN", "Y");
- opener.window.javascript.setParameter("gasdlvdd" ,model.getValue(ipt_gasdlvdd.attribute("ref")));
- opener.window.javascript.setParameter("gasreqpridflag" ,model.getValue(cmb_gasreqpridflag.attribute("ref")));
- opener.window.javascript.setParameter("gasdlvflag" ,"2");
- }
- } else {
-
- }
- if(dinfdivshp == "T") {
- if(model.getValue(rdo_hpdlvflag.attribute("ref")) == "1") {
- opener.javascript.setParameter("CERTYN", "Y");
- opener.window.javascript.setParameter("hpdlvdd",reqdd);
- opener.window.javascript.setParameter("hpreqpridflag",reqprid);
- opener.window.javascript.setParameter("hpdlvflag" ,"1");
-
- } else if(model.getValue(rdo_hpdlvflag.attribute("ref")) == "2"){
- opener.javascript.setParameter("CERTYN", "Y");
- opener.window.javascript.setParameter("hpdlvdd" ,model.getValue(ipt_hpdlvdd.attribute("ref")));
- opener.window.javascript.setParameter("hpreqpridflag" ,model.getValue(cmb_hpreqpridflag.attribute("ref")));
- opener.window.javascript.setParameter("hpdlvflag" ,"2");
- }
- }
-
- opener.javascript.fGasSave();
- window.close();
- ]]>
- </script>
- </button>
- <group id="grp_biz2" scroll="auto" style="left:255px; top:12px; width:265px; height:143px; ">
- <caption id="caption4" style="left:10px; top:10px; width:247px; height:28px; font-weight:bold; ">
- <![CDATA[멸균의뢰품의 고압증기멸균의 불출정보를
- 지정합니다.]]>
- </caption>
- <select1 id="rdo_hpdlvflag" ref="/root/main/hpdlvflag" overflow="visible" appearance="full" vcellspacing="10" style="left:35px; top:40px; width:165px; height:50px; border-style:none; ">
- <choices>
- <item>
- <label>청구일자, 청구차수로 불출</label>
- <value>1</value>
- </item>
- <item>
- <label>지정불출</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue(rdo_hpdlvflag.attribute("ref")) == "1") {
- ipt_hpdlvdd.disabled = true;
- cmb_hpreqpridflag.disabled = true;
-
- model.resetInstanceNode(ipt_hpdlvdd.attribute("ref"));
- model.resetInstanceNode(cmb_hpreqpridflag.attribute("ref"));
-
- ipt_hpdlvdd.refresh();
- cmb_hpreqpridflag.refresh();
- } else {
- ipt_hpdlvdd.disabled = false;
- cmb_hpreqpridflag.disabled = false;
- ipt_hpdlvdd.value = curdd;
- cmb_hpreqpridflag.value = nextreqprid;
-
- }
- ]]>
- </script>
- </select1>
- <caption id="caption5" style="left:65px; top:90px; width:80px; height:20px; font-weight:bold; ">불출예정일 :</caption>
- <caption id="caption7" style="left:53px; top:115px; width:90px; height:20px; font-weight:bold; ">예정불출차수 :</caption>
- <input id="ipt_hpdlvdd" ref="/root/main/hpdlvdd" class="input_default" inputtype="date" style="left:145px; top:90px; width:100px; height:19px; "/>
- <select1 id="cmb_hpreqpridflag" ref="/root/main/hpreqpridflag" appearance="minimal" style="left:145px; top:115px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmlist/reqtimslist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </select1>
- </group>
- <button id="button2" class="btn5_letter2" visibility="hidden" style="left:420px; top:162px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|