123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627 |
- /*
-
- EDC스케줄관리(SMMNE05100.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- - Create : 2009.06.09
- */
- //20090629 dhkim
- //당직스케줄 그리드의 수정상태값
- var isEdited = 'N';
- var curRow = 0; //중증분류그리드의 선택된 row값
- var orddept = null;//
- //2010.01.12 dhkim 당직기준시간 추가
- var scheftm = "9999";//0900
- var schettm = "8888";//0859
- //20090609 dhkim
- //화면초기화
- function fInit(){
- //2010.01.12 dhkim 기관별 당직기준시간 조회 추가
- //변경요청번호:10623번. itc서소영
- var pCode = "'175'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- var cdnm = model.getValue("/root/code/codeinfo/codelist[cdgrupid = '175' and cdid = '"+ getUserInfo("dutplceinstcd") +"']/cdnm");
- if(cdnm != "" && cdnm.split("|").length > 0){
- scheftm = cdnm.split("|")[0];//당직시작시간
- schettm = cdnm.split("|")[1];//당직종료시간
- }
-
- var curym = getCurrentDate().substring(0, 6);
- var worktitle = curym.substring(0, 4) + '년 ' + curym.substring(4, 6) + '월 당직리스트';
-
- model.removenode('/root/send');
- model.makeValue('/root/send/srchym', curym);
- if(submit('TRMNE05101')){
-
- //조회조건 초기화
- model.removenode('/root/cond');
- model.removenode('/root/main/titleinfo');
- model.makeValue('/root/cond/srchym', curym);
- model.makeValue('/root/cond/orddeptcd', getUserInfo('dutplcecd'));
-
- cpt_worktitle.text = worktitle; //조회년월로 세팅
- cpt_grpmtitle.text = '중증분류명'; //초기화
- model.refresh();
-
- var orddeptcd = model.getValue('/root/cond/orddeptcd');
- fGetGroupMaster(orddeptcd);//선택된 진료과의 중증분류마스터조회
- fGetDrInfo(orddeptcd);//선택된 진료과의 의사리스트조회
-
- }else{
- messageBox('화면초기화 진료과 조회를 실패하였습니다.', 'E999');
- return false;
- }
- }
- //20090609 dhkim
- //선택된 진료과의 중증분류마스터 조회
- function fGetGroupMaster(orddeptcd){
-
- //타이틀 헤더세팅
- var srchym = model.getValue('/root/cond/srchym');
- var worktitle = srchym.substring(0, 4) + '년 ' + srchym.substring(4, 6) + '월 당직리스트';
- cpt_worktitle.text = worktitle; //조회년월로 세팅
- cpt_grpmtitle.text = '중증분류명'; //초기화
-
- if(srchym == ''){
- srchym = getCurrentDate().substring(0, 6);
- model.setValue('/root/cond/srchym', srchym);
- }
-
- //노드초기화
- model.removenode('/root/main/titleinfo');
- model.makenode('/root/main/titleinfo');
- model.removenode('/root/main/workinfo');
- model.makenode('/root/main/workinfo');
- model.removenode('/root/main/drinfo');
- model.makenode('/root/main/drinfo');
- model.removenode('/root/main/drdetlinfo');
- model.makenode('/root/main/drdetlinfo');
-
- model.removenode('/root/send');
- model.makeValue('/root/send/grpmasterinfo/srchym', srchym);
- model.makeValue('/root/send/grpmasterinfo/orddeptcd', orddeptcd);
-
-
- if(!submit('TRMNE05102')){
- messageBox('진료과별 중증분류 조회를 실패하였습니다.', 'E999');
- return false;
- }else{
- if(grd_grpmaster.rows > 1){
-
- grd_grpmaster.row = 1;
- fSetStaffInfo(srchym, grd_grpmaster.row);//타이틀, staff, 기준시간세팅
-
- var srchym = model.getValue('/root/cond/srchym');
- var grtype = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/grtype');
- var orddeptcd = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/orddeptcd');
- var staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/staffid');
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid);//당직자리스트를 조회한다
- }
- }
-
- }
- //20090609 dhkim
- //선택된 진료과의 의사리스트조회
- function fGetDrInfo(orddeptcd){
- if(orddeptcd == null || orddeptcd == ""){
- orddeptcd = model.getValue('/root/cond/orddeptcd');
- }
-
- model.removenode('/root/send');
- model.makeValue('/root/send/drinfo/orddeptcd', orddeptcd);
-
- if(!submit('TRMNE05103')){
- messageBox('진료과별 당직대상자 조회를 실패하였습니다.', 'E999');
- return false;
- }
- }
- //20090609 dhkim
- //중증분류선택시
- // 1. 당직대상자 위에 헤더정보를 변경
- // 2. 당직리스트의 staff이름, id 세팅
- function fSetStaffInfo(srchym, grpRowid){
-
- var worktitle = srchym.substring(0, 4) + '년 ' + srchym.substring(4, 6) + '월 당직리스트';
- var grpmtitle = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grpRowid + ']/shownm');
- var staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grpRowid + ']/staffid');
- var staffnm = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grpRowid + ']/staffnm');
-
- model.removenode('/root/main/titleinfo');
- model.makenode('/root/main/titleinfo');
-
- //title세팅
-
- cpt_worktitle.text = worktitle; //조회년월로 세팅
- cpt_grpmtitle.text = grpmtitle; //선택한 분류명으로 세팅
- model.makeValue('/root/main/titleinfo/worktitle', worktitle);
- model.makeValue('/root/main/titleinfo/grpmtitle', grpmtitle);
-
-
- //staff세팅
- model.makeValue('/root/main/titleinfo/staffid', staffid);//staffid
- model.makeValue('/root/main/titleinfo/staffnm', staffnm);//staff명
-
- //2010.01.12 dhkim - 당직스케줄 기준시간관리 기관별로 관리
- model.makeValue('/root/main/titleinfo/fromtm', scheftm);
- model.makeValue('/root/main/titleinfo/totm', schettm);
-
- model.refresh();
- }
- //20090609 dhkim
- //의사명 선택시 상세정보를 조회후 세팅한다
- function fSetDrInfo(clickflag, drid){
-
-
- model.removenode('/root/main/drdetlinfo');
-
- if(clickflag == 'worklist'){
-
- //당직자리스트에서 의사 선택한경우 의사아이디로 상세정보를 조회해온다.
- model.removenode('/root/send');
- model.makeValue('/root/send/drid', drid);
- if(submit('TRMNE05104')){
- //당직대상자리스트 선택을 제거한다
- //grd_drlist.row = 0;
- }
-
- }else{
-
- //당직리스트 선택을 제거한다
- //grd_workerlist.row = 0;
-
- //당직대상자에서 의사 선택한 경우 그리드정보에서 상세정보를 세팅한다.
- model.makeValue('/root/main/drdetlinfo/drid', drid);//사번
- model.makeValue('/root/main/drdetlinfo/drnm', model.getValue('/root/main/drinfo/drinfolist[drid="' + drid + '"]/drnm'));//의사명
- model.makeValue('/root/main/drdetlinfo/phone', model.getValue('/root/main/drinfo/drinfolist[drid="' + drid + '"]/phone'));//핸드퐁
- model.makeValue('/root/main/drdetlinfo/bbtel', model.getValue('/root/main/drinfo/drinfolist[drid="' + drid + '"]/bbtel'));//비퍼
- model.refresh();
-
- }
- }
- //20090609 dhkim
- //당직대상자리스트를 조회한다
- function fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid){
- //20090629 dhkim
- //저장하기전 다른 row를 선택했을때 blocking 하기위해 중증분류의 row값을 임시저장해둠
- curRow = grd_grpmaster.row;
- orddept = cmb_orddeptcd.value;
- if(srchym == null || srchym == ''){
- srchym = model.getValue('/root/cond/srchym');
- }
- if(grtype == null || grtype == ''){
- grtype = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row +']/grtype');
- }
- if(orddeptcd == null || orddeptcd == ''){
- orddeptcd = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row +']/orddeptcd');
- }
- if(staffid == null || staffid == ''){
- staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row +']/staffid');
- }
-
- model.removenode('/root/send');
- model.makeValue('/root/send/srchym', srchym);
- model.makeValue('/root/send/orddeptcd', orddeptcd);
- model.makeValue('/root/send/grtype', grtype);
- model.makeValue('/root/send/staffid', staffid);
-
- //2010.01.12 dhkim - 당직스케줄 기준시간관리 기관별로 관리
- model.makeValue('/root/send/fromtm', scheftm);
- model.makeValue('/root/send/totm', schettm);
- model.makeValue('/root/send/monthcnt', getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)));//조회년월의 마지막일
-
- //curdate.toDate('YYYYMMDD').getAddDate(-7, "D").getDateFormat('YYYYMMDD')
- //date.getAddDate(10, "Y")
- //getDayCountForMonth(year, month) //해당 년도의 해당 달이 몇일을 가지고 있는지를 반환한다.(윤년계산 포함)
- if(submit('TRMNE05105')){
-
- //글로벌변수 초기화
- isEdited = 'N';
- curRow = 0;
- orddept = null;
-
- //당직대상자의 선택제거
- grd_drlist.row = 0;
- //당직리스트의 선택제거
- grd_workerlist.row = 0;
- //상세정보 초기화
- fSetDrInfo();
- //당직리스트색깔 초기화
- for(var i = 1; i <= grd_workerlist.rows; i++){
- grd_workerlist.cellstyle("background-color", i, 0, i, 6) = '#ffffff';
- grd_workerlist.cellStyle("background-image", i, 0, i, 6) = '';
- }
-
- //20090629 dhkim 당직스케줄 변경여부 조회를 위해 임시노드에 copy 해둔다.
- model.removenode('/root/orgscheinfo');
- model.makenode('/root/orgscheinfo/workinfo');
- model.copyNode('/root/orgscheinfo/workinfo', '/root/main/workerinfo');
-
- }
-
- }
- //20090613 dhkim
- //오른쪽마우스 메뉴중 추가 선택시 호출
- function fAddWorkDr(){
-
- //tf오른쪽메뉴에 parameter지정을 할 수 없어서 만들었음
- fSetWorkDr('ADD');
-
- }
- //20090610 dhkim
- //setFlag : ADD 당직자리스트그리드의 선택된 모든셀에 의사를 세팅한다.
- //setFlag : DEL 당직자리스트그리드의 선택된 모든셀에 의사를 지워준다.
- function fSetWorkDr(setFlag){
- //선택된 당직대상자정보(id, nm)
- var drid = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/drid');
- var drnm = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/drnm');
- var saveyn = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/saveyn');
- var deptcd = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/deptcd');
- var phone = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/phone');
- var bbtel = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/bbtel');
-
- //의사추가의경우
- if(setFlag == 'ADD'){
- //선택된 당직대상자정보가 없으면 세팅하지않고 바로 리턴
- if(drid == null || drid == ''){
- return false;
- }
-
- //응급호출의사정보마스터에 등록되어있지 않은 의사를 선택한 경우 등록화면을 호출
- if(saveyn == 'N'){
-
- var btnChk = messageBox('"'+drnm+'"님은 근무자관리에 연락처가 등록되어 있지 않습니다.\r\n'+ '근무자 연락처 등록을', 'Q004');
- if(btnChk == 6){//예
-
- setParameter('drid', drid);
- setParameter('drnm', drnm);
- setParameter('deptcd', deptcd);
- setParameter('phone', phone);
- setParameter('bbtel', bbtel);
- modal('SMMNE05000', "", "500", "500", "SMMNE05000", "", "");
-
- var saveyn = getParameter("saveyn");
- if(saveyn == 'Y' || saveyn == 'D'){//Y:저장, D : 삭제
- //당직대상자 재조회 후 포커스 원래상태로
- var curRow = grd_drlist.row;
- fGetDrInfo();
- grd_drlist.row = curRow;
- }
-
- }
-
- return false;
- }
- }
-
-
- //현재날짜+시간(yyyymmddhhss)
- var currentDD = getCurrentDateTime().replace(" ", "").substring(0, 12);
-
- var errYn = 'N'; //과거일자 선택여부
- var cells = grd_workerlist.selectedCells; //선택된 쎌의 배열
- var sRow, sCol, sColNm; //선택된 쎌의 row, col 값, 선택된 col의 필드명
- var selectedDD; //선택된일자
- for(var i = 0; i < cells.length; i++){
- sRow = cells.item(i).row;
- sCol = cells.item(i).col;
- sColNm = grd_workerlist.colAttribute(sCol, "ref");
-
- selectedDD = model.getValue('/root/main/workerinfo/workerinfolist[' + sRow + ']/todd');
-
- //현재일자보다 이전일자의 스케줄을 변경하지 못하게 blocking한다.
- if(selectedDD < currentDD){
- errYn = 'Y';
- }else{
- if(sCol != 0){//일자셀 선택의 경우는 변경하지 않음
-
-
- //의사추가의경우
- if(setFlag == 'ADD'){
- //선택된 쎌에 의사이름 쎄팅
- model.setValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/' + sColNm, drnm);
- model.setValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/drid' + sColNm.substring(4), drid);
-
- //선택된 쎌 색상 변경
- grd_workerlist.cellStyle('background-color', sRow, sCol) = "#F4A6EE";
- //지우개 이미지 삭제
- grd_workerlist.cellStyle("background-image", sRow, sCol) = '';
- }
-
- //의사삭제의경우
- else{
-
- //셀에 데이터가 세팅되어 있는경우만 삭제되게
- var drnm = model.getValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/' + sColNm);
- if(drnm != ''){
-
- //선택된 쎌에 의사이름 쎄팅
- //model.setValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/' + sColNm, '');
- model.setValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/drid' + sColNm.substring(4), '-');
-
- //선택된 쎌에 삭제 이미지 세팅
- //grd_workerlist.cellStyle("background-image", 1, 1) = '../../../emr/ercareweb/img/icon_close.gif';
- grd_workerlist.cellStyle("background-image", sRow, sCol) = '../../../com/commonweb/images/icon_eraser.gif';
- grd_workerlist.cellStyle("background-position", sRow, sCol) = 'center';
-
- //배경색을 흰색으로 초기화
- grd_workerlist.cellStyle('background-color', sRow, sCol) = "#ffffff";
-
- }
-
- }
-
- }
- }
- }
-
- //과거일자만 빼고 나머지 일자는 변경가능하도록 한다
- if(errYn == 'Y'){
- messageBox('과거일자의 스케줄은 변경하실 수 없습니다.', 'E999');
- return false;
- }
-
- }
- //20090612 dhkim
- //수정한 내역을 새로고침한다
- function fRefreshWorkDr(){
- var btnRst = messageBox('새로고침하시면 저장하지 않은 내역은 모두 초기화됩니다.\r\n'+ '새로고침을', 'Q004');
- if(btnRst == 6){//예
-
- grd_workerlist.rebuildStyle();
-
- var curRow = grd_drlist.row;
-
- var srchym = model.getValue('/root/cond/srchym');
- var grtype = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/grtype');
- var orddeptcd = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/orddeptcd');
- var staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/staffid');
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid);
-
- //grd_drlist.row = curRow;//선택된상태로
- }
- }
- //20090610 dhkim
- //세팅한 내역을 저장한다
- function fSaveWorkDr(){
- var grtype = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row + ']/grtype');
- var orddeptcd = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row + ']/orddeptcd');
- var staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist[' + grd_grpmaster.row + ']/staffid');
- var srchym = model.getValue('/root/cond/srchym');
-
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/workerlist", grd_workerlist.getupdatedataAll("i"));
-
- model.makeValue("/root/send/grtype", grtype);
- model.makeValue("/root/send/orddeptcd", orddeptcd);
- model.makeValue("/root/send/staffid", staffid);
- model.makeValue("/root/send/srchym", srchym);
-
- if(submit('TXMNE05101')){
-
- //당직리스트색깔 초기화
- for(var i = 1; i <= grd_workerlist.rows; i++){
- grd_workerlist.cellstyle("background-color", i, 0, i, 6) = '#ffffff';
- grd_workerlist.cellStyle("background-image", i, 0, i, 6) = '';
- }
-
-
- //20090714 dhkim
- var srchym = model.getValue('/root/cond/srchym');
- var grtype = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/grtype');
- var orddeptcd = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/orddeptcd');
- var staffid = model.getValue('/root/main/grpmasterinfo/grpmasterinfolist['+ grd_grpmaster.row + ']/staffid');
- fSetStaffInfo(srchym, grd_grpmaster.row);//당직대상자의 헤더, staff이름 세팅
- fGetWorkScheduleList(srchym, grtype, orddeptcd, staffid);//당직자리스트를 조회한다
-
- }
- }
- /**
- * @desc : 이전 년버튼 클릭시 - 전년도+월로 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkBfYear(srchym){
-
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- yyear--;
-
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 다음 년버튼 클릭시 - 다음년도+월로 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkAfYear(srchym){
-
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- yyear++;
-
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 이전 달버튼 클릭시 - 년도+전월 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkBfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
-
- mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
- if(mmont == '12'){
- yyear--;
- }
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- /**
- * @desc : 다음 달버튼 클릭시 - 년도+다음월 세팅
- * @
- * @param :
- * @return :
- * @author : dhkim 20090610
- * @---------------------------------------------------
- */
- function fClkAfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
- if(mmont == '01'){
- yyear++;
- }
- srchym = yyear + mmont;
-
- model.setValue('/root/cond/srchym', srchym);
- model.refresh();
- }
- //20090610 dhkim
- //셀색상을 선택색으로 변경되지 않도록 원래색상으로 유지한다
- function fSetCellColor(clickRow, clickCol, clickColNm){
-
- var curColor = grd_workerlist.cellstyle("background-color", clickRow, clickCol, clickRow, clickCol);
- grd_workerlist.cellstyle("background-color", clickRow, clickCol, clickRow, clickCol) = curColor;
-
- }
- /**
- * @group :
- * @ver : 2009.06.11
- * @by : dhkim
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 당직대상자 마우스 오른쪽메뉴 mouse down
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMouseDownGridRow(){
- var rows = grd_workerlist.rows;
- var row = grd_workerlist.mouseRow-1;
- var col = grd_workerlist.mouseCol;
- if(row + 1 <= rows && rows > 2 && row > 0){
- if(event.button == 3){
- window.setPopupMenu(true, "/root/init/menu/item", "name", "func", false);
- }
- }else{
- window.setPopupMenu(false);
- }
- }
- //20090611 dhkim
- //클릭한 그리드의 선택된 셀의 텍스트 크기를 설정
- function fSetSelectedFontStyle(grdNm){
-
- //선택된 그리드의 셀의 텍스트 크기,굵기를 변경
- grdNm.cellStyle("font-size", grdNm.row, grdNm.col, grdNm.row, grdNm.col) = '12px';
- grdNm.cellStyle("font-weight", grdNm.row, grdNm.col, grdNm.row, grdNm.col) = 'bold';
- //나머지 셀의 텍스트 크기, 굵기를 초기화
- for(var i = 0; i < grdNm.rows; i++){
- if(i != grdNm.row){
- grdNm.rebuildStyle(i, 0);
- }
- }
-
- }
- //20090629 dhkim
- //그리드가 변경상태인지 조회한다.
- function isScheduleRefresh(isClose){
- var drStr;
- for(var i = 1; i < grd_workerlist.rows; i++){
-
- if(instance1.selectSingleNode("/root/orgscheinfo/workinfo/workerinfolist[" + i + "]") != null){
- if(instance1.selectSingleNode("/root/orgscheinfo/workinfo/workerinfolist[" + i + "]").xml
- != instance1.selectSingleNode("/root/main/workerinfo/workerinfolist[" + i + "]").xml){
- isEdited = 'Y';
- drStr += model.getValue('/root/main/workerinfo/workerinfolist[' + i + ']/workdd') + '일자 변경';
- break;
- }
- }
- }
-
- if(isEdited == 'Y'){
-
- //20090703 dhkim 창을 닫을때와 새로 조회할때의 메세지를 다르게 구성 Q003(계속진행하시겠습니까?)
- if(isClose){
- var saveYn = messageBox('수정하신 스케줄을 저장하지 않고 창을 닫으시겠습니까?', 'Q');//Q: 6:예, 7:아니오.
- }else{
- var saveYn = messageBox('수정하신 스케줄을 저장하지 않고 새로운 내역을', 'Q005');//Q005:조회하시겠습니까? 6:예, 7:아니오.
- }
- if(saveYn == 6){
- return 'Y';
- }else{
- return 'N';
- }
- }
-
-
- }
|