12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085 |
- /*
-
- 응급실 CPCR 기록지 (SMMNE03500.xfm - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var fCellCheck = "";
- var fCaption = "";
- var fBottomDay = "";
- var fBottomTime = "";
- var fBottomMinutes = "";
- var fFstCaption = "";
- var fScndCaption = "";
- var fChartStat = "F";
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPCR 화면 초기화(환자 정보 세팅)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fInitialize(){
- var node = getGlobalVariable("paminfo");
- setCSVToNode("/root/main/paminfo", node);
- btn_Schrt.visible = false;
- btn_Csum.visible = false;
-
- //최초caption 정보 저장
- fFstCaption = grd_cpcr.caption;
- model.setValue("/root/main/cond/pid", model.getValue("/root/main/paminfo/list/pid") );
- model.setValue("/root/main/cond/indd", model.getValue("/root/main/paminfo/list/indd") );
- model.setValue("/root/main/cond/cretno", model.getValue("/root/main/paminfo/list/cretno"));
- model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd") );
- model.setValue("/root/main/cond/instcd", getUserInfo("dutplceinstcd"));
-
- var patinfo = "등록번호: " + model.getValue("/root/main/paminfo/list/pid") + ", "
- + "환자명: " + model.getValue("/root/main/paminfo/list/hngnm") + ", "
- + "성별/나이: " + model.getValue("/root/main/paminfo/list/sex") + "/"
- + model.getValue("/root/main/paminfo/list/age") + ", "
- + "병실: " + model.getValue("/root/main/paminfo/list/roomcd");
- model.setValue("/root/main/patinfo", patinfo);
- if(model.getValue("/root/main/cond/pid") == "" ){
- fMakeChart();
- messageBox("선택된 환자가 없습니다.", "E");
- return;
- }else {
- fCpcrInit();
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 환자의 CPCR 기록 조회
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCpcrInit(){
- fCpcCondNodeSet();
- submit("TRMNE03501");
- fMakeDate("C");
-
- if(model.getValue("/root/main/srchinfo/srchlist") == "-" ){
- submit("TRMNE03502");
- }
-
- fMakeChart();
-
- var iRow = grd_cpcr.rows;
-
- for(i=0 ; i<iRow ; i++){
- for(j=0 ; j < 31 ; j++){
- grd_cpcr.cellStyle("background-color", i+2, j+2, i+2, j+2) = "#ffffff";
- if( 5 < j && j <= 10 || 15< j && j <= 20 || 25< j && j <= 30 ){
- grd_cpcr.cellStyle("background-color", i+2, j+2, i+2, j+2) = "#ffff99";
- }
- }
- grd_cpcr.cellStyle("background-color", i+2, 33, i+2, 38) = "#ffffff";
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/recitemflag") == "M" ){
- grd_cpcr.cellStyle("background-color", i+2, 33, i+2, 38) = "#ccecff";
- }
- }
- model.refresh();
- }
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 부서별 CPCR기록 목록 조회 및 화면 셋팅
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCpcCondNodeSet(){
- var condData = "";
- var condHearder = "instcd▦indd▦cretno▦deptcd▦pid▦startdt▩" ;
- condData += model.getValue("/root/main/cond/instcd") + "▦"
- + model.getValue("/root/main/cond/indd") + "▦"
- + model.getValue("/root/main/cond/cretno") + "▦"
- + model.getValue("/root/main/cond/deptcd") + "▦"
- + model.getValue("/root/main/cond/pid") + "▦"
- + model.getValue("/root/main/srchinfo/srchlist") + "▩";
- model.makeValue("/root/send/cond", condHearder + condData);
- }
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : Vital Sign 챠트 그리기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMakeChart(){
-
- var hrcheck = model.getValue("/root/main/chrtsetup/hryn");
- var rrcheck = model.getValue("/root/main/chrtsetup/rryn");
- var btcheck = model.getValue("/root/main/chrtsetup/btyn");
-
- TChart1.RemoveAllSeries();
- TChart1.Axis.RemoveAllCustom();
- //margin 값 정하기
- TChart1.Panel.MarginTop = 0;
- TChart1.Panel.MarginLeft = 11;
- TChart1.Panel.MarginRight = 0;
- TChart1.Panel.MarginBottom = -5;
- TChart1.Axis.Bottom.TickLength = 1027;
- //시간 생성
- //var stDate = new Date(2005, 2, 3, 0, 0);
- //var endDate = new Date(2005, 2, 10, 0, 0);
- //alert(Date.UTC(2005, 2, 3));
-
- //하단축 칸 수 정하기와 눈금 없애기
-
- //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1); //7일 동안 좌표를 표현
- TChart1.Axis.Bottom.SetMinMax (0, 30); //7일 동안 좌표를 표현 (하루는 DivPerDay만큼 나눠짐)
- TChart1.Axis.Bottom.Increment = 1;
- TChart1.Axis.Bottom.MinorTickCount = 1;
- TChart1.Axis.Bottom.AxisPen.Color = 0x000000;
- //TChart1.Axis.Bottom.GridPen.Color = 0x0000ff; //축 점선의 색 설정
- TChart1.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리
-
- TChart1.Header.Visible = false;
- TChart1.Header.Text(0)="Vital Sign"; //헤더제목넣기
- TChart1.Header.Font.Bold = true; //헤더 굵게
- TChart1.Header.Font.Size = 10; //헤더 사이즈
- TChart1.Aspect.View3D = 0; //2d 로 표현하기
- //TChart1.Aspect.Chart3DPercent = 2;
-
- TChart1.Zoom.enable = false; // zoom 사용하지 않기
- TChart1.Scroll.Enable = true; // scroll 사용하지 않기
- TChart1.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
- TChart1.Environment.MouseWheelScroll = true;
- TChart1.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
- TChart1.Panel.Gradient.StartColor = 0xffffff;
- TChart1.Panel.Gradient.EndColor = 0xffffff;
- var cus_axis1 = TChart1.Axis.AddCustom(false); // HR
- TChart1.Axis.Custom(0).AxisPen.Color = 0x0000ff;
- TChart1.Axis.Custom(0).Title.Caption = "HR/BP"
- TChart1.Axis.Custom(0).Title.Font.Size = 8;
- TChart1.Axis.Custom(0).Title.Font.Bold = true;
- TChart1.Axis.Custom(0).Title.Angle = 90;
- TChart1.Axis.Custom(0).PositionPercent = 0;
- //TChart1.Axis.Custom(0).StartPosition = 0;
- //TChart1.Axis.Custom(0).EndPosition = 100;
- TChart1.Axis.Custom(0).Automatic = false;
- TChart1.Axis.Custom(0).Maximum = 210;
- TChart1.Axis.Custom(0).Minimum = 10;
- TChart1.Axis.Custom(0).Increment = 20;
-
- var cus_axis2 = TChart1.Axis.AddCustom(false); // BT
- TChart1.Axis.Custom(1).AxisPen.Color = 0x00ff00;
- TChart1.Axis.Custom(1).Title.Caption = "BT";
- TChart1.Axis.Custom(1).Title.Font.Size = 8;
- TChart1.Axis.Custom(1).Title.Font.Bold = true;
- TChart1.Axis.Custom(1).Title.Angle = 90;
- TChart1.Axis.Custom(1).PositionPercent = -4.5;
- TChart1.Axis.Custom(1).Automatic = false;
- TChart1.Axis.Custom(1).Maximum = 43;
- TChart1.Axis.Custom(1).Minimum = 33;
- TChart1.Axis.Custom(1).Increment = 1;
-
- var cus_axis3 = TChart1.Axis.AddCustom(false); // RR
- TChart1.Axis.Custom(2).AxisPen.Color = 0xff0000;
- TChart1.Axis.Custom(2).Title.Caption = "RR";
- TChart1.Axis.Custom(2).Title.Font.Size = 8;
- TChart1.Axis.Custom(2).Title.Font.Bold = true;
- TChart1.Axis.Custom(2).Title.Angle = 90;
- TChart1.Axis.Custom(2).PositionPercent = -8.5;
- TChart1.Axis.Custom(2).Automatic = false;
- TChart1.Axis.Custom(2).Maximum = 110;
- TChart1.Axis.Custom(2).Minimum = 10;
- TChart1.Axis.Custom(2).Increment = 10;
-
- TChart1.AddSeries(11); // 혈압
- TChart1.AddSeries(11); // abp
- TChart1.AddSeries(0); // 맥박
- TChart1.AddSeries(0); // 체온
- TChart1.AddSeries(0); // 호흡
- TChart1.AddSeries(0); // 38선
- TChart1.Series(0).VerticalAxisCustom = cus_axis1;
- TChart1.Series(1).VerticalAxisCustom = cus_axis1;
- TChart1.Series(2).VerticalAxisCustom = cus_axis1;
- TChart1.Series(3).VerticalAxisCustom = cus_axis2;
- TChart1.Series(4).VerticalAxisCustom = cus_axis3;
- TChart1.Series(5).VerticalAxisCustom = cus_axis2;
-
- //라인의 굵기를 정해준다.
- TChart1.Series(0).asCandle.CandleStyle = 2;
- TChart1.Series(0).asCandle.CandleWidth = 4;
- TChart1.Series(1).asCandle.CandleStyle = 2;
- TChart1.Series(1).asCandle.CandleWidth = 1;
- TChart1.Series(2).asLine.LinePen.Width = 1;
- TChart1.Series(3).asLine.LinePen.Width = 2;
- TChart1.Series(4).asLine.LinePen.Width = 1;
- TChart1.Series(5).asLine.LinePen.Width = 2;
- TChart1.Series(0).Color = 0x000000; //black
- TChart1.Series(1).Color = 0x000000; //black
- TChart1.Series(2).Color = 0x0000ff; //red HR/BP
- TChart1.Series(3).Color = 0x00ff00; //green BT
- TChart1.Series(4).Color = 0xff0000; //blue RR
- TChart1.Series(5).Color = 0x656565; //38선
- // error bar test
- //Series(0).AsErrorBar.AddErrorBar (1234, 5678, 23, "MyErrorBar", model.rgb(0,255,255));
-
- TChart1.Series(2).asLine.Pointer.Visible = true;
- TChart1.Series(2).asLine.Pointer.Style = 1;
- TChart1.Series(2).asLine.Pointer.VerticalSize = 2;
- TChart1.Series(2).asLine.Pointer.HorizontalSize = 2;
-
- TChart1.Series(3).asLine.Pointer.Visible = true;
- TChart1.Series(3).asLine.Pointer.Style = 1;
- TChart1.Series(3).asLine.Pointer.VerticalSize = 2;
- TChart1.Series(3).asLine.Pointer.HorizontalSize = 2;
-
- TChart1.Series(4).asLine.Pointer.Visible = true;
- TChart1.Series(4).asLine.Pointer.Style = 1;
- TChart1.Series(4).asLine.Pointer.VerticalSize = 2;
- TChart1.Series(4).asLine.Pointer.HorizontalSize = 2;
-
- //기준선 그리기
- TChart1.Series(5).AddXY (-5, 38 , "", TChart1.Series(5).Color );
- TChart1.Series(5).AddXY (50, 38 , "", TChart1.Series(5).Color );
-
- //depth 정하기
- TChart1.Series(1).Depth = 1;
- TChart1.Series(2).Depth = 2;
- TChart1.Series(3).Depth = 3;
- TChart1.Series(4).Depth = 4;
- TChart1.Series(5).Depth = 5;
-
- if (hrcheck == "Y"){
- for(i =0 ; i <31 ; i ++ ){
- if(model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) != "?"
- && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) != "?"){
- TChart1.Series(0).asCandle.AddCandle ( i, model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ), 0, 0, model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ));
- } else if (model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) != "?"
- && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) == "" && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) == "?"){
- TChart1.Series(1).asCandle.AddCandle ( i, model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ), 0, 0, model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ));
- } else if (model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) == "" && model.getValue("/root/main/recinfo/reclist/grid[2]/mnt" + i + "" ) == "?"
- && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ) != "?"){
- TChart1.Series(1).asCandle.AddCandle ( i, model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ), 0, 0, model.getValue("/root/main/recinfo/reclist/grid[3]/mnt" + i + "" ));
- }
-
- if(model.getValue("/root/main/recinfo/reclist/grid[4]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[4]/mnt" + i + "" ) != "?"){
- TChart1.Series(2).AddXY (i, model.getValue("/root/main/recinfo/reclist/grid[4]/mnt" + i + "" ), "", TChart1.Series(2).Color);
- }
- }
- }
- if (btcheck == "Y"){
- for(i =0 ; i <31 ; i ++ ){
- if(model.getValue("/root/main/recinfo/reclist/grid[6]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[6]/mnt" + i + "" ) != "?" ){
- TChart1.Series(3).AddXY (i, model.getValue("/root/main/recinfo/reclist/grid[6]/mnt" + i + "" ), "", TChart1.Series(3).Color);
- }
- }
- }
- if (rrcheck == "Y"){
- for(i =0 ; i <31 ; i ++ ){
- if(model.getValue("/root/main/recinfo/reclist/grid[5]/mnt" + i + "" ) != "" && model.getValue("/root/main/recinfo/reclist/grid[5]/mnt" + i + "" ) != "?"){
- TChart1.Series(4).AddXY (i, model.getValue("/root/main/recinfo/reclist/grid[5]/mnt" + i + "" ), "", TChart1.Series(4).Color);
- }
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 기록 일시 생성
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMakeDate(pFlag){
- if(pFlag == "C"){
- if(model.getValue("/root/main/srchinfo/srchlist") == "-"){
- //input1.disabled = false;
- model.copyNode("/root/main/recinfo/cprinfo", "/root/item");
- var BaseDate = getCurrentDate();
- var BaseTime = getCurrentTime();
-
- model.setValue("/root/main/recinfo/cprinfo/cpr/startdd", BaseDate);
- model.setValue("/root/main/recinfo/cprinfo/cpr/starttm", BaseTime.substr(0,4) );
-
- } else {
- //input1.disabled = true;
- var BaseDate = model.getValue("/root/main/recinfo/cprinfo/cpr/startdd");
- var BaseTime = model.getValue("/root/main/recinfo/cprinfo/cpr/starttm");
- }
- }else {
- var BaseDate = model.getValue("/root/main/recinfo/cprinfo/cpr/startdd");
- var BaseTime = model.getValue("/root/main/recinfo/cprinfo/cpr/starttm");
- }
-
- var nowDate = (BaseDate + BaseTime).toDate("YYYYMMDDhhmmss");
- var fDate = (BaseDate + BaseTime).toDate("YYYYMMDDhhmmss");
- var afterDate = fDate.getAddDate(31, "m");
- var nowDay = nowDate.getDateFormat("YYYY년 MM월 DD일");
- var afterDay = afterDate.getDateFormat("YYYY년 MM월 DD일");
- var nowTime = nowDate.getHours();
- var afterTime = afterDate.getHours();
- var nowMinutes = nowDate.getMinutes();
- var afterMinutes = afterDate.getMinutes();
- var captionDay = "날짜";
- var captionTime = "시간";
- var captionMinutes = "분";
-
- var StndDay = "";
- var StandTime = "";
- var StandMinutes = "";
- var StandMinutes1 = "";
-
- fBottomDay = "";
- fBottomTime = "";
- fBottomMinutes = "";
-
- if(nowTime != afterTime){
- for(i = nowMinutes+1 ; i < 60 ; i ++ ){
- StndDay += "^" + nowDay ;
- StandTime += "^" + nowTime + "시" ;
- StandMinutes += "^" + i + "분";
- StandMinutes1 += "^" + i;
- }
- for(i= 0 ; i < afterMinutes ; i++ ) {
- StndDay += "^" + afterDay;
- StandTime += "^" + afterTime + "시";
-
- if( i < 10 ) {
- StandMinutes += "^" +"0" + i + "분";
- StandMinutes1 += "^" +"0" + i;
- } else {
- StandMinutes += "^" + i + "분";
- StandMinutes1 += "^" + i;
- }
- }
- } else {
- for( i = nowMinutes+1 ; i <afterMinutes ; i ++){
- StndDay += "^" + nowDay;
- StandTime += "^" + nowTime + "시";
- if( i < 10 ) {
- StandMinutes += "^" +"0" + i + "분";
- StandMinutes1 += "^" +"0" + i;
- } else {
- StandMinutes += "^" + i + "분";
- StandMinutes1 += "^" + i;
- }
- }
- }
-
- var caption = captionDay + StndDay + "|"
- + captionTime + StandTime + "|"
- + captionMinutes + StandMinutes;
-
- fBottomDay = captionDay+"^"+captionDay +"^"+ nowDay;
- fBottomTime = captionTime+"^"+captionTime +"^"+ nowTime + "시";
- fBottomMinutes = captionMinutes+"^"+captionMinutes +"^"+ nowMinutes + "분";
-
- var tmpCaption = fFstCaption.split("|");
-
- fScndCaption = "";
- fScndCaption = tmpCaption[0] + "|"
- + fBottomDay + StndDay + "^^^^^^|"
- + fBottomTime + StandTime + "^^^^^^|"
- + fBottomMinutes + StandMinutes + "|"
- + tmpCaption[1] + "|"
- + tmpCaption[2];
-
- // fCaption = "";
- // fCaption = captionDay + "|" + captionTime + "|" + captionMinutes ;
-
- grd_chrt.caption = caption;
- grd_chrt.refresh();
-
- if(fChartStat == "S"){
- fMakeBottomDate(fChartStat);
- }
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 차트 닫기/보기 버튼 선택시 그리드 정보 변경
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fMakeBottomDate(plag){
- if(plag == "S"){
- grd_cpcr.caption = fScndCaption;
- grd_cpcr.refresh();
- }else{
- grd_cpcr.caption = fFstCaption;
- grd_cpcr.refresh();
- }
- fChartStat = plag;
- }
- /**
- * @group :
- * @ver : 2008.07.21
- * @by : 성미연
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 클릭시 'V'체크 표시
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClickChkData(){
- var recitemflag = model.getValue("/root/main/recinfo/reclist/grid[" + (grd_cpcr.row-2) + "]/recitemflag");
- if(recitemflag == "P" || recitemflag == "T"){ //PROCEDURE, 검사
- if(grd_cpcr.valueMatrix(grd_cpcr.row, grd_cpcr.col) == "V"){
- grd_cpcr.valueMatrix(grd_cpcr.row, grd_cpcr.col) = "";
- }else{
- grd_cpcr.valueMatrix(grd_cpcr.row, grd_cpcr.col) = "V";
- }
- }
- }
-
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 문자입력 제한
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function isNumber(str) {
- str += ''; // 문자열로 변환
- str = str.replace(/^\s*|\s*$/g, ''); // 좌우 공백 제거
- if (str == '' || isNaN(str)) return false;
- return true;
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : '0' 입력 제한
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fZeroLeft(str){
- var i, j = 0;
- var cmacheck = "N";
-
- for (i = 0; i < str.length; i++) {
- if (str.charAt(i) == '.') cmacheck = "Y";
- }
-
- if(cmacheck == "N"){
- for (i = 0; i < str.length; i++) {
- if (str.charAt(i) == '0') j = j + 1;
- else break;
- }
- return str.substr(j, str.length - j + 1);
- }else{
- return str;
- }
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 준비수량 초기화
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCellInitSetting(sRow, sCol){
- if(sCol != grd_cpcr.colRef("prepqty")-2){
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+sCol+"" , "");
- } else {
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty" , "");
- }
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * - 2008.07.21 수정 : 성미연
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 데이터 세팅
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCpcrDataSetting(){
-
- var sCol = grd_cpcr.col - 2; //첫번째 데이터 있는 값의 col이 2이므로(sCol = 35 : 준비수량)
- var sRow = grd_cpcr.row - 2;
-
- if(sRow == 0 ){
- sRow = 1;
- }
- fCellCheck = "";
- sSum = 0;
- tSum = 0;
- mSum = 0;
- if(sCol != grd_cpcr.colRef("prepqty")-2){
- var iptData = model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+sCol+"");
- } else {
- var iptData = model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty");
- }
-
- //입력 데이터 공백값 제거
- iptData = iptData.setReplaceWord(" ", "");
-
- //입력 데이터 앞쪽 0제거
- //if(sRow != 2 && sRow != 3 && sRow != 4 && sRow != 5 && sRow != 6 && sRow != 7 && sRow != 8){
- // iptData = fZeroLeft(iptData);
- //}
-
- if(sCol != grd_cpcr.colRef("prepqty")-2){
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+sCol+"" , iptData);
- } else {
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty" , iptData);
- }
-
- //문자 입력 제한
- var medCheck = model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/recitemflag") ;
- if(sRow == 2 || sRow == 3 || sRow == 4 || sRow == 5 || sRow == 7 || sRow == 8 ){ //sRow == 2 : SBP
- if(isNumber(iptData) == false && iptData != "" && iptData != "?"){
- fCellInitSetting(sRow, sCol);
- messageBox("숫자형 데이터만 입력 가능합니다.", "E");
- return;
- }
- }else if(sRow == 6) { // BT
- if(isNumber(iptData) == false && iptData != "" && iptData != "?"){
- fCellInitSetting(sRow, sCol);
- messageBox("숫자형 데이터만 입력 가능합니다.", "E");
- return;
- }else if(isNumber(iptData) == true && iptData != "" && iptData != "?" && iptData == "0" ){
- fCellInitSetting(sRow, sCol);
- messageBox("0을 입력 할 수 없습니다.", "E");
- return;
- }
- }else if ( medCheck == "M" ){ // 처방
- if(isNumber(iptData) == false && iptData != "" ){
- fCellInitSetting(sRow, sCol);
- messageBox("숫자형 데이터만 입력 가능합니다.", "E");
- return;
- }else if(isNumber(iptData) == true && iptData != "" && iptData == "0" ){
- fCellInitSetting(sRow, sCol);
- messageBox("0을 입력 할 수 없습니다.", "E");
- return;
- }
- }else{
- if( iptData == "?" ){
- fCellInitSetting(sRow, sCol);
- messageBox("입력 할 수 없는 데이터 입니다.", "E");
- return;
- }
- }
-
- cRow = grd_cpcr.row;
- cCol = grd_cpcr.col;
-
- if(cRow != grd_cpcr.rows -1 ){
- grd_cpcr.row = cRow+1;
- grd_cpcr.col = cCol;
- }else{
- grd_cpcr.row= 3;
- grd_cpcr.col= cCol +1 ;
- }
-
- //처방 인증 데이터 생성로직
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/recitemflag") == "M"){
- //처방별 합계 구하기
- for(i = 0 ; i <= 30 ; i++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+ i +"" ) != ""){
- //sSum = parseInt(sSum) + parseInt(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+ i +"" ));
- sSum = Number(sSum) + Number(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+ i +"" ));
- }
- }
-
- //용량으로 입력시
- if(model.getValue("/root/main/recinfo/cprinfo/cpr/drugunit") == "2"){
-
- if(sCol != grd_cpcr.colRef("prepqty")-2){
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsvol") == 0 || model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsvol") == "0.0"){
- for(i =0 ; i <= 30 ; i++){
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/mnt"+ i +"" ,"");
- }
- messageBox("용량단위로 입력할 수 없습니다.","E");
- return;
- } else {
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/vol", sSum);
- dSum = Number(sSum) / Number(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsvol"));
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/qty", dSum);
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/volunit", model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsunit"));
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/qtyunit", model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/stndunit"));
- }
- }
-
- /*
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty" ) != ""){
- tSum = dSum + parseInt(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty"));
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", tSum);
- } else {
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", dSum);
- }
- */
-
- //수량으로 입력시
- } else {
-
- if(sCol != grd_cpcr.colRef("prepqty")-2){
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsvol") != 0 ){
- mSum = Number(sSum) * Number(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsvol"));
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/vol", mSum);
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/volunit", model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/cntsunit"));
-
- }
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/qty", sSum);
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/qtyunit", model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/stndunit"));
- }
-
- /*
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty" ) != ""){
- tSum = sSum + parseInt(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty"));
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", tSum);
- } else {
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", sSum);
- }
- */
- }
-
- //총계 계산(SUM의 수량 + 준비수량)
- var sumqty = model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/qty")
- var prepqty = model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty");
- //var totqty = parseInt(sumqty) + parseInt(prepqty);
- var totqty = Number(sumqty) + Number(prepqty);
- if(model.getValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty" ) != ""){
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", totqty);
- }else{
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/sumqty", sumqty);
- }
-
-
- }else{
- if(sCol == grd_cpcr.colRef("prepqty")-2){
- model.setValue("/root/main/recinfo/reclist/grid["+sRow+"]/prepqty", "");
- }
- }
-
- model.refresh();
-
- if( sRow == 2 || sRow == 3 || sRow == 4 || sRow == 5 || sRow == 6 ){
- if( sCol != grd_cpcr.colRef("prepqty")-2 && iptData != "?" ){
- fMakeChart();
- }
- }
- }
-
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 값 변경 (투약단위변경 : 수량/용량)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCellValueChange(){
- var ChagData = 0;
-
- if(rdo_unit.value == "1"){ //수량
- for (i = 0 ; i < grd_cpcr.rows; i++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/recitemflag") == "M"){
- for(j = 0 ; j < 31 ; j++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"") != ""){
- ChagData = Number(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"")) /
- Number(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/cntsvol"));
- model.setValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"" , ChagData );
- }
- }
- }
- }
- } else { //용량
- for (i = 0 ; i < grd_cpcr.rows; i++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/recitemflag") == "M"){
- for(j=0 ; j <31 ; j++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"") != ""){
- ChagData = Number(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"")) *
- Number(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/cntsvol"));
- model.setValue("/root/main/recinfo/reclist/grid["+i+"]/mnt"+j+"" , ChagData );
- }
- }
- }
- }
- }
-
- grd_cpcr.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 팝업메뉴(미구현)
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSetItem(flag){
- alert(flag + "개발 중 입니다.");
- }
- function fPopupOpen(){
-
- var sCol = grd_cpcr.mouseCol;
- var sRow = grd_cpcr.mouseRow;
-
- var iCol = grd_cpcr.mouseCol - 2;
- var iRow = grd_cpcr.mouseRow - 2;
-
- if(event.button == 3 && sCol > 2 && sCol < 33 && sRow == 6 && fChartStat == "S" ||
- event.button == 3 && sCol > 2 && sCol < 33 && sRow == 3 && fChartStat == "F" ){
- if(grd_cpcr.isCell(event.target) && grd_cpcr.mouseRow >= grd_cpcr.fixedrows){
- window.setPopupMenu( true, "/root/codedata/popup/item", "name", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : CPCR 기록 저장
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSaveDataCpcr(flag){
- model.removeNode("/root/send/cprbaseinfo");
- model.removeNode("/root/send/cprrecinfo");
- model.removeNode("/root/send/cprsmminfo");
-
- var sSaveData = "";
- var sSaveHeader = "pid▦indd▦cretno▦deptcd▦instcd▦startdd▦starttm▦leaderid▦airwayid▦compressionfstid▦compressionscndid▦medid▦recid▦drugunit▦status▩";
-
- var sSaveData = model.getValue("/root/main/cond/pid") + "▦"
- + model.getValue("/root/main/cond/indd") + "▦"
- + model.getValue("/root/main/cond/cretno") + "▦"
- + model.getValue("/root/main/cond/deptcd") + "▦"
- + model.getValue("/root/main/cond/instcd") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/startdd") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/starttm") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/leaderid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/airwayid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/compressionfstid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/compressionscndid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/medid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/recid") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/drugunit") + "▦";
- if(flag == "I"){
- sSaveData += "I" + "▩";
- }else{
- sSaveData += "U" + "▩";
- }
-
- var sRows = grd_cpcr.rows-2;
- var sCols = grd_cpcr.cols;
-
- var sSaveGridData = "";
- var sSaveGridHeader = "pid▦indd▦cretno▦startdd▦starttm▦deptcd▦recno▦recmnt▦instcd▦recitemflag▦recitemnm▦recmntval▩";
- var sSaveSmrData = "";
- var sSaveSmrHeader = "pid▦indd▦cretno▦startdd▦starttm▦deptcd▦recno▦instcd▦prcpcd▦drugvol▦drugqty▦prepqty▦sumqty▦cntsunit▦cntsvol▦stndunit▦stndvol▩";
- // for(i = 0 ; i < grd_cpcr.rows; i++){
- // for(j=1 ; j< grd_cpcr.cols; j++){
-
- for(i = 1 ; i < sRows ; i++){
- sSaveGridData += model.getValue("/root/main/cond/pid") + "▦"
- + model.getValue("/root/main/cond/indd") + "▦"
- + model.getValue("/root/main/cond/cretno") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/startdd") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/starttm") + "▦"
- + model.getValue("/root/main/cond/deptcd") + "▦"
- + i + "▦"
- + "99" + "▦"
- + model.getValue("/root/main/cond/instcd") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+i+"]/recitemflag") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+i+"]/subtitl") + "▦"
- + "" + "▩"
- for(j = 0 ; j < 31; j++){
- if(model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt" + j + "") != "" ){
- sSaveGridData += model.getValue("/root/main/cond/pid") + "▦"
- + model.getValue("/root/main/cond/indd") + "▦"
- + model.getValue("/root/main/cond/cretno") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/startdd") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/starttm") + "▦"
- + model.getValue("/root/main/cond/deptcd") + "▦"
- + i + "▦"
- + j + "▦"
- + model.getValue("/root/main/cond/instcd") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+i+"]/recitemflag") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+i+"]/subtitl") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+i+"]/mnt" + j + "") + "▩"
- }
- }
- if(model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/sumqty")!= "") {
- sSaveSmrData += model.getValue("/root/main/cond/pid") + "▦"
- + model.getValue("/root/main/cond/indd") + "▦"
- + model.getValue("/root/main/cond/cretno") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/startdd") + "▦"
- + model.getValue("/root/main/recinfo/cprinfo/cpr/starttm") + "▦"
- + model.getValue("/root/main/cond/deptcd") + "▦"
- + i + "▦"
- + model.getValue("/root/main/cond/instcd") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/subtitl") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/vol") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/qty") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/prepqty") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/sumqty") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/cntsunit") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/cntsvol") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/stndunit") + "▦"
- + model.getValue("/root/main/recinfo/reclist/grid["+ i +"]/stndvol") + "▩"
-
- }
- }
-
- model.makeValue("/root/send/cprbaseinfo", sSaveHeader + sSaveData);
- model.makeValue("/root/send/cprrecinfo", sSaveGridHeader + sSaveGridData );
- model.makeValue("/root/send/cprsmminfo", sSaveSmrHeader + sSaveSmrData);
-
- fCpcCondNodeSet();
-
- if(submit("TXMNE03501") == true ){
- var saveDate = model.getValue("/root/main/recinfo/cprinfo/cpr/startdd");
- var saveTime = model.getValue("/root/main/recinfo/cprinfo/cpr/starttm");
- model.setValue("/root/main/srchinfo/srchlist", saveDate + saveTime);
-
- if(flag == "I"){
- messageBox("저장이 완료되었습니다.", "I");
- }else if(flag == "U"){
- messageBox("수정이 완료되었습니다.", "I");
- }
- }
- submit("TRMNE03502");
- cmb_list.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 Width Size 변경
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fColWidthChange(pWidth){
- var sWidth = pWidth.split(", ");
-
- for (i = 0; i < sWidth.length; i++) {
- grd_cpcr.colwidth(i) = sWidth[i];
- }
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 차트보기 버튼 이벤트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fShowChart(){
- btn_Cchrt.visible = true;
- group2.visible = true;
- caption8.visible = true;
- caption12.visible = true;
- caption13.visible = true;
- checkbox1.visible = true;
- checkbox2.visible = true;
- checkbox3.visible = true;
-
- btn_Schrt.visible = false;
-
- group6.attribute("style") = "left:0px; top:320px; width:1190px; height:446px;;" ;
- grd_cpcr.attribute("style") = "left:0px; top:28px; width:1189px; height:415px; text-align:center;" ;
-
- fMakeBottomDate("F");
- fMakeChart();
- model.refresh();
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 차트닫기 버튼 이밴트
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCloseChart(){
- btn_Cchrt.visible = false;
- group2.visible = false;
- caption8.visible = false;
- caption12.visible = false;
- caption13.visible = false;
- checkbox1.visible = false;
- checkbox2.visible = false;
- checkbox3.visible = false;
-
- btn_Schrt.visible = true;
-
- group6.attribute("style") = "left:0px; top:55px; width:1190px; height:711px; ";
- grd_cpcr.attribute("style") = "left:0px; top:28px; width:1189px; height:680px; text-align:center; ";
- fMakeBottomDate("S");
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 간호일지 TypeII 오픈
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fOpenDialRec(){
- var sPid = model.getValue("/root/main/cond/pid");
- var sIndd = model.getValue("/root/main/cond/indd");
- var sCretno = model.getValue("/root/main/cond/cretno");
- var sDeptcd = model.getValue("/root/main/cond/deptcd");
- var sInstcd = model.getValue("/root/main/cond/instcd");
- var sStartdd = model.getValue("/root/main/recinfo/cprinfo/cpr/startdd");
- var sStarttm = model.getValue("/root/main/recinfo/cprinfo/cpr/starttm");
-
- //parammsg = "recflag▦dutplaccd▦reclnkkey▩E▦82015▦"+sPid+","+sIndd+","+sCretno+","+sDeptcd+","+sInstcd+"▩";
- parammsg = "recflag▦dutplaccd▦reclnkkey▩E▦82015▦"+sPid+","+sIndd+","+sCretno+","+sDeptcd+"▩";
- setParameter("SMMNR03400_ParamBase", parammsg); // 파라미터 설정
- modal("SMMNR03400"); // 간호일지I 화면 팝업
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 처방 목록 집계 표 보기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fShowSmm(){
- pWidth = "20, 96, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 34, 32, 31, 31, 31, 28";
- //grd_cpcr.attribute("colwidth") = "20, 101, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 33, 31, 30, 30, 30, 28";
- fColWidthChange(pWidth);
- btn_Ssum.visible = false;
- btn_Csum.visible = true;
- }
- /**
- * @group :
- * @ver : 2007.07.21
- * @by : 양천덕
- * @---------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 처방 목록 집계 표 닫기
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fCloseSmm(){
- pWidth = "20, 96, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 0";
- //grd_cpcr.attribute("colwidth") = "20, 96, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 0";
- fColWidthChange(pWidth);
- btn_Csum.visible = false;
- btn_Ssum.visible = true;
- }
-
|