123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- /**
- * @group :
- * @ver : 2007.03.20
- * @by : ??????
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : ?????? Enable / Disable
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize() {
- ds_main_selectdiaglist_selectdiaglist.clearData();
- this.switch1.tabindex = 1;
- //fInitializeDone_Switch("deptcd");
- }
- /**
- * @desc : switch화면 변경
- * @
- * @param : caseID - switch case화면ID
- * @return :
- * @---------------------------------------------------
- */
- function fInitializeDone_Switch(caseID){
- ds_send_reqdata.clear();
- ds_main_cccdinfo_cccd.clear();
- if(caseID == "ccindx") this.switch1.tabindex = 0;
- if(caseID == "deptcd") this.switch1.tabindex = 1;
- if(caseID == "prms") this.switch1.tabindex = 2;
-
- if(caseID == "ccindx")
- { //전체보기
- button3.visible = false;
- var currentTime = utlf_getCurrentTime();
- ds_init.setColumn(0,"today", utlf_getCurrentDate());
- ds_init.setColumn(0,"curruntTime", currentTime.substr(0,4));
- ds_hidden_condition.setColumn(0,"selctedmode", "C");
-
- ds_init_userinfo.setColumn(0,"userid", sysf_getUserId());
- ds_init_userinfo.setColumn(0,"usernm", sysf_getUserName());
- ds_init_userinfo.setColumn(0,"instcd", sysf_getUserInfo("posinstcd"));
-
- ds_send.clear();
- dsf_createDsRow("ds_send", [{col: "mode" , val: ds_hidden_condition.getColumn(0,"indxviewmode")},
- {col: "indxflag" , val: ds_hidden_condition.getColumn(0,"indxflag")}]);
- var oParam = {};
- oParam.id = "TRMRF04201";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCcIndxList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_indxlist_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRMRF04201";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRMRF04201") > -1)
- {
- this.switch1.tabindex = 0;
- }
- }
- else if(caseID == "deptcd")
- { //과색인코드
- button3.visible = false;
- dsf_makeValue(ds_send_reqdata,"deptindxflag" ,"string", "2");
- dsf_makeValue(ds_send_reqdata,"deptcd" ,"string", sysf_getUserInfo("dutplcecd"));
- dsf_makeValue(ds_send_reqdata,"deptnm" ,"string", sysf_getUserInfo("dutplcenm"));
-
- var oParam = {};
- oParam.id = "TRMRF04205";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCClistByDeptcd";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_deptindxcdlist_deptindxcdlist=deptindxcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRMRF04205";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMRF04205") > -1) //과색인코드 조회
- {
- this.switch1.tabindex = 1;
-
- if(ds_main_deptindxcdlist_deptindxcdlist.rowcount >0)
- {
- fSelectTree("deptcd", "N");
- }
- }
- }
- else if(caseID == "prms")
- { //개인SET
- button3.visible = true;
- var oParam = {};
- oParam.id = "TRMRF04207";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCCFavorlist";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_cclist_ccset=ccset";
- oParam.async = false;
- oParam.callback = "cf_TRMRF04207";
- tranf_submit(oParam);
- if(!utlf_isNull(ds_main_cclist_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_main_cclist_ccset, "ccsetseq:INT");
- }
- if(arErrorCode.pop("TRMRF04207") > -1)
- {
- this.switch1.tabindex = 2;
- }
- grdf_setRowTypeIcon(switch1.prms.grd_ccset,0);
- }
- }
- /**
- * @group :
- * @ver : 2007.03.20
- * @by : ??????
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : ?????? Enable / Disable
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSelectTree(caseID, selyn) {
- ds_send.clear();
- if(caseID == "ccindx"){ //전체보기
- var iIndx = ds_main_indxlist_item.rowposition;
- var selIndxCd = ds_main_indxlist_item.getColumn(iIndx, "indxcd");
- dsf_makeValue(ds_send,"indxcd" ,"string", selIndxCd);
-
- if(ds_hidden_condition.getColumn(0, "selctedmode") == "C"){
- ds_hidden_condition.setColumn(0, "selectedIndx", ds_main_indxlist_item.getColumn(iIndx, "indxcd"));
- ds_hidden_condition.setColumn(0, "selectedIndxDepth", ds_main_indxlist_item.getColumn(iIndx, "depth"));
- ds_hidden_condition.setColumn(0, "selectedIndxPath", ds_main_indxlist_item.getColumn(iIndx, "pathcd"));
-
- //인덱스 트리를 가지고 온다
- var oParam = {};
- oParam.id = "TRMRF04202";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCcCdInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_cccdinfo_cccd=cccd";
- oParam.async = false;
-
- tranf_submit(oParam);
- dsf_setDefaultVal(ds_main_cccdinfo_cccd, "boolflag:false");
- grdf_setStatus(grd_cccd,"");
- }else{
- dsf_makeValue(ds_send,"indxflag" ,"string", ds_hidden_condition.getColumn(0, "indxflag"));
- dsf_makeValue(ds_send,"deptcd" ,"string", ds_hidden_condition_deptset.getColumn(0, "selecteddeptcd"));
-
- var oParam = {};
- oParam.id = "TRMRF04203";
- oParam.service = "termmngtapp.DeptSetMngt";
- oParam.method = "reqGetDeptCCCdList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_main_deptcccdlist_deptcccdinfo=deptcccdinfo";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_deptcccdlist_deptcccdinfo.addColumn("boolflag","string",256);
- }
- }else if(caseID == "deptcd"){ //과색인코드
-
- if(selyn == "N")
- {
- var iRow = 0;
- }
- else
- {
- var iRow = ds_main_deptindxcdlist_deptindxcdlist.rowposition;
- }
- var deptindxcd = ds_main_deptindxcdlist_deptindxcdlist.getColumn(iRow, "deptindxcd");
- var deptcd = ds_main_deptindxcdlist_deptindxcdlist.getColumn(iRow, "deptcd");
- ds_send_reqdata.clear();
-
- dsf_createDsRow("ds_send_reqdata", [{col: "deptindxflag" , val: "2"},
- {col: "deptindxcd" , val: deptindxcd},
- {col: "deptcd" , val: deptcd}]);
-
- var oParam = {};
- oParam.id = "TRMRF04206";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCClistByIndxcd";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_cccdinfo_cccd=cccd";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_setDefaultVal(ds_main_cccdinfo_cccd, "boolflag:false");
- grdf_setStatus(grd_cccd,"");
-
- }
- }
- /**
- * @desc : 단일 주호소코드 선택, 그리드 클릭
- * @
- * @param : iRow - 현재 클릭한 그리드의 row 위치
- * @return :이창록 수정(주호소 한글명 추가)2008.6.16
- * @---------------------------------------------------
- */
- function fAddDiag(iRow, iCol){
- var sUmlscd = ds_main_cccdinfo_cccd.getColumn(iRow, "umlscd");
- var sTermcd = ds_main_cccdinfo_cccd.getColumn(iRow, "termcd");
- var sTermhngnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termhngnm");
- var sTermengnm = "";
- if (iCol == "6")
- {
- sTermengnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termhngnm");
- }
- else
- {
- sTermengnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termengnm");
- }
- var iFndRow = ds_main_selectdiaglist_selectdiaglist.findRow(1,sTermengnm);
- if(iFndRow < 0 && !utlf_isNull(sTermengnm)){
- ds_main_selectdiaglist_selectdiaglist.addRow();
- iCurRow = ds_main_selectdiaglist_selectdiaglist.rowposition;
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"umlscd" ,"string", sUmlscd,iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"termcd" ,"string", sTermcd,iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"termengnm" ,"string", sTermengnm,iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"termhngnm" ,"string", sTermhngnm,iCurRow);
- }
- }
- /**
- * @desc : 다수의 주호소코드 선택, 주호소추가버튼 클릭
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAppendDiag(){
- var iTotRow = ds_main_cccdinfo_cccd.rowcount;
- for(var iRow = 0; iRow < iTotRow; iRow++){
- var bFlag = ds_main_cccdinfo_cccd.getColumn(iRow,"boolflag");
- if(bFlag == "true"){
- fAddDiag(iRow);
- }
- }
- }
- /**
- * @desc : 주호소코드 전달
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendDiagCD(){
- if(!fVailCheck())
- {
- sysf_messageBox("주호소는", "I003");
- return;
- }
- if(frmf_checkOpener()){
- var nodepath = opener.frmf_getParameter("SPMRF04200_param_nodepath"); //setParameter("SPMRF04200_param_nodepath", "/root/tmpcc");
- if(utlf_isNull(nodepath)){
- var selectNode = opener.ds_temp_selectdiaglist;
- if(utlf_isNull(selectNode)){
- opener.dsf_createDs("ds_temp_selectdiaglist");
- }
- opener.ds_temp_selectdiaglist.copyData(ds_main_selectdiaglist_selectdiaglist);
- }else{
- var selectnode = opener.objects[nodepath];
- if(utlf_isNull(selectnode)){
- opener.dsf_createDs(nodepath);
- }
- opener.objects[nodepath].copyData(ds_main_selectdiaglist_selectdiaglist);
- }
- }else{
- sysf_messageBox("상위화면이 변경되어 데이터를 전달", "E001");
- }
- opener.frmf_setParameter("MRF04200_DataYn", "Y");
- close();
- }
- /**
- * @desc : 주호소 입력 여부 체크
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fVailCheck(){
- //var instance = document.models(0).instances(0);
- var rtn = true;
- var sTmpdiagengnm = "";
- var nodelistMain = grd_selectdiag.rowcount;
- for (var i = 0; i < nodelistMain; i++)
- {
- sTmpdiagengnm = ds_main_selectdiaglist_selectdiaglist.getColumn(i, "termengnm");
- if (utlf_isNull(sTmpdiagengnm))
- {
- rtn = false;
- }
- }
- return rtn;
- }
- /**
- * @desc : 주호소 조회(검색 조건)
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqDiagSrchCond(){
- ds_send_reqdata.clear();
-
- var reqdata = ds_main_cond.getColumn(0, "reqdata");
-
- if(reqdata.charCodeAt(0) > 255){
- ds_main_cond.setColumn(0, "wordflag", "hng");
- }else{
- ds_main_cond.setColumn(0, "wordflag", "eng");
- }
- ds_main_cond.setColumn(0, "reqdata", reqdata.toUpperCase());
-
- dsf_makeValue(ds_send_reqdata,"reqdata" ,"string", ds_main_cond.getColumn(0, "reqdata"));
- dsf_makeValue(ds_send_reqdata,"srchflag" ,"string", ds_main_cond.getColumn(0, "srchflag"));
- dsf_makeValue(ds_send_reqdata,"wordflag" ,"string", ds_main_cond.getColumn(0, "wordflag"));
- var oParam = {};
- oParam.id = "TRMRF04204";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqGetCcattrcdInfo";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_cccdinfo_cccd=cccd";
- oParam.async = false;
- tranf_submit(oParam);
- dsf_setDefaultVal(ds_main_cccdinfo_cccd, "boolflag:false");
- grdf_setStatus(grd_cccd, "");
- }
- /**
- * @desc : tremcd 초기화
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fEndEditSelcc(){
- var iRow = ds_main_selectdiaglist_selectdiaglist.rowposition;
- var iCol = grd_selectdiag.getCellPos();
-
- if (iCol == "1")
- {
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"termcd" ,"string", "",iRow);
- }
- }
- /**
- * @desc : 개인주호소 추가(조회)
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetCCfavor()
- {
- ds_main_cccdinfo_cccd.setColumn(ds_main_cccdinfo_cccd.rowposition, "boolflag", "true");
-
- ds_main_cccdinfo_cccd.updatecontrol = false;
- ds_main_cccdinfo_cccd.setRowType(ds_main_cccdinfo_cccd.rowposition, "U");
- ds_main_cccdinfo_cccd.updatecontrol = true;
-
- var iTotRow = ds_main_cccdinfo_cccd.rowcount;
- var cnt = 0;
- for(var iRow = 0; iRow <iTotRow; iRow++){
- var bFlag = ds_main_cccdinfo_cccd.getColumn(iRow,"boolflag");
- var multiTermnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termengnm");
-
- if(bFlag == "true"){
- dsf_makeValue(ds_main_cccdinfo_cccd, "charflag", "string", "E", iRow);
- dsf_makeValue(ds_main_cccdinfo_cccd, "cctermnm", "string", multiTermnm, iRow);
- cnt++;
- }
- }
- ds_send.clear();
-
- if (cnt > 1)
- {
- var updateData = grdf_getGridUpdateData(grd_cccd);
- grdf_setStatusColumn(updateData, "status");
- /*
- if( isValidObject("ds_ccset")) ds_ccset.clear();
- if( !isValidObject("ds_ccset")) dsf_createDs("ds_ccset");
- */
- dsf_createDs("ds_ccset");
- ds_ccset.copyData(updateData, true);
- }
- else if (cnt == 1)
- {
- var iRow = ds_main_cccdinfo_cccd.rowposition;
- var iCol = grd_cccd.getCellPos();
- var charflag = "";
- var sTermnm = "";
-
- if (iCol == "5")
- {
- sTermnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termhngnm");
- charflag = "H";
- }
- else
- {
- sTermnm = ds_main_cccdinfo_cccd.getColumn(iRow, "termengnm");
- charflag = "E";
- }
- if (utlf_isNull(sTermnm))
- {
- var msg = "한글 주호소가";
- if (charflag == "E")
- {
- msg = "영문 주호소가";
- }
- sysf_messageBox(msg, "I004");
- return;
- }
-
- dsf_makeValue(ds_main_cccdinfo_cccd, "cctermnm", "string", sTermnm, ds_main_cccdinfo_cccd.rowposition);
- dsf_makeValue(ds_main_cccdinfo_cccd, "charflag", "string", charflag, ds_main_cccdinfo_cccd.rowposition);
-
- var updateData = grdf_getGridUpdateData(grd_cccd);
- grdf_setStatusColumn(updateData, "status");
- /*
- if( isValidObject("ds_ccset")) ds_ccset.clear();
- if( !isValidObject("ds_ccset")) dsf_createDs("ds_ccset");
- */
-
- dsf_createDs("ds_ccset");
- ds_ccset.copyData(updateData, true);
- ds_main_cccdinfo_cccd.setColumn(ds_main_cccdinfo_cccd.rowposition, "boolflag", "false");
-
- ds_main_cclist_ccset.updatecontrol = false;
- ds_main_cclist_ccset.setRowType(ds_main_cccdinfo_cccd.rowposition, "");
- ds_main_cclist_ccset.updatecontrol = true;
-
- }
-
-
-
- dsf_makeValue(ds_send, "flag", "string", "insert");
- if(!utlf_isNull(ds_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_ccset, "ccsetseq:INT");
- }
-
- var oParam = {};
- oParam.id = "TXMRF04201";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqExeCCFavor";
- oParam.inds = "req=ds_send ccset=ds_ccset";
- oParam.outds = "ds_main_cclist_ccset=ccset";
- oParam.async = false;
- oParam.callback = "cf_TXMRF04201";
-
- tranf_submit(oParam);
-
- if(!utlf_isNull(ds_main_cclist_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_main_cclist_ccset, "ccsetseq:INT");
- grdf_setStatus(grd_cccd, "");
- }
- }
- /**
- * @desc : 개인주호소 추가(선택)
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetSelCCfavor()
- {
- var sTermcd = ds_main_selectdiaglist_selectdiaglist.getColumn(ds_main_selectdiaglist_selectdiaglist.rowposition, "termcd");
- var sTermnm = ds_main_selectdiaglist_selectdiaglist.getColumn(ds_main_selectdiaglist_selectdiaglist.rowposition, "termengnm");
- ds_send.clear();
- ds_hidden_tmpsend.clear();
-
- if (!utlf_isNull(sTermcd)) //용어코드가 있을 경우 한/영구분
- {
- var charflag = "E";
-
- for(var i = 0; i <= sTermnm.length; i++)
- {
- if(sTermnm.charCodeAt(i) > 255)
- {
- charflag = "H";
- break;
- }
- }
- dsf_makeValue(ds_hidden_tmpsend, "status", "string", "u");
- dsf_makeValue(ds_hidden_tmpsend, "termcd", "string", sTermcd);
- dsf_makeValue(ds_hidden_tmpsend, "cctermnm", "string", sTermnm);
- dsf_makeValue(ds_hidden_tmpsend, "charflag", "string", charflag);
- }
- else
- {
- dsf_makeValue(ds_hidden_tmpsend, "status", "string", "u");
- dsf_makeValue(ds_hidden_tmpsend, "termcd", "string", "-");
- dsf_makeValue(ds_hidden_tmpsend, "cctermnm", "string", sTermnm);
- dsf_makeValue(ds_hidden_tmpsend, "charflag", "string", "");
- }
- /*
- if( isValidObject("ds_ccset")) ds_ccset.clear();
- if( !isValidObject("ds_ccset")) dsf_createDs("ds_ccset");
- */
-
- dsf_createDs("ds_ccset");
- ds_ccset.copyData(ds_hidden_tmpsend, true);
-
- dsf_makeValue(ds_send, "flag", "string", "insert");
-
- if(!utlf_isNull(ds_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_ccset, "ccsetseq:INT");
- }
- var oParam = {};
- oParam.id = "TXMRF04201";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqExeCCFavor";
- oParam.inds = "req=ds_send ccset=ds_ccset";
- oParam.outds = "ds_main_cclist_ccset=ccset";
- oParam.async = false;
- tranf_submit(oParam);
- if(!utlf_isNull(ds_main_cclist_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_main_cclist_ccset, "ccsetseq:INT");
- grdf_setStatus(grd_cccd, "");
- }
- }
- /**
- * @desc : 체크 해제시 상태 초기화
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCheckChange()
- {
- if ((ds_main_cccdinfo_cccd.getColumn(ds_main_cccdinfo_cccd.rowposition, "boolflag") == "false" || utlf_isNull(ds_main_cccdinfo_cccd.getColumn(ds_main_cccdinfo_cccd.rowposition, "boolflag"))) && grd_cccd.getCellPos() == "0" ) {
- //grdf_setStatus(grd_cccd, "", ds_main_cccdinfo_cccd.rowposition); //grd_cccd.removeStatus(grd_cccd.row, "update");
- ds_main_cccdinfo_cccd.updatecontrol = false;
- ds_main_cccdinfo_cccd.setRowType(ds_main_cccdinfo_cccd.rowposition, "");
- ds_main_cccdinfo_cccd.updatecontrol = true;
- }
- }
- /**
- * @desc : 개인주호소 더블클릭
- * @
- * @param :이창록 수정(주호소 한글명 추가)2008.6.16
- * @return :
- * @---------------------------------------------------
- */
- function fCcsetdbClick(iRow)
- {
- var sUmlscd = ds_main_cclist_ccset.getColumn(iRow, "umlscd");
- var sTermcd = ds_main_cclist_ccset.getColumn(iRow, "cctermcd");
- var sTermengnm = ds_main_cclist_ccset.getColumn(iRow, "cctermnm");
- var iFndRow = ds_main_selectdiaglist_selectdiaglist.findRow(1,sTermengnm);
- if(iFndRow < 0 && !utlf_isNull(sTermengnm)){
- ds_main_selectdiaglist_selectdiaglist.addRow();
- iCurRow = ds_main_selectdiaglist_selectdiaglist.rowposition;
-
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist,"umlscd" ,"string", sUmlscd, iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist, "termcd", "string", sTermcd, iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist, "termengnm", "string", sTermengnm, iCurRow);
- dsf_makeValue(ds_main_selectdiaglist_selectdiaglist, "termhngnm", "string", sTermengnm, iCurRow);
- }
-
- }
- /**
- * @desc : 순서이동
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMoveUp()
- {
- var iRow = ds_main_cclist_ccset.rowposition;
- if (iRow != 0){
- dsf_makeValue(ds_hidden, "temp", "string", "");
- dsf_makeValue(ds_hidden, "seq", "string", "");
- var oldseq = ds_main_cclist_ccset.getColumn(iRow, "sortno");
- var newseq = ds_main_cclist_ccset.getColumn(iRow-1, "sortno");
-
- ds_main_cclist_ccset.moveRow(iRow, iRow-1);
- ds_main_cclist_ccset.setColumn(iRow, "sortno", oldseq);
- ds_main_cclist_ccset.setColumn(iRow-1, "sortno", newseq);
- ds_main_cclist_ccset.rowposition = (iRow - 1);
- switch1.prms.grd_ccset.setCellPos(1);
- ds_main_cclist_ccset.updatecontrol = false;
- ds_main_cclist_ccset.setRowType(ds_main_cclist_ccset.rowposition, "U");
- ds_main_cclist_ccset.setRowType(ds_main_cclist_ccset.rowposition+1, "U");
- ds_main_cclist_ccset.updatecontrol = true;
- }
- }
- /**
- * @desc : 순서이동
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMoveDown()
- {
- var iRow = ds_main_cclist_ccset.rowposition;
- var iRows = ds_main_cclist_ccset.rowcount;
- if (iRow != (iRows - 1)){
- dsf_makeValue(ds_hidden, "temp", "string", "");
- dsf_makeValue(ds_hidden, "seq", "string", "");
- var oldseq = ds_main_cclist_ccset.getColumn(iRow, "sortno");
- var newseq = ds_main_cclist_ccset.getColumn(iRow+1, "sortno");
-
- ds_main_cclist_ccset.moveRow(iRow, iRow+1);
-
- ds_main_cclist_ccset.setColumn(iRow, "sortno", oldseq);
- ds_main_cclist_ccset.setColumn(iRow+1, "sortno", newseq);
- ds_main_cclist_ccset.rowposition = (iRow + 1);
- switch1.prms.grd_ccset.setCellPos(1);
- ds_main_cclist_ccset.updatecontrol = false;
- ds_main_cclist_ccset.setRowType(ds_main_cclist_ccset.rowposition, "U");
- ds_main_cclist_ccset.setRowType(ds_main_cclist_ccset.rowposition-1, "U");
- ds_main_cclist_ccset.updatecontrol = true;
- }
- }
- /**
- * @desc : 개인주호소 삭제
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fDelCcset()
- {
- var iRow = grdf_getSelectedRows(switch1.prms.grd_ccset);
-
- for (var i = 0; i < iRow.length; i++)
- {
- ds_main_cclist_ccset.updatecontrol = false;
- ds_main_cclist_ccset.setRowType([iRow[i]], "D");
- ds_main_cclist_ccset.updatecontrol = true;
- }
-
- }
- /**
- * @desc : 개인주호소 수정사항 저장
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSave()
- {
- var updateData =grdf_getGridUpdateData(switch1.prms.grd_ccset);
- grdf_setStatusColumn(updateData, "status");
- if( isValidObject("ds_ccset")) ds_ccset.clear();
- if( !isValidObject("ds_ccset")) dsf_createDs("ds_ccset");
- ds_ccset.copyData(updateData, true);
- dsf_makeValue(ds_send, "flag", "string", "update");
- if(!utlf_isNull(ds_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_ccset, "ccsetseq:INT");
- }
- var oParam = {};
- oParam.id = "TXMRF04201";
- oParam.service = "termmngtapp.CCTermMngt";
- oParam.method = "reqExeCCFavor";
- oParam.inds = "req=ds_send ccset=ds_ccset";
- oParam.outds = "ds_main_cclist_ccset=ccset";
- oParam.async = false;
- oParam.callback = "cf_TXMRF04201";
- tranf_submit(oParam);
- if(!utlf_isNull(ds_main_cclist_ccset.getColumnInfo("ccsetseq"))){
- dsf_setTypeFormat(ds_main_cclist_ccset, "ccsetseq:INT");
- }
- if(arErrorCode.pop("TXMRF04201") > -1)
- {
- grdf_setStatus(switch1.prms.grd_ccset,"");
- }
- }
- function grd_selectdiag_onmousemove(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row >-1 && e.col > -1){
- if(!utlf_isNull(grd_selectdiag.getCellValue(e.row,e.col))){
- grd_selectdiag.tooltiptext = grd_selectdiag.getCellValue(e.row,e.col);
- }else{
- grd_selectdiag.tooltiptext ="";
- }
- }
- }
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(this.switch1.tabindex == 0)
- {
- fInitializeDone_Switch("ccindx");
- }
- if(this.switch1.tabindex == 1)
- {
- fInitializeDone_Switch("deptcd");
- }
- if(this.switch1.tabindex == 2)
- {
- fInitializeDone_Switch("prms");
- }
- }
- function grd_cccd_onmousemove(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row >-1 && e.col > -1){
- if(!utlf_isNull(grd_cccd.getCellValue(e.row,e.col))){
- grd_cccd.tooltiptext = grd_cccd.getCellValue(e.row,e.col);
- }else{
- grd_cccd.tooltiptext ="";
- }
- }
- }
- ]]></Script>
|