123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- /*
-
- 분만장부(SMMNN00800_분만장부.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var xPartRtnListPath = "/root/main/womanlist/womanlist";
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 초기화 작업을 합니다.
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- model.setValue("/root/main/cond/bthddfromdd", getCurrentDate().substr(0,6) + "01");
- model.setValue("/root/main/cond/bthddtodd", getCurrentDate());
- fSearchClick();
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.06.15
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 사용자 리스트 조회
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSearchClick(){
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMNN00801");
- }
- /**
- * @group :
- * @ver : 2007.07.09
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 분만실 환자 정보 더블클릭시
- * @param :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fGridDbClick(row){
- if( grd_wardpatlist.row > 1 ) {
- condparam = "I" + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/pid")
- + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/indd")
- + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/cretno")
- + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/seqno")
- + "▦" + model.getValue(xPartRtnListPath + "[" + row + "]/instcd");
- setParameter("condparam", condparam);
- modal("SPMMO08900", "1", "450", "400");
- }
- var pid = setParameter("pid",model.getValue("/root/main/partrtn/partrtnlist[" + row + "]/pid"));
- var patnm = setParameter("patnm",model.getValue("/root/main/partrtn/partrtnlist[" + row + "]/patnm"));
- modal("SMMNN00700");
- }
- function fSaveExcel(grd){
- file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(file != "") {
- grd.saveExcel(file);
- }
- }
- /**
- * @group :
- * @ver : 2007.06.23
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Excel파일로 저장
- * @param : grid 명
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveExcel(){
- file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(file != "") {
- grd_wardpatlist.saveExcel(file);
- }
- }
- /**
- * @group :
- * @ver : 2007.06.23
- * @by : 최경용
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 분만장부 출력
- * @param : grid 명
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClickPrint(){
- model.removenode("/root/send/printdata");
- //send 재구성
- model.makeValue("/root/send/printdata/","");
- model.copynode("/root/send/printdata", "/root/main");
- exeReportPreview("RPMNN00801", "XMLSTR");
- }
|