SSMNP00200.js 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* ---------------------------------------------------------------------
  2. 과별 집도의별 수술 건수 통계 (SSMNP00200.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/roomDepsumarytlist");
  25. datagrid3.refresh();
  26. model.removenode("/root/send");
  27. model.makeValue("/root/send/flag" , "X" );
  28. model.makeValue("/root/send/searchitem", "XX" );
  29. model.makeValue("/root/send/deptflag" , "011" );
  30. submit("TRMNP00107");
  31. addComboItem("combo2" , "전 체", "%", "above" );
  32. }
  33. function fOnClickSearchBtn(){
  34. model.removenode("/root/send");
  35. model.makeValue("/root/send/frdd", model.getValue("/root/hidden/condition/frdd"));
  36. model.makeValue("/root/send/todd", model.getValue("/root/hidden/condition/todd"));
  37. model.makeValue("/root/send/ssflag1", model.getValue("/root/hidden/condition/ssflag1"));
  38. model.makeValue("/root/send/ssflag2", model.getValue("/root/hidden/condition/ssflag2"));
  39. model.makeValue("/root/send/ssflag3", model.getValue("/root/hidden/condition/ssflag3"));
  40. model.makeValue("/root/send/etcflag1",model.getValue("/root/hidden/condition/etcflag1"));
  41. model.makeValue("/root/send/etcflag2",model.getValue("/root/hidden/condition/etcflag2"));
  42. model.makeValue("/root/send/etcflag3",model.getValue("/root/hidden/condition/etcflag3"));
  43. model.makeValue("/root/send/deptcd" ,model.getValue("/root/hidden/condition/deptcd"));
  44. if(model.getValue("/root/send/frdd") == "" || model.getValue("/root/send/todd") == ""){
  45. messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
  46. return;
  47. }
  48. model.removeNodeSet("/root/main/deptlists/roomDepsumarytlist");
  49. datagrid3.refresh();
  50. submit("TRSNP00200");
  51. }
  52. /**
  53. * @group :
  54. * @ver : 2007.10.17
  55. * @by : Grace
  56. * @---------------------------------------------------
  57. * @type : function
  58. * @access : public
  59. * @desc : Exel 저장
  60. * @param :
  61. * @return :
  62. * @---------------------------------------------------
  63. */
  64. function fSaveExcel(){
  65. fileName = window.fileDialog("save", ",", false, "과별집도의별수술건수통계_일자별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  66. if (fileName != "" && fileName != null) {
  67. datagrid3.saveExcel(fileName, "SheetName", true, true, "", "", false);
  68. }
  69. }