1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPC00100_병리번호코드등록.xrw
- * 설 명 : 병리번호코드등록관리
- * 설 계 자 : (주)에이씨케이 - 황상미
- * 작 성 자 : (주)에이씨케이 - 황상미
- * 작 성 일 : 2007.01.04
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <main>
- <ptnocdcnts>
- <ptnocdlist>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- <basepartcd/>
- <basepartnm/>
- <detlpartcd/>
- <detlpartnm/>
- <dispseq/>
- </ptnocdlist>
- </ptnocdcnts>
- <ptnocdinfo>
- <instcd/>
- <ptnocd/>
- <ptnonm/>
- <basepartcd/>
- <basepartnm/>
- <detlpartcd/>
- <detlpartnm/>
- <workflagcd>-</workflagcd>
- <delflagcd/>
- <slidflagcd>-</slidflagcd>
- <slidisscnt/>
- <blocflagcd/>
- <initblocno/>
- <autokeepflagcd/>
- <autoabnflagcd/>
- <keepterm/>
- <fstrgstdt/>
- <fstrgstrid/>
- <lastupdtdt/>
- <lastupdtrid/>
- <dispseq/>
- </ptnocdinfo>
- </main>
- <send/>
- <init>
- <csteinfo>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </csteinfo>
- <slidinfo>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </slidinfo>
- <tempcd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </tempcd>
- <workflag>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </workflag>
- <instcdlist>
- <L0001>
- <cdid/>
- <cdnm/>
- </L0001>
- </instcdlist>
- </init>
- <hidden>
- <userinfo>
- <instcd/>
- </userinfo>
- <delflagcd/>
- <refflag>1</refflag>
- <refval/>
- <cdupdtflag>1</cdupdtflag>
- <scrndata/>
- </hidden>
- </root>
- </instance>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/tempcd/resncdlist"/>
- <submission id="TRLPC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ptnocdcnts/ptnocdlist"/>
- <submission id="TRLPC00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ptnocdinfo"/>
- <submission id="TXLPC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
-
- //------------------------------------------
- // Cassette(블록) 및 Slide(슬라이드) 목록 조회
- model.removeNodeset("/root/init/csteinfo");
- model.makeNode("/root/init/csteinfo");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/baseflagcd", "'81'");
- submit("TRLPZ00103");
- copyNodeListType("/root/init/csteinfo", "/root/init/tempcd/resncdlist", "after");
-
- //---------------------------------------
- model.removeNodeset("/root/init/slidinfo");
- model.makeNode("/root/init/slidinfo");
- model.makeValue("/root/send/baseflagcd", "'82'");
- submit("TRLPZ00103");
- copyNodeListType("/root/init/slidinfo", "/root/init/tempcd/resncdlist", "after");
-
- //-----------------
- // 작업구분목록 조회
- model.removeNodeset("/root/init/workflag");
- model.makeNode("/root/init/workflag");
- model.makeValue("/root/send/baseflagcd", "'83'");
- submit("TRLPZ00103");
- copyNodeListType("/root/init/workflag", "/root/init/tempcd/resncdlist", "after");
- //-----------------------------------------------
- model.resetInstanceNode("/root/main/ptnocdcnts");
- model.resetInstanceNode("/root/main/ptnocdinfo");
- model.removeNodeset("/root/main/ptnocdcnts/ptnocdlist");
- model.setValue("/root/hidden/cdupdtflag", "1");
- model.setValue("/root/hidden/delflagcd", "0");
- model.setValue("/root/hidden/userinfo/instcd", getUserInfo("dutplceinstcd")); //instcd
-
- //----------------------
- fExeControlChng("false");
-
- //-----------------------------------------------
- model.removeNodeset("/root/init/instcdlist/L0001");
- zbcfGetCodeList(new Array("L0001"), new Array("/root/init/instcdlist", "/root/init/instcdlist"));
-
- //-------------
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회/수정/신규 컨트롤 사용여부 변경 함수
- * iGbn : 컨트롤 활성화 여부 true/false
- */
- function fExeControlChng(iGbn){
-
- var sGbn = "";
-
- if(iGbn == "true"){
- sGbn = "false";
- }else{
- sGbn = "true";
- }
-
- var vCtrIptArr = new Array(); //입력 컨트롤
- var vCtrSelArr = new Array(); //선택 컨트롤
-
- vCtrIptArr[0] = document.controls("ipt_ptnocd"); // 병리번호코드 입력박스
- vCtrIptArr[1] = document.controls("ipt_ptnocdnm"); // 병리번호명칭 입력박스
- vCtrIptArr[2] = document.controls("ipt_slidcnt"); // 슬라이드개수 입력박스
- vCtrIptArr[3] = document.controls("ipt_initblocno"); // 카세트번호 입력박스
- vCtrIptArr[4] = document.controls("ipt_keepterm"); // 보관기간 입력박스
- vCtrIptArr[5] = document.controls("ipt_dispseq"); // 표시일련번호 입력박스
-
- vCtrSelArr[0] = document.controls("btn_basepart"); // 기본파트 선택박스
- vCtrSelArr[1] = document.controls("btn_detlpart"); // 세부파트 선택박스
- vCtrSelArr[2] = document.controls("cmb_workflagcd"); // 작업구분 선택박스
- vCtrSelArr[3] = document.controls("rdo_delflagcd"); // 사용여부 선택박스
- vCtrSelArr[4] = document.controls("cmb_slidflagcd"); // 슬라이드종류 선택박스
- vCtrSelArr[5] = document.controls("bol_autokeep"); // 자동보관 선택박스
- vCtrSelArr[6] = document.controls("bol_autoabn"); // 자동폐기 선택박스
- vCtrSelArr[7] = document.controls("cmb_blocflagcd"); // Cassette종류 선택박스
-
- //-------------------------------------------------
- for(var idx = 0; idx < vCtrIptArr.length; idx++) {
- vCtrIptArr[idx].attribute("editable") = iGbn;
- }
-
- //-------------------------------------------------
- for(var idx = 0; idx < vCtrSelArr.length; idx++) {
- vCtrSelArr[idx].disabled = sGbn;
- }
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 기본, 세부파트 선택시 처리 함수
- * wGbn : 콤보박스 선택구분 - base(기본파트선택)/detl(세부파트선택)
- */
- function fExePartChng(wGbn){
-
- var vPtCd = "";
-
- if(wGbn == "base"){
- vPtCd = model.getValue("/root/main/ptnocdinfo/choibasepart");
-
- model.setValue("/root/main/ptnocdinfo/basepart", model.getValue("/root/init/basepart[cd='" + vPtCd + "']/cd"));
- model.setValue("/root/main/ptnocdinfo/basenm", model.getValue("/root/init/basepart[cd='" + vPtCd + "']/nm"));
- }else{
- vPtCd = model.getValue("/root/main/ptnocdinfo/choidetlpart");
-
- model.setValue("/root/main/ptnocdinfo/detlpart", model.getValue("/root/init/detlpart[cd='" + vPtCd + "']/cd"));
- model.setValue("/root/main/ptnocdinfo/detlnm", model.getValue("/root/init/detlpart[cd='" + vPtCd + "']/nm"));
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회, 수정, 신규 작업 구분 함수
- */
- function fExeCodeUpdtFlag(){
- var updt_flag = model.getValue("/root/hidden/cdupdtflag");
-
- //updt_flag - 1:조회, 2:수정, 3:신규
- if(updt_flag == "1"){
-
- fExeControlChng("false");
-
- }else if(updt_flag == "2"){
-
- if(grd_ptnocdlist.row < 1) {
- messageBox("병리번호코드를", "C002");
- model.setValue("/root/hidden/cdupdtflag", "1");
- fExeControlChng("false");
- model.refresh();
- return;
- }
-
- //---------------------
- fExeControlChng("true");
- ipt_ptnocd.attribute("editable") = "false";
- model.setFocus("ipt_ptnocdnm");
- } else {
- fExeControlChng("true");
- fExeInsWork();
- model.setFocus("ipt_ptnocd");
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.18 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 신규 작업 시 기본 Setting 함수
- */
- function fExeInsWork(){
-
- model.resetInstanceNode("/root/main/ptnocdinfo");
- model.makeValue("/root/main/ptnocdinfo/delflagcd", "0"); //신규코드 사용여부
- model.makeValue("/root/main/ptnocdinfo/slidflagcd", "-"); //슬라이드종류
- model.makeValue("/root/main/ptnocdinfo/workflagcd", "-");
- model.makeValue("/root/main/ptnocdinfo/autokeepflagcd", "0");
- model.makeValue("/root/main/ptnocdinfo/autoabnflagcd", "0");
-
- document.controls("rdo_delflagcd").disabled = "true";
-
- fExeRefDataTret(); //처리조건부 컨트롤 재배열
-
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처리부영역 항목 선택시 처리 함수
- * gbn : 선택된 처리값
- */
- function fExeCheckItem(gbn){
-
- //수정 or 신규작업시에만 Check
- if(gbn != "refval" && model.getValue("/root/hidden/cdupdtflag") == "1"){
- return;
- }else if(model.getValue("/root/hidden/cdupdtflag") == "2" && model.getValue("/root/main/ptnocdinfo/ptnocd") == ""){
- return;
- }
-
- switch(gbn){
-
- case "keepterm": //자동보관
- if(model.getValue("/root/main/ptnocdinfo/keepterm") == "0"){
-
- ipt_keepterm.visible = "false";
- caption23.visible = "false";
- btn_keeptermminus.visible = "false";
- btn_keeptermplus.visible = "false";
-
- model.setValue("/root/main/ptnocdinfo/autoabnflagcd", "");
- model.setValue("/root/main/ptnocdinfo/keepterm", "");
- }
- break;
-
- case "autoabn": //자동폐기
-
- if(model.getValue("/root/main/ptnocdinfo/autoabnflagcd") == "0"){
-
- ipt_keepterm.visible = "true";
- caption23.visible = "true";
- btn_keeptermminus.visible = "true";
- btn_keeptermplus.visible = "true";
-
- model.setValue("/root/main/ptnocdinfo/keepterm", "1"); //default로 1개월 보관
-
- }else{
-
- ipt_keepterm.visible = "false";
- caption23.visible = "false";
- btn_keeptermminus.visible = "false";
- btn_keeptermplus.visible = "false";
-
- model.setValue("/root/main/ptnocdinfo/keepterm", "");
- }
- break;
-
- case "slidflagcd": //슬라이드 선택
-
- if(model.getValue("/root/main/ptnocdinfo/slidflagcd") != "-"){
- model.setValue("/root/main/ptnocdinfo/slidisscnt", "1"); //default로 1개 생성
-
- ipt_slidcnt.visible = "true";
- caption20.visible = "true";
- btn_slidcntminus.visible = "true";
- btn_slidcntplus.visible = "true";
-
- }else{
- model.setValue("/root/main/ptnocdinfo/slidisscnt", "");
-
- ipt_slidcnt.visible = "false";
- caption20.visible = "false";
- btn_slidcntminus.visible = "false";
- btn_slidcntplus.visible = "false";
- }
- break;
-
- case "slidcnt_down": //슬라이드개수 '-'
-
- var slidCnt = new Number(model.getValue("/root/main/ptnocdinfo/slidisscnt"));
-
- if(slidCnt < 2){
- return;
- }else if(model.getValue("/root/main/ptnocdinfo/slidflagcd") == "-"){
- return;
- }else{
- model.setValue("/root/main/ptnocdinfo/slidisscnt", --slidCnt);
- }
-
- break;
-
- case "slidcnt_up": //슬라이드개수'+'
-
- var slidCnt = new Number(model.getValue("/root/main/ptnocdinfo/slidisscnt"));
-
- if(model.getValue("/root/main/ptnocdinfo/slidflagcd") == "-"){
- return;
- }else{
- model.setValue("/root/main/ptnocdinfo/slidisscnt", ++slidCnt);
- }
-
- break;
-
- case "keepterm_down": //자동보관일수 '-'
-
- var keepTerm = new Number(model.getValue("/root/main/ptnocdinfo/keepterm"));
-
- if(keepTerm < 2){
- return;
- }else if(model.getValue("/root/main/ptnocdinfo/autoabnflagcd") != "0"){
- return;
- }else{
- model.setValue("/root/main/ptnocdinfo/keepterm", --keepTerm);
- }
-
- break;
-
- case "keepterm_up": //자동보관일수 '+'
-
- var keepTerm = new Number(model.getValue("/root/main/ptnocdinfo/keepterm"));
-
- if(model.getValue("/root/main/ptnocdinfo/autoabnflagcd") != "0"){
- return;
- }else{
- model.setValue("/root/main/ptnocdinfo/keepterm", ++keepTerm);
- }
-
- break;
-
- case "basepart": //기본파트 선택 팝업호출
-
- lpzfExeComnOpenScrn("basepart", "/root/main/ptnocdinfo");
-
- model.resetInstanceNode("/root/main/ptnocdinfo/detlpartcd");
- model.resetInstanceNode("/root/main/ptnocdinfo/detlpartnm");
-
- break;
-
- case "detlpart": //세부파트 선택 팝업호출
-
- if(model.getValue("/root/main/ptnocdinfo/basepartcd") != ""){
- lpzfExeComnOpenScrn("detlpart", "/root/main/ptnocdinfo");
- }else{
- messageBox("기본파트를 먼저", "C002");
- return;
- }
-
- break;
-
- case "ptnocd": //병리번호코드 대문자로
-
- if(model.getValue("/root/main/ptnocdinfo/ptnocd") != ""){
- lpzfExeLrgChar("/root/main/ptnocdinfo/ptnocd");
- }
-
- break;
-
- case "refval": //병리번호코드 대문자로
-
- if(model.getValue("/root/hidden/refflag") == "1" && model.getValue("/root/hidden/refval") != ""){
- lpzfExeLrgChar("/root/hidden/refval");
- }
-
- break;
- default:
- break;
- }
-
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.04 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병리번호코드 리스트/정보 조회 함수
- */
- function fGetRefData(ref_work_flag){
-
- if(ref_work_flag == "ptnoinfo" && grd_ptnocdlist.row < 1){
- return;
- }
- //---------------------------------
- model.removeNodeset("/root/send");
- //------------------------------------------------
- if(model.getValue("/root/hidden/cdupdtflag") != "1") {
-
- if(lpzfExeBfChkMsg("R") == true){
- model.setValue("/root/hidden/cdupdtflag", "1");
- fExeControlChng("false");
- }else{
- return;
- }
- }
-
- //-----------------------------------------------
- model.resetInstanceNode("/root/main/ptnocdinfo");
-
- //--------------------
- switch (ref_work_flag) {
-
- case "ptnolist":
-
- model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/delflagcd")); // 조회조건 사용여부구분
- model.makeValue("/root/send/refflag", model.getValue("/root/hidden/refflag")); // 조회조건 조회구분
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval")); // 조회조건 조회값
- model.makeValue("/root/send/instcd", model.getValue("/root/hidden/userinfo/instcd")); // 병원코드
-
- submit("TRLPC00101");
-
- break;
-
- case "ptnoinfo":
-
- var curRow = grd_ptnocdlist.row;
- model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/delflagcd")); //병리번호코드 사용여부구분
- model.makeValue("/root/send/ptnocd", model.getValue("/root/main/ptnocdcnts/ptnocdlist[" + curRow + "]/ptnocd")); //병리번호코드
- model.makeValue("/root/send/instcd", model.getValue("/root/hidden/userinfo/instcd"));
-
- submit("TRLPC00102");
-
- fExeRefDataTret(); //조회된 데이터에 맞게 처리부 컨트롤 재구성
-
- break;
-
- default:
- break;
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.18 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병리번호코드정보 수정/신규 함수
- */
- function fSetUpdtData(){
-
- var updt_flag = model.getValue("/root/hidden/cdupdtflag");
-
- //--------------------------------
- // 작업구분(조회, 수정, 신규)을 검사
- if (updt_flag == "1") {
- messageBox("조회작업 중", "E008");
- return;
- }
-
-
- //------------------------------------------------------------------------
- // 병리번호코드 및 명칭, 기본파트코드, 세부파트코드, 작업구분의 입력여부 검사
- isRequiredControls("ipt_ptnocd", "ipt_ptnocdnm", "opt_basepartcd", "opt_detlpartcd", "cmb_workflagcd");
-
- //---------------------------------------------------------
- if (model.getValue("/root/main/ptnocdinfo/initblocno") != "" && model.getValue("/root/main/ptnocdinfo/initblocno") != "-") {
- if (model.getValue("/root/main/ptnocdinfo/initblocno").length != 3) {
- messageBox("Cassette번호를 3자리로", "C001");
- model.setFocus("ipt_initblocno");
- return;
- }
-
- } else if (model.getValue("/root/main/ptnocdinfo/ptnocd").length > 2){
- messageBox("병리번호코드를 2자리 이하로", "C001");
- model.setFocus("ipt_ptnocd");
- return;
-
- }
-
- //저장여부 확인Message
- if(lpzfExeBfChkMsg("UI") == false){
- //6:예, 7:아니오, 2:취소
- return;
- }
-
-
- //---------------------------------
- model.removeNodeset("/root/send");
-
-
- //자동보관여부 플래그 값 변환
-
- if(model.getValue("/root/main/ptnocdinfo/autokeepflagcd") == ""){
- model.makeValue("/root/main/ptnocdinfo/autokeepflagcd", "0");
- }
-
- //자동폐기여부 플래그 값 변환
- if(model.getValue("/root/main/ptnocdinfo/autoabnflagcd") == ""){
- model.makeValue("/root/main/ptnocdinfo/autoabnflagcd", "0");
- }
-
- //슬라이드개수 값 변환
- if(model.getValue("/root/main/ptnocdinfo/slidisscnt") == ""){
- model.makeValue("/root/main/ptnocdinfo/slidisscnt", 0);
- }
-
- //보관기간 값 변환
- if(model.getValue("/root/main/ptnocdinfo/keepterm") == ""){
- model.makeValue("/root/main/ptnocdinfo/keepterm", 0);
- }
-
- if (model.getValue("/root/main/ptnocdinfo/dispseq") == "") {
- model.makeValue("/root/main/ptnocdinfo/dispseq", "1");
- }
-
- model.makeValue("/root/main/ptnocdinfo/instcd", model.getValue("/root/hidden/userinfo/instcd")); //test instcd
- model.makeValue("/root/send/updtflag", updt_flag); // 수정,신규구분
- model.makeNode("/root/send/ptnocdinfo");
- model.copyNode("/root/send/ptnocdinfo", "/root/main/ptnocdinfo"); // 병리번호정보
-
- if(submit("TXLPC00101") == true){
- messageBox("저장이", "I002");
-
- //화면초기화 및 저장된 항목 insert ********************
- var prest_row;
- if(updt_flag == "3"){
- grd_ptnocdlist.addItem();
- prest_row = grd_ptnocdlist.rows - 1;
- }else{
- if(model.getValue("/root/hidden/delflagcd") == model.getValue("/root/main/ptnocdinfo/delflagcd")){
- prest_row = grd_ptnocdlist.row;
- }else{
- prest_row == -1;
- }
- }
-
- if(prest_row > 0){
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/instcd",
- model.getValue("/root/main/ptnocdinfo/instcd"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/ptnocd",
- model.getValue("/root/main/ptnocdinfo/ptnocd"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/ptnonm",
- model.getValue("/root/main/ptnocdinfo/ptnonm"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/basepartcd",
- model.getValue("/root/main/ptnocdinfo/basepartcd"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/basepartnm",
- model.getValue("/root/main/ptnocdinfo/basepartnm"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/detlpartcd",
- model.getValue("/root/main/ptnocdinfo/detlpartcd"));
- model.setValue("/root/main/ptnocdcnts/ptnocdlist[" + prest_row + "]/detlpartnm",
- model.getValue("/root/main/ptnocdinfo/detlpartnm"));
- }else{
- for(var i = 1; i < grd_ptnocdlist.rows; i++){
- prest_row = grd_ptnocdlist.findRow(model.getValue("/root/main/ptnocdinfo/ptnocd"), i, 2, true, true);
- grd_ptnocdlist.deleteItem(prest_row);
- break;
- }
- }
- model.resetInstanceNode("/root/main/ptnocdinfo");
- model.setValue("/root/hidden/cdupdtflag", "1");
- fExeControlChng("false");
- //**************************************************
- }else{
- messageBox("저장이", "E009");
- }
-
- //----------------------------------------
- model.removenode("/root/main/message");
- model.refresh();
- }
-
- /* @group : 병리번호코드등록관리 화면
- * @ver : 2007.01.27 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회된 데이터에 맞게 처리부 컨트롤 재구성 함수
- */
- function fExeRefDataTret(){
-
- //슬라이드종류 관련 컨트롤
- if(model.getValue("/root/main/ptnocdinfo/slidflagcd") != "-"){
-
- ipt_slidcnt.visible = "true";
- caption20.visible = "true";
- btn_slidcntminus.visible = "true";
- btn_slidcntplus.visible = "true";
-
- }else{
-
- ipt_slidcnt.visible = "false";
- caption20.visible = "false";
- btn_slidcntminus.visible = "false";
- btn_slidcntplus.visible = "false";
-
- }
-
- //자동보관기간 관련 컨트롤 & 값 setting
- if(model.getValue("/root/main/ptnocdinfo/autoabnflagcd") == "0"){
-
- ipt_keepterm.visible = "true";
- caption23.visible = "true";
- btn_keeptermminus.visible = "true";
- btn_keeptermplus.visible = "true";
-
- }else{
-
- ipt_keepterm.visible = "false";
- caption23.visible = "false";
- btn_keeptermminus.visible = "false";
- btn_keeptermplus.visible = "false";
-
- // model.setValue("/root/main/ptnocdinfo/autoabnflagcd", "");
- }
- /*
- //자동폐기값 setting
- if(model.getValue("/root/main/ptnocdinfo/autokeepflagcd") != "0"){
- model.setValue("/root/main/ptnocdinfo/autokeepflagcd", "");
- }
- */
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;2,757;" 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:800px; height:15px; ">병리번호코드등록</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button3" class="btn1_letter2" navindex="4" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetRefData("ptnolist");
- ]]>
- </script>
- </button>
- <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption2" class="search_name" style="left:852px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">사용여부 :</caption>
- <caption id="caption22" class="search_name" style="left:16; top:9px; width:75px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회값 :</caption>
- <select1 id="rdo_s_delflagcd" ref="/root/hidden/delflagcd" class="radio_search" navindex="3" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:945px; top:10px; width:159px; height:16px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instcdlist/L0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_refval" ref="/root/hidden/refval" class="input_search" navindex="2" style="left:217; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fExeCheckItem("refval");
- ]]>
- </script>
- </input>
- <select1 id="cbo_refflagcd" ref="/root/hidden/refflag" class="combo_search" navindex="1" appearance="minimal" style="left:94; top:8px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>병리번호코드</label>
- <value>1</value>
- </item>
- <item>
- <label>병리번호명칭</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="group2" style="left:0px; top:55px; width:855px; height:689px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:0px; width:131px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">병리번호코드</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:15px; x2:855px; y2:15px; "/>
- <datagrid id="grd_ptnocdlist" nodeset="/root/main/ptnocdcnts/ptnocdlist" caption="병원코드^병리번호코드^병리번호명칭^기본파트코드^기본파트명^세부파트코드^세부파트명^표시번호" colsep="^" colwidth="0, 100, 243, 80, 120, 80, 120, 70" dataheight="23" defaultrows="1" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="5" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:20px; width:855px; height:660px; border-color:#c0c0c0; ">
- <col ref="instcd" type="output"/>
- <col ref="ptnocd" type="output"/>
- <col ref="ptnonm" type="output"/>
- <col ref="basepartcd" type="output"/>
- <col ref="basepartnm" type="output"/>
- <col ref="detlpartcd" type="output"/>
- <col ref="detlpartnm" type="output"/>
- <col ref="dispseq"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetRefData("ptnoinfo");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ptnocdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group5" style="left:856px; top:50px; width:333px; height:689px; ">
- <caption id="caption3" class="tit_2" style="left:5px; top:5px; width:130px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">병리번호코드 정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:20px; x2:333px; y2:20px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:47px; x2:333px; y2:47px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:71px; x2:333px; y2:71px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:95px; x2:333px; y2:95px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:143px; x2:333px; y2:143px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:167px; x2:333px; y2:167px; "/>
- <line id="line6" class="line_2" style="x1:0px; y1:191px; x2:333px; y2:191px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:215px; x2:333px; y2:215px; "/>
- <line id="line8" class="line_2" style="x1:0px; y1:239px; x2:333px; y2:239px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:263px; x2:333px; y2:263px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:287px; x2:333px; y2:287px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:433px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종등록자</caption>
- <input id="ipt_ptnocdnm" ref="/root/main/ptnocdinfo/ptnonm" class="input_essential" navindex="8" maxlength="30" appearance="input" style="left:133px; top:50px; width:200px; height:19px; border-color:#c0c0c0; "/>
- <input id="ipt_ptnocd" ref="/root/main/ptnocdinfo/ptnocd" class="input_essential" navindex="7" imemode="alpha" maxlength="2" appearance="input" style="left:133px; top:26px; width:200px; height:19px; border-color:#c0c0c0; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fExeCheckItem("ptnocd");
- ]]>
- </script>
- </input>
- <output id="opt_basenm" ref="/root/main/ptnocdinfo/basepartnm" class="output_fix" appearance="output" style="left:133px; top:98px; width:200px; height:19px; "/>
- <output id="opt_detlnm" ref="/root/main/ptnocdinfo/detlpartnm" class="output_fix" appearance="output" style="left:133px; top:146px; width:200px; height:19px; "/>
- <select1 id="rdo_lendflag" ref="/root/hidden/cdupdtflag" navindex="6" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:138px; top:4px; width:155px; height:13px; 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[
- fExeCodeUpdtFlag();
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="cell_1" style="left:0px; top:361px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록일시</caption>
- <line id="line16" class="line_2" style="x1:0px; y1:335px; x2:333px; y2:335px; "/>
- <caption id="caption18" class="cell_1" style="left:0px; top:385px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록자</caption>
- <caption id="caption19" class="cell_1" style="left:0px; top:409px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종등록일시</caption>
- <line id="line19" class="line_2" style="x1:0px; y1:431px; x2:333px; y2:431px; "/>
- <caption id="caption20" visibility="hidden" style="left:290px; top:219px; width:16px; height:19px; vertical-align:middle; ">장</caption>
- <input id="ipt_slidcnt" ref="/root/main/ptnocdinfo/slidisscnt" class="input_default" navindex="14" visibility="hidden" maxlength="3" format="999" appearance="input" style="left:250px; top:218px; width:40px; height:19px; border-color:#c0c0c0; "/>
- <line id="line20" class="line_2" style="x1:0px; y1:311px; x2:333px; y2:311px; "/>
- <select1 id="cmb_workflagcd" ref="/root/main/ptnocdinfo/workflagcd" class="combo_essential" navindex="11" appearance="minimal" style="left:133px; top:170px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/workflag/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="rdo_delflagcd" ref="/root/main/ptnocdinfo/delflagcd" navindex="12" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:133px; top:196px; width:132px; height:13px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/instcdlist/L0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_slidflagcd" ref="/root/main/ptnocdinfo/slidflagcd" class="combo_essential" navindex="13" appearance="minimal" style="left:133px; top:218px; width:115px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/slidinfo/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeCheckItem("slidflagcd");
- ]]>
- </script>
- </select1>
- <button id="btn_slidcntminus" class="icon_minus" navindex="23" visibility="hidden" style="left:305px; top:220px; width:10px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("slidcnt_down");
- ]]>
- </script>
- </button>
- <button id="btn_slidcntplus" class="icon_plus" navindex="22" visibility="hidden" style="left:316px; top:220px; width:10px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("slidcnt_up");
- ]]>
- </script>
- </button>
- <input id="ipt_keepterm" ref="/root/main/ptnocdinfo/keepterm" class="input_default" navindex="19" visibility="hidden" maxlength="2" format="99" appearance="input" style="left:228px; top:314px; width:50px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fExeCheckItem("keepterm");
- ]]>
- </script>
- </input>
- <output id="opt_fstrgstdt" ref="/root/main/ptnocdinfo/fstrgstdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" appearance="output" style="left:133px; top:362px; width:200px; height:19px; "/>
- <output id="opt_fstrgstrid" ref="/root/main/ptnocdinfo/fstrgstrid" class="output_fix" appearance="output" style="left:133px; top:386px; width:200px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_lastupdtdt" ref="/root/main/ptnocdinfo/lastupdtdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" appearance="output" style="left:133px; top:410px; width:200px; height:19px; "/>
- <output id="opt_lastupdtrid" ref="/root/main/ptnocdinfo/lastupdtrid" class="output_fix" appearance="output" style="left:133px; top:434px; width:200px; height:19px; border-color:#c0c0c0; "/>
- <input id="ipt_initblocno" ref="/root/main/ptnocdinfo/initblocno" class="input_default" navindex="16" maxlength="3" format="###" mask="exclude" showmask="true" appearance="input" style="left:133px; top:266px; width:200px; height:19px; border-color:#c0c0c0; "/>
- <caption id="caption23" visibility="hidden" style="left:279px; top:316px; width:27px; height:17px; vertical-align:middle; ">개월</caption>
- <output id="opt_basepartcd" ref="/root/main/ptnocdinfo/basepartcd" class="output_fix" appearance="output" style="left:133px; top:74px; width:175px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_detlpartcd" ref="/root/main/ptnocdinfo/detlpartcd" class="output_fix" appearance="output" style="left:133px; top:122px; width:175px; height:19px; border-color:#c0c0c0; "/>
- <button id="btn_basepart" class="icon_search" navindex="9" style="left:313px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("basepart");
- ]]>
- </script>
- </button>
- <button id="btn_detlpart" class="icon_search" navindex="10" style="left:313px; top:122px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("detlpart");
- ]]>
- </script>
- </button>
- <button id="btn_keeptermminus" class="icon_minus" navindex="24" visibility="hidden" style="left:305px; top:316px; width:10px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("keepterm_down");
- ]]>
- </script>
- </button>
- <button id="btn_keeptermplus" class="icon_plus" navindex="20" visibility="hidden" style="left:316px; top:316px; width:10px; height:15px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCheckItem("keepterm_up");
- ]]>
- </script>
- </button>
- <caption id="cap_ptnocd" class="cell_1" style="left:0px; top:25px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">병리번호코드</caption>
- <caption id="cap_ptnocdnm" class="cell_1" style="left:0px; top:49px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">병리번호명칭</caption>
- <caption id="cap_basepartcd" class="cell_1" style="left:0px; top:73px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">기본파트</caption>
- <caption id="cap_detlpartcd" class="cell_1" style="left:0px; top:121px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">세부파트</caption>
- <caption id="cap_workflagcd" class="cell_1" style="left:0px; top:169px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">작업구분</caption>
- <caption id="cap_delflagcd" class="cell_1" style="left:0px; top:193px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사용여부</caption>
- <caption id="cap_slidflagcd" class="cell_1" style="left:0px; top:217px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">슬라이드종류</caption>
- <line id="line13" class="line_2" style="x1:0px; y1:119px; x2:333px; y2:119px; "/>
- <line id="line21" class="line_2" style="x1:0px; y1:383px; x2:333px; y2:383px; "/>
- <line id="line22" class="line_2" style="x1:0px; y1:407px; x2:333px; y2:407px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:455px; x2:333px; y2:455px; "/>
- <select1 id="cmb_blocflagcd" ref="/root/main/ptnocdinfo/blocflagcd" class="combo_essential" navindex="15" appearance="minimal" style="left:133px; top:242px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/csteinfo/resncdlist">
- <label ref="resncnts"/>
- <value ref="resncd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_basenm" class="cell_1" style="left:0px; top:97px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">기본명칭</caption>
- <caption id="cap_detlnm" class="cell_1" style="left:0px; top:145px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">세부명칭</caption>
- <caption id="cap_blocflagcd" class="cell_1" style="left:0px; top:241px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">Cassette종류</caption>
- <caption id="cap_initblocno" class="cell_1" style="left:0px; top:265px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">Cassette번호</caption>
- <caption id="cap_autokeep" class="cell_1" style="left:0px; top:289px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">자동보관여부</caption>
- <caption id="cap_autoabn" class="cell_1" style="left:0px; top:313px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">자동폐기여부</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:337px; width:130px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">표시일련번호</caption>
- <line id="line18" class="line_2" style="x1:0px; y1:359px; x2:333px; y2:359px; "/>
- <input id="ipt_dispseq" ref="/root/main/ptnocdinfo/dispseq" class="input_essential" navindex="21" maxlength="3" format="#,###" mask="exclude" showmask="true" appearance="input" style="left:133px; top:338px; width:37px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- fExeCheckItem("ptnocd");
- ]]>
- </script>
- </input>
- <bool id="bol_autoabn" checkvalue="1,0" ref="/root/main/ptnocdinfo/autoabnflagcd" style="left:133px; top:314px; width:20px; height:20px; "/>
- <caption id="caption5" style="left:153px; top:291px; width:100px; height:20px; ">자동보관</caption>
- <caption id="caption7" style="left:153px; top:315px; width:70px; height:20px; ">자동폐기</caption>
- <bool id="bol_autokeep" checkvalue="1,0" ref="/root/main/ptnocdinfo/autokeepflagcd" style="left:133px; top:291px; width:20px; height:20px; "/>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button11" class="btn4_letter2" navindex="25" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUpdtData();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|