12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /* ---------------------------------------------------------------------
- 수술실 가동률 통계 (SSMNP00800.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- : Create By taebum
- : 2008-10-22 오후 4:07:43
- ---------------------------------------------------------------------- */
- /**
- * @group :
- * @ver : 2008-09-28 오후 4:07:46
- * @by :
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInit(){
- model.setValue("/root/hidden/curtab", "dept");
- model.setValue("/root/hidden/condition/frdt", getCurrentDate()+getCurrentTime().substr(0,4));
- model.setValue("/root/hidden/condition/todt" , getCurrentDate()+getCurrentTime().substr(0,4));
- model.refresh();
-
- model.removeNodeSet("/root/main/deptOperRateLists/deptOperRateList");
- datagrid1.refresh();
-
- model.removeNodeSet("/root/main/roomOperRateLists/roomOperRateList");
- datagrid2.refresh();
- }
-
- function fOnClickSearchBtn(){
- model.removenode("/root/send");
- model.makeValue("/root/send/frdt" ,model.getValue("/root/hidden/condition/frdt"));
- model.makeValue("/root/send/todt" ,model.getValue("/root/hidden/condition/todt"));
- if(model.getValue("/root/send/frdt") == "" || model.getValue("/root/send/todt") == ""){
- messageBox("시작일, 종료일은 필수입력 사항입니다.", "I000");
- return;
- }
- var sCurrentTab = model.getValue("/root/hidden/curtab");
- if(sCurrentTab == "dept"){
- model.removeNodeSet("/root/main/deptOperRateLists/deptOperRateList");
- datagrid1.refresh();
- submit("TRSNP00800");
- }else if(sCurrentTab == "room"){
- model.removeNodeSet("/root/main/roomOperRateLists/roomOperRateList");
- datagrid2.refresh();
- submit("TRSNP00801");
- }
- }
- /**
- * @group :
- * @ver : 2007.10.17
- * @by : Grace
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Exel 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- if(model.getValue("/root/hidden/curtab")=="dept"){
- fileName = window.fileDialog("save", ",", false, "수술실가동률_과별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "" && fileName != null) {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }else if(model.getValue("/root/hidden/curtab")=="room"){
- fileName = window.fileDialog("save", ",", false, "수술실가동률_방별_"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "" && fileName != null) {
- datagrid2.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- }
- }
|