123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?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="">
- <send>
- <flag>P</flag>
- <problem/>
- <careplan/>
- <deptcd/>
- <reqdata/>
- </send>
- <save>
- </save>
- <main>
- <sentslist>
- <chk/>
- <problem/>
- <careplan/>
- <flag/>
- <deptcd/>
- <seqno/>
- <useyn/>
- </sentslist>
- </main>
- <temp>
- <sentslist>
- <chk/>
- <flag/>
- <deptcd/>
- <problem/>
- <careplan/>
- <useyn/>
- </sentslist>
- </temp>
- <cond>
- <ward/>
- </cond>
- <init>
- <ward>
- <dept/>
- </ward>
- </init>
- </root>
- </instance>
- <submission id="TRMRJ09902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sentslist"/>
- <submission id="TXMRJ09901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/jcimngtweb/js/SMMRJ00100.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removenode("/root/main/sentslist");
- grd_sentslist.fixedcellcheckbox(0, 1) = true;
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/ward", "W"); //병동코드 콤보
- addComboInstance("/root/init/ward" , "deptcd^depthngnm", "-^전체", "dept"); //병동콤보 전체항목 추가
- btn_search.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="570" pageheight="560">
- <group id="grd_main" style="left:5px; top:5px; width:550px; height:65px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:550px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_problem" ref="/root/send/problem" class="input_search" style="left:367px; top:11px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:8px; top:12px; width:60px; height:17px; ">유형 :</caption>
- <select1 id="rdo_flag" ref="/root/send/flag" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:70px; top:13px; width:90px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>공용</label>
- <value>P</value>
- </item>
- <item>
- <label>부서</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/send/flag") == "D"){
- cmb_ward.disabled = false;
- model.makeValue("/root/cond/ward", "-");
- }else{
- cmb_ward.disabled = true;
- model.makeValue("/root/cond/ward", "");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_careplan" ref="/root/send/careplan" class="input_search" style="left:157px; top:37px; width:310px; height:19px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:485px; top:20px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if( model.getValue("/root/send/flag") == "D"){
- model.makeValue("/root/send/deptcd", model.getValue("/root/cond/ward"));
- }else{
- model.makeValue("/root/send/deptcd", "");
- }
-
- if (!submit("TRMRJ09902")){
- return;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:479px; y1:5px; x2:479px; y2:56px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption3" class="search_name" style="left:8px; top:37px; width:150px; height:17px; ">
- <![CDATA[Care Plan & goal :]]>
- </caption>
- <caption id="caption1" class="search_name" style="left:276px; top:12px; width:90px; height:17px; ">Problem :</caption>
- <select1 id="cmb_ward" ref="/root/cond/ward" class="combo_search" disabled="true" appearance="minimal" style="left:158px; top:10px; width:114px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ward/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <datagrid id="grd_sentslist" nodeset="/root/main/sentslist" autosizemouse="true" caption="^Problem^Care Plan & goal^flag^deptcd^seqno^useyn" colwidth="26, 109, 362, 34, 34, 34, 34" dataheight="25" defaultrows="0" rowheader="update" style="left:5px; top:104px; width:550px; height:420px; border-color:#808080; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="problem" type="input" maxbyte="300" maxlength="150"/>
- <col ref="careplan" type="input" maxbyte="1500" maxlength="750"/>
- <col ref="flag" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="useyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_sentslist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn5_letter3" style="left:388px; top:80px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_sentslist.addRow();
- var row = getNodesetCount("/root/main/sentslist");
- model.setValue("/root/main/sentslist["+row+"]/flag", model.getValue("/root/send/flag"));
- if( model.getValue("/root/send/flag") == "D" ){
- model.makeValue("/root/main/sentslist["+row+"]/deptcd", model.getValue("/root/send/deptcd"));
- }
- grd_sentslist.editCell();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter3" style="left:443px; top:80px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_sentslist.row;
- var rowStatus = grd_sentslist.rowStatus(row);
- if( rowStatus == 1 ){
- grd_sentslist.deleteRow(row);
- }else if( rowStatus == 0 ){
- grd_sentslist.rowStatus(row) = 4;
- model.setValue("/root/main/sentslist["+ row +"]/useyn", "N");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:500px; top:78px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/save", grd_sentslist.getUpdateData());
-
- if (submit("TXMRJ09901")) {
- messageBox("저장","I002");
- btn_search.dispatch("DOMActivate");
- } else {
- messageBox("저장을","E009");
- }
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:5px; top:535px; width:260px; height:15px; font-weight:bold; color:#ff0000; ">셀내에서 한줄띄움은 Ctrl+Enter 입니다.</caption>
- <caption id="caption4" style="left:250px; top:535px; width:235px; height:15px; font-weight:bold; ">단어는 최대 2000개까지 표시됩니다.</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:100px; x2:555px; y2:100px; "/>
- <button id="btn_ok" class="btn3_letter2" style="left:25px; top:78px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cnt = 0;
- for (var i = 1; i <= grd_sentslist.rows-grd_sentslist.fixedRows; i++) {
- if (model.getValue("/root/main/sentslist["+i+"]/chk") == "Y"){
- cnt += 1;
- opener.javascript.fClickRowAddBtn(parent.window.document.controls("datagrid03"),'003');
- opener.model.setValue("/root/main/careplanlists/careplanlist[workflag='003']/problem", model.getValue("/root/main/sentslist["+i+"]/problem"));
- opener.model.setValue("/root/main/careplanlists/careplanlist[workflag='003']/careplan", model.getValue("/root/main/sentslist["+i+"]/careplan"));
- }else{
- cnt += 0;
- }
- }
- grd_sentslist.fixedcellischeck(0,1) = false;
- grd_sentslist.clearStatus();
- if (cnt == 0){
- messageBox("복사할 항목을 체크해 주십시요","I");
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn1_letter2" style="left:495px; top:530px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|