123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 약속진단관리 ( SMMMB00800_약속진단관리.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var sETCPRMSPRCPSETDETLLIST_PATH = "/root/main/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist";
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitializeDone_SMMMB00800(){
- model.removeNodeset(sETCPRMSPRCPSETDETLLIST_PATH);
- model.refresh();
- }
- /**
- * @desc : 약속SET 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqGetPrmsSet(){
- var iSetNO = model.getValue("/root/hidden/prmsprcpsetdetlset/setno");
- var cSetTypeCD = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd");
- model.makeValue("/root/send/reqdata/setno", iSetNO);
- model.makeValue("/root/send/reqdata/settypecd", cSetTypeCD);
- model.refresh();
- submit("TRMMB00602");
- }
- /**
- * @desc : 약속SET 등록버튼 클릭시
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fRgstPrmsDetlSet(){
- if(model.getValue("/root/hidden/prmsprcpsetdetlset/setno") == ""){
- messageBox("SET폴더를","C002"); //수술SET을 선택하지 않고 등록버튼을 클릭한 경우
- return;
- }
- modal("SPMMO03200"); //진단팝업창을 띄운다.
-
- var useyn = getParameter("SPMMO03200_rtn_useyn"); //진단팝업창에 진단을 선택한 경우 useyn를 y로 설정한다.
- if(useyn == "Y"){
- fAddPrmsDetlSet(); //팝업창의 return instance를 처리
- setParameter("SPMMO03200_rtn_useyn", "");
- }
- }
- /**
- * @desc : 약속진단SET추가
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAddPrmsDetlSet(){
- var totcnt = getNodeSetCnt("/root/temp/selectdiaglist");
- var setno = model.getValue("/root/hidden/prmsprcpsetdetlset/setno");
- var settypecd = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd");
- for(var row = 1; row <= totcnt; row++){
- diagcd = model.getValue("/root/temp/selectdiaglist[" + row + "]/diagcd");
- dispdiagcd = model.getValue("/root/temp/selectdiaglist[" + row + "]/dispdiagcd");
- diagengnm = model.getValue("/root/temp/selectdiaglist[" + row + "]/diagengnm");
- diaghngnm = model.getValue("/root/temp/selectdiaglist[" + row + "]/diaghngnm");
- var compval = model.getValue(sETCPRMSPRCPSETDETLLIST_PATH + "[detlsetcd='" + diagcd + "']/detlsetcd");
- if(compval == ""){
- grd_etcprmsprcpdetl.addRow(false);
- currow = grd_etcprmsprcpdetl.row;
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/setno" , setno);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/settypecd" , settypecd);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/detlsetcd" , diagcd);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/dispdiagcd", dispdiagcd);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/engnm" , diagengnm);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + currow + "]/hngnm" , diaghngnm);
- }else{
- messageBox("[" + diagcd + "] 진단은 이미", "E006");
- continue;
- }
- }
- model.refresh();
- }
- /**
- * @desc : 진단코드 복사
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCopyDiagCD(){
- for(var i = 0; i < grd_etcprmsprcpdetl.rows; i++){
- if(grd_etcprmsprcpdetl.isselected(i) == true){
- model.duplicate("/root/copy/etcprmsprcpsetdetlinfo", sETCPRMSPRCPSETDETLLIST_PATH +"[" + i + "]");
- }
- }
- }
- /**
- * @desc : 진단코드 붙여넣기
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fPasteDiagCD(){
- var iSetNO = model.getValue("/root/hidden/prmsprcpsetdetlset/setno");
- var cSetTypeCD = model.getValue("/root/hidden/prmsprcpsetdetlset/settypecd");
- var iTotCnt = getNodeSetCnt("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist");
- var sTrgtCD = "";
-
- for(var iRow = 1; iRow <= iTotCnt ; iRow++){
- var sDetlSetCD = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/detlsetcd");
- var sDispDiagCD= model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/dispdiagcd");
- var sEngNM = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/engnm");
- var sHngNM = model.getValue("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[" + iRow + "]/hngnm");
-
- //동일한 진단 같은 폴더에 중복저장 되는 것을 방지 2008. 08. 25 오지훈
- sTrgtCD = "";
- sTrgtCD = model.getValue("/root/main/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist[detlsetcd='" + sDetlSetCD + "']/detlsetcd");
- if(sTrgtCD == ""){
- grd_etcprmsprcpdetl.addRow(false);
- iCurRow = grd_etcprmsprcpdetl.row;
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/setno" , iSetNO);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/settypecd" , cSetTypeCD);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/detlsetcd" , sDetlSetCD);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/engnm" , sEngNM);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/hngnm" , sHngNM);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/dispdiagcd", sDispDiagCD);
- }else{
- messageBox("[" + sDetlSetCD + "] 진단코드는 이미", "E006");
- continue;
- }
-
- /*
- var ifndRow = grd_etcprmsprcpdetl.findRow(sDetlSetCD, 0, 4, true, true);
- if(ifndRow < 1){
- grd_etcprmsprcpdetl.addRow(false);
- iCurRow = grd_etcprmsprcpdetl.row;
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/setno" , iSetNO);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/settypecd" , cSetTypeCD);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/detlsetcd" , sDetlSetCD);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/engnm" , sEngNM);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/hngnm" , sHngNM);
- model.setValue(sETCPRMSPRCPSETDETLLIST_PATH + "[" + iCurRow + "]/dispdiagcd", sDispDiagCD);
- }else{
- messageBox("[" + sDetlSetCD + "] 진단코드는 이미", "E006");
- continue;
- }*/
-
- }
- model.removeNodeset("/root/copy/etcprmsprcpsetdetlinfo/etcprmsprcpsetdetllist");
- model.refresh();
- }
- /**
- * @desc : SET폴더 삭제시 해당 진단 데이터 삭제
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClrGridData(){
- model.removeNodeset(sETCPRMSPRCPSETDETLLIST_PATH);
- model.refresh();
- }
- /**
- * @desc : 마우스 오른쪽 버튼 팝업창
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMouseRghtBtnPopup(){
- if(event.button == 3){
- if(grd_etcprmsprcpdetl.isCell(event.target) && grd_etcprmsprcpdetl.mouseRow >= grd_etcprmsprcpdetl.fixedRows){
- window.setPopupMenu(true, "/root/hidden/menu/menu", "label", "func", false); //팝업창 셋팅
- }
- }else{
- window.setPopupMenu(false);
- }
- }
- /**
- * @desc : 약속SET 과색인 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fReqPrmsDeptIndxList(){
- submit("TRMMB00701");
- }
|