123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <lpcmspcm>
- <lpcmspcmlist>
- <status/>
- <spccd/>
- <spcnm/>
- <orddeptcd/>
- <spckind/>
- <spckindno/>
- </lpcmspcmlist>
- <totlpcmspcmlist>
- <status/>
- <spccd/>
- <spcnm/>
- <orddeptcd/>
- <spckind/>
- <spckindno/>
- </totlpcmspcmlist>
- </lpcmspcm>
- </main>
- <lpcmspcmsrch>
- <lpcmspcmlist>
- <status/>
- <spccd/>
- <spcnm/>
- <orddeptcd/>
- <spckind/>
- <spckindno/>
- </lpcmspcmlist>
- </lpcmspcmsrch>
- <clinccmt>
- <clinccmtlist>
- <status/>
- <cdkind/>
- <cdno/>
- <etccnts/>
- <orddeptcd/>
- </clinccmtlist>
- </clinccmt>
- <init>
- <msrght>
- <mouserght>
- <label>삭제</label>
- <func>fDeleteRow</func>
- </mouserght>
- </msrght>
- <spcmsrght>
- <mouserght>
- <label>삭제</label>
- <func>fSpcDeleteRow</func>
- </mouserght>
- </spcmsrght>
- <deptlist>
- <orddept/>
- </deptlist>
- <orddeptcd/>
- <orddept/>
- </init>
- <send>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4>cls</cond4>
- </send>
- <reset>
- <clinccmtlist>
- <status>I</status>
- <cdkind/>
- <cdno/>
- <etccnts/>
- <orddeptcd/>
- </clinccmtlist>
- </reset>
- <dept/>
- <prcpclscdlist>
- <prcpclscdlist/>
- </prcpclscdlist>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- button1.selected = true;
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "A");
- model.setValue ( "/root/init/orddeptcd", getUserInfo("dutplcecd"));
-
- if(submit("TRMMB02304")){
- var calcscorcd = model.getValue ( "/root/prcpclscdlist/prcpclscdlist/calcscorcd" );
- if (!isNull(calcscorcd)) {
- datagrid1.row = 1;
- model.setValue ( "/root/send/cond1", calcscorcd );
- submit ( "TRMMB02301" );
- }
- }
-
- if ( !isNull ( cmb_ordept.label) ) {
- cmb_ordept.disabled = true;
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd"));
- model.setValue ( "/root/send/cond2", "1" );
- model.setValue ( "/root/send/cond3", calcscorcd );
- submit ( "TRMMB02302",false );
- submit ( "TRMMB02211" );
- fColorSetting();
- } else {
- cmb_ordept.disabled = false;
- model.removeNodeset ( "/root/main/lpcmspcm/lpcmspcmlist" );
- model.removeNodeset ( "/root/clinccmt/clinccmtlist" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fDeleteRow () {
- var selectedRows = grd_uselpcmspcm.selectedRows;
- for (i= selectedRows-1; i >= 0; i--){
- var status = model.getValue ( "/root/main/lpcmspcm/lpcmspcmlist[" + grd_uselpcmspcm.selectedrow(i) + "]/status" );
- if (status=="-" || status=="U" ) {
- model.setValue ( "/root/main/lpcmspcm/lpcmspcmlist[" + grd_uselpcmspcm.selectedrow(i)+ "]/status", "D" );
- } else if ( status =="I" ){
- model.removeNode ( "/root/main/lpcmspcm/lpcmspcmlist[" + grd_uselpcmspcm.selectedrow(i) + "]" );
- } else if (status=="D" ) {
- model.setValue ( "/root/main/lpcmspcm/lpcmspcmlist[" + grd_uselpcmspcm.selectedrow(i)+ "]/status", "-" );
- }
- }
- model.refresh();
- }
-
- function fColorSetting () {
- var srcNodes = model.instances(0).selectNodes ( "/root/lpcmspcmsrch/lpcmspcmlist" );
- for ( var i = 1; i <= srcNodes.length; i++ ) {
- var spccd = model.getValue ("/root/lpcmspcmsrch/lpcmspcmlist[" + i + "]/spccd" );
- var chkspccd = model.getValue ( "/root/main/lpcmspcm/totlpcmspcmlist[spccd='" + spccd + "']/spccd" );
- if ( !isNull(chkspccd)) {
- grd_lpcmspcm.rowstyle(i, "data", "font-weight") = "bold";
- } else {
- grd_lpcmspcm.rowstyle(i, "data", "font-weight") = "normal";
- }
- }
- }
-
- function fMouseRghtBtnPopup() {
- if (event.button == 3) {
- if (grd_uselpcmspcm.isCell(event.target) && grd_uselpcmspcm.mouseRow >= grd_uselpcmspcm.fixedRows) {
- app.showPopupMenu(true);
- window.setPopupMenu(true, "/root/init/msrght/mouserght", "label", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- }
-
- function fSpcDeleteRow () {
- var selectedRows = grd_clinccmtlist.selectedRows;
- for( var i= 0; i < selectedRows; i++ ){
- var status = model.getValue ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.selectedrow(i) + "]/status" );
- if (status=="-" || status=="U" ) {
- model.setValue ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.selectedrow(i)+ "]/status", "D" );
- } else if ( status =="I" ){
- model.removeNode ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.selectedrow(i) + "]" );
- } else if (status=="D" ) {
- model.setValue ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.selectedrow(i)+ "]/status", "-" );
- }
- }
- model.refresh();
- }
-
- function fSpcMouseRghtBtnPopup() {
- if (event.button == 3) {
- if (grd_clinccmtlist.mouseRow >= grd_clinccmtlist.fixedRows) {
- app.showPopupMenu(true);
- window.setPopupMenu(true, "/root/init/spcmsrght/mouserght", "label", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- }
- ]]>
- </script>
- <submission id="TRMMB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/lpcmspcmsrch"/>
- <submission id="TXMMB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lpcmspcm"/>
- <submission id="TRMMB02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/lpcmspcm"/>
- <submission id="TRMMB02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpclscdlist"/>
- <submission id="TRMMB02211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/clinccmt"/>
- <submission id="TXMMB02211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond1" resultref="/root/clinccmt"/>
- <submission id="TRMMO04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/dept" resultref="/root/init/orddept"/>
- <submission id="TRMMB04101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="816" pageheight="516" guideline="2,514;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <switch id="switch1" style="left:5px; top:22px; width:790px; height:475px; ">
- <case id="case1" selected="true">
- <button id="button37" class="btn2_letter2" style="left:480px; top:5px; width:42px; height:19px; ">
- <caption>복사</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var spccd = "";
- for ( var i = 1; i <= grd_lpcmspcm.rows; i++ ) {
- if ( model.getValue ( "/root/lpcmspcmsrch/lpcmspcmlist[" + i + "]/status") == "I" ) {
- spccd = model.getValue ( "/root/lpcmspcmsrch/lpcmspcmlist[" + i + "]/spccd" );
- if ( isNull ( model.getValue ( "/root/main/lpcmspcm/lpcmspcmlist[spccd='" + spccd + "']/spccd" ))) {
- model.setValue ( "/root/lpcmspcmsrch/lpcmspcmlist[" + i + "]/orddeptcd", model.getValue ( "/root/init/orddeptcd"));
- var pDestNode = model.instances(0).selectSingleNode("/root/main/lpcmspcm");
- var pSrchNode = model.instances(0).selectSingleNode("/root/lpcmspcmsrch/lpcmspcmlist[" + i + "]");
- pDestNode.appendChild(pSrchNode.cloneNode(true));
-
- } else {
- messageBox ( model.getValue ( "/root/lpcmspcmsrch/lpcmspcmlist[spccd='" + spccd + "']/spcnm" ) + "는 이미 있는 검체명 입니다", "E" );
- }
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:740px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var saveClincCmt = model.instances(0).selectNodes( "/root/main/lpcmspcm/lpcmspcmlist" );
- model.setValue ( "/root/send/cond1", getNodeListCSV(saveClincCmt));
- submit ( "TXMMB02301" );
- if ( !isNull ( cmb_ordept.label) ) {
- var calcscorcd = model.getValue ( "/root/prcpclscdlist/prcpclscdlist[" + datagrid1.row + "]/calcscorcd" );
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd"));
- model.setValue ( "/root/send/cond2", "1" );
- model.setValue ( "/root/send/cond3", calcscorcd );
- submit ( "TRMMB02302", false );
- }
- model.refresh();
- fColorSetting();
- ]]>
- </script>
- </button>
- <datagrid id="grd_uselpcmspcm" nodeset="/root/main/lpcmspcm/lpcmspcmlist" caption="^자주쓰는 병리검체" colsep="^" colwidth="35, 199" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:530px; top:31px; width:256px; height:440px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="spcnm" type="output"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fMouseRghtBtnPopup();
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_1" style="x1:530px; y1:26px; x2:786px; y2:26px; "/>
- <line id="line1" class="line_1" style="x1:2px; y1:26px; x2:272px; y2:26px; "/>
- <datagrid id="grd_lpcmspcm" nodeset="/root/lpcmspcmsrch/lpcmspcmlist" caption="^병리검체" colsep="^" colwidth="30, 175" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:273px; top:31px; width:256px; height:440px; ">
- <col checkvalue="I,N" ref="status" type="checkbox" style="text-align:center; "/>
- <col ref="spcnm" type="output"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- var spcnm = model.getValue("/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]/spcnm");
- var spccd = model.getValue("/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]/spccd");
-
- var totchkspccd = model.getValue("/root/main/lpcmspcm/totlpcmspcmlist[spccd='" + spccd + "']/spccd");
- var chckspccd = model.getValue("/root/main/lpcmspcm/lpcmspcmlist[spccd='" + spccd + "']/spccd");
-
- var totchkspcnm = model.getValue ( "/root/main/lpcmspcm/totlpcmspcmlist[spcnm='" + spcnm + "']/spcnm" );
- var chckspcnm = model.getValue ( "/root/main/lpcmspcm/lpcmspcmlist[spcnm='" + spcnm + "']/spcnm" );
-
- if(isNull(totchkspccd) && isNull(chckspccd)){
- model.setValue ( "/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]/status", "I" );
- model.setValue ( "/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]/orddeptcd", model.getValue ( "/root/init/orddeptcd"));
- //var pDestNode = model.instances(0).selectSingleNode("/root/main/lpcmspcm");
- //var pSrchNode = model.instances(0).selectSingleNode("/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]");
- //pDestNode.appendChild(pSrchNode.cloneNode(true));
- model.duplicate ( "/root/main/lpcmspcm", "/root/lpcmspcmsrch/lpcmspcmlist[" + grd_lpcmspcm.row + "]" , "*[1]");
- } else {
- messageBox ("[" + spcnm + "]는 이미 있는 검체명", "E008" );
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <datagrid id="datagrid1" nodeset="/root/prcpclscdlist/prcpclscdlist" caption="검체분류" colsep="^" colwidth="250" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:30px; width:270px; height:440px; ">
- <col ref="prcpclsnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(isDataCell()){
- var calcscorcd = model.getValue ( "/root/prcpclscdlist/prcpclscdlist[" + datagrid1.row + "]/calcscorcd" );
- model.setValue ( "/root/send/cond1", calcscorcd );
- submit ( "TRMMB02301", false );
-
- if ( !isNull ( cmb_ordept.label) ) {
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd"));
- model.setValue ( "/root/send/cond2", "1" );
- model.setValue ( "/root/send/cond3", calcscorcd );
- submit ( "TRMMB02302", false );
- }
- model.refresh();
- fColorSetting();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:273px; y1:26px; x2:529px; y2:26px; "/>
- <select1 id="radio1" ref="/root/send/cond4" appearance="full" cols="2" overflow="visible" style="left:594px; top:7px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체조회</label>
- <value>all</value>
- </item>
- <item>
- <label>분류조회</label>
- <value>cls</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( !isNull ( cmb_ordept.label) ) {
- var calcscorcd = model.getValue ( "/root/prcpclscdlist/prcpclscdlist[" + datagrid1.row + "]/calcscorcd" );
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd"));
- model.setValue ( "/root/send/cond2", "1" );
- model.setValue ( "/root/send/cond3", calcscorcd );
- submit ( "TRMMB02302", false );
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </case>
- <case id="case2">
- <button id="button4" class="btn2_letter2" style="left:690px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue ( "/root/reset/clinccmtlist/cdkind", "1" );
- model.setValue ( "/root/reset/clinccmtlist/orddeptcd", model.getValue ( "/root/init/orddeptcd"));
- appendChildPrcp ( "/root/reset/clinccmtlist", "/root/clinccmt", "main" );
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter2" style="left:736px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var saveClincCmt = model.instances(0).selectNodes( "/root/clinccmt/clinccmtlist" );
- model.setValue ( "/root/send/cond1", getNodeListCSV(saveClincCmt));
- submit ( "TXMMB02211" );
- ]]>
- </script>
- </button>
- <datagrid id="grd_clinccmtlist" nodeset="/root/clinccmt/clinccmtlist" caption="^자주쓰는 병리임상소견" colsep="^" colwidth="35, 711" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:2px; top:31px; width:782px; height:440px; ">
- <col disabled="true" ref="status" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>신규</label>
- <value>I</value>
- </item>
- <item>
- <label>수정</label>
- <value>U</value>
- </item>
- <item>
- <label>삭제</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="etccnts" type="input"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fSpcMouseRghtBtnPopup();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var status = model.getValue ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.row + "]/status" );
- if (status=="-" ) {
- model.setValue ( "/root/clinccmt/clinccmtlist[" + grd_clinccmtlist.row+ "]/status", "U" );
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:2px; y1:26px; x2:784px; y2:26px; "/>
- </case>
- </switch>
- <button id="button1" class="btn_sw" group="tab" selected="true" style="left:9px; top:1px; width:60px; height:22px; ">
- <caption>검체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle ("case1" );
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:151px; top:2px; width:55px; height:20px; ">진료과:</caption>
- <button id="button3" class="btn_sw" group="tab" selected="true" style="left:69px; top:1px; width:62px; height:22px; ">
- <caption>임상소견</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle ("case2" );
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd" ));
- model.setValue ( "/root/send/cond2", "1" );
- submit ( "TRMMB02211" );
- ]]>
- </script>
- </button>
- <select1 id="cmb_ordept" ref="/root/init/orddeptcd" appearance="minimal" style="left:196px; top:2px; width:185px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( !isNull ( cmb_ordept.label) ) {
- model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/orddeptcd"));
- model.setValue ( "/root/send/cond2", "1" );
- submit ( "TRMMB02302",false );
- submit ( "TRMMB02211" );
- fColorSetting();
- } else {
- model.removeNodeset ( "/root/main/lpcmspcm/lpcmspcmlist" );
- model.removeNodeset ( "/root/clinccmt/clinccmtlist" );
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <line id="line4" style="x1:800px; y1:70px; x2:800px; y2:405px; "/>
- </xhtml:body>
- </xhtml:html>
|