123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- /**
- * @desc : 초기화
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- model.removeNodeset("/root/main/unprepmngt/unpreplist");
-
- model.setValue("/root/main/condition/fromdd", getCurrentDate());
- model.setValue("/root/main/condition/todd", getCurrentDate());
- model.setValue("/root/main/condition/dschfromdd", getCurrentDate());
- model.setValue("/root/main/condition/dschtodd", getCurrentDate());
- mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D");
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
- model.setValue("/root/main/condition/unprepdeptcd", "-");
- model.setValue("/root/main/condition/dschdeptcd", "-");
- fChgGrdCol();
- model.refresh();
- }
- /**
- * @desc : 미비기록리스트 조회 정보
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchInfo(){
- var item = model.getValue("/root/main/condition/jobposflag");
- var itemArray = item.split(' ');
-
- item = '';
- for(var i = 0; i < itemArray.length; i++){
- item = item + itemArray[i];
- if(i == (itemArray.length-1)){
- break;
- }
- item = item + '\',\'';
- }
-
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset("/root/main/unprepmngt/unpreplist");
- model.makeNode("/root/send/reqdata");
-
- copyNodeset("/root/send/reqdata", "/root/main/condition");
- model.setValue("/root/send/reqdata/jobposflag", item);
-
- }
- /**
- * @desc : 미비기록리스트 조회
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSrchUnprepList(){
- fSrchInfo();
- submit("TRMRI00101");
-
- }
- /**
- * @desc : 부서선택
- * @id :
- * @event : xforms-select
- * @return : void
- */
- function fUnprepDept()
- {
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- model.setValue("/root/main/condition/unprepdrid", "-");
- model.refresh();
- }
- /**
- * @desc : 엑셀 저장
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- grd_unpreplist.saveExcel(fileName, "SheetName", true, true, "", "", "false");
- }
- }
- /**
- * @desc : 부서 선택에 따른 그리드 컬럼 변경
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fChgGrdCol() {
- var dateflag = model.getValue("/root/main/condition/dateflag")
- if (dateflag == "orddd" ) {
- grd_unpreplist.colHidden(grd_unpreplist.colRef("dschdeptnm")) = true;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("orddeptnm")) = false;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("indd")) = false;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("dschdd")) = true;
- } else {
- grd_unpreplist.colHidden(grd_unpreplist.colRef("dschdeptnm")) = false;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("orddeptnm")) = true;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("indd")) = true;
- grd_unpreplist.colHidden(grd_unpreplist.colRef("dschdd")) = false;
- }
- }
|