123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <?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>
- <exmptmpllist>
- <exmptmpl>
- <basecd/>
- <basecdcnts/>
- <sortno/>
- <basecdflagdesc/>
- <basesuppdeptcd/>
- <basecdflag>X</basecdflag>
- <seq/>
- </exmptmpl>
- </exmptmpllist>
- <sendcontens/>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data>
- <basecdflagdesc/>
- <basecdflag>X</basecdflag>
- </data>
- <savedata/>
- </send>
- <hidden>
- <comprod>A</comprod>
- </hidden>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
-
- aezfSetSuppDeptcd();
-
- fSetInit();
-
- fGetInitList();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRAEB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exmptmpllist"/>
- <submission id="TXAEB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 특수검사예문관리(내시경)
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 특수검사예문관리 초기화 Function
- */
- function fSetInit() {
-
-
- fGetComProd();
- model.refresh();
- }
-
- /* @group : 특수검사예문관리(내시경)
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 특수검사예문관리 초기화-내시경코드 Function
- */
- function fGetComProd() {
- //model.removeNodeset("/root/hidden/comprod");
- zbcfGetCodeList( new Array("A0434"), new Array("/root/hidden/comprod") );
-
- submit("TRZBC00101", false);
- //rdo_comprod.attribute("overflow")= "visible";
- rdo_comprod.attribute("cols")= 12;
- rdo_comprod.refresh();
-
-
- }
-
- function fSendContents() {
- //alert("IN");
- if(checkOpener()) //opener 검사
- {//alert("sendcontents==>"+model.getValue("/root/main/sendcontens"));
- // alert(model.getValue("/root/main/exmptmpllist/exmptmpl["+grd_exmptmpl.row+"]/basecdcnts"));
- //opener.ivw_loader.window.javascript.fSetRecItemCnts_MMR01100(11, model.getValue("/root/main/exmptmpllist/exmptmpl["+grd_exmptmpl.row+"]/basecdcnts"));
- var itemVal = new ITEMVAL();
- itemVal.reccnts = model.getValue("/root/main/exmptmpllist/exmptmpl["+grd_exmptmpl.row+"]/basecdcnts");
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0001114", itemVal, true);
- }else {
- messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
- return;
- }
- window.close();
- }
-
- /* @group : 판독예문관리
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문 조회를 위한 Function
- */
- function fGetInitList() {
-
- model.removeNodeset("/root/main/exmptmpllist/exmptmpl");
-
- var index = rdo_comprod.focusIndex+1;
-
- //alert('index-->'+index);
-
- model.setValue("/root/send/data/basecdflagdesc", model.getValue("/root/hidden/comprod/A0434["+index+"]/cdid"));
-
- submit("TRAEB00302");
- }
- function fGetTmplList() {
-
-
-
- for ( var i = 0 ; i < grd_exmptmpl.rows ; i++) {
- grd_exmptmpl.rowstatus(i) = 0;
- }
-
- model.removeNodeset("/root/main/exmptmpllist/exmptmpl");
-
- var index = rdo_comprod.focusIndex+1;
-
- //alert('index-->'+index);
-
- model.setValue("/root/send/data/basecdflagdesc", model.getValue("/root/hidden/comprod/A0434["+index+"]/cdid"));
-
- submit("TRAEB00302");
- }
- /* @group : 판독예문관리
- * @ver : 2007.06.14
- * @by : 장준원
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문 저장/수정/삭제를 위한 Function
- */
- function fExeTmpl() {
-
- var row = grd_exmptmpl.row;
-
- if ( model.getValue("/root/main/sendcontens") == "" ) {
- messageBox("특수검사예문 내용이 존재하지 않습니다.","I999");
- return true;
- }
-
- model.setValue("/root/main/exmptmpllist/exmptmpl["+row+"]/basecdcnts", model.getValue("/root/main/sendcontens"));
- grd_exmptmpl.addStatus(row, "update");
-
- //alert(model.getValue("/root/main/exmptmpllist/exmptmpl["+row+"]/basecdcnts"));
- if ( messageBox("","Q002")==6 ) {
- var update = getGridUpdateData(grd_exmptmpl);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return;
-
- } else {
- //alert(update);
- model.setValue("/root/send/savedata", update);
- submit("TXAEB00302");
- }
- }
-
- fGetTmplList();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1000" pageheight="620">
- <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:217px; height:14px; vertical-align:middle; ">특수검사예문관리(판독)</caption>
- <group id="grp_sea" style="left:1px; top:20px; width:994px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:1px; top:0px; width:989px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:923px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTmplList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:907px; y1:7px; x2:907px; y2:29px; "/>
- </group>
- <select1 id="rdo_comprod" ref="/root/hidden/comprod" class="radio_search" appearance="full" style="left:10px; top:29px; width:890px; height:25px; font-weight:bold; ">
- <choices>
- <itemset nodeset="/root/hidden/comprod/A0434">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetTmplList();
- ]]>
- </script>
- </select1>
- <group id="group1" style="left:0px; top:60px; width:995px; height:515px; ">
- <button id="button4" class="btn2_letter3" style="left:326px; top:15px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_exmptmpl, true);
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter3" style="left:271px; top:15px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- grd_exmptmpl.addRow();
- // 행추가 시 bottomRow 사용하지 마세요!! 꼭
- //grd_exmptmpl.row = grd_exmptmpl.bottomRow;
- grd_exmptmpl.topRow = grd_exmptmpl.row;
-
- model.setValue("/root/main/exmptmpllist/exmptmpl["+ grd_exmptmpl.row +"]/basesuppdeptcd",model.getValue("/root/send/globalinstance/instance1"));
- var index = rdo_comprod.focusIndex+1;
-
- model.setValue("/root/main/exmptmpllist/exmptmpl["+ grd_exmptmpl.row +"]/basecdflagdesc",model.getValue("/root/hidden/comprod/A0434["+index+"]/cdid"));
- model.setValue("/root/main/exmptmpllist/exmptmpl["+ grd_exmptmpl.row +"]/basecdflag", model.getValue("/root/send/data/basecdflag"));
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:20px; width:146px; height:13px; ">예문 현황</caption>
- <datagrid id="grd_exmptmpl" nodeset="/root/main/exmptmpllist/exmptmpl" caption="코드^내용^순번^basecdflagdesc^basesuppdeptcd^basecdflag^seq" colsep="^" colwidth="35, 309, 50, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:4px; top:41px; width:377px; height:471px; ">
- <col ref="basecd" type="input"/>
- <col ref="basecdcnts" type="input"/>
- <col ref="sortno" type="input"/>
- <col ref="basecdflagdesc"/>
- <col ref="basesuppdeptcd"/>
- <col ref="basecdflag"/>
- <col ref="seq"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- grd_exmptmpl.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // model.setValue("/root/main/sendcontens", model.getValue("/root/main/examlist/contents"));
- //model.setValue("/root/main/sendcontens", "Premedication (algiron 5mg) 주사 후 2% Lidocaine viscous로 인두마취를 하고 위내시경을 시행함.\n식도 : 정상 \n위 :\nAdvanced gastric Ca.\n1) Gross type\n Borrmann 3\n2) Location of cancer : antrum, body, fundus, cardia\n3) Size : x cm\n4) Upper margin of cancer : \n Z-line 하방 cm, Angle 하방\n5) Lower margin of cancer :\n Pyloric ring 상부\n6) Depth of cancer : Pm, SS, SS 이상으로 추정됨.");
-
- var row = grd_exmptmpl.row;
- // alert(row);
- model.setValue("/root/main/sendcontens", model.getValue("/root/main/exmptmpllist/exmptmpl["+row+"]/basecdcnts"));
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:4px; y1:36px; x2:381px; y2:36px; "/>
- <button id="button6" visibility="hidden" style="left:165px; top:10px; width:100px; height:20px; ">
- <caption>button6</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = grd_exmptmpl.row ;
- alert(grd_exmptmpl.rowstatus(iRow));
- grd_exmptmpl.rowstatus(iRow) = 0;
- alert(grd_exmptmpl.rowstatus(iRow));
- ]]>
- </script>
- </button>
- <button id="button17" class="btn2_letter2" visibility="visible" style="left:225px; top:15px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
- grd_exmptmpl.saveExcel(file);
-
-
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption1" class="tit_2" style="left:390px; top:81px; width:146px; height:13px; ">예문내용</caption>
- <line id="line1" class="line_1" style="x1:388px; y1:96px; x2:993px; y2:96px; "/>
- <textarea id="textarea1" ref="/root/main/sendcontens" style="left:388px; top:101px; width:605px; height:471px; "/>
- <group id="group2" style="left:0px; top:580px; width:995px; height:35px; ">
- <button id="button2" class="btn4_letter2" style="left:265px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeTmpl();
- ]]>
- </script>
- </button>
- <button id="btn_cls" class="btn4_letter2" style="left:323px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="button3" class="btn4_letter2" style="left:205px; top:5px; width:56px; height:22px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if ( grd_exmptmpl.row < 1 ) return;
-
- //alert(model.getValue("/root/main/sendcontens"));
- fSendContents();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|