123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SPCHI01300_내원부서설정.xrw
- * Summary : 건진 후 내원 확인을 위한 부서 목록 마스터 관리
- * Programmer : 엄윤호
- * Date Written : 2007.09.19
- * History : 2007.09.19
- * Remark :
- -->
- <?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>
- <deptlist/>
- </main>
- <send>
- <srch>
- <orddept/>
- </srch>
- <deptlist/>
- </send>
- <init>
- <basecdlist>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- </basecdlist>
- </init>
- <temp>
- <result/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "/root/init/basecdlist/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
-
- fCheckAuth();
- model.removeNodeset("/root/main/deptlist");
- submit("TRCHI01301");
- //model.refresh();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRCHI01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/deptlist"/>
- <submission id="TXCHI01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/temp/result"/>
- </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/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btn_search.disabled=true;
- }
- if (!checkAuth("x")) {
- btn_save.disabled=true;
- btn_adddept.disabled=true;
- btn_deldept.disabled=true;
- }
- //if (!checkAuth("p")) {
- //}
- }
-
- function fCheckDeptList() {
- var grid = grd_deptlist;
- for (i=grid.fixedRows; i<grid.rows; i++) {
- if (grid.rowstatus(i) == 1) {
- if (model.getValue("/root/main/deptlist["+i+"]/orddeptcd") == "") {
- messageBox("진료과를","C002");
- grid.row = i;
- grid.col = 1;
- grid.editCell();
- return false;
- }
- }
- }
- return true;
- }
-
- function fSaveDeptList() {
- //if (!checkKeyColumn(grd_deptlist)) return;
- if(!fCheckDeptList()) return;
-
- var grid = grd_deptlist;
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/deptlist", grid.getUpdateData());
- }
-
- setAlertOn();
- if (submit("TXCHI01301")) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.setValue("/root/send/deptlist","");
-
- model.setValue("/root/send/srch/orddept","");
- submit("TRCHI01301");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="466" pageheight="392" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:450px; height:365px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:450px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">부서검색 :</caption>
- <select1 id="cmb_orddept" ref="/root/send/srch/orddept" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRCHI01301");
- ]]>
- </script>
- </select1>
- <line id="line1" class="line_4" style="x1:363px; y1:7px; x2:363px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:378px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRCHI01301");
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:5px; top:45px; width:330px; height:13px; vertical-align:middle; ">건진 후 내원 확인할 진료과(부서) 목록 설정</caption>
- <button id="btn_adddept" class="btn2_letter3" style="left:340px; top:40px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setFocus("grd_deptlist");
- grd_deptlist.addRow();
- model.setValue("/root/main/deptlist["+grd_deptlist.row+"]/usdt", getCurrentDate()+getCurrentTime());
- model.setValue("/root/main/deptlist["+grd_deptlist.row+"]/fstrgstrid", getUserId());
- grd_deptlist.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_deldept" class="btn2_letter3" style="left:396px; top:40px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_deptlist, true);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:60px; x2:450px; y2:60px; "/>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist" caption="진료과^시작일시^등록자ID" colwidth="150, 150, 110" explorerbar="sortshow" extendlastcol="scroll" rowheader="update" style="left:0px; top:65px; width:450px; height:295px; ">
- <col disabled="true" ref="orddeptcd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/basecdlist/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="usdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col class="text_center" ref="fstrgstrid"/>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:365px; width:450px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:334px; top:0px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveDeptList();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:393px; top:0px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|