123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766 |
- /*
-
- Tophology/ICD-O-3 진단 관리(SMMRT00500.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
-
- var xCondPath = "/root/main/cond"; // 조회 조건
- var xICDO3Path = "/root/main/icdo3info/icdo3list"; // Morphology 정보
- var xDiagInfoPath = "/root/main/diaginfo"; // 등록할 진단 정보
- var xTophlgPath = "/root/main/tophlginfo/tophlglist"; // Tophology 정보
- var xIndxInfoPath = "/root/main/indxinfo/indxlist"; // 색인 정보
- var xRefPath = "/root/hidden/condition/getdata"; // 팝업 정보
- /**
- * @group :
- * @ver : 2007.03.20
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.setValue(xCondPath+"/diagflag","C");
- model.setValue(xCondPath+"/indxnmflag", "E");
- model.toggle("Tophlg");
- model.refresh();
- fIndxSearch("Tophlg");
- }
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭시..
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClickedGrid(){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- var iRow = -1;
- var iCol = -1;
- model.setValue(xDiagInfoPath+"/stat","");
- fSetCtrl(true);
- switch(sDiagInfo){
- case 0 : // Tophology
- iCol = grd_tophlginfo.col;
- iRow = grd_tophlginfo.row;
- grd_tophistlist.attribute("visibility") = "visible";
- grd_mophistlist.attribute("visibility") = "hidden";
- if(iRow < 1) return;
- model.copyNode(xDiagInfoPath,xTophlgPath+"["+iRow+"]");
- //model.setValue(xDiagInfoPath+"/stat","U");
- model.setValue(xTophlgPath+"["+iRow+"]/stat","U");
- //model.setValue(xDiagInfoPath+"/fromdd",getDate());
- ipt_tophlgcd.visible = true;
- ipt_histlgccd.visible = false;
- cap_diagcd.value = "원발장기코드";
- cap_diagtital.value="Topography 진단정보";
- model.removenode("/root/send");
- model.makeValue("/root/send/flag", "Tophology");
- model.makeValue("/root/send/cd", model.getValue(xTophlgPath+"["+iRow+"]/tophlgcd"));
- model.makeValue("/root/send/grde", model.getValue(xTophlgPath+"["+iRow+"]/grde"));
- model.makeValue("/root/send/seqno", model.getValue(xTophlgPath+"["+iRow+"]/seqno"));
- model.copyNode("/root/main/diaghist", xTophlgPath+"["+iRow+"]");
- submit("TRMRT00504");
- model.refresh();
- break;
- case 1 : // Morphology
- iCol = grd_icdo3info.col;
- iRow = grd_icdo3info.row;
- grd_tophistlist.attribute("visibility") = "hidden";
- grd_mophistlist.attribute("visibility") = "visible";
- if(iRow < 1) return;
- model.copyNode(xDiagInfoPath,xICDO3Path+"["+iRow+"]");
- //model.setValue(xDiagInfoPath+"/stat","U");
- model.setValue(xICDO3Path+"["+iRow+"]/stat","U");
- //model.setValue(xDiagInfoPath+"/fromdd",getDate());
- ipt_tophlgcd.visible = false;
- ipt_histlgccd.visible = true;
- cap_diagcd.value = "조직학적 코드";
- model.removenode("/root/send");
- model.makeValue("/root/send/flag","Morphology");
- model.makeValue("/root/send/cd", model.getValue(xICDO3Path+"["+iRow+"]/histlgccd"));
- model.makeValue("/root/send/grde", model.getValue(xICDO3Path+"["+iRow+"]/grde"));
- model.makeValue("/root/send/seqno", model.getValue(xICDO3Path+"["+iRow+"]/seqno"));
- model.copyNode("/root/main/diaghist", xICDO3Path+"["+iRow+"]");
- submit("TRMRT00504");
- model.refresh();
- break;
- }
- }
- /**
- * @group :
- * @ver : 2007.03.22
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 입력 항목 clear
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInsDiagInfo(flag){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- //fSetCtrl(false);
-
- switch(flag){
- case 'I':
- model.removenode(xDiagInfoPath);
- model.makeValue(xDiagInfoPath+"/stat","I");
- fSetCtrl(false);
- model.makeNode(xDiagInfoPath+"/grde");
- model.makeNode(xDiagInfoPath+"/seqno");
- model.makeValue(xDiagInfoPath+"/indxcd",model.getValue(xCondPath+"/srchindxcd"));
- model.makeNode(xDiagInfoPath+"/engnm");
- model.makeNode(xDiagInfoPath+"/hngnm");
- model.makeNode(xDiagInfoPath+"/snmdcnptid");
- break;
- case 'U':
- model.makeValue(xDiagInfoPath+"/stat","U");
- fSetCtrl(false);
- model.makeNode(xDiagInfoPath+"/engnm");
- model.makeNode(xDiagInfoPath+"/hngnm");
- model.makeNode(xDiagInfoPath+"/snmdcnptid");
- break;
- case 'D':
- model.makeValue(xDiagInfoPath+"/stat","D");
- fSetCtrl(true);
- if(sDiagInfo == 0){
- model.removenode("/root/send");
- model.makeNode("/root/send/reqCond");
- model.makeNode("/root/send/tophlginfo");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.makeValue("/root/send/reqCond/flag", "indx");
- model.copyNode("/root/send/tophlginfo",xDiagInfoPath);
- submit("TXMRT00502");
- return;
- } else if(sDiagInfo == 1){
- model.removenode("/root/send");
- model.makeNode("/root/send/reqCond");
- model.makeNode("/root/send/icdo3info");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.makeValue("/root/send/reqCond/flag", "indx");
- model.copyNode("/root/send/icdo3info",xDiagInfoPath);
- submit("TXMRT00501");
- return;
- }
- break;
- }
-
- /* model.makeNode(xDiagInfoPath+"/grde");
- model.makeNode(xDiagInfoPath+"/seqno");
- model.makeValue(xDiagInfoPath+"/indxcd",model.getValue(xCondPath+"/srchindxcd"));
- model.makeNode(xDiagInfoPath+"/engnm");
- model.makeNode(xDiagInfoPath+"/hngnm"); */
- // Edited by NJ 2007-07-21 getDate() -> getCurrentDate()
- //model.makeValue(xDiagInfoPath+"/fromdd",getDate());
- model.makeValue(xDiagInfoPath+"/fromdd", getCurrentDate());
- model.makeValue(xDiagInfoPath+"/rgstdt", getCurrentDate()+getCurrentTime());
- model.makeValue(xDiagInfoPath+"/rgstrid", getUserInfo("userid"));
- model.makeValue(xDiagInfoPath+"/rgstrnm", getUserInfo("usernm"));
- model.makeValue(xDiagInfoPath+"/todd","29991231");
- switch(sDiagInfo){
- case 0 : // Tophology
- if(flag == 'I'){
- model.makeNode(xDiagInfoPath+"/tophlgcd");
- }
- ipt_tophlgcd.visible = true;
- ipt_histlgccd.visible = false;
- cap_diagcd.value = "원발장기코드";
- cap_diagtital.value="Topography 진단정보";
- break;
- case 1 : // Morphology
- if(flag == 'I'){
- model.makeNode(xDiagInfoPath+"/cncrreptdiagcd");
- model.makeNode(xDiagInfoPath+"/histlgccd");
- }
- ipt_tophlgcd.visible = false;
- ipt_histlgccd.visible = true;
- cap_diagcd.value = "조직학적 코드";
- cap_diagtital.value="Morphology 진단정보";
- break;
- }
- }
- /**
- * @group :
- * @ver : 2007.03.20
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Morphology/Tophology 진단 코드 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDiagSearch(flag){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- if(flag == "indx"){
- model.setValue("/root/main/cond/srchnm", "");
- }
- //fInsDiagInfo();
- //if(model.getValue(xCondPath+"/srchindxcd") == "") return; // 색인코드가 없는 경우 조회를 하지 않음.
- model.setValue(xDiagInfoPath+"/stat", "-");
- switch(sDiagInfo){
- case 0 : // Tophology
- model.setValue(xCondPath+"/indxflag", 1);
- model.removenodeset(xTophlgPath);
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send",xCondPath);
- model.makeValue("/root/send/flag", flag);
- model.makeValue("/root/send/srchfromdd", model.getValue("/root/main/cond/srchfromdd"));
- model.makeValue("/root/send/srchtodd", model.getValue("/root/main/cond/srchtodd"));
- model.makeValue("/root/send/endflag", model.getValue("/root/main/cond/endflag"));
- var diagflag = model.getValue("/root/send/diagflag");
- var srchnm = model.getValue("/root/send/srchnm");
- srchnm = srchnm.replace(/^ *| *$/g, "");
- model.setValue("/root/send/srchnm", srchnm);
- if(diagflag != "H" && srchnm != ""){
- model.setValue("/root/send/srchnm", srchnm.toUpperCase());
- }
- fSetCtrl(true);
- submit("TRMRT00502");
- break;
- case 1 : // Morphology
- model.setValue(xCondPath+"/indxflag", 3);
- model.removenodeset(xICDO3Path);
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send",xCondPath);
- model.makeValue("/root/send/flag", flag);
- var diagflag = model.getValue("/root/send/diagflag");
- var srchnm = model.getValue("/root/send/srchnm");
- srchnm = srchnm.replace(/^ *| *$/g, "");
- model.setValue("/root/send/srchnm", srchnm);
- if(diagflag != "H" && srchnm != ""){
- model.setValue("/root/send/srchnm", srchnm.toUpperCase());
- }
- fSetCtrl(true);
- submit("TRMRT00501");
- break;
- }
- //model.setValue("/root/main/cond/srchnm", "");
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.03.20
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : ICD-O-3/Tophology 색인 코드 조회
- * @param : pFlag (ICDO3 : ICD-O-3, Tophlg : Tophology)
- * @return :
- * @---------------------------------------------------
- */
- function fIndxSearch(pFlag){
- model.removenode("/root/main/diaghist/list");
- if(pFlag == "ICDO3"){
- model.toggle("ICDO3");
- model.setValue(xCondPath+"/indxflag","3");
- model.removenodeset(xICDO3Path);
- model.setValue(xCondPath+"/srchindxcd","");
- cap_diagcd.value = "조직학적 코드";
- cap_diagtital.value = "Morphology 진단정보";
- ipt_tophlgcd.visible = true;
- ipt_histlgccd.visible = false;
- grd_tophistlist.attribute("visibility") = "hidden";
- grd_mophistlist.attribute("visibility") = "visible";
- }else if(pFlag == "Tophlg"){
- model.toggle("Tophlg");
- model.setValue(xCondPath+"/indxflag","1");
- model.removenodeset(xTophlgPath);
- model.setValue(xCondPath+"/srchindxcd","");
- cap_diagcd.value = "원발장기코드";
- cap_diagtital.value = "Topography 진단정보";
- ipt_tophlgcd.visible = true;
- ipt_histlgccd.visible = false;
- ipt_tophlgcd.disabled = true;
- grd_tophistlist.attribute("visibility") = "visible";
- grd_mophistlist.attribute("visibility") = "hidden";
- }
-
- model.removeNodeset("xIndxInfoPath");
- model.removenode("/root/send");
- model.makeNode("/root/send");
- model.copyNode("/root/send",xCondPath);
- submit("TRMRT00503");
- model.resetInstanceNode(xDiagInfoPath);
- fSetCtrl(true);
- trv_indxinfo.rebuild();
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 데이터 변경 여부 check
- * @param : pTgRef : target path
- * @param : pRgRef : regular path
- * @param : pNodeInfo : 확인할 노드 정보
- * @return :
- * @---------------------------------------------------
- */
- function fChkChangedData(pTgRef, pRgRef,pNodeInfo){
- var sNodeInfo = pNodeInfo.split("▩");
- var sNode = sNodeInfo[0].split("▦");
- var sNodeNm = sNodeInfo[1].split("▦");
-
- for(var i=0; i<sNode.length; i++){
- if(model.getValue(pTgRef+"/"+sNode[i]) != model.getValue(pRgRef+"/"+sNode[i])){
- return true;
- }
- }
- return false;
- }
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave(){
- var sTmpgrde = model.getValue("/root/main/diaginfo/grde");
- var sGrde = sTmpgrde.replace(" ", "");
- if(((model.getValue("root/main/diaginfo/indxcd") == "") || (model.getValue("root/main/diaginfo/indxcd") == null))){
- messageBox("색인을", "C002");
- return;
- } else if(sGrde.length > 1){
- messageBox("등급은 한 자리로", "C001");
- return;
- } if(model.getValue(xDiagInfoPath+"/stat") == "-"){
- messageBox("신규 및 수정 모드를", "C002");
- return;
- }
- var srchnm = model.getValue(xCondPath + "/srchnm");
- srchnm = srchnm.toUpperCase();
- var sDiagInfo = swt_diaginfo.selectedIndex;
- var sNodeInfo = "";
- model.makeValue(xCondPath+"/flag", "indx");
- var iRow = -1;
- switch(sDiagInfo){
- case 0 : // Tophology
- iRow = grd_tophlginfo.row;
- if(iRow < 1 && model.getValue(xDiagInfoPath+"/stat") == "U"){
- if(iRow < 1){
- meassageBox("선택된 용어가", "I004");
- }
- return;
- }
- sNodeInfo = "grde▦tophlgcd▦seqno▦indxcd▦engnm▦hngnm▦fromdd▦todd▩"+
- "등급▦원발장기코드▦일련번호▦색인코드▦영문명▦한글명▦시작일▦종료일▦";
- if(fChkValueEmpty(xDiagInfoPath,sNodeInfo) == true){
- return;
- }else{
- if(fChkChangedData(xDiagInfoPath,xTophlgPath+"["+iRow+"]",sNodeInfo) == false){
- messageBox("변경된 데이터가","I004");
- return;
- } else if((model.getValue(xTophlgPath+"["+iRow+"]/fromdd") == model.getValue("/root/main/diaginfo/fromdd")) && (model.getValue(xDiagInfoPath+"/stat") == "U")){
- messageBox("시작일자가 동일한 용어코드가", "E005");
- return;
- }
- }
- var sRtn = messageBox("","Q002");
- if(sRtn != 6) return;
- model.removenode("/root/send");
- model.makeNode("/root/send/reqCond");
- model.makeNode("/root/send/tophlginfo");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.copyNode("/root/send/tophlginfo",xDiagInfoPath);
- model.setValue("/root/send/reqCond/srchnm", srchnm);
- if(submit("TXMRT00502")){
- model.resetInstanceNode(xDiagInfoPath);
- }
-
- break;
- case 1 : // Morphology
- iRow = grd_icdo3info.row;
- if(iRow < 1 && model.getValue(xDiagInfoPath+"/stat") == "U"){
- if(iRow < 1){
- meassageBox("선택된 용어가", "I004");
- }
- return;
- }
- sNodeInfo = "grde▦histlgccd▦seqno▦indxcd▦engnm▦hngnm▦fromdd▦todd▩"+
- "등급▦조직학적코드▦일련번호▦색인코드▦영문명▦한글명▦시작일▦종료일▩";
- if(fChkValueEmpty(xDiagInfoPath,sNodeInfo) == true){
- return;
- }else{
- if(fChkChangedData(xDiagInfoPath,xICDO3Path+"["+iRow+"]",sNodeInfo) == false){
- messageBox("변경된 데이터가","I004");
- return;
- } else if((model.getValue(xICDO3Path+"["+iRow+"]/fromdd") == model.getValue("/root/main/diaginfo/fromdd")) && (model.getValue(xDiagInfoPath+"/stat") == "U")){
- messageBox("시작일자가 같은 용어코드가", "E005");
- return;
- }
- var sCncrReptDiagCd = model.getValue(xDiagInfoPath+"/histlgccd");
- var temp = sCncrReptDiagCd.replace("M","");
- sCncrReptDiagCd = temp.replace("/","");
- model.setValue(xDiagInfoPath+"/cncrreptdiagcd", sCncrReptDiagCd);
- }
- var sRtn = messageBox("","Q002");
- if(sRtn != 6) return;
- model.removenode("/root/send");
- model.makeNode("/root/send/reqCond");
- model.makeNode("/root/send/icdo3info");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.copyNode("/root/send/icdo3info",xDiagInfoPath);
- model.setValue("/root/send/reqCond/srchnm", srchnm);
- if(submit("TXMRT00501")){
- model.resetInstanceNode(xDiagInfoPath);
- }
- break;
- }
- model.setValue(xDiagInfoPath+"/stat", "-");
- fSetCtrl(true);
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.03.21
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 빈 공백 check
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChkValueEmpty(pRef, pNodeInfo){
- var sNodeInfo = pNodeInfo.split("▩");
- var sNode = sNodeInfo[0].split("▦");
- var sNodeNm = sNodeInfo[1].split("▦");
- for(var i=0; i<sNode.length; i++){
- if(model.getValue(pRef+"/"+sNode[i]) == ""){
- messageBox(sNodeNm[i]+"이 입력되지","E007");
- return true;
- }
- }
- return false;
- }
- /**
- * @group :
- * @ver : 2007.03.26
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 색인 추가 버튼 호출
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCallIndxAdd(){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- switch(sDiagInfo){
- case 0 : // Tophology
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/paramindx","");
- model.setValue("/root/send/paramindx", "1");
- //model.setValue(xRefPath+"/indxflag",1);
- break;
- case 1 : // Morphology
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/paramindx","");
- model.setValue("/root/send/paramindx", "3");
- //model.setValue(xRefPath+"/indxflag",3);
- break;
- }
- modal("SMMRT00100", 1, 100, 100, "SMMRT00100", "/root/send", xRefPath);
- }
- /**
- * @group :
- * @ver : 2007.08.13
- * @by : 나종천
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 사용 종료기능 추가
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fUEDT(){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- model.removenode(xDiagInfoPath);
- model.makeValue(xDiagInfoPath+"/stat","D");
- model.makeNode(xDiagInfoPath+"/grde");
- model.makeNode(xDiagInfoPath+"/seqno");
- model.makeValue(xDiagInfoPath+"/indxcd",model.getValue(xCondPath+"/srchindxcd"));
- model.makeNode(xDiagInfoPath+"/engnm");
- model.makeNode(xDiagInfoPath+"/hngnm");
- // Edited by NJ 2007-07-21 getDate() -> getCurrentDate()
- //model.makeValue(xDiagInfoPath+"/fromdd",getDate());
- model.makeValue(xDiagInfoPath+"/fromdd", getCurrentDate());
- model.makeValue(xDiagInfoPath+"/rgstdt", getCurrentDate()+getCurrentTime());
- model.makeValue(xDiagInfoPath+"/rgstrid", getUserInfo("userid"));
- model.makeValue(xDiagInfoPath+"/rgstrnm", getUserInfo("usernm"));
- model.makeValue(xDiagInfoPath+"/todd","29991231");
- switch(sDiagInfo){
- case 0 : // Tophology
- model.makeNode(xDiagInfoPath+"/tophlgcd");
- ipt_tophlgcd.visible = true;
- ipt_histlgccd.visible = false;
- cap_diagcd.value = "원발장기코드";
- cap_diagtital.value="Topography 진단정보";
- break;
- case 1 : // Morphology
- model.makeNode(xDiagInfoPath+"/cncrreptdiagcd");
- model.makeNode(xDiagInfoPath+"/histlgccd");
- ipt_tophlgcd.visible = false;
- ipt_histlgccd.visible = true;
- cap_diagcd.value = "조직학적 코드";
- cap_diagtital.value="Morphology 진단정보";
- break;
- }
- }
- /**
- * @group :
- * @ver : 2007.03.22
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 버튼 속성 Setting
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetCtrl(bool){
- if(model.getValue(xDiagInfoPath+"/stat") == 'I'){
- ipt_tophlgcd.disabled = bool;
- ipt_histlgccd.disabled = bool;
- ipt_seqno.disabled = bool;
- ipt_grde.disabled = bool;
- ipt_fromdd.disabled = bool;
- ipt_todd.disabled = bool;
- ipt_snmdcnptid.disabled = bool;
- }else if(model.getValue(xDiagInfoPath+"/stat") == 'U'){
- ipt_tophlgcd.disabled = !bool;
- ipt_histlgccd.disabled = !bool;
- ipt_seqno.disabled = !bool;
- ipt_grde.disabled = !bool;
- ipt_fromdd.disabled = bool;
- ipt_todd.disabled = bool;
- ipt_snmdcnptid.disabled = bool;
- }else {
- ipt_tophlgcd.disabled = bool;
- ipt_histlgccd.disabled = bool;
- ipt_seqno.disabled = bool;
- ipt_grde.disabled = bool;
- ipt_fromdd.disabled = bool;
- ipt_todd.disabled = bool;
- ipt_snmdcnptid.disabled = bool;
- }
- ipt_engnm.disabled = bool;
- ipt_hngnm.disabled = bool;
- }
- /**
- * @group :
- * @ver : 2007.03.22
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Excel 저장 기능
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- switch(swt_diaginfo.selectedIndex){
- case 0:
- grd_tophlginfo.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- break;
- case 1:
- grd_icdo3info.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- break;
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.03.22
- * @by : 이은영
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Excel 저장 기능
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRollbackTerm(){
- var sDiagInfo = swt_diaginfo.selectedIndex;
- model.removenode("/root/send");
- model.makeNode("/root/send/reqCond");
-
- if(sDiagInfo == "0"){
- model.makeNode("/root/send/tophlginfo");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.copyNode("/root/send/tophlginfo",xDiagInfoPath);
- model.setValue("/root/send/tophlginfo/fromdd", getCurrentDate());
- model.setValue("/root/send/tophlginfo/todd", "99991231");
- model.setValue("/root/send/tophlginfo/stat", "I");
- model.makeValue("/root/send/reqCond/flag", "indx");
- submit("TXMRT00502");
- }else if(sDiagInfo == "1"){
- model.makeNode("/root/send/icdo3info");
- model.copyNode("/root/send/reqCond",xCondPath);
- model.copyNode("/root/send/icdo3info",xDiagInfoPath);
- model.setValue("/root/send/icdo3info/fromdd", getCurrentDate());
- model.setValue("/root/send/icdo3info/todd", "99991231");
- model.setValue("/root/send/icdo3info/stat", "I");
- model.makeValue("/root/send/reqCond/flag", "indx");
- submit("TXMRT00501")
- }
- model.resetInstanceNode(xDiagInfoPath);
- }
- /**
- * @group :
- * @ver : 2008.12.11
- * @by : 나종천
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 오른쪽 마우스 팝업 호출
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCallPopup(flag){
- if((flag == "grd_tophlginfo") || (flag == "grd_icdo3info")){
- if(isDataCell()){
- setPopupMenu(flag, false, "/root/init/func/mouserght", "label", "value");
- }
- } else if(flag == "trv_indxinfo"){
- if(trv_indxinfo.value == ""){
- return;
- }
- setPopupMenu(flag, false, "/root/init/func/trvmouserght", "label", "value");
- } else {
- initPopupMenu();
- }
- }
- /**
- * @group :
- * @ver : 2008.12.11
- * @by : 나종천
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 색인 변경 처리
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fModifyIndx(){
- var selTab = model.getValue("/root/main/cond/indxflag");
- model.removenode("/root/hidden/reqdata");
- if(selTab == "3"){
- selectedRows = grd_icdo3info.selectedRows;
- for(var cnt = 0; cnt <= selectedRows -1; cnt++){
- copyNodeset("/root/hidden/reqdata/icdo3indxlist", "/root/main/icdo3info/icdo3list[" + grd_icdo3info.selectedrow(cnt) + "]", "append");
- }
- } else if(selTab == "1"){
- selectedRows = grd_tophlginfo.selectedRows;
- for(var cnt = 0; cnt <= selectedRows -1; cnt++){
- copyNodeset("/root/hidden/reqdata/tophlgindxlist", "/root/main/tophlginfo/tophlglist[" + grd_tophlginfo.selectedrow(cnt) + "]", "append");
- }
- }
- }
- /**
- * @group :
- * @ver : 2008.12.11
- * @by : 나종천
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 색인 변경할 인덱스로 이동 처리
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPasteIndx(){
- var selTab = model.getValue("/root/main/cond/indxflag");
- var iIndx = trv_indxinfo.focusIndex + 1;
- var selIndxCd = model.getValue("/root/main/indxinfo/indxlist[" + iIndx + "]/indxcd");
- var msg = messageBox("색인을", "Q012");
- if(msg == "7"){
- return;
- }
- switch(selTab){
- case "1":
- copyNodeset("/root/send/reqdata/tophlgindxlist", "/root/hidden/reqdata/tophlgindxlist");
- model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd);
- model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab);
- if(msg == "6"){
- if(submit("TXMRT00504")){
- messageBox("색인 변경이","I001");
- grd_tophlginfo.refresh();
- } else {
- messageBox("색인 변경을","E009");
- }
- }
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/hidden/reqdata");
- break;
- case "3":
- copyNodeset("/root/send/reqdata/icdo3indxlist", "/root/hidden/reqdata/icdo3indxlist");
- model.makeValue("/root/send/reqdata/chnginfo/chngindxcd", selIndxCd);
- model.makeValue("/root/send/reqdata/chnginfo/indxflag", selTab);
- if(msg == "6"){
- if(submit("TXMRT00503")){
- messageBox("색인 변경이","I001");
- grd_icdo3info.refresh();
- } else {
- messageBox("색인 변경을","E009");
- }
- }
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/hidden/reqdata");
- break;
- }
- }
|