123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPB00800_외부슬라이드반납.xrw
- * 설 명 : 외부슬라이드반납 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.11.19
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <slidinfo>
- <slidlist>
- <choi/>
- <instcd/>
- <ptno/>
- <dispptno/>
- <relaptno/>
- <reladispptno/>
- <acptdd/>
- <pid/>
- <patnm/>
- <sexage/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <csteno/>
- <slidno/>
- <slidcnts/>
- <rtndd/>
- <rtntm/>
- <rtnid/>
- <rtnnm/>
- <imgrgstdd/>
- <imgno/>
- <dummy/>
- <appnm/>
- <appcntcno/>
- <rsltimg/>
- <bizflagcd/>
- </slidlist>
- </slidinfo>
- </main>
- <send/>
- <init>
- <ptnocode/>
- <fromyear/>
- <fromptno/>
- <toyear/>
- <toptno/>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <ptnocd>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- </ptnocdlist>
- </ptnocd>
- <refflagcd/>
- </init>
- <hidden>
- <acptfromdd/>
- <acpttodd/>
- <seameth>0</seameth>
- <seaval/>
- </hidden>
- <message/>
- </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="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
- <submission id="TRLPB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/slidinfo/slidlist"/>
- <submission id="TXLPB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 외부슬라이드반납 화면
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
- var sCurDate = "";
-
- //--------------------------------------------------
- model.removeNodeset("/root/main/slidinfo/slidlist");
-
- //----------------
- // 시스템일자 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102", false);
- submit("TRLPZ00109");
- //------------------------------------------------------------
- sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
-
- //------------
- // 초기값 설정
- model.makeValue("/root/hidden/seaval", ""); // 검색값
- model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
- model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
- model.makeValue("/root/hidden/seameth", "1"); // 검색방법(등록번호)
- model.makeValue("/root/init/refflagcd", "0"); // 조회구분(0:미반납, 1:반납)
- model.makeValue("/root/init/ptnocode", "");
- model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
- model.makeValue("/root/init/fromptno", "");
- model.makeValue("/root/init/toptno", "");
-
- //-----------------------------------------
- grd_slidlist.fixedcellcheckbox(0,1) = true;
-
- //-------------
- model.refresh();
- }
-
- /* @group : 외부슬라이드반납 화면
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 취소대상 접수자료 조회 처리 함수
- */
- function fGetSlidList() {
-
- var sTemp = "";
- var sFromDD = model.getValue("/root/hidden/acptfromdd");
- var sToDD = model.getValue("/root/hidden/acpttodd");
-
- //------------------------------------------------
- if (model.getValue("/root/init/ptnocode") != "") {
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromyear") == "") {
- model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/fromyear");
- model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toyear") == "") {
- model.makeValue("/root/init/toyear", sToDD.substr(2,2));
- } else {
- sTemp = model.getValue("/root/init/toyear");
- model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
- }
-
- //------------------------------------------------
- if (model.getValue("/root/init/fromptno") == "") {
- model.makeValue("/root/init/fromptno", "000000");
- } else {
- sTemp = model.getValue("/root/init/fromptno");
- model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
- }
-
- //----------------------------------------------
- if (model.getValue("/root/init/toptno") == "") {
- model.makeValue("/root/init/toptno", "999999");
- } else {
- sTemp = model.getValue("/root/init/toptno");
- model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- //--------------------------------------------
- sTemp = model.getValue("/root/init/ptnocode");
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd"));
- model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd"));
- model.makeValue("/root/send/refmthd", model.getValue("/root/hidden/seameth"));
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/seaval"));
- model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
- model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
- model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
- model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
- model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
- model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
-
- //-------------------
- submit("TRLPB00801");
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 외부슬라이드반납 Excel저장 처리 Function
- */
- function fExeSaveToExcel() {
-
- var sTitle = "외부 슬라이드 미반납";
-
- //-------------------------------------------------------------------------------
- if (model.getValue("/root/init/refflagcd") == "1") sTitle = "외부 슬라이드 반납";
-
- //---------------------------------------------------------------------------------
- grd_slidlist.saveExcel("C:\\SMLPB00800_외부슬라이드반납.xls", sTitle, false, true);
- messageBox("C:\\SMLPB00800_외부슬라이드현황.xls 파일이 생성이 ", "I002");
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검색값을 입력하고 Enter키를 누를 경우 처리 Function
- */
- function fExeInputKey() {
- if(event.keyCode == 13) {
- model.makeValue("/root/hidden/seaval", ipt_seaval.currentText);
- ipt_seaval.refresh();
- //-------------
- fGetSlidList();
- }
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.19 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회구분 변경 처리 Function
- */
- function fExeRefFlagChng() {
-
- //--------------------------------------------------
- if (model.getValue("/root/init/refflagcd") == "0") {
- cap_refdd.text = "접수일자 : ";
- btn_cncl.visible = false;
- btn_save.visible = true;
- } else {
- cap_refdd.text = "반환일자 : ";
- btn_cncl.visible = true;
- btn_save.visible = false;
- }
-
- //------------------
- cap_refdd.refresh();
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 그리드 선택 처리 Function
- */
- function fExeSlidGridChoi() {
- //if(grd_slidlist.row > 0 && grd_slidlist.isCell(event.target) && grd_slidlist.row >= grd_slidlist.fixedRows) {
- fExeSlidChoi(grd_slidlist.row);
- //}
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 슬라이드 선택 처리 Function
- */
- function fExeSlidChoi(pRow) {
-
- var sNode = "/root/main/slidinfo/slidlist";
- var iSNo = 1;
- var iENo = getNodesetCount(sNode);
-
- //----------------------
- if (Number(pRow) > 0) {
- iSNo = Number(pRow);
- iENo = Number(pRow);
- }
- //--------------------------------------------
- // 반납 슬라이드는 반환일시를 설정하지 않는다.
- if (model.getValue("/root/init/refflagcd") == "1") return false;
- //--------------------------------------
- for (var iNo=iSNo; iNo <= iENo; iNo++) {
- model.makeValue(sNode+"["+iNo+"]/rtndd", getCurrentDate());
- model.makeValue(sNode+"["+iNo+"]/rtntm", getCurrentTime());
- model.makeValue(sNode+"["+iNo+"]/rtnid", getUserInfo("userid"));
- model.makeValue(sNode+"["+iNo+"]/rtnnm", getUserInfo("usernm"));
- }
-
- //---------------------
- grd_slidlist.refresh();
- }
-
- /* @group : 외부슬라이드반납
- * @ver : 2007.11.20 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 외부 슬라이드 반납 저장 처리 Function
- */
- function fExeSave(pBizFlagCd) {
-
- var sNode = "/root/main/slidinfo/slidlist";
-
- //-------------------------
- grd_slidlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
-
- //----------------------------------------------------
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
- grd_slidlist.addStatus(iNo, "insert");
- model.makeValue(sNode+"["+iNo+"]/dummy", pBizFlagCd);
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/slidlist", grd_slidlist.getUpdateData());
- if (submit("TXLPB00801")) {
- model.removeNodeset(sNode+"[choi='true']");
- }
-
- //---------------------
- grd_slidlist.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button13" class="btn6_letter5" navindex="12" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="15" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("1");
- ]]>
- </script>
- </button>
- <button id="btn_cncl" class="btn4_letter2" navindex="15" visibility="hidden" style="left:1080px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave("2");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:220px; height:14px; ">외부 슬라이드반납</caption>
- </group>
- <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
- <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:146px; height:14px; ">슬라이드목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_seaval" ref="/root/hidden/seaval" class="input_search" navindex="6" maxlength="10" style="left:512px; top:8px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fExeInputKey();
- ]]>
- </script>
- </input>
- <caption id="caption3" class="search_name" style="left:421px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" class="search_no_b" style="left:979px; top:8px; width:12px; height:17px; ">~</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="10" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSlidList();
- ]]>
- </script>
- </button>
- <input id="ipt_cnclfromdd" ref="/root/hidden/acptfromdd" class="input_s_essential" navindex="8" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:876px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_cncltodd" ref="/root/hidden/acpttodd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:995px; top:8px; width:100px; height:19px; "/>
- <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" editmode="search" style="left:109px; top:8px; width:111px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ptnocd/ptnocdlist">
- <label ref="ptnonm"/>
- <value ref="ptnocd"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:253px; top:8px; width:50px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
- <caption id="caption7" class="search_no_b" style="left:306px; top:8px; width:12px; height:17px; ">~</caption>
- <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:351px; top:8px; width:50px; height:19px; "/>
- <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:321px; top:8px; width:27px; height:19px; "/>
- <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:223px; top:8px; width:27px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:610px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="cbo_refflagcd" ref="/root/init/refflagcd" navindex="7" appearance="minimal" style="left:701px; top:8px; width:69px; height:19px; ">
- <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[
- fExeRefFlagChng();
- ]]>
- </script>
- </select1>
- <caption id="cap_refdd" class="search_name" style="left:787px; top:9px; width:93px; height:17px; ">접수일자 :</caption>
- </group>
- <datagrid id="grd_slidlist" nodeset="/root/main/slidinfo/slidlist" class="datagrid2" caption="선
택^기관코드^병리번호^병리번호^관련병리번호^관련병리번호^접수일자^등록번호^환자명^성별
나이^spcacptdd^spcacptno^검체
번호^블럭
번호^슬라이드
번호^슬라이드 내용^반환일자^반환시간^반환자ID^반환자^이미지
등록일자^이미지번호^^신청자^신청자 연락처^이미지^이미지
업무구분코드" colsep="^" colwidth="50, 0, 0, 80, 0, 80, 80, 80, 80, 60, 0, 0, 50, 50, 70, 219, 80, 70, 0, 103, 0, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="11" style="left:0px; top:75px; width:1194px; height:653px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col ref="relaptno"/>
- <col class="text_center" ref="reladispptno"/>
- <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="patnm"/>
- <col class="text_center" ref="sexage"/>
- <col class="text_center" ref="spcacptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="spcacptno" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="spcacptseqno"/>
- <col class="text_center" ref="csteno"/>
- <col class="text_center" ref="slidno"/>
- <col ref="slidcnts"/>
- <col class="text_center" ref="rtndd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="rtntm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="rtnid"/>
- <col class="text_center" ref="rtnnm"/>
- <col ref="imgrgstdd"/>
- <col class="text_center" ref="imgno"/>
- <col ref="dummy" style="background-image:../../../com/commonweb/images/icon_search.gif; background-position:center; "/>
- <col ref="appnm" type="input"/>
- <col class="text_center" ref="appcntcno" type="input"/>
- <col ref="rsltimg"/>
- <col ref="bizflagcd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_slidlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeSlidGridChoi();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|