SSMNP00500.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* ---------------------------------------------------------------------
  2. 수술방별 수술건수 통계 (SSMNP00500.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By taebum
  6. : 2008-09-28 오후 4:07:39
  7. ---------------------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2008-09-28 오후 4:07:46
  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.removeNodeSet("/root/main/deptlists/scaleDeptlist");
  25. datagrid4.refresh();
  26. /*
  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("cmb_orddept" , "전 체", "", "above" );
  34. //addComboItem("cmb_oproomlist", "전 체", "", "above" );
  35. }
  36. function fOnClickSearchBtn(){
  37. model.setValue("/root/send/frdd",model.getValue("/root/hidden/condition/frdd"));
  38. model.setValue("/root/send/todd",model.getValue("/root/hidden/condition/todd"));
  39. model.setValue("/root/send/ssflag1",model.getValue("/root/hidden/condition/ssflag1"));
  40. model.setValue("/root/send/ssflag2",model.getValue("/root/hidden/condition/ssflag2"));
  41. model.setValue("/root/send/ssflag3",model.getValue("/root/hidden/condition/ssflag3"));
  42. model.setValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
  43. model.setValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
  44. model.setValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
  45. if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
  46. messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
  47. return;
  48. }
  49. model.removeNodeSet("/root/main/deptlists/roomDepsumarytlist");
  50. datagrid4.refresh();
  51. if(submit("TRSNP00500")){
  52. var iGridCnt = getNodesetCnt(model, "/root/main/deptlists/roomDepsumarytlist");
  53. fHiddenGridCol(iGridCnt, datagrid4);
  54. }
  55. }
  56. /**
  57. * @group :
  58. * @ver : 2007.10.17
  59. * @by : Grace
  60. * @---------------------------------------------------
  61. * @type : function
  62. * @access : public
  63. * @desc : Exel 저장
  64. * @param :
  65. * @return :
  66. * @---------------------------------------------------
  67. */
  68. function fSaveExcel(){
  69. fileName = window.fileDialog("save", ",", false, "수술방별수술건수통계_집도과별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  70. if (fileName != "" && fileName != null) {
  71. datagrid4.saveExcel(fileName, "SheetName", true, true, "", "", false);
  72. }
  73. }
  74. /**
  75. * @group :
  76. * @ver : 2007.10.17
  77. * @by :
  78. * @---------------------------------------------------
  79. * @type : function
  80. * @access : public
  81. * @desc : 그리드의 1행에 데이터 없는 열 감추기
  82. * @param :
  83. * @return :
  84. * @---------------------------------------------------
  85. */
  86. function fHiddenGridCol(iGridCnt, pGrid){
  87. if(iGridCnt >1){
  88. for(var i = 1; i < pGrid.cols; i++){
  89. if(pGrid.valuematrix(1, i) == ""){
  90. pGrid.colwidth(i) = 0;
  91. }
  92. }
  93. }
  94. }