123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/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>CSR 마감 시간 등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <csrtmlist>
- <instcd/>
- <csrreqdeptcd/>
- <daykind/>
- <reqseq/>
- <clotm/>
- <cmt/>
- </csrtmlist>
- </main>
- <send>
- <instcd/>
- <csrtmlist/>
- <scsrreqdeptcd/>
- </send>
- <init>
- <csrdept>
- <label>외래</label>
- <value>1</value>
- <label>병동</label>
- <value>2</value>
- <label>OR</label>
- <value>3</value>
- <label>ER</label>
- <value>4</value>
- <label>기타</label>
- <value>5</value>
- </csrdept>
- <daykind>
- <label>매일</label>
- <value>1</value>
- <label>평일</label>
- <value>2</value>
- <label>휴일</label>
- <value>3</value>
- </daykind>
- </init>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- model.removeNodeset("/root/main/csrtmlist");
- model.resetInstanceNode("/root/send");
- model.refresh();
-
- misfGridInit(grd_csrtmlist);
-
- //기관코드 셋팅
- //misfComboComCdList("Z0007", cmb_instcd);
-
- //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
-
- misfGridComboComCdList("R0270",grd_csrtmlist,"daykind");
- misfGridComboComCdList("R0269",grd_csrtmlist,"csrreqdeptcd");
-
-
- misfComboComCdListMulti("Z0007,R0269", "cmb_instcd,rdo_csrreqdeptcd");
-
- rszfComboAppendBlankChild("rdo_csrreqdeptcd");
-
- misfMsterDetailSet(grd_csrtmlist,null,"TRRSC06301","Y"); //마스터 설정
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_prt.disabled= !(checkAuth("P"));
-
- model.refresh();
- }
-
- function fsearch(){
-
- var updtdata = getGridUpdateData(grd_csrtmlist);
-
- //기관코드 값 체크
- if ( updtdata != "") {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- misfMsterDetailRetrieve();
-
- misfSetReadOnlyCol(grd_csrtmlist, "csrreqdeptcd,daykind, reqseq", true);
- model.refresh();
- }
-
- function fsave(){
-
- if(!checkKeyColumn("grd_csrtmlist")) return;
-
- var updtdata = getGridUpdateData(grd_csrtmlist);
-
- if (updtdata == "")
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- rtn = messageBox("", "Q002");
- if(rtn != "6" ) return false;
-
- misfSave("TXRSC06301");
-
- btn_search.dispatch("DOMActivate");
- }
-
- function fCheckTime()
- {
- if(grd_csrtmlist.col == grd_csrtmlist.colRef("clotm"))
- {
- var sTime = grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm"));
-
- if(sTime == "" || sTime == null)
- {
- return;
- }
- if(sTime.length != 4)
- {
- messageBox("네자리를 ","C001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
-
- var sFrontTime = sTime.substr(0, 2);
- var sBackTime = sTime.substr(2, 2);
-
- if(parseInt(sFrontTime) > 24)
- {
- messageBox("24시를 ","E001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
-
- if(parseInt(sBackTime) > 59)
- {
- messageBox("59분을 ","E001");
- grd_csrtmlist.valueMatrix(grd_csrtmlist.row, grd_csrtmlist.colRef("clotm")) = "";
- return;
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- <submission id="TRRSC06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrtmlist"/>
- <submission id="TXRSC06301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" 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:186px; height:14px; ">CSR 마감 시간 등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:272px; top:10px; width:119px; height:17px; ">CSR 청구부서 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(!isRequiredControls("cmb_instcd")) return;
-
- fsearch();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:158px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <select1 id="rdo_csrreqdeptcd" ref="/root/send/scsrreqdeptcd" appearance="full" cols="6" style="left:392px; top:8px; width:263px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- if(!isRequiredControls("cmb_instcd")) return;
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:1194; y2:94px; "/>
- <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:133px; height:14px; ">청구 마감시간 등록</caption>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!isRequiredControls("cmb_instcd")) return;
-
- misfGridIUD(grd_csrtmlist, "A");
- var cur_row = grd_csrtmlist.row;
-
- //행추가를 누를시 기간코드 값을 자동으로 저장한다.
- model.setValue(grd_csrtmlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
-
- //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
- grd_csrtmlist.editCell()
-
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_csrtmlist, "D");
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_csrtmlist" nodeset="/root/main/csrtmlist" caption="CSR 청구부서^DAY 구분^마감차수^마감시간^비고" colsep="^" colwidth="139, 140, 140, 140, 609, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:5px; top:100px; width:1190px; height:640px; ">
- <col class="input_essential" ref="csrreqdeptcd" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_essential" ref="daykind" type="combo" _key="true" style="text-align:center; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="input_essential" ref="reqseq" type="input" maxlength="1" _key="true" style="text-align:center; "/>
- <col ref="clotm" type="input" format="hh:nn" maxlength="4" style="text-align:center; "/>
- <col ref="cmt" type="input" maxlength="96"/>
- <col ref="instcd" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- fCheckTime();
-
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fsave();
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
- <caption>출력</caption>
- </button>
- <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
- <caption>화면이동</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|