123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPR01600_예문관리.xfm
- * 설 명 : 예문관리
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2007.0.28
- * 수정이력 :
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?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>
- <exmpcnts>
- <exmplist>
- <instcd/>
- <rgstdrid/>
- <rgstdrnm/>
- <exmpcd/>
- <exmpnm/>
- <docuno/>
- </exmplist>
- </exmpcnts>
- <exmpinfo>
- <instcd/>
- <rgstdrid/>
- <exmpcd/>
- <exmpnm/>
- <basepartcd/>
- <basepartnm/>
- <detlpartcd/>
- <detlpartnm/>
- <docuno/>
- <docunm/>
- <exmpcnts/>
- <delflagcd/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastrgstdt/>
- <lastrgstrid/>
- </exmpinfo>
- </main>
- <send>
- <rgstdrid/>
- </send>
- <init>
- <exmpinfo>
- <instcd/>
- <rgstdrid/>
- <exmpcd/>
- <docuno/>
- <exmpcnts/>
- </exmpinfo>
- <userid>
- <userinfolist/>
- </userid>
- </init>
- <hidden>
- <refvalnm/>
- <refvalcd/>
- <reflagcd>0</reflagcd>
- <searchflag>1</searchflag>
- <refval/>
- </hidden>
- </root>
- </instance>
- <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/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <!-- <script type="javascript" src="../../../emr/medirecweb/js/MMRCommon.js"/> -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exmpcnts/exmplist"/>
- <submission id="TRLPC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/exmpinfo"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userid/useridlist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // frozen 검사 예문 조회 시 해당 의사 ID 값 저장을 위한 변수
- var getDrID = "0000000000";
-
- /* @group : 예문관리
- * @ver : 2007.10.13 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 처리 Function
- */
- function fExeInitialize()
- {
- //----------------------
- // 병리과 의사목록을 조회
- lpzfExeRemakeSendNode(1); //send data reset function
- model.makeValue("/root/send/data1", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/hidden/userinfo/instcd", getUserInfo("dutplceinstcd"));
- //submit("TRLPZ00105");
-
- // 의사목록 조회....
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userdeptcd", "-");
- model.makeValue("/root/send/doctjobgradcd", "1"); // 예문 추가시 의사만 보일 수 있도록
- model.makeValue("/root/send/teamjobgradcd", "-");
- submit("TRLPZ00105");
-
- //등록의사에 Mcode 추가
- var nodelist = instance1.selectNodes("/root/init/userid/userinfolist");
- var newNode = instance1.createNode("element", "userinfolist", "");
- var childnode1 = instance1.createNode("element", "dutplceinstcd", "");
- var childnode2 = instance1.createNode("element", "userid", "");
- var childnode3 = instance1.createNode("element", "usernm", "");
- var childnode4 = instance1.createNode("element", "jobkindcd", "");
- var childnode5 = instance1.createNode("element", "userabbr", "");
- var childnode6 = instance1.createNode("element", "mpphonno", "");
- newNode.appendChild(childnode1);
- newNode.appendChild(childnode2);
- newNode.appendChild(childnode3);
- newNode.appendChild(childnode4);
- newNode.appendChild(childnode5);
- newNode.appendChild(childnode6);
-
- if (nodelist.length > 0) {
- var currNode = root.init.userid.insertAfter(newNode, nodelist.item((getNodesetCount("/root/init/userid/userinfolist")-1)));
-
- iNodeCnt = getNodesetCount("/root/init/userid/userinfolist");
-
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/dutplceinstcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/userid", "mcode");
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/usernm", "Mcode");
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/jobkindcd", "9");
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/userabbr", "-");
- model.setValue("/root/init/userid/userinfolist[" +iNodeCnt+ "]/mpphonno", "-");
-
- }
-
- //----------------------------------------------
- // 병리과 공용예문 등록을 위한 가상의 의사ID를 생성
- model.makeNode("/root/init/userid/useridlist[1]/instcd");
- model.makeNode("/root/init/userid/useridlist[1]/userid");
- model.makeNode("/root/init/userid/useridlist[1]/usernm");
- model.setValue("/root/init/userid/useridlist[1]/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/init/userid/useridlist[1]/userid", "0000000000");
- model.setValue("/root/init/userid/useridlist[1]/usernm", "공용");
-
- // frozen 검사 예문 조회 시 해당 의사 ID 값
- getDrID = opener.javascript.getParameter("SPLPR01600_rgstdrid");
-
- //--------------
- // 일반예문 검색
- model.makeValue("/root/send/useynflag", "0"); // 조회조건 사용여부구분
- model.makeValue("/root/send/refflagcd", "0"); // 조회조건
- model.makeValue("/root/send/refval", ""); // 조회값
- model.makeValue("/root/send/bizflagcd", "R"); // 업무구분코드
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
-
- if (getDrID.length > 0)
- {
- model.setValue("/root/hidden/reflagcd", 1);
- model.makeValue("/root/send/rgstdrid", getDrID); // 등록의사ID
- }
- else
- {
- model.setValue("/root/hidden/reflagcd", 1);
- model.makeValue("/root/send/rgstdrid", "0000000000"); // 등록의사ID
- }
-
- submit("TRLPC00801");
- //--------------------------------------------------
- model.makeValue("/root/init/exmpinfo/instcd", "");
- model.makeValue("/root/init/exmpinfo/rgstdrid", "");
- model.makeValue("/root/init/exmpinfo/exmpcd", "");
- model.makeValue("/root/init/exmpinfo/docuno", "");
- model.makeValue("/root/init/exmpinfo/exmpcnts", "");
-
- //--------------------------
- model.toggle("case_normal");
-
- //--------------
- clearParameter("SPLPR01600_rgstdrid");
- model.refresh();
- }
-
- /* @group : 예문관리
- * @ver : 2007.10.13 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 처리 Function
- */
- function fExeClose() {
- window.close();
- }
-
- /* @group : 예문관리
- * @ver : 2007.10.13 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문 그리드 선택 처리 Function
- */
- function fExeGridChoi() {
- if(grd_exmplist.row > 0 && grd_exmplist.isCell(event.target) && grd_exmplist.row >= grd_exmplist.fixedRows) {
- fExeExmpRef();
- }
- }
-
- /* @group : 예문관리
- * @ver : 2007.10.13 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문내용 조회 처리 Function
- */
- function fExeExmpRef() {
-
- var sNode = "/root/main/exmpcnts/exmplist";
- var sDocuNo = model.getValue("/root/main/exmpinfo/docuno");
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", model.getValue(sNode+"["+grd_exmplist.row+"]/instcd"));
- model.makeValue("/root/send/rgstdrid", model.getValue(sNode+"["+grd_exmplist.row+"]/rgstdrid"));
- model.makeValue("/root/send/exmpcd", model.getValue(sNode+"["+grd_exmplist.row+"]/exmpcd"));
- if (submit("TRLPC00802", false)) {
- model.makeValue("/root/init/exmpinfo/instcd", model.getValue("/root/main/exmpinfo/instcd"));
- model.makeValue("/root/init/exmpinfo/rgstdrid", model.getValue("/root/main/exmpinfo/rgstdrid"));
- model.makeValue("/root/init/exmpinfo/exmpcd", model.getValue("/root/main/exmpinfo/exmpcd"));
- model.makeValue("/root/init/exmpinfo/docuno", model.getValue("/root/main/exmpinfo/docuno"));
- model.makeValue("/root/init/exmpinfo/exmpcnts", model.getValue("/root/main/exmpinfo/exmpcnts"));
-
- if (sDocuNo == "" || sDocuNo == "-") {
- // Continue
- } else {
- if (sDocuNo.isNumber()) { // 서식번호는 숫자로만 이루어져 있음. 2010-10-07 : YDC
- ivw_loader.window.javascript.fLoadNewForm(model.getValue("/root/main/exmpinfo/docuno"));
- model.toggle("case_loader");
- btn_loader.selected = true;
- }
- }
- } else {
- model.makeValue("/root/init/exmpinfo/instcd", "");
- model.makeValue("/root/init/exmpinfo/rgstdrid", "");
- model.makeValue("/root/init/exmpinfo/exmpcd", "");
- model.makeValue("/root/init/exmpinfo/docuno", "");
- model.makeValue("/root/init/exmpinfo/exmpcnts", "");
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 예문관리
- * @ver : 2007.12.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문내용 저장 처리 Function
- */
- function fExeSave() {
- var dNode = "/root/temp/medirec/medireccnts";
- var iMaxRowCnt = 0;
- var iDegnItemNo = 0;
- var sExmpCnts = "";
-
- /*
- degnitemlevlno --> 들여쓰기
- viewcnts --> 내용
- 이상현 11-29 14:30
- loader.javascript.fGetPreviewData("copy", "/root/temp/medirec", opener.model, "all);
- </medireccnts>
- </medirec>
- </temp>
- */
- //---------------------
- // 일반예문일 경우 처리
- if (btn_normal.selected == true) {
- opener.javascript.setParameter( "SPLPR01600_exmpcnts", model.getValue("/root/init/exmpinfo/exmpcnts") );
- } else {
- //-------------------
- // 미리보기 노드 생성
- ivw_loader.window.javascript.fGetPreviewData("copy", "/root/temp/medirec", model, "all");
-
- //--------------
- sExmpCnts = "";
- iMaxRowCnt = getNodesetCount(dNode);
-
- //-----------------------------------------
- for (var iNo=1; iNo <= iMaxRowCnt; iNo++) {
- iDegnItemNo = model.getValue(dNode+"["+iNo+"]/degnitemlevlno");
- sExmpCnts += "".toString().getLeftPad(Number(iDegnItemNo) * 4, " ");
- sExmpCnts += model.getValue(dNode+"["+iNo+"]/viewcnts") + "\n";
- }
-
- //------------------------------------------------------------------
- opener.javascript.setParameter( "SPLPR01600_exmpcnts", sExmpCnts );
- }
-
- //------------
- window.close();
- }
-
- function fGetExamList() {
- //--------------
- // 일반예문 검색
- model.makeValue("/root/send/useynflag", "0"); // 조회조건 사용여부구분
- //model.makeValue("/root/send/refflagcd", "1"); // 조회조건
-
- model.makeValue("/root/send/bizflagcd", "R"); // 업무구분코드
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
-
- if (ipt_seaval.currentText != "")
- {
- model.makeValue("/root/hidden/refval", model.getValue("/root/hidden/refvalnm"));
- model.makeValue("/root/send/refflagcd", "1");
- }
- else if (input1.currentText != "")
- {
- model.makeValue("/root/hidden/refval", model.getValue("/root/hidden/refvalcd"));
- model.makeValue("/root/send/refflagcd", "0");
- } else {
- model.makeValue("/root/hidden/refval", "");
- }
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval"));
- model.makeValue("/root/send/searchflag", model.getValue("/root/hidden/searchflag"));
-
- submit("TRLPC00801");
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1108" pageheight="770" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_biz" style="left:0px; top:0px; width:1090px; height:723; ">
- <button id="btn_loader" class="btn_sw_bottom" visibility="hidden" group="tab" selected="true" style="left:0px; top:85px; width:60px; height:22px; ">
- <caption>서식예문</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- <toggle case="case_loader" ev:event="DOMActivate"/>
- </button>
- <switch id="swt_loader" style="left:63px; top:0px; width:647; height:723; ">
- <case id="case_loader"/>
- <case id="case_normal" selected="true">
- <textarea id="textarea1" ref="/root/init/exmpinfo/exmpcnts" style="left:5px; top:5px; width:640px; height:713; "/>
- </case>
- </switch>
- <line id="line18" class="line_1" style="x1:715px; y1:120px; x2:1088px; y2:120px; "/>
- <caption id="caption37" class="tit_2" style="left:715px; top:105px; width:144px; height:13px; ">전체 예문목록</caption>
- <datagrid id="grd_exmplist" nodeset="/root/main/exmpcnts/exmplist" autoresize="true" caption="기관코드^등록의사ID^caption1^예문코드^예문명^서식번호" colsep="^" colwidth="0, 0, 0, 80, 200, 75" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:715px; top:125px; width:373px; height:597px; ">
- <col ref="instcd"/>
- <col ref="rgstdrid"/>
- <col ref="rgstdrnm"/>
- <col ref="exmpcd"/>
- <col ref="exmpnm"/>
- <col ref="docuno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeGridChoi();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_exmplist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fExeGridChoi();
- fExeSave();
- ]]>
- </script>
- </datagrid>
- <button id="btn_normal" class="btn_sw_bottom" group="tab" selected="true" style="left:0px; top:0; width:60px; height:22px; ">
- <caption>일반예문</caption>
- <toggle case="case_normal" ev:event="DOMActivate"/>
- </button>
- <group id="group2" style="left:715px; top:0px; width:373px; height:100px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:372px; height:95px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:290px; y1:65px; x2:290px; y2:82px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_seaval" ref="/root/hidden/refvalnm" class="input_search" navindex="6" maxlength="10" style="left:90px; top:70px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/hidden/refvalnm", ipt_seaval.currentText)
- ipt_seaval.refresh();
-
- //------------
- fGetExamList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/refvalcd", "");
- input1.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:9px; top:71px; width:98px; height:17px; ">예문명</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:305px; top:63px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetExamList();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:9px; top:50px; width:86px; height:17px; ">예문코드</caption>
- <input id="input1" ref="/root/hidden/refvalcd" class="input_search" navindex="6" maxlength="10" style="left:90px; top:50px; width:135px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13) {
- model.setValue("/root/hidden/refvalcd", input1.currentText)
- ipt_seaval.refresh();
-
- //------------
- fGetExamList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/hidden/refvalnm", "");
- ipt_seaval.refresh();
- ]]>
- </script>
- </input>
- <select1 id="radio1" ref="/root/hidden/reflagcd" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:90px; top:10px; width:135px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>판독의사별</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/reflagcd") == "0") {
-
- if(model.getValue("/root/send/rgstdrid") != "") {
- getDrID = model.getValue("/root/send/rgstdrid");
- model.makeValue("/root/send/rgstdrid", "");
- }
- cmb_rgstdr.disabled = true;
-
- } else {
- if(getDrID != "") {
- model.makeValue("/root/send/rgstdrid", getDrID);
- }
- cmb_rgstdr.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_rgstdr" ref="/root/send/rgstdrid" appearance="minimal" style="left:222px; top:9px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userid/userinfolist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/hidden/searchflag" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:90px; top:30px; width:100px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>정열</label>
- <value>0</value>
- </item>
- <item>
- <label>필터</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/hidden/reflagcd") == "0") {
-
- if(model.getValue("/root/send/rgstdrid") != "") {
- getDrID = model.getValue("/root/send/rgstdrid");
- model.makeValue("/root/send/rgstdrid", "");
- }
-
- } else {
- if(getDrID != "") {
- model.makeValue("/root/send/rgstdrid", getDrID);
- }
- }
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:9px; top:10px; width:86px; height:17px; ">검색조건</caption>
- </group>
- <caption id="caption4" class="tit_2" style="left:895px; top:105px; width:144px; height:13px; ">전체 예문목록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:723; width:1090; height:27px; ">
- <button id="btn_exit" class="btn4_letter2" navindex="9" style="left:1034; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClose();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="8" style="left:975; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1090; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|