123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMMNB02300_간호처방명.xrw
- * 설 명 : 간호처방명
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <picmmech>
- <picmmech_hidden/>
- <picmmech_calcgrupcd/>
- <picmmech_agepay/>
- <picmmech_calcscorcd/>
- <picmmech_insuedicd/>
- <picmmech_oldordcd/>
- <picmmech_engnm/>
- <picmmech_hngnm/>
- <picmmech_pynpy1/>
- <picmmech_rbpnt/>
- <picmmech_unitcost/>
- <picmmech_specrate/>
- <picmmech_gnrlunitcost/>
- <picmmech_forgnunitcost/>
- <picmmech_mouunitcost/>
- <picmmech_ordnm/>
- <picmmech_qty/>
- <picmmech_estmmncd/>
- <picmmech_fromdd/>
- <picmmech_todd/>
- <picmmech_lastupdtdt/>
- <picmmech_lastupdtrid/>
- <picmmech_temp_insupynpy1/>
- <picmmech_temp_insuunitcost/>
- <picmmech_temp_specrate/>
- <picmmech_temp_instcd/>
- <picmmech_temp_grupsnglflag/>
- <picmmech_nurordnm/>
- </picmmech>
- </main>
- <send>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- <con6_calcscorcd/>
- <con7_todd/>
- <con8_instcd/>
- <con9_lastupdtdt/>
- <mechinfo/>
- </send>
- <init>
- <P0143list>
- <P0143>
- <cdnm/>
- <cdid/>
- </P0143>
- </P0143list>
- <P0104list>
- <P0104>
- <cdnm/>
- <cdid/>
- </P0104>
- </P0104list>
- </init>
- <temp>
- <mechinfo/>
- </temp>
- <hidden>
- </hidden>
- </root>
- </instance>
- <submission id="TRMNB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXMNB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mechinfo" resultref="/root/temp/mechinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- </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="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- </xhtml:head>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(
- new Array(
- "P0143",
- "P0104"
- ),
- new Array(
- "/root/init/P0143list",
- "/root/init/P0104list"
- )
- );
-
- fclear(); //초기화
-
- fOpenCheck(); //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다.
- fOpenCheck2();
-
- fGetUserInfo();
-
- model.setValue("/root/send/con1_dd", getCurrentDate()); //시작일자
- model.refresh();
-
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fclear() {
- //model.setValue("/root/send/con1_dd", getCurrentDate());
- model.setValue("/root/send/con2_gsflag", "");
- model.setValue("/root/send/con3_search1", "calcscorcd");
- model.setValue("/root/send/con4_search2", "");
- model.setValue("/root/send/con5_insu", "insu");
- model.resetInstanceNode("/root/main/picmmech");
- model.setValue("/root/send/con9_lastupdtdt", getCurrentDate());
- input26.visible = true;
- input1.visible = false; //최종수정일검색자
- model.removeNodeset("/root/main/picmmech");
- grd_mech.refresh();
- fcombo3();
- model.refresh();
- }
- function fcombo3() {
- if(model.getValue("/root/send/con5_insu") == "insu" ) {
- grd_mech.valuematrix(0, 10) = "보험";
- grd_mech.valuematrix(0, 11) = "보험";
- grd_mech.valuematrix(0, 12) = "보험";
- grd_mech.valuematrix(0, 13) = "보험";
- }
-
- if(model.getValue("/root/send/con5_insu") == "proc" ) {
- grd_mech.valuematrix(0, 10) = "의료급여";
- grd_mech.valuematrix(0, 11) = "의료급여";
- grd_mech.valuematrix(0, 12) = "의료급여";
- grd_mech.valuematrix(0, 13) = "의료급여";
- }
-
- if(model.getValue("/root/send/con5_insu") == "indus" ) {
- grd_mech.valuematrix(0, 10) = "산재";
- grd_mech.valuematrix(0, 11) = "산재";
- grd_mech.valuematrix(0, 12) = "산재";
- grd_mech.valuematrix(0, 13) = "산재";
- }
-
- if(model.getValue("/root/send/con5_insu") == "autm" ) {
- grd_mech.valuematrix(0, 10) = "자보";
- grd_mech.valuematrix(0, 11) = "자보";
- grd_mech.valuematrix(0, 12) = "자보";
- grd_mech.valuematrix(0, 13) = "자보";
- }
-
- }
-
- //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다.
- function fOpenCheck() {
-
- if(model.getvalue("/root/temp") =="" ) { //부모가 호출할때 temp에 수가코드를 넣고 호출합니다.
- fMotherViewCheck(); //부모가 있을경우 체크
- model.refresh();
- }else{
- model.setvalue("/root/send/con4_search2", model.getvalue("/root/temp"));
- fJoHoi();
- }
- }
-
- //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다. 주미씨용~
- function fOpenCheck2() {
- // if(model.getvalue("/root/temp/con4_search2") =="") {
- if(model.getvalue("/root/temp/judgsrch/con4_search2") =="") {
-
- }else{
- // model.copyNode("/root/send", model.getvalue("/root/temp/judgsrch"));
- model.copyNode("/root/send", "/root/temp/judgsrch");
- fJoHoi();
- }
- }
- //부모창이 무엇인지 체크
- function fMotherViewCheck() {
-
- //싱글포함그룹수가관리일 경우 그룹만 조회 가능토록!
- if(model.getAttribute("iParam_mother_view") == "SMPIC00400_싱글포함그룹수가관리") {
- model.setvalue("/root/send/con2_gsflag", model.getAttribute("iParam_picmmech_temp_grupsnglflag"));
- combo1.disabled= true;
- }
-
- //그룹수가관리일 경우 싱글만 조회 가능토록!
- if(model.getAttribute("iParam_mother_view") == "SMPIC00300_그룹수가관리") {
- model.setvalue("/root/send/con2_gsflag", model.getAttribute("iParam_picmmech_temp_grupsnglflag"));
- combo1.disabled= true;
- }
- }
- //조회
- function fJoHoi() {
- submit("TRMNB02301");
- setTree(grd_mech, 0, 0, true);
- model.refresh();
- }
-
- /*
- model.getValue(); 를 함수로 만들었습니다.
- param1 : node는 grid의 xPath입니다.
- param2 : row는 grid에서 선택한 row값입니다.
- param3 : element는 getvalue할 해당 element 명입니다.
-
- 해당 getvalue값을 return 해줍니다.
- return 하지 않으면 해당값을 가져올 수 없습니다.
- */
- function fGetValue(node, row, element) {
-
- var rtnValue = model.getValue(node + "[" + row + "]/" + element);
-
- return rtnValue;
- }
- //로그인한 사용자 정보조회
- function fGetUserInfo(){
- var sUserInfosS = getUserInfos();
- sUserInfosS = sUserInfosS + "|";
- //alert("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]; //소속기관명
- model.makeNode("/root/hidden/session/" + "userid");
- model.makeNode("/root/hidden/session/" + "usernm");
- model.makeNode("/root/hidden/session/" + "posinstcd");
- model.makeNode("/root/hidden/session/" + "posinstnm");
- model.setValue("/root/hidden/session/userid",userid);
- model.setValue("/root/hidden/session/usernm",usernm);
- model.setValue("/root/hidden/session/posinstcd",posinstcd);
- model.setValue("/root/hidden/session/posinstnm",posinstnm);
- model.refresh();
- }
- function checkGridUpdate(grid)
- {
- var uData = grid.getUpdateDataXml("update");
-
- //alert(grid.getUpdateData());
- if (uData=="") return false;
- else return true;
- }
- ]]>
- </script>
- <xhtml:body overflow="hidden" pagewidth="1033" pageheight="525" style="margin:8; ">
- <group id="group1" style="left:0px; top:0px; width:1016px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:80px; height:14px; ">간호처방명</caption>
- </group>
- <group id="group2" style="left:0px; top:18px; width:1016px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1015px; height:35px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:945px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if( model.getvalue("/root/send/con4_search2") == "" &&
- model.getvalue("/root/send/con9_lastupdtdt") == "" ) {
- model.alert("조회할 값을 넣어주십시요.");
- return;
- }
- fJoHoi();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:875px; y1:7px; x2:875px; y2:29px; "/>
- <select1 id="combo1" ref="/root/send/con2_gsflag" class="combo_search" appearance="minimal" style="left:206px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>싱글</label>
- <value>S</value>
- </item>
- <item>
- <label>그룹</label>
- <value>G</value>
- </item>
- </choices>
- </select1>
- <input id="input3" ref="/root/send/con1_dd" class="input_search" inputtype="date" style="left:103px; top:8px; width:100px; height:19px; "/>
- <input id="input26" ref="/root/send/con4_search2" class="input_search" style="left:383px; top:8px; width:360px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="combo2" ref="/root/send/con3_search1" class="combo_search" appearance="minimal" style="left:289px; top:8px; width:91px; height:19px; ">
- <choices>
- <item>
- <label>수가코드</label>
- <value>calcscorcd</value>
- </item>
- <item>
- <label>처방명</label>
- <value>ordnm</value>
- </item>
- <item>
- <label>한글명</label>
- <value>hngnm</value>
- </item>
- <item>
- <label>영문명</label>
- <value>engnm</value>
- </item>
- <item>
- <label>보험분류</label>
- <value>insu</value>
- </item>
- <item>
- <label>EDI코드</label>
- <value>edicd</value>
- </item>
- <item>
- <label>구처방코드</label>
- <value>oldordcd</value>
- </item>
- <item>
- <label>수정일검색</label>
- <value>lastupdtdt</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- if(model.getvalue("/root/send/con3_search1") == "calcscorcd"){
- input26.attribute("imemode") ="alpha";
- }
- if(model.getvalue("/root/send/con3_search1") == "ordnm"){
- input26.attribute("imemode") ="hangul";
- }
- if(model.getvalue("/root/send/con3_search1") == "hngnm"){
- input26.attribute("imemode") ="hangul";
- }
- if(model.getvalue("/root/send/con3_search1") == "engnm"){
- input26.attribute("imemode") ="alpha";
- }
- if(model.getvalue("/root/send/con3_search1") == "insu"){
- input26.attribute("imemode") ="alpha";
- }
- if(model.getvalue("/root/send/con3_search1") == "edicd"){
- input26.attribute("imemode") ="alpha";
- }
- if(model.getvalue("/root/send/con3_search1") == "oldordcd"){
- input26.attribute("imemode") ="alpha";
- }
- if(model.getvalue("/root/send/con3_search1") == "lastupdtdt"){
- input26.visible = false;
- input1.visible = true;
- input1.attribute("left") = "383px";
- }else{
- input26.visible = true;
- input1.visible = false;
- }
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/send/con5_insu" class="combo_search" appearance="minimal" style="left:747px; top:8px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>보험</label>
- <value>insu</value>
- </item>
- <item>
- <label>의료급여</label>
- <value>proc</value>
- </item>
- <item>
- <label>산재</label>
- <value>indus</value>
- </item>
- <item>
- <label>자보</label>
- <value>autm</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fcombo3();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/con9_lastupdtdt" class="input_search" visibility="hidden" inputtype="date" style="left:759px; top:8px; width:100px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:69px; height:13px; ">수가목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1015px; y2:75px; "/>
- <datagrid id="grd_mech" nodeset="/root/main/picmmech" class="datagrid2" caption="±^그룹코드^수가코드^간호처방명^영문명^한글명^적용일자^종료일자^처방명^최종수정일^최종수정자^기관기호" colsep="^" colwidth="22, 0, 76, 318, 179, 205, 70, 70, 178, 80, 70, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:80px; width:1015px; height:420px; margin-right:18; margin-bottom:32; ">
- <col ref="picmmech_hidden"/>
- <col ref="picmmech_calcgrupcd"/>
- <col ref="picmmech_calcscorcd" style="text-align:left; "/>
- <col ref="picmmech_nurordnm" type="input" style="text-align:left; "/>
- <col ref="picmmech_engnm"/>
- <col ref="picmmech_hngnm"/>
- <col ref="picmmech_fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="picmmech_todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="picmmech_ordnm"/>
- <col ref="picmmech_lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="picmmech_lastupdtrid" style="text-align:center; "/>
- <col ref="picmmech_temp_instcd"/>
- </datagrid>
- <script type="javascript" ev:event="onwindowresize">
- <![CDATA[
- grd_mech.attribute("width") = parseInt(body.attribute("width")) ;
- grd_mech.attribute("height") = parseInt(body.attribute("height")) - 90;
- btn_cancel.attribute("left") = parseInt(body.attribute("width")) -73;
- btn_cancel.attribute("top") = parseInt(body.attribute("height")) - 37;
- button1.attribute("left") = parseInt(body.attribute("width")) -143;
- button1.attribute("top") = parseInt(body.attribute("height")) - 37;
- btn_save.attribute("left") = parseInt(body.attribute("width")) -201;
- btn_save.attribute("top") = parseInt(body.attribute("height")) - 37;
- model.refresh();
- ]]>
- </script>
- <button id="btn_cancel" class="btn4_letter2" style="left:889px; top:502px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //부모창이 수가관리일 경우에만 해당!
- if(checkOpener()) {
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter3" style="left:948px; top:502px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fclear();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:829px; top:502px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(!checkGridUpdate(grd_mech)) {
- messageBox("변경 대상이 ", "I004")
- return;
- }
- var updatedata = grd_mech.getUpdateData("update");
- //alert(updatedata);
- var sRtnMsg = messageBox("간호처방명 수정을 ", "Q003");
- if(sRtnMsg != 6) return;
- model.makeValue("/root/send/mechinfo",updatedata);
- if(submit("TXMNB02301")){
- model.removenode("/root/send/mechinfo");
- //fJoHoi();
- grd_mech.clearStatus();
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|