123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPD00400_슬라이드대출내역조회.xrw
- * 설 명 : 슬라이드대출내역조회 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2006.07.24
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <lendcnts>
- <lendrtnlist>
- <level/>
- <choi/>
- <instcd/>
- <ptno/>
- <dispptno/>
- <pid/>
- <hngnm/>
- <deptnm/>
- <appnm/>
- <appdd/>
- <apptm/>
- <appno/>
- <lendresncd/>
- <cnfmnm/>
- <aprvresncd/>
- <appstat/>
- <lendappdd/>
- <lendappno/>
- <slidcnts/>
- <bloccnts/>
- <lenddd/>
- <lendno/>
- <slidseqno/>
- </lendrtnlist>
- </lendcnts>
- </main>
- <send/>
- <init>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- <userinfo>
- <userinfolist>
- <userid/>
- <usernm/>
- <jobkindcd/>
- </userinfolist>
- </userinfo>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <deptlist>
- <dept>
- <deptcd/>
- <deptnm/>
- </dept>
- </deptlist>
- </init>
- <hidden>
- <appfromdd/>
- <apptodd/>
- <refflagcd/>
- <refval/>
- <appstat/>
- <lenddeptcd/>
- <lendid/>
- </hidden>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/lendcnts/lendrtnlist/lendresncd" readonly="../lendresncd/@readonly = 'true'"/>
- <submission id="TRLPD00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/lendcnts/lendrtnlist"/>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
- <submission id="TXLPD00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102");
-
- //--------------------
- //신청부서 목록 조회
- //--------------------
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D";
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "dispseq";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
- // 작업구분 목록 조회
- model.makeValue("/root/send/baseflagcd", "'L1', 'L2'");
- submit("TRLPZ00103");
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
-
- //--------------------------------------------------
- model.removeNodeset("/root/main/lendcnts/lendlist");
-
- //------------
- // 초기값 설정
- model.removeNodeset("/root/main/lendcnts/lendrtnlist"); // 신청내역목록
- model.setValue("/root/hidden/appfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.setValue("/root/hidden/apptodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
- model.setValue("/root/hidden/refflagcd", "1"); // 조회조건(1:등록번호, 2:병리번호, 3:대출과)
- model.setValue("/root/hidden/refval", ""); // 조회값
- model.setValue("/root/hidden/appstat", "1"); // 상태(1:대출신청, 2:미반납, 3:반납신청)
- model.setValue("/root/hidden/lenddeptcd", ""); // 대출과코드
- model.setValue("/root/hidden/lendid", ""); // 대출자ID
-
- //--------------------------------------------------------
- fExeLendFlagChng(); //대출조건 콤보박스 컨트롤 재배열
- fExeStateChng(); //대출상태 처리버튼 재배열
-
- //--------------
- model.refresh();
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출 및 반납 신청내역 조회 함수
- */
- function fGetAppList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //---------------------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/appfromdd", model.getValue("/root/hidden/appfromdd"));
- model.makeValue("/root/send/apptodd", model.getValue("/root/hidden/apptodd"));
- model.makeValue("/root/send/appstat", model.getValue("/root/hidden/appstat"));
- model.makeValue("/root/send/refflagcd", model.getValue("/root/hidden/refflagcd"));
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval"));
- model.makeValue("/root/send/lenddeptcd", model.getValue("/root/hidden/lenddeptcd"));
- model.makeValue("/root/send/lendid", model.getValue("/root/hidden/lendid"));
- grd_aprvlist.rebuild();
- if(submit("TRLPD00401")) {
- setTree(grd_aprvlist, 1, 5, false);
-
- for(var iRowNo = 1 ; iRowNo < grd_aprvlist.rows ; iRowNo++) {
- if(model.getValue("/root/main/lendcnts/lendrtnlist["+ iRowNo +"]/level") == "1") {
- grd_aprvlist.isReadOnly(iRowNo, 2) = true;
- } else {
- grd_aprvlist.isReadOnly(iRowNo, 2) = false;
- model.setValue("/root/main/lendcnts/lendrtnlist["+ iRowNo +"]/choi", "true");
- }
- }
- }
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 상태구분에 따른 컨트롤 재배열 함수
- */
- function fExeStateChng(){
-
- var vState = model.getValue("/root/hidden/appstat");
-
- if(vState == "2"){
- //btn_lendqual.visible = true; //대상자확인
- btn_lendaprv.visible = false; //대출허가
- }else if(vState == "1"){
- //btn_lendqual.visible = false; //대상자확인
- btn_lendaprv.visible = true; //대출허가
- btn_lendaprv.value = "대출허가";
- } else {
- //btn_lendqual.visible = false; //대상자확인
- btn_lendaprv.visible = true; //대출허가
- btn_lendaprv.value = "반납확인";
- }
- }
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 미승인사유선택에 따른 선택처리
- */
- function fChoiSelect(){
- var strNode1 = "/root/main/lendcnts/lendrtnlist";
- //model.setValue(strNode1 + "[" + grd_aprvlist.row + "]/choi", "true");
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출허가등록 함수
- */
- function fSetLendOk(){
- var strNode1 = "/root/main/lendcnts/lendrtnlist";
-
- //-------------------------------------------------------
- if(grd_aprvlist.findRow("true", 1, 2, true, true) <= 0) {
- messageBox("대출허가할 병리번호를", "C002");
- return false;
- }
-
- //-------------------------
- grd_aprvlist.clearStatus();
- for (var iRowNo=1; iRowNo <= getNodesetCount(strNode1); iRowNo++) {
- if (model.getValue(strNode1+"["+iRowNo+"]/choi") == "true") {
- grd_aprvlist.addStatus(iRowNo , "update");
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLPZ00102");
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/aprvdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 승인일자
- model.makeValue("/root/send/aprvtm", model.getValue("/root/init/sysdt/sysdtinfo/systm")); // 승인시간
- model.makeValue("/root/send/aprvresnflagcd", "L2"); // 미승인사유코드
- model.makeValue("/root/send/aprvflagcd", "1"); // 승인구분코드
- model.makeValue("/root/send/lendflagcd", "2"); // 대출구분코드
- model.makeValue("/root/send/appstat", model.getValue("/root/hidden/appstat")); // 승인상태코드
- model.makeValue("/root/send/lendrtnlist", grd_aprvlist.getUpdateData());
- //-----------
- setAlertOn();
- if (submit("TXLPD00401")) {
- fGetAppList();
- }
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출조건 변경시 Combo Control 재배열 함수
- */
- function fExeLendFlagChng(){
- var vLendFlag = model.getValue("/root/hidden/refflagcd")
-
- //cmb_lendpsn : 대출자콤보리스트, cmb_lenddept : 대출과콤보리스트
- if(vLendFlag == "1" || vLendFlag == "2"){
- cmb_lendpsn.visible = false;
- cmb_lenddept.visible = false;
- model.setValue("/root/hidden/refval", "-");
- }else{
- cmb_lendpsn.visible = true;
- cmb_lenddept.visible = true;
- model.setValue("/root/hidden/refval", "");
- }
-
- model.refresh();
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출자ID 검색 함수
- */
- function fExeLendIDGet(){
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userdeptcd", "'" + model.getValue("/root/hidden/lenddeptcd") + "'");
- submit("TRLPZ00105");
- model.refresh();
- }
-
- /* @group : 슬라이드 대출내역 조회 화면
- * @ver : 2006.07.24 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 대출자ID 검색 함수
- */
- function fExeSaveToExcel() {
- //grd_aprvlist.saveExcel("C:\\SMLPD00400_슬라이드대출내역조회.xls", "대출내역조회", false, true);
- lpzfExeSaveToExcel(grd_aprvlist, "대출내역조회");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,784;1,1192;2,756;1,1184;2,754;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <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:157px; height:14px; ">슬라이드 대출내역</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="grp_s_case2" style="left:0px; top:10px; width:1194px; height:35; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">신청일자 :</caption>
- <line id="line3" class="line_4" style="x1:1108; y1:6; x2:1108; y2:28; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption9" class="search_name" style="left:344px; top:9px; width:62px; height:17px; ">상 태 :</caption>
- <input id="input2" ref="/root/hidden/appfromdd" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:109px; top:8px; width:100px; height:19px; "/>
- <caption id="caption12" class="search_no_b" style="left:212px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="input5" ref="/root/hidden/apptodd" class="input_s_essential" navindex="2" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:227px; top:8px; width:100px; height:19px; "/>
- <select1 id="radio3" ref="/root/hidden/appstat" class="radio_search" navindex="3" appearance="full" cols="4" rows="1" overflow="visible" style="left:409px; top:10px; width:196px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>대출신청</label>
- <value>1</value>
- </item>
- <item>
- <label>미반납</label>
- <value>2</value>
- </item>
- <item>
- <label>반납신청</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeStateChng();
- ]]>
- </script>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1123; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetAppList();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:621px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
- <select1 id="combo3" ref="/root/hidden/refflagcd" class="combo_search" navindex="4" appearance="minimal" style="left:714px; top:8px; width:107px; height:19px; ">
- <choices>
- <item>
- <label>등록번호</label>
- <value>1</value>
- </item>
- <item>
- <label>병리번호</label>
- <value>2</value>
- </item>
- <item>
- <label>대출과</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeLendFlagChng();
-
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/hidden/refval" class="input_search" navindex="7" style="left:824px; top:8px; width:140px; height:19px; "/>
- <select1 id="cmb_lendpsn" ref="/root/hidden/lendid" class="combo_s_essential" appearance="minimal" style="left:967px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd = '1']">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_lenddept" ref="/root/hidden/lenddeptcd" class="combo_s_essential" navindex="5" visibility="hidden" appearance="minimal" style="left:824px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeLendIDGet();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption2" class="tit_2" style="left:5px; top:55; width:111px; height:13; ">신청내역목록</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:70; x2:1186px; y2:70; "/>
- <datagrid id="grd_aprvlist" nodeset="/root/main/lendcnts/lendrtnlist" caption="level^선택^기관코드^병리번호^병리번호^등록번호^환자명^블록^슬라이드^신청과^신청자^신청일자^신청시간^신청번호^대출목적^승인자^미승인사유^상태^lendappdd^lendappno^spcacptseqno^csteno^slidno^lenddd^lendno^slidseqno" colsep="^" colwidth="43, 40, 0, 0, 110, 90, 100, 60, 60, 80, 80, 90, 60, 0, 140, 90, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="8" style="left:5px; top:75px; width:1181px; height:623px; ">
- <col ref="level" visibility="hidden"/>
- <col ref="choi" type="checkbox" style="left:22px; top:23px; width:40px; height:23px; ">
- <![CDATA[/>]]>
- </col>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col class="text_center" ref="dispptno"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="hngnm"/>
- <col ref="bloccnts"/>
- <col ref="slidcnts"/>
- <col class="text_center" ref="deptnm"/>
- <col class="text_center" ref="appnm"/>
- <col class="text_center" ref="appdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
- <col class="text_center" ref="apptm" format="hh:nn:ss" mask="exclude" showmask="true"/>
- <col ref="appno"/>
- <col ref="lendresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='L1']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <col ref="cnfmnm"/>
- <col ref="aprvresncd" type="combo">
- <choices>
- <itemset nodeset="/root/init/resncd/resncdlist[baseflagcd='L2']">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChoiSelect();
- ]]>
- </script>
- <col ref="appstat"/>
- <col ref="lendappdd"/>
- <col ref="lendappno"/>
- <col ref="spcacptseqno"/>
- <col ref="csteno"/>
- <col ref="slidno"/>
- <col ref="lenddd"/>
- <col ref="lendno"/>
- <col ref="slidseqno"/>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
- <button id="btn_lendqual" class="btn4_letter5" navindex="9" visibility="hidden" style="left:890px; top:5px; width:92px; height:22px; ">
- <caption>대상자확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetLendOk();
- ]]>
- </script>
- </button>
- <button id="btn_lendaprv" class="btn4_letter4" navindex="10" style="left:1113px; top:3px; width:80px; height:22px; ">
- <caption>대출허가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetLendOk();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="button13" class="btn6_letter5" style="left:5px; top:3px; width:92px; height:22px; ">
- <caption>EXCEL저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSaveToExcel();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|