123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457 |
- <?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>
- <clsdeptlist>
- <orddeptcd/>
- <subdeptcd/>
- <todd/>
- <fromdd/>
- <clsdeptyn/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <instcd/>
- </clsdeptlist>
- <clsdeptinfo>
- <orddeptcd/>
- <subdeptcd/>
- <todd/>
- <fromdd/>
- <clsdeptyn/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <instcd/>
- </clsdeptinfo>
- <zsdddeptinfo>
- <nm/>
- <cd/>
- </zsdddeptinfo>
- </main>
- <send>
- <updatedata/>
- <srchdeptnm/>
- <alldatayn/>
- <srchcond/>
- </send>
- <send2>
- <srchdeptnm/>
- <inityn/>
- </send2>
- <hidden>
- <tmpclsdeptinfo/>
- </hidden>
- <init>
- <disccd>
- <cd/>
- <nm/>
- </disccd>
- <insukind>
- <cd/>
- <nm/>
- </insukind>
- <suppkind>
- <cd/>
- <nm/>
- <up/>
- <io/>
- </suppkind>
- <orddeptcd>
- <cd/>
- <nm/>
- <deptengabbr/>
- <reqdeptno/>
- </orddeptcd>
- <orddrid>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddrid>
- <reducd>
- <cd/>
- <nm/>
- </reducd>
- <uncocd>
- <cd/>
- <nm/>
- </uncocd>
- <zsdddeptlist>
- <cd/>
- <nm/>
- </zsdddeptlist>
- </init>
- </root>
- </instance>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMB02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/clsdeptlist"/>
- <submission id="TXPMB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden"/>
- <submission id="TRPMB02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/zsdddeptinfo"/>
- <submission id="TRPMB02904" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/clsdeptcd"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fComCDRef();
- submit("TRPMB02904",false);
- fInitialize();
- fDefaultDataSet();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- //조회조건부,입력부,조회부
- function fInitialize() {
- model.resetInstanceNode("/root/main/clsdeptlist");
- model.resetInstanceNode("/root/main/clsdeptinfo");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/hidden/tmpclsdeptinfo");
- fDefaultDataSet();
- model.setFocus("cmb_orddept");
- }
-
- function fDefaultDataSet() {
- group4.attribute("visibility") = "hidden";
- cmb_orddept.disabled = false;
- ipt_subdeptcd.disabled = false;
-
- // model.setValue("/root/send/srchcond","1");
- // model.setValue("/root/send/alldatayn","N");
- }
-
- //입력창의 내용이 기존내용과 비교하여 변경된 내역이 있는지 체크한다.
- //return : 변경된 경우 True, 변경된 내역이 없을 경우 False
- function fCheckModify() {
-
- //입력창에 매핑된 send Node 와 변경 전 데이타인 hidden Node 를 비교한다.
- //변경되었으면, return true
- if ( (model.getValue("/root/hidden/tmpclsdeptinfo/orddeptcd") ) != ( model.getValue("/root/main/clsdeptinfo/orddeptcd")) ) return true;
- if ( (model.getValue("/root/hidden/tmpclsdeptinfo/subdeptcd") ) != ( model.getValue("/root/main/clsdeptinfo/subdeptcd")) ) return true;
- if ( (model.getValue("/root/hidden/tmpclsdeptinfo/todd") ) != ( model.getValue("/root/main/clsdeptinfo/todd")) ) return true;
- if ( (model.getValue("/root/hidden/tmpclsdeptinfo/fromdd") ) != ( model.getValue("/root/main/clsdeptinfo/fromdd")) ) return true;
- if ( (model.getValue("/root/hidden/tmpclsdeptinfo/clsdeptyn") ) != ( model.getValue("/root/main/clsdeptinfo/clsdeptyn")) ) return true;
- return false;
-
- }
-
- //데이터 처리
- function fSave(flag) {
-
- if(flag == "U"){
- //처음 세팅된 데이타와 비교하여 변경된 내역이 있는지 확인한다.
- // return 값이 false 이면, 변경된 내역이 없다.
- if ( fCheckModify() == false ) {
- messageBox("변경된 내역이 없습니다", "E999","");
- return;
- }
- }
-
- model.makeValue("/root/send/updatedata/orgtodd", model.getValue("/root/hidden/tmpclsdeptinfo/todd")); //원종료일자
- model.makeValue("/root/send/updatedata/orddeptcd", model.getValue("/root/main/clsdeptinfo/orddeptcd"));
- model.makeValue("/root/send/updatedata/subdeptcd", model.getValue("/root/main/clsdeptinfo/subdeptcd"));
- model.makeValue("/root/send/updatedata/todd", model.getValue("/root/main/clsdeptinfo/todd"));
- model.makeValue("/root/send/updatedata/fromdd", model.getValue("/root/main/clsdeptinfo/fromdd"));
- model.makeValue("/root/send/updatedata/clsdeptyn", model.getValue("/root/main/clsdeptinfo/clsdeptyn"));
- model.makeValue("/root/send/updatedata/workflag", flag);
-
-
- //필수사항과 입력타입을 체크한다.
- if(isRequiredControls("cmb_orddept","ipt_subdeptcd","cmb_clsdeptyn","ipt_fromdd","ipt_todd")) {
- //messageBox("모든 필수값이 입력이","I002");
- }
- else {
- return;
- }
-
- //세부과 저장 처리
- if (submit("TXPMB02902", false) == true) {
- btn_search.dispatch("DOMActivate"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
- }
- cmb_orddept.disabled = true;
- ipt_subdeptcd.disabled = true;
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1233;1,840;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">세부과관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:840px; height:662px; ">
- <group id="group2" style="left:0px; top:10px; width:839px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:839px; height:32px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:171px; top:6px; width:99px; height:17px; ">과명 :</caption>
- <line id="line13" class="line_4" style="x1:765px; y1:4px; x2:765px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="ipt_srchcnts" ref="/root/send/srchdeptnm" class="combo_default" appearance="minimal" style="left:240px; top:6px; width:202px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- // if (event.keyCode == "13") {
- // var vsrchcnts = ipt_srchcnts.currentText;
- // model.setValue("/root/send/srchcnts", vsrchcnts);
-
- // btn_search.dispatch("DOMActivate");
- // }
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" style="left:775px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/alldatayn") == "" || model.getValue("/root/send/alldatayn") == "N"){
- model.setValue("/root/send/alldatayn", 'N');
- }else {
- model.setValue("/root/send/alldatayn", 'Y');
- }
- submit("TRPMB02901",false);
- model.refresh();
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/alldatayn" overflow="visible" appearance="full" style="left:685px; top:7px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체보기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select>
- <caption id="caption3" class="search_name" style="left:16px; top:6px; width:99px; height:17px; ">과구분 :</caption>
- <select1 id="cmb_srchflag" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:95px; top:6px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <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("/root/send/srchcond") == "1"){
- ipt_srchcnts.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd";
- }else if(model.getValue("/root/send/srchcond") == "2"){
- ipt_srchcnts.choices.itemset.attribute("nodeset") = "/root/init/subdeptcd/subdeptcdlist";
- }
- ipt_srchcnts.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:95px; height:14px; ">세부과</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:68px; x2:839px; y2:68px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:74px; width:50px; height:23px; ">진료과</caption>
- <caption id="caption10" class="cell_1" style="left:530px; top:74px; width:117px; height:23px; ">시작일자/종료일자</caption>
- <caption id="caption14" class="cell_1" style="left:175px; top:74px; width:90px; height:23px; ">세부과</caption>
- <caption id="caption20" class="tit_2" style="left:5px; top:105px; width:139px; height:14px; ">세부과 리스트</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:120px; x2:840px; y2:120px; "/>
- <line id="line7" class="line_3" style="x1:1px; y1:97px; x2:839px; y2:97px; "/>
- <select1 id="cmb_orddept" ref="/root/main/clsdeptinfo/orddeptcd" class="combo_default" appearance="minimal" style="left:55px; top:75px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/clsdeptinfo/fromdd" class="input_default" inputtype="date" appearance="input" style="left:652px; top:75px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/clsdeptinfo/todd" class="input_default" inputtype="date" appearance="input" style="left:754px; top:75px; width:85px; height:19px; "/>
- <datagrid id="grd_clsdeptlist" nodeset="/root/main/clsdeptlist" caption="진료과^세부과^시작일자^종료일자^세부과여부^최초입력자^최초입력일시^최종수정자^최종수정일시|진료과^세부과^시작일자^종료일자^세부과여부^최초입력자^최초입력일시^최종수정자^최종수정일시" colsep="^" colwidth="130, 164, 76, 76, 44, 80, 84, 80, 84" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:125px; width:840px; height:531px; ">
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="subdeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/zsdddeptlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="fromdd" format="yyyy-mm-dd"/>
- <col class="text_center" ref="todd" format="yyyy-mm-dd"/>
- <col class="text_right" disabled="true" ref="clsdeptyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="fstrgstrid" format="yyyy-mm-dd hh:nn:ss" style="left:1118px; top:25px; width:150px; height:25px; text-align:center; "/>
- <col class="text_center" ref="fstrgstdt" format="yyyy-mm-dd"/>
- <col ref="lastupdtrid" style="text-align:center; "/>
- <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //조회된 리스트를 선택 시, hidden Node 와 입력창(send Node)에 세팅한다.
- //입력창은 send Node 와 매핑된다.
- // if ( grd_clsdeptlist.row-1 > 0 ) {
- model.resetInstanceNode("/root/send/updatedata");
- model.resetInstanceNode("/root/hidden/tmpclsdeptinfo");
- model.makeNode("/root/hidden/tmpclsdeptinfo");
-
-
- var vtodd = model.getValue("/root/main/clsdeptlist["+(grd_clsdeptlist.row-1)+"]/todd");
-
- if (vtodd == "") {
- vtodd = "99991231"
- }
- if (vtodd <= getCurrentDate()) {
- messageBox("이미 종료된 내역은 수정하실 수 없습니다.","I999","");
- return;
- }
- model.copyNode("/root/main/clsdeptinfo","/root/main/clsdeptlist["+(grd_clsdeptlist.row-1)+"]");
- model.copyNode("/root/hidden/tmpclsdeptinfo","/root/main/clsdeptlist["+(grd_clsdeptlist.row-1)+"]");
- cmb_orddept.disabled = true;
- ipt_subdeptcd.disabled = true;
- btn_search3.disabled = true;
- model.refresh();
- // }
- ]]>
- </script>
- </datagrid>
- <caption id="caption24" style="left:741px; top:75px; width:21px; height:19px; vertical-align:middle; ">-</caption>
- <select1 id="ipt_subdeptcd" ref="/root/main/clsdeptinfo/subdeptcd" class="combo_default" appearance="minimal" style="left:270px; top:75px; width:134px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/zsdddeptlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption29" class="cell_1" style="left:409px; top:74px; width:65px; height:23px; ">분과여부</caption>
- <select1 id="cmb_clsdeptyn" ref="/root/main/clsdeptinfo/clsdeptyn" class="combo_search" appearance="minimal" style="left:479px; top:75px; width:46px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <group id="group4" visibility="hidden" style="left:235px; top:195px; width:240px; height:250px; ">
- <group id="group6" style="left:0px; top:0px; width:236px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:235px; height:32px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:172px; y1:5px; x2:172px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search2" class="btn1_letter2" style="left:177px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send2/inityn", "N");
- submit("TRPMB02903",false);
- grd_zsdddeptinfo.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:1px; top:7px; width:74px; height:17px; ">진료과 :</caption>
- <input id="ipt_srchnm2" ref="/root/send2/srchdeptnm" class="input_default" style="left:76px; top:7px; width:89px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
- model.setValue("/root/send2/srchdeptnm" , ipt_srchnm2.currentText);
- btn_search2.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_zsdddeptinfo" nodeset="/root/main/zsdddeptinfo" caption="진료과^과코드" colsep="^" colwidth="133, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:32px; width:235px; height:213px; ">
- <col ref="nm"/>
- <col ref="cd"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
-
- model.setValue("/root/main/clsdeptinfo/subdeptcd",model.getValue("/root/main/zsdddeptinfo["+(grd_zsdddeptinfo.row)+"]/cd"));
- group4.attribute("visibility") = "hidden";
- ipt_subdeptcd.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- <button id="btn_search3" class="btn2_letter2" style="left:220px; top:76px; width:45px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group4.attribute("top") = event.clientY;
- group4.attribute("visibility") = "visible";
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:672px; width:840px; height:27px; ">
- <button id="btn_update" class="btn4_letter2" style="left:712px; top:5px; width:56px; height:22px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("I");
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:771px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //화면 초기화
- fInitialize();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" style="left:653px; top:5px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("U");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|