123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMPMO01500_원무공통코드관리.xrw
- * 설 명 : 원무공통코드관리
- * 설 계 자 : 이형재
- * 작 성 자 : 이형재
- * 작 성 일 : 2008.03.17
- * 수정이력 :
- * 기 타 : test
- -->
- <?xml-stylesheet type="text/css" href="../../../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>원무공통코드관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <grid>
- <comcode>
- <comcodelist/>
- </comcode>
- <speccode>
- <speccodelist/>
- </speccode>
- </grid>
- </main>
- <hidden>
- <currentdate/>
- <tmp/>
- </hidden>
- <send>
- <dd/>
- <groupcd/>
- <cdgrupid/>
- <cdgrupnm/>
- <sessuserid/>
- <histyn/>
- </send>
- <updateData>
- <grdGroupData>
- <grdGroupDataList/>
- </grdGroupData>
- <grdSpecData>
- <grdSpecDataList/>
- </grdSpecData>
- </updateData>
- <init>
- <P0083list/>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fGetUserInfosSampling2();
-
-
- ///////////////////////P0083에 있는 환자만 수정권한이 있음//////////////////////
- var s_userid = model.getValue("/root/hidden2/session/sess_userid");
- var cnt = 0;
-
- pamfGetCodeList(new Array("P0083"), new Array("/root/init/P0083list"));
-
- cnt = getNodesetCount("/root/init/P0083list/P0083[cdid= '" + s_userid + "']");
-
- if(cnt == 0) {
- button2.disabled = true;
- button4.disabled = true;
- }
-
- finitialize();
-
- ]]>
- </script>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB02000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/comcode"/>
- <submission id="TXPMB02000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/updateData/grdGroupData"/>
- <submission id="TXPMB02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/updateData/grdSpecData" resultref="/root/main/grid/speccode"/>
- <submission id="TRPMB02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/speccode"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
- function finitialize()
- {
- // 시스템 날자
- model.setValue("/root/hidden/currentdate", getCurrentDate());
-
- // 세션아이디 설정
- model.setValue("/root/send/sessuserid", model.getValue("/root/hidden2/session/sess_userid"));
-
- // 방문일정을 오늘날자로 세팅
- model.setValue("/root/send/dd",model.getValue("/root/hidden/currentdate"));
-
- model.refresh();
- }
-
- //세션정보 추출하기
- function fGetUserInfosSampling2(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
-
- var UserInfosS_Array = sUserInfosS.split("|");
- var userid = UserInfosS_Array[0]; //사용자번호
- var usernm = UserInfosS_Array[1]; //사용자이름
- var posinstcd = UserInfosS_Array[2]; //소속기관코드
- var posinstnm = UserInfosS_Array[3]; //소속기관명
- var posdeptcd = UserInfosS_Array[4]; //소속부서코드
- var posdeptnm = UserInfosS_Array[5]; //소속부서명
- var dutplceinstcd = UserInfosS_Array[6]; //소속부서명
-
- if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
- if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-" || dutplceinstcd == "-") posinstcd = "012";
- /*
- model.makeNode("/root/hidden/session/sess_userid");
- model.makeNode("/root/hidden/session/sess_usernm");
- model.makeNode("/root/hidden/session/sess_posinstcd");
- model.makeNode("/root/hidden/session/sess_posinstnm");
- model.makeNode("/root/hidden/session/sess_posdeptcd");
- model.makeNode("/root/hidden/session/sess_posdeptnm")
-
- model.setValue("/root/hidden/session/sess_userid",userid);
- model.setValue("/root/hidden/session/sess_usernm",usernm);
- model.setValue("/root/hidden/session/sess_posinstcd",posinstcd);
- model.setValue("/root/hidden/session/sess_posinstnm",posinstnm);
- model.setValue("/root/hidden/session/sess_posdeptcd",posdeptcd);
- model.setValue("/root/hidden/session/sess_posdeptnm",posdeptnm);
- */
- model.makeValue("/root/hidden2/session/sess_userid",userid);
- model.makeValue("/root/hidden2/session/sess_usernm",usernm);
- model.makeValue("/root/hidden2/session/sess_posinstcd",posinstcd);
- model.makeValue("/root/hidden2/session/sess_posinstnm",posinstnm);
- model.makeValue("/root/hidden2/session/sess_posdeptcd",posdeptcd);
- model.makeValue("/root/hidden2/session/sess_posdeptnm",posdeptnm);
- model.makeValue("/root/hidden2/session/sess_dutplceinstcd",dutplceinstcd);
-
- model.refresh();
- }
-
-
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
- <group id="group3" 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:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:8px; width:90px; height:17px; ">조회일자 :</caption>
- <caption id="caption2" class="search_name" style="left:195px; top:8px; width:90px; height:17px; vertical-align:middle; ">그룹코드 :</caption>
- <input id="input3" ref="/root/send/groupcd" style="left:285px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:8px; width:56px; height:20px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- submit("TRPMB02000");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdd" ref="/root/send/dd" class="input_search" inputtype="date" style="left:100px; top:8px; width:85px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:395px; top:8px; width:112px; height:17px; vertical-align:middle; ">그룹명칭 :</caption>
- <input id="input1" ref="/root/send/cdgrupnm" style="left:485px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="datagrid1" nodeset="/root/main/grid/comcode/comcodelist" dragmode="false" scroll="auto" allowbigselection="false" allowselection="false" caption="그룹ID^그룹명^상세설명^FROMDD^TODD" colsep="^" colwidth="69, 155, 288, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:15px; top:85px; width:540px; height:645px; ">
- <col disabled="true" ref="cdgrupid" type="input" style="text-align:center; "/>
- <col ref="cdgrupnm" type="input" style="text-align:right; "/>
- <col ref="detldesc" type="input" style="text-align:left; "/>
- <col ref="fromdd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var cur_row = datagrid1.row;
- if(cur_row > 0){
- model.copyNode("/root/main/cdinfo/groupcdinfo", "/root/main/grid/comcode/comcodelist[" +cur_row+ "]");
- }
-
- if (isDataCell()) {
- var rowindex = 0;
-
- rowindex = datagrid1.mouseRow;
-
- if(datagrid1.valueMatrix(rowindex,1) == ""){
- //messageBox("등록번호가","I004");
- }else{
- model.setvalue("/root/send/cdgrupid", datagrid1.valueMatrix(rowindex,1));
- submit("TRPMB02002");
- }
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // if (isDataCell()) {
- // datagrid1.editCell();
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="ondelayclick">
- <![CDATA[
- if (isDataCell()) {
- datagrid1.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid2" nodeset="/root/main/grid/speccode/speccodelist" visibility="visible" caption="그룹ID^코드ID^코드명^상세설명^코드번호^순번^FROMDD^TODD^참고사항^cdgrupid_org^cdid_org^todd_org" colsep="^" colwidth="60, 85, 150, 265, 100, 30, 75, 75, 500, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:575px; top:85px; width:605px; height:645px; ">
- <col disabled="true" ref="cdgrupid" type="input" style="text-align:center; "/>
- <col ref="cdid" type="input" style="text-align:center; "/>
- <col ref="cdnm" type="input" style="text-align:right; "/>
- <col ref="detldesc" type="input" style="text-align:left; "/>
- <col ref="dispseq" type="input" visibility="hidden" style="text-align:right; "/>
- <col ref="dispseq" type="output"/>
- <col ref="fromdd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" type="input" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="remark" type="input"/>
- <col ref="cdgrupid_org" visibility="hidden"/>
- <col ref="cdid_org" visibility="hidden"/>
- <col ref="todd_org" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = datagrid2.row;
- if(cur_row>0){
- model.copyNode("/root/main/cdinfo/speccdinfo", "/root/main/grid/speccode/speccodelist[" +cur_row+ "]");
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="ondelayclick">
- <![CDATA[
- if (isDataCell()) {
- datagrid2.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button4" class="btn2_letter2" style="left:1137px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid2.row;
- var rtnMsgBox = 0;
- model.setValue("/root/updateData/grdSpecData/grdSpecDataList",datagrid2.getUpdateData());
- rtnMsgBox = messageBox("데이터를", "Q002");
- if(rtnMsgBox == 6 ){
- submit("TXPMB02001");
- }else{
- submit("TRPMB02002");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:15px; y1:78px; x2:555px; y2:78px; "/>
- <caption id="caption9" class="tit_2" style="left:575px; top:60px; width:135px; height:13px; ">상세 코드 조회</caption>
- <caption id="caption10" class="tit_2" style="left:15px; top:60px; width:152px; height:13px; ">그룹코드 조회내역</caption>
- <line id="line5" class="line_1" style="x1:575px; y1:78px; x2:1180px; y2:78px; "/>
- <button id="button2" class="btn2_letter2" style="left:512px; top:55px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid1.row;
- var rtnMsgBox = 0;
-
- model.setValue("/root/updateData/grdGroupData/grdGroupDataList",datagrid1.getUpdateData());
- rtnMsgBox = messageBox("데이터를", "Q002");
-
- if(rtnMsgBox == 6 ){
- submit("TXPMB02000");
- submit("TRPMB02000");
- }else{
- submit("TRPMB02000");
- }
-
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter3" style="left:1113px; top:730px; width:68px; height:22px; text-align:left; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:457px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid1.row;
-
- datagrid1.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter3" style="left:402px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addItem();
- datagrid1.disabled = "false";
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter3" style="left:1081px; top:55px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = datagrid2.row;
-
- datagrid2.deleteItem(cur_row);
- ]]>
- </script>
- </button>
- <button id="button11" class="btn2_letter3" style="left:1026px; top:55px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid2.addItem();
- datagrid2.disabled = "false";
- ]]>
- </script>
- </button>
- <select id="checkbox1" ref="/root/send/histyn" overflow="visible" appearance="full" style="left:610px; top:20px; width:130px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>상세코드 이력제외</label>
- <value>N</value>
- </item>
- </choices>
- </select>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">원무공통코드관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|