123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- /*
-
- 분만장부(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());
- grd_wardpatlist.mergecells = "bycol";
- for(var i = 3; i < grd_wardpatlist.cols; i++){
- grd_wardpatlist.mergecol(i) = false;
- }
- //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){
- grd_wardpatlist.gridToInstance();
-
- var pid = model.getValue(xPartRtnListPath + "[" + row + "]/pid") ;
- var indd = model.getValue(xPartRtnListPath + "[" + row + "]/indd") ;
- var cretno = model.getValue(xPartRtnListPath + "[" + row + "]/cretno");
- var instcd = model.getValue(xPartRtnListPath + "[" + row + "]/instcd");
- var bthdd = model.getValue(xPartRtnListPath + "[" + row + "]/bthdd") ;
- var patnm = model.getValue(xPartRtnListPath + "[" + row + "]/patnm") ;
- //파라미터 추가_2009-02-17_SMY
- var wardcd = model.getValue(xPartRtnListPath + "[" + row + "]/wardcd");
- var roomcd = model.getValue(xPartRtnListPath + "[" + row + "]/roomcd");
- //파라미터 추가_2009-02-24_SMY
- var indschacptstat = model.getValue(xPartRtnListPath + "[" + row + "]/indschacptstat");
-
- /*
- if( grd_wardpatlist.row > 1 ) {
- condparam = "I" + "▦" + pid
- + "▦" + indd
- + "▦" + cretno
- + "▦" + instcd
- + "▦" + bthdd ;
- setParameter("condparam", condparam);
- modal("SPMMO08900", "1", "450", "400");
- }*/
- setParameter("pid" , pid );
- setParameter("patnm" , patnm);
- setParameter("indd" , indd);
- setParameter("cretno", cretno);
- setParameter("wardcd", wardcd);
- setParameter("roomcd", roomcd);
- setParameter("indschacptstat", indschacptstat);
-
- 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(){
- grd_wardpatlist.gridToInstance();
- 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(){
- grd_wardpatlist.gridToInstance();
- model.removenode("/root/send/printdata");
- //send 재구성
- model.makeValue("/root/send/printdata","");
- model.copynode("/root/send/printdata", "/root/main");
- //생사여부
- for(var i = 1; i < grd_wardpatlist.rows-2; i++){
- model.setValue("/root/send/printdata/womanlist/womanlist["+i+"]/deathyn", grd_wardpatlist.labelMatrix((i+2), grd_wardpatlist.colRef("deathyn")));
- }
- exeReportPreview("RPMNN00801", "XMLSTR");
- }
|