SMMRI00200.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /**
  2. * @desc : 초기화
  3. * @
  4. * @param :
  5. * @return :
  6. * @---------------------------------------------------
  7. */
  8. function fInitialize(){
  9. model.removeNodeset("/root/main/unprepmngt/unpreplist");
  10. model.setValue("/root/main/condition/fromdd", getCurrentDate());
  11. model.setValue("/root/main/condition/todd", getCurrentDate());
  12. model.setValue("/root/main/condition/dschfromdd", getCurrentDate());
  13. model.setValue("/root/main/condition/dschtodd", getCurrentDate());
  14. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept", "D");
  15. addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //진료과 전체항목 추가
  16. model.setValue("/root/main/condition/unprepdeptcd", "-");
  17. model.setValue("/root/main/condition/dschdeptcd", "-");
  18. model.refresh();
  19. }
  20. /**
  21. * @desc : 미비기록리스트 조회 정보
  22. * @
  23. * @param :
  24. * @return :
  25. * @---------------------------------------------------
  26. */
  27. function fSrchInfo(){
  28. var item = model.getValue("/root/main/condition/jobposflag");
  29. var itemArray = item.split(' ');
  30. item = '';
  31. for(var i = 0; i < itemArray.length; i++){
  32. item = item + itemArray[i];
  33. if(i == (itemArray.length-1)){
  34. break;
  35. }
  36. item = item + '\',\'';
  37. }
  38. model.removeNodeset("/root/send/reqdata");
  39. model.removeNodeset("/root/main/unprepmngt/unpreplist");
  40. model.makeNode("/root/send/reqdata");
  41. copyNodeset("/root/send/reqdata", "/root/main/condition");
  42. model.setValue("/root/send/reqdata/jobposflag", item);
  43. }
  44. /**
  45. * @desc : 미비기록리스트 조회
  46. * @
  47. * @param :
  48. * @return :
  49. * @---------------------------------------------------
  50. */
  51. function fSrchUnprepList(){
  52. fSrchInfo();
  53. submit("TRMRI00201");
  54. }
  55. /**
  56. * @desc : 부서선택
  57. * @id :
  58. * @event : xforms-select
  59. * @return : void
  60. */
  61. function fUnprepDept()
  62. {
  63. model.removeNodeset("/root/init/userlist");
  64. model.makeNode("/root/init/userlist/usercombo");
  65. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330");
  66. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  67. model.setValue("/root/main/condition/unprepdrid", "-");
  68. model.refresh();
  69. }
  70. /**
  71. * @desc : 엑셀 저장
  72. * @
  73. * @param :
  74. * @return :
  75. * @---------------------------------------------------
  76. */
  77. function fSaveExcel(){
  78. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  79. if (fileName != "")
  80. {
  81. grd_unpreplist.saveExcel(fileName, "SheetName", true, true, "", "", "false");
  82. }
  83. }