123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456 |
- <?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>U</basecdflag>
- <seq/>
- <dispnm/>
- </exmptmpl>
- </exmptmpllist>
- <sendcontens/>
- </main>
- <send>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <data>
- <basecdflagdesc/>
- <basecdflag>U</basecdflag>
- </data>
- <savedata/>
- </send>
- <hidden>
- <comprod>1000008513</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"/>
- <submission id="TRAAA00001"/>
- </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="../../../com/commonweb/js/numericHelper.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" src="../../../ast/examcureweb/js/combolist.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");
-
- //2011.06.13 com공통코드에서 ast공통코드로 수정(핵체내 판독예문 추가로 인해) - 박재영
- //zbcfGetCodeList( new Array("A0434"), new Array("/root/hidden/comprod") );
- //submit("TRZBC00101", false);
- astGetComboList( new Array("A0434"), new Array("/root/hidden/comprod") );
- submit("TRAAA00001", false);
- model.removeNodeset("/root/hidden/comprod/A0434[" + 1 + "]");
-
- //rdo_comprod.attribute("overflow")= "visible";
- if(checkOpener()) //opener 검사
- {
- var tmplcd = opener.model.getValue("/root/send/reqattachlist/tmplcd");
- if(tmplcd != ""){
- model.setValue("/root/hidden/comprod",tmplcd);
- }
- }
- 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(36, 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");
- var basecd = model.getValue("/root/main/exmptmpllist/exmptmpl["+grd_exmptmpl.row+"]/basecd");
- var basecdflagdesc = model.getValue("/root/send/data/basecdflagdesc");
- if(basecdflagdesc == "1000008513"){ //상부
- if(basecd.substring(0,5) == "ESOPH"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0006517", itemVal, true);
- }else if(basecd.substring(0,5) == "STOMA"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0003404", itemVal, true);
- }else if(basecd.substring(0,5) == "DUODE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0008581", itemVal, true);
- }else if(basecd.substring(0,5) == "SEDAT"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007020", itemVal, true);
- }else if(basecd.substring(0,5) == "IMPRE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0001019", itemVal, true);
- }else if(basecd.substring(0,5) == "PROCE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0005298", itemVal, true);
- }else if(basecd.substring(0,5) == "RECOM"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007168", itemVal, true);
- }
- }else if(basecdflagdesc == "1000008523"){ //하부
- if(basecd.substring(0,5) == "TERMI"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0027879", itemVal, true);
- }else if(basecd.substring(0,5) == "COLON"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0002385", itemVal, true);
- }else if(basecd.substring(0,5) == "ANORE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0030394", itemVal, true);
- }else if(basecd.substring(0,5) == "SEDAT"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007020", itemVal, true);
- }else if(basecd.substring(0,5) == "IMPRE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0001019", itemVal, true);
- }else if(basecd.substring(0,5) == "PROCE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0005298", itemVal, true);
- }else if(basecd.substring(0,5) == "RECOM"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007168", itemVal, true);
- }
- }else if(basecdflagdesc == "1000008515"){ //ERCP
- if(basecd.substring(0,5) == "DUODE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0021659.0030399", itemVal, true);
- }else if(basecd.substring(0,5) == "MAJOR"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0021659.0030400", itemVal, true);
- }else if(basecd.substring(0,5) == "MINOR"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0021659.0030401", itemVal, true);
- }else if(basecd.substring(0,5) == "CHOLA"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0030402.0030403", itemVal, true);
- }else if(basecd.substring(0,2) == "GB"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0030402.0016095", itemVal, true);
- }else if(basecd.substring(0,5) == "PANCR"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0030404", itemVal, true);
- }else if(basecd.substring(0,5) == "OTHER"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0000146", itemVal, true);
- }else if(basecd.substring(0,5) == "SEDAT"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007020", itemVal, true);
- }else if(basecd.substring(0,5) == "IMPRE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0001019", itemVal, true);
- }else if(basecd.substring(0,5) == "PROCE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0005298", itemVal, true);
- }else if(basecd.substring(0,5) == "RECOM"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007168", itemVal, true);
- }
- }else if(basecdflagdesc == "1000008514"){ //EUS
- if(basecd.substring(0,5) == "ESOPH"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0006517", itemVal, true);
- }else if(basecd.substring(0,5) == "STOMA"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0003404", itemVal, true);
- }else if(basecd.substring(0,5) == "PANCR"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0030398", itemVal, true);
- }else if(basecd.substring(0,5) == "SEDAT"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007020", itemVal, true);
- }else if(basecd.substring(0,5) == "IMPRE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0001019", itemVal, true);
- }else if(basecd.substring(0,5) == "PROCE"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0005298", itemVal, true);
- }else if(basecd.substring(0,5) == "RECOM"){
- opener.ivw_loader.ivw_base.window.javascript.setFormItemValue("0007168", itemVal, true);
- }
- }
-
- }else {
- messageBox("Parent 창[결과관리]이 변경되었습니다.","I999");
- return;
- }
- //2011.04.13 주석처리
- //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"));
-
- var sortno = 0;
- if (submit("TRAEB00302")) {
- for ( var i = 1; i <= grd_exmptmpl.rows; i++ ) {
- grd_exmptmpl.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_exmptmpl.rowstyle( i , "data" , "color" ) = "#000000";
- sortno = grd_exmptmpl.valueMatrix(i, grd_exmptmpl.colRef("sortno"));
- if ( sortno.isNumber()) {
- if (sortno < 19 ) {
- grd_exmptmpl.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
- }
- }
- }
- model.refresh();
- }
- }
- 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"));
-
- var sortno = 0;
- if (submit("TRAEB00302")) {
- for ( var i = 1; i <= grd_exmptmpl.rows; i++ ) {
- grd_exmptmpl.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_exmptmpl.rowstyle( i , "data" , "color" ) = "#000000";
- sortno = grd_exmptmpl.valueMatrix(i, grd_exmptmpl.colRef("sortno"));
- if ( sortno.isNumber()) {
- if (sortno < 11 ) {
- grd_exmptmpl.rowstyle( i , "data" , "background-color" ) = "#FFE4C4";
- }
- }
- }
- model.refresh();
- }
- }
- /* @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:55px; width:995px; height:520px; ">
- <button id="button4" class="btn2_letter3" style="left:326px; top:20px; 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:20px; 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:25px; width:146px; height:13px; ">예문 현황</caption>
- <datagrid id="grd_exmptmpl" nodeset="/root/main/exmptmpllist/exmptmpl" caption="코드^제목^내용^순번^basecdflagdesc^basesuppdeptcd^basecdflag^seq" colsep="^" colwidth="60, 242, 250, 35, 0, 0, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:4px; top:46px; width:377px; height:471px; ">
- <col ref="basecd" type="input"/>
- <col ref="dispnm" type="input"/>
- <col ref="basecdcnts" type="input" visibility="hidden" style="left:80px; top:23px; width:250px; height:23px; "/>
- <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:41px; x2:381px; y2:41px; "/>
- <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:20px; 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>
- <caption id="caption4" style="left:10px; top:0px; width:892px; height:20px; color:#ff6600; ">*명명규칙 : 예문코드는 해당 보고서에 대한 각각의 소분류의 첫 5자리(대문자)로 구분을 해야됩니다. (단 소분류가 5자리보다 작을경우 소분류 자릿수로 그대로 사용)</caption>
- </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>
|