SSMNP00900.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* ---------------------------------------------------------------------
  2. 과별 수술명별 수술건수 통계 (SSMNP00900.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By taebum
  6. : 2008-10-26 오후 2:44:31
  7. ---------------------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2008-10-26 오후 2:44:38
  11. * @by :
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 초기화
  16. * @param :
  17. * @return :
  18. * @---------------------------------------------------
  19. */
  20. function fInit(){
  21. model.setValue("/root/hidden/condition/frdd", getCurrentDate());
  22. model.setValue("/root/hidden/condition/todd" , getCurrentDate());
  23. model.refresh();
  24. model.setValue("/root/init/tab","day");
  25. model.removeNodeSet("/root/main/daylists/deptDoctDaylist");
  26. datagrid1.refresh();
  27. model.removenode("/root/send");
  28. model.makeValue("/root/send/flag" , "X" );
  29. model.makeValue("/root/send/searchitem", "XX" );
  30. model.makeValue("/root/send/deptflag" , "011" );
  31. submit("TRMNP00107");
  32. //집도의 리스트 조회
  33. addComboItem("combo1" , "전 체", "%", "above" );
  34. addComboItem("combo2" , "전 체", "%", "above" );
  35. model.setValue("/root/hidden/condition/deptcd","%");
  36. model.setValue("/root/hidden/condition/doctid","%");
  37. model.refresh();
  38. }
  39. function fOnClickSearchBtn(){
  40. model.removenode("/root/send");
  41. model.makeValue("/root/send/frdd" ,model.getValue("/root/hidden/condition/frdd"));
  42. model.makeValue("/root/send/todd" ,model.getValue("/root/hidden/condition/todd"));
  43. model.makeValue("/root/send/ssflag1" ,model.getValue("/root/hidden/condition/ssflag1"));
  44. model.makeValue("/root/send/ssflag2" ,model.getValue("/root/hidden/condition/ssflag2"));
  45. model.makeValue("/root/send/ssflag3" ,model.getValue("/root/hidden/condition/ssflag3"));
  46. model.makeValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
  47. model.makeValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
  48. model.makeValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
  49. model.makeValue("/root/send/deptcd" ,model.getValue("/root/hidden/condition/deptcd"));
  50. model.makeValue("/root/send/doctcd" ,model.getValue("/root/hidden/condition/doctid"));
  51. if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
  52. messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
  53. return;
  54. }
  55. var sCurrentTab = model.getValue("/root/init/tab");
  56. if(sCurrentTab == "day"){
  57. model.removeNodeSet("/root/main/daylists/AnstKindDetailDaylist");
  58. datagrid1.refresh();
  59. submit("TRSNP00900");
  60. }
  61. }
  62. /**
  63. * @group :
  64. * @ver : 2007.10.17
  65. * @by : Grace
  66. * @---------------------------------------------------
  67. * @type : function
  68. * @access : public
  69. * @desc : Exel 저장
  70. * @param :
  71. * @return :
  72. * @---------------------------------------------------
  73. */
  74. function fSaveExcel(){
  75. fileName = window.fileDialog("save", ",", false, "과별수술명별수술건수통계_일자별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  76. if (fileName != "" && fileName != null) {
  77. datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false);
  78. }
  79. }
  80. /**
  81. * @group :
  82. * @ver : 2007.10.17
  83. * @by : Grace
  84. * @---------------------------------------------------
  85. * @type : function
  86. * @access : public
  87. * @desc : 집도과 클릭시 해당 집도의 정보 조회
  88. * @param :
  89. * @return :
  90. * @---------------------------------------------------
  91. */
  92. function fValueChangedDeptCombo(){
  93. var sDeptcd = model.getValue("/root/hidden/condition/deptcd");
  94. if(sDeptcd != "%" && sDeptcd != "undefined" && sDeptcd != "" && sDeptcd != null){
  95. model.removenode("/root/send");
  96. model.makeValue("/root/send/orddept" ,sDeptcd);
  97. submit("TRMNP00103");
  98. addComboItem("combo2" , "전 체", "%", "above" );
  99. combo2.refresh();
  100. }
  101. }