SMMMO08201_복막투석평형검사.xrw 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>복막평형검사</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <condition>
  11. <srchpid/>
  12. <patname/>
  13. <fromdd/>
  14. <todd/>
  15. <patsex/>
  16. <patage/>
  17. <status/>
  18. </condition>
  19. <petinfo>
  20. <petinfolist>
  21. <execdd/>
  22. <zerotm/>
  23. <dialglu/>
  24. <dialurea/>
  25. <dialcret/>
  26. <dialglu2/>
  27. <dialurea2/>
  28. <dialcret2/>
  29. <dialglu4/>
  30. <dialurea4/>
  31. <dialcret4/>
  32. <bldglu/>
  33. <bldurea/>
  34. <bldcret/>
  35. <resurea/>
  36. <rescret/>
  37. <resglu2/>
  38. <resurea2/>
  39. <rescret2/>
  40. <resglu4/>
  41. <resurea4/>
  42. <rescret4/>
  43. <petvol/>
  44. <drainvol/>
  45. <drainconc/>
  46. <infvol/>
  47. <dwelltim/>
  48. <goodcd/>
  49. <pid/>
  50. <testseq/>
  51. <remcnts/>
  52. </petinfolist>
  53. </petinfo>
  54. <hpdetlist>
  55. <petinfolist/>
  56. </hpdetlist>
  57. <patinfo>
  58. <patinfolist/>
  59. </patinfo>
  60. <paminfo/>
  61. </main>
  62. <send>
  63. <reqdata/>
  64. <savedata/>
  65. <cond1/>
  66. <cond2/>
  67. <cond3/>
  68. <cond99/>
  69. </send>
  70. <init>
  71. <srchcond1/>
  72. <chkfastpet/>
  73. </init>
  74. </root>
  75. </instance>
  76. <submission id="TRMMO08402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hpdetlist"/>
  77. <submission id="TRMMO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/patinfo"/>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. //createTChart8("TChart1", 87, 376, 220, 265);
  81. TChart1.visible = false;
  82. TChart2.visible = false;
  83. /*
  84. var localfile1 = "C:/Program Files/himed/components/TrustForm/TFViewer/hpdet1.gif";
  85. model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/hpdet1.gif", localfile1, false);
  86. var localfile2 = "C:/Program Files/himed/components/TrustForm/TFViewer/hpdet2.gif";
  87. model.download(getDomain()+"/himed/webapps/emr/emrdialexamweb/images/hpdet2.gif", localfile2, false);
  88. */
  89. fInitialize();
  90. model.makeValue(ipt_execdd.attribute("ref"), getCurrentDate());
  91. ipt_execdd.refresh();
  92. var pamInfoCvs = getGlobalVariable("paminfo"); //상단정보가 있을 경우는 검색
  93. //alert("pamInfoCvs = " + pamInfoCvs);
  94. var pid = "";
  95. if(pamInfoCvs != "" ){ //cvs가 ""이 아닌 경우에만 처리함.
  96. model.removeNodeSet("/root/main/paminfo/list");
  97. setCSVToNode("/root/main/paminfo", pamInfoCvs);
  98. var ioflag = model.getValue("/root/main/paminfo/list/ioflag");
  99. model.setValue("/root/main/condition/patname", model.getValue("/root/main/paminfo/list/hngnm") );
  100. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/paminfo/list/pid") );
  101. model.setValue("/root/main/condition/patsex", model.getValue("/root/main/paminfo/list/sex") );
  102. model.setValue("/root/main/condition/patage", model.getValue("/root/main/paminfo/list/age") );
  103. model.refresh();
  104. //doSearch("F");
  105. }
  106. ]]>
  107. </script>
  108. <script type="javascript">
  109. <![CDATA[
  110. function fSearchPatList() {
  111. model.setValue ( "/root/send/cond1", "1");
  112. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
  113. model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
  114. model.setValue ( "/root/send/cond99", "patchosinfo");
  115. if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
  116. model.resetInstanceNode ("/root/main/condition" );
  117. model.refresh();
  118. return;
  119. }
  120. var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
  121. if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
  122. ipt_srchpid.text = model.getValue ("/root/patinfo/patinfolist/pid");
  123. ipt_patname.text = model.getValue ("/root/patinfo/patinfolist/hngnm");
  124. model.setValue("/root/main/condition/patrrgstno2", patrrgstno2);
  125. model.setValue("/root/main/condition/patsex", model.getValue("/root/patinfo/patinfolist/sex"));
  126. model.setValue("/root/main/condition/patage", model.getValue("/root/patinfo/patinfolist/age"));
  127. model.refresh();
  128. doSearch();
  129. } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
  130. searchPatinfoPop();
  131. }
  132. }
  133. function fInitialize() {
  134. var idate=new Date();
  135. var frDate=idate.getAddDate(-1, "M");
  136. model.setValue("/root/main/condition/fromdd", frDate.getDateFormat());
  137. model.setValue("/root/main/condition/todd", getCurrentDate());
  138. ipt_fromdd.refresh();
  139. ipt_todd.refresh();
  140. }
  141. function fInitialize_detail() {
  142. model.setValue(ipt_dialglu.attribute("ref"), "");
  143. model.setValue(ipt_dialurea.attribute("ref"), "");
  144. model.setValue(ipt_dialcret.attribute("ref"), "");
  145. model.setValue(ipt_dialglu2.attribute("ref"), "");
  146. model.setValue(ipt_dialurea2.attribute("ref"), "");
  147. model.setValue(ipt_dialcret2.attribute("ref"), "");
  148. model.setValue(ipt_dialglu4.attribute("ref"), "");
  149. model.setValue(ipt_dialurea4.attribute("ref"), "");
  150. model.setValue(ipt_dialcret4.attribute("ref"), "");
  151. model.setValue(ipt_bldglu.attribute("ref"), "");
  152. model.setValue(ipt_bldurea.attribute("ref"), "");
  153. model.setValue(ipt_bldcret.attribute("ref"), "");
  154. model.setValue(ipt_remcnts.attribute("ref"), "");
  155. model.setValue(ipt_zerotm.attribute("ref"), "");
  156. model.setValue(ipt_rescret.attribute("ref"), ""); // D/P Crea = Zero Time Creatinine ÷ Blood Creatinine의 결과 값.
  157. model.setValue(ipt_resurea.attribute("ref"), ""); // D/P Urea = Zero Time Urea ÷ Blood Urea의 결과 값.
  158. model.setValue(ipt_resglu2.attribute("ref"), ""); // D/Do : 2시간 Glucose ÷ Zero Time Glucose
  159. model.setValue(ipt_rescret2.attribute("ref"), ""); // D/P Crea : 2시간 Creatinine ÷ Blood Creatinine
  160. model.setValue(ipt_resurea2.attribute("ref"), ""); // D/P Urea : 2시간 Urea ÷ Blood Urea
  161. model.setValue(ipt_resglu4.attribute("ref"), ""); // D/Do : 4시간 Clucose ÷ Zero Time Glucose
  162. model.setValue(ipt_rescret4.attribute("ref"), ""); // D/P Crea : 4시간 Creatinine ÷ Blood Creatinine
  163. model.setValue(ipt_resurea4.attribute("ref"), ""); // D/P Urea : 4시간 Urea ÷ Blood Urea
  164. model.setValue(cmb_goodcd.attribute("ref"), "");
  165. model.setValue(ipt_drainvol.attribute("ref"), "");
  166. model.setValue(ipt_drainconc.attribute("ref"), "");
  167. model.setValue(ipt_infvol.attribute("ref"), "");
  168. model.setValue(ipt_dwelltim.attribute("ref"), "");
  169. }
  170. function doSearch() {
  171. model.setValue(ipt_status.attribute("ref"), "");
  172. model.copyNode("/root/send/reqdata", "/root/main/condition");
  173. submit("TRMMO08202");
  174. }
  175. function viewDetInfo() {
  176. model.setValue("/root/main/condition/srchpid", grd_hpdetlist.valueMatrix(grd_hpdetlist.row, grd_hpdetlist.colRef("pid")));
  177. model.copyNode("/root/main/petinfo/petinfolist", "/root/main/hpdetlist/petinfolist[" + grd_hpdetlist.row + "]");
  178. model.setValue(ipt_status.attribute("ref"), "u");
  179. model.refresh();
  180. var dialglu = model.getValue("/root/main/petinfo/petinfolist/dialglu");
  181. if(dialglu == "0" || dialglu == "" || dialglu == null) {
  182. model.setValue("/root/init/chkfastpet",'Y' );
  183. chk_fastpet.refresh();
  184. chk_fastpet.dispatch("xforms-value-changed");
  185. calCcr4();
  186. }else
  187. {
  188. model.setValue("/root/init/chkfastpet",'N' );
  189. chk_fastpet.refresh();
  190. chk_fastpet.dispatch("xforms-value-changed");
  191. calCcr();
  192. setChartInitLeft();
  193. setChartInitRight();
  194. fMakeChart();
  195. }
  196. }
  197. function calCcr() {
  198. TChart1.visible = true;
  199. TChart2.visible = true;
  200. var dialglu;
  201. var dialurea;
  202. var dialcret;
  203. var dialglu2;
  204. var dialurea2;
  205. var dialcret2;
  206. var dialglu4;
  207. var dialurea4;
  208. var dialcret4;
  209. var bldglu;
  210. var bldurea;
  211. var bldcret;
  212. dialglu = model.getValue("/root/main/petinfo/petinfolist/dialglu");
  213. dialurea = model.getValue("/root/main/petinfo/petinfolist/dialurea");
  214. dialcret = model.getValue("/root/main/petinfo/petinfolist/dialcret");
  215. dialglu2 = model.getValue("/root/main/petinfo/petinfolist/dialglu2");
  216. dialurea2 = model.getValue("/root/main/petinfo/petinfolist/dialurea2");
  217. dialcret2 = model.getValue("/root/main/petinfo/petinfolist/dialcret2");
  218. dialglu4 = model.getValue("/root/main/petinfo/petinfolist/dialglu4");
  219. dialurea4 = model.getValue("/root/main/petinfo/petinfolist/dialurea4");
  220. dialcret4 = model.getValue("/root/main/petinfo/petinfolist/dialcret4");
  221. bldglu = model.getValue("/root/main/petinfo/petinfolist/bldglu");
  222. bldurea = model.getValue("/root/main/petinfo/petinfolist/bldurea");
  223. bldcret = model.getValue("/root/main/petinfo/petinfolist/bldcret");
  224. if(bldcret == "0" || bldcret == "" || bldcret == null) {
  225. messageBox("Blood Creatinine 값을 입력하여주십시오.", "E");
  226. return;
  227. }
  228. if(bldurea == "0" || bldurea == "" || bldurea == null) {
  229. messageBox("Blood Urea 값을 입력하여주십시오.", "E");
  230. return;
  231. }
  232. if(dialglu == "0" || dialglu == "" || dialglu == null) {
  233. messageBox("Zero Time Glucose 값을 입력하여주십시오.", "E");
  234. return;
  235. }
  236. //}
  237. model.setValue(ipt_rescret.attribute("ref"), getCcr(dialcret, bldcret)); // D/P Crea = Zero Time Creatinine ÷ Blood Creatinine의 결과 값.
  238. model.setValue(ipt_resurea.attribute("ref"), getCcr(dialurea, bldurea)); // D/P Urea = Zero Time Urea ÷ Blood Urea의 결과 값.
  239. model.setValue(ipt_resglu2.attribute("ref"), getCcr(dialglu2, dialglu)); // D/Do : 2시간 Glucose ÷ Zero Time Glucose
  240. model.setValue(ipt_rescret2.attribute("ref"), getCcr(dialcret2, bldcret)); // D/P Crea : 2시간 Creatinine ÷ Blood Creatinine
  241. model.setValue(ipt_resurea2.attribute("ref"), getCcr(dialurea2, bldurea)); // D/P Urea : 2시간 Urea ÷ Blood Urea
  242. model.setValue(ipt_resglu4.attribute("ref"), getCcr(dialglu4, dialglu)); // D/Do : 4시간 Clucose ÷ Zero Time Glucose
  243. model.setValue(ipt_rescret4.attribute("ref"), getCcr(dialcret4, bldcret)); // D/P Crea : 4시간 Creatinine ÷ Blood Creatinine
  244. model.setValue(ipt_resurea4.attribute("ref"), getCcr(dialurea4, bldurea)); // D/P Urea : 4시간 Urea ÷ Blood Urea
  245. ipt_rescret.refresh();
  246. ipt_resurea.refresh();
  247. ipt_resglu2.refresh();
  248. ipt_rescret2.refresh();
  249. ipt_resurea2.refresh();
  250. ipt_resglu4.refresh();
  251. ipt_rescret4.refresh();
  252. ipt_resurea4.refresh();
  253. }
  254. //Fast PET 2011.06.08
  255. function calCcr4() {
  256. TChart1.visible = true;
  257. TChart2.visible = true;
  258. var dialglu;
  259. var dialurea;
  260. var dialcret;
  261. var dialglu2;
  262. var dialurea2;
  263. var dialcret2;
  264. var dialglu4;
  265. var dialurea4;
  266. var dialcret4;
  267. var bldglu;
  268. var bldurea;
  269. var bldcret;
  270. //dialglu = 1;
  271. //dialurea = 0;
  272. //dialcret = 0;
  273. //dialglu2 = 1;
  274. //dialurea2 = 0;
  275. //dialcret2 = 0;
  276. //dialglu4 = 0;
  277. //dialurea4 = 0;
  278. dialcret4 = model.getValue("/root/main/petinfo/petinfolist/dialcret4");
  279. //bldglu = 1;
  280. //bldurea = 1;
  281. bldcret = model.getValue("/root/main/petinfo/petinfolist/bldcret");
  282. //2011.06.02 by kya Fast PET 추가 요청
  283. // 김행옥샘, 전체와 4시간 짜리만 하도록 가능하게
  284. //단축이 아닐때만 입력받음
  285. //model.setValue(ipt_rescret.attribute("ref"), getCcr(dialcret, bldcret)); // D/P Crea = Zero Time Creatinine ÷ Blood Creatinine의 결과 값.
  286. //model.setValue(ipt_resurea.attribute("ref"), getCcr(dialurea, bldurea)); // D/P Urea = Zero Time Urea ÷ Blood Urea의 결과 값.
  287. //model.setValue(ipt_resglu2.attribute("ref"), getCcr(dialglu2, dialglu)); // D/Do : 2시간 Glucose ÷ Zero Time Glucose
  288. //model.setValue(ipt_rescret2.attribute("ref"), getCcr(dialcret2, bldcret)); // D/P Crea : 2시간 Creatinine ÷ Blood Creatinine
  289. //model.setValue(ipt_resurea2.attribute("ref"), getCcr(dialurea2, bldurea)); // D/P Urea : 2시간 Urea ÷ Blood Urea
  290. //model.setValue(ipt_resglu4.attribute("ref"), getCcr(dialglu4, dialglu)); // D/Do : 4시간 Clucose ÷ Zero Time Glucose
  291. model.setValue(ipt_rescret4.attribute("ref"), getCcr(dialcret4, bldcret)); // D/P Crea : 4시간 Creatinine ÷ Blood Creatinine
  292. //model.setValue(ipt_resurea4.attribute("ref"), getCcr(dialurea4, bldurea)); // D/P Urea : 4시간 Urea ÷ Blood Urea
  293. ipt_rescret.refresh();
  294. ipt_resurea.refresh();
  295. ipt_resglu2.refresh();
  296. ipt_rescret2.refresh();
  297. ipt_resurea2.refresh();
  298. ipt_resglu4.refresh();
  299. ipt_rescret4.refresh();
  300. ipt_resurea4.refresh();
  301. }
  302. // a / b의 결과값을 리턴함.
  303. function getCcr(a, b) {
  304. //var returnCcr = Math.round( a / b , 4);
  305. var returnCcr = a / b;
  306. returnCcr = Math.round(returnCcr *10000)/10000;
  307. //alert(returnCcr);
  308. return returnCcr;
  309. }
  310. function fMakeChart(){
  311. setChartInitLeft();
  312. setChartInitRight();
  313. var chart1y2 = model.getValue(ipt_resglu2.attribute("ref"));
  314. var chart1y4 = model.getValue(ipt_resglu4.attribute("ref"));
  315. var chart2y0 = model.getValue(ipt_rescret.attribute("ref"));
  316. var chart2y2 = model.getValue(ipt_rescret2.attribute("ref"));
  317. var chart2y4 = model.getValue(ipt_rescret4.attribute("ref"));
  318. if(chart1y2 < 0 || chart1y2 >1.1) {
  319. messageBox("GLUCOSE 2시간 값이 범위를", "E003");
  320. return;
  321. }
  322. if(chart1y4 < 0 || chart1y4 >1.1) {
  323. messageBox("GLUCOSE 4시간 값이 범위를", "E003");
  324. return;
  325. }
  326. if(chart2y0 < 0 || chart2y0 >1.1) {
  327. messageBox("CORRECTED CREATININE Zero Time 값이 범위를", "E003");
  328. return;
  329. }
  330. if(chart2y2 < 0 || chart2y2 >1.1) {
  331. messageBox("CORRECTED CREATININE 2시간 값이 범위를", "E003");
  332. return;
  333. }
  334. if(chart2y4 < 0 || chart2y4 >1.1) {
  335. messageBox("CORRECTED CREATININE 4시간 값이 범위를", "E003");
  336. return;
  337. }
  338. TChart1.Series(0).AddXY (0, 1, "", TChart1.Series(0).Color);
  339. TChart1.Series(0).AddXY (2, chart1y2, "", TChart1.Series(0).Color);
  340. TChart1.Series(0).AddXY (4, chart1y4, "", TChart1.Series(0).Color);
  341. TChart2.Series(0).AddXY (0, chart2y0, "", TChart2.Series(0).Color);
  342. TChart2.Series(0).AddXY (2, chart2y2, "", TChart2.Series(0).Color);
  343. TChart2.Series(0).AddXY (4, chart2y4, "", TChart2.Series(0).Color);
  344. }
  345. function setChartInitLeft() {
  346. TChart1.RemoveAllSeries();
  347. TChart1.Axis.RemoveAllCustom();
  348. //margin 값 정하기
  349. TChart1.Panel.MarginTop = 23;
  350. TChart1.Panel.MarginLeft = 24.5;
  351. TChart1.Panel.MarginRight = 2.4;
  352. //TChart1.Panel.MarginBottom = 7.5; // 가로 X축 보일때
  353. TChart1.Panel.MarginBottom = 13.5; // 가로 X축 보이지 않을때
  354. //TChart1.Axis.Bottom.TickLength = 1010;
  355. //백그라운드 이미지
  356. // TChart1.Panel.BackImageLoad("../../../Program Files/himed/components/TrustForm/TFViewer/hpdet1.gif");
  357. setBackImageLoad(TChart1,"hpdet1");
  358. //하단축 칸 수 정하기와 눈금 없애기
  359. //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1);
  360. TChart1.Axis.Bottom.SetMinMax (0, 4); // 가로좌표 표현
  361. TChart1.Axis.Bottom.Increment = 2;
  362. TChart1.Axis.Bottom.MinorTickCount = 0.5;
  363. TChart1.Axis.Bottom.AxisPen.Color = 0xffffff; // 가로축 아래 색 설정
  364. TChart1.Axis.Bottom.GridPen.Color = 0xffffff; // 세로 축 점선의 색 설정
  365. TChart1.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리 (하얀색 0xffffff)
  366. TChart1.Axis.Bottom.Labels.Visible = false; // 세로선 Visible
  367. TChart1.Header.Visible = false;
  368. TChart1.Header.Text(0)="혈액투석 적절도"; //헤더제목넣기
  369. TChart1.Header.Font.Bold = true; //헤더 굵게
  370. TChart1.Header.Font.Size = 10; //헤더 사이즈
  371. TChart1.Aspect.View3D = 0; //2d 로 표현하기
  372. TChart1.Zoom.enable = false; // zoom 사용하지 않기
  373. TChart1.Scroll.Enable = false; // scroll 사용하지 않기
  374. TChart1.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
  375. TChart1.Environment.MouseWheelScroll = false;
  376. //TChart1.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
  377. var cus_axis1 = TChart1.Axis.AddCustom(false);
  378. TChart1.Axis.Custom(0).AxisPen.Color = 0x0000ff; // 좌측 Y 축색 설정
  379. TChart1.Axis.Custom(0).Title.Font.Size = 8;
  380. TChart1.Axis.Custom(0).Title.Angle = 90;
  381. TChart1.Axis.Custom(0).PositionPercent = -8;
  382. TChart1.Axis.Custom(0).Automatic = false;
  383. TChart1.Axis.Custom(0).Maximum = 1.1;
  384. TChart1.Axis.Custom(0).Minimum = 0.0;
  385. TChart1.Axis.Custom(0).Increment = 0.1;
  386. TChart1.Axis.Custom(0).Visible= false; // 가로선 Visible
  387. TChart1.AddSeries (0);
  388. TChart1.Series(0).VerticalAxisCustom = cus_axis1; // Y축 기준
  389. TChart1.Series(0).asLine.LinePen.Width = 2;
  390. TChart1.Series(0).Color = 0x0000ff; // red
  391. TChart1.Series(0).asLine.Pointer.Visible = true;
  392. TChart1.Series(0).asLine.Pointer.Style = 1;
  393. TChart1.Series(0).asLine.Pointer.VerticalSize = 2; // 포인터 크기
  394. TChart1.Series(0).asLine.Pointer.HorizontalSize = 2;
  395. TChart1.Series(0).Depth = 1;
  396. }
  397. function setChartInitRight() {
  398. TChart2.RemoveAllSeries();
  399. TChart2.Axis.RemoveAllCustom();
  400. //margin 값 정하기
  401. TChart2.Panel.MarginTop = 23;
  402. TChart2.Panel.MarginLeft = 32;
  403. TChart2.Panel.MarginRight = 15.5;
  404. //TChart2.Panel.MarginBottom = 7.5; // 가로 X축 보일때
  405. TChart2.Panel.MarginBottom = 13.5; // 가로 X축 보이지 않을때
  406. //TChart2.Axis.Bottom.TickLength = 1010;
  407. //백그라운드 이미지
  408. setBackImageLoad(TChart2,"hpdet2");
  409. //하단축 칸 수 정하기와 눈금 없애기
  410. //TChart1.Axis.Bottom.SetMinMax (0, MinTimeConst * 60 * 24 * 7 - 1);
  411. TChart2.Axis.Bottom.SetMinMax (0, 4); // 가로좌표 표현
  412. TChart2.Axis.Bottom.Increment = 2;
  413. TChart2.Axis.Bottom.MinorTickCount = 0.5;
  414. TChart2.Axis.Bottom.AxisPen.Color = 0xffffff; // 가로축 아래 색 설정
  415. TChart2.Axis.Bottom.GridPen.Color = 0xffffff; // 세로 축 점선의 색 설정
  416. TChart2.Axis.Bottom.Labels.Font.Color = 0xffffff; //하단 축 눈금 명칭 색을 하얀색으로 하여 보이지 않게 처리 (하얀색 0xffffff)
  417. TChart2.Axis.Bottom.Labels.Visible = false; // 세로선 Visible
  418. TChart2.Header.Visible = false;
  419. TChart2.Header.Text(0)="혈액투석 적절도"; //헤더제목넣기
  420. TChart2.Header.Font.Bold = true; //헤더 굵게
  421. TChart2.Header.Font.Size = 10; //헤더 사이즈
  422. TChart2.Aspect.View3D = 0; //2d 로 표현하기
  423. TChart2.Zoom.enable = false; // zoom 사용하지 않기
  424. TChart2.Scroll.Enable = false; // scroll 사용하지 않기
  425. TChart2.Legend.Visible = false; // 그래프 참조 박스 띄우지 않기
  426. TChart2.Environment.MouseWheelScroll = false;
  427. //TChart2.Panel.Gradient.Visible = true; // 페널에 그라디언트 적용
  428. var cus_axis1 = TChart2.Axis.AddCustom(false);
  429. TChart2.Axis.Custom(0).AxisPen.Color = 0x0000ff; // 좌측 Y 축색 설정
  430. TChart2.Axis.Custom(0).Title.Font.Size = 8;
  431. TChart2.Axis.Custom(0).Title.Angle = 90;
  432. TChart2.Axis.Custom(0).PositionPercent = -8;
  433. TChart2.Axis.Custom(0).Automatic = false;
  434. TChart2.Axis.Custom(0).Maximum = 1.1;
  435. TChart2.Axis.Custom(0).Minimum = 0.0;
  436. TChart2.Axis.Custom(0).Increment = 0.1;
  437. TChart2.Axis.Custom(0).Visible= false; // 가로선 Visible
  438. TChart2.AddSeries (0);
  439. TChart2.Series(0).VerticalAxisCustom = cus_axis1; // Y축 기준
  440. TChart2.Series(0).asLine.LinePen.Width = 2;
  441. TChart2.Series(0).Color = 0x0000ff; // red
  442. TChart2.Series(0).asLine.Pointer.Visible = true;
  443. TChart2.Series(0).asLine.Pointer.Style = 1;
  444. TChart2.Series(0).asLine.Pointer.VerticalSize = 2; // 포인터 크기
  445. TChart2.Series(0).asLine.Pointer.HorizontalSize = 2;
  446. TChart2.Series(0).Depth = 1;
  447. }
  448. function searchPatinfoPop() {
  449. if ( model.getValue ( "/root/init/srchcond1") == "1" ) { // 등록번호 검색
  450. model.makeValue("/root/temp/send/pid", model.getValue("/root/main/condition/srchpid"));
  451. model.makeValue("/root/temp/send/srchcond", "1");
  452. }
  453. if ( model.getValue ( "/root/init/srchcond1") == "2" ) { // 환자이름 검색
  454. model.makeValue("/root/temp/send/hngnm", model.getValue("/root/main/condition/patname"));
  455. model.makeValue("/root/temp/send/srchcond", "2");
  456. }
  457. var xpt = window.screenleft + 100;
  458. var ypt = window.screenTop + 100;
  459. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/temp/send", "/root/send");
  460. if(model.getValue("/root/main/popupendflag") != "ok") {
  461. return;
  462. }
  463. model.setValue("/root/main/condition/srchpid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  464. model.setValue("/root/main/condition/patname", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  465. model.setValue("/root/main/condition/patsex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  466. model.setValue("/root/main/condition/patage", model.getValue("/root/main/patinfo/patinfolist/age"));
  467. model.refresh();
  468. doSearch();
  469. }
  470. function fMoveFocus(vCtrlID){
  471. if( event.keyCode == 13 ) {
  472. if( vCtrlID != "" ) model.setFocus(vCtrlID);
  473. }
  474. }
  475. ]]>
  476. </script>
  477. <submission id="TXMMO08202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/ret"/>
  478. <submission id="TRMMO08202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/hpdetlist"/>
  479. </model>
  480. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  481. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  482. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  483. <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
  484. </xhtml:head>
  485. <xhtml:body pagewidth="1126" pageheight="768" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  486. <group id="group1" style="left:0px; top:0px; width:1095px; height:13px; ">
  487. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:160px; height:14px; ">복막평형검사</caption>
  488. </group>
  489. <group id="group3" scroll="auto" style="left:0px; top:73px; width:1110px; height:667px; ">
  490. <caption id="caption31" class="tit_2" style="left:5px; top:10px; width:144px; height:13px; vertical-align:middle; ">복막평형검사</caption>
  491. <datagrid id="grd_hpdetlist" nodeset="/root/main/hpdetlist/petinfolist" caption="기관코드^시행일자^환자번호^환자명^testseq^zerotm^dialglu^dialurea^dialcret^dialglu2^dialurea2^dialcret2^dialglu4^dialurea4^dialcret4^bldglu^bldurea^bldcret^resurea^rescret^resglu2^resurea2^rescret2^resglu4^resurea4^rescret4^petvol^drainvol^drainconc^infvol^dwelltim^fstrgstrid^fstrgstdt^lastupdtrid^lastupdtdt^goodcd" colsep="^" colwidth="0, 100, 76, 80, 100, 86, 79, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:30px; width:465px; height:632px; ">
  492. <col ref="instcd"/>
  493. <col ref="execdd" format="yyyy-mm-dd" style="text-align:center; "/>
  494. <col ref="pid" style="text-align:center; "/>
  495. <col ref="hngnm" style="text-align:center; "/>
  496. <col ref="testseq"/>
  497. <col ref="zerotm" format="hh:nn"/>
  498. <col ref="dialglu"/>
  499. <col ref="dialurea"/>
  500. <col ref="dialcret"/>
  501. <col ref="dialglu2"/>
  502. <col ref="dialurea2"/>
  503. <col ref="dialcret2"/>
  504. <col ref="dialglu4"/>
  505. <col ref="dialurea4"/>
  506. <col ref="dialcret4"/>
  507. <col ref="bldglu"/>
  508. <col ref="bldurea"/>
  509. <col ref="bldcret"/>
  510. <col ref="resurea"/>
  511. <col ref="rescret"/>
  512. <col ref="resglu2"/>
  513. <col ref="resurea2"/>
  514. <col ref="rescret2"/>
  515. <col ref="resglu4"/>
  516. <col ref="resurea4"/>
  517. <col ref="rescret4"/>
  518. <col ref="petvol"/>
  519. <col ref="drainvol"/>
  520. <col ref="drainconc"/>
  521. <col ref="infvol"/>
  522. <col ref="dwelltim"/>
  523. <col ref="fstrgstrid"/>
  524. <col ref="fstrgstdt"/>
  525. <col ref="lastupdtrid"/>
  526. <col ref="lastupdtdt"/>
  527. <col ref="goodcd"/>
  528. <script type="javascript" ev:event="onclick">
  529. <![CDATA[
  530. if(grd_hpdetlist.isCell(event.target) && grd_hpdetlist.mouseRow >= grd_hpdetlist.fixedrows){
  531. viewDetInfo();
  532. }
  533. ]]>
  534. </script>
  535. </datagrid>
  536. <line id="line3" class="line_1" style="x1:5px; y1:25px; x2:470px; y2:25px; "/>
  537. <caption id="caption32" class="tit_2" style="left:480px; top:10px; width:170px; height:13px; vertical-align:middle; ">복막평형검사 상세정보</caption>
  538. <line id="line2" class="line_1" style="x1:475px; y1:25px; x2:1105px; y2:25px; "/>
  539. <input id="ipt_execdd" ref="/root/main/petinfo/petinfolist/execdd" class="input_essential" inputtype="date" style="left:558px; top:31px; width:102px; height:19px; ">
  540. <script type="javascript" ev:event="onkeyup">
  541. <![CDATA[
  542. fMoveFocus("cmb_goodcd");
  543. ]]>
  544. </script>
  545. </input>
  546. <caption id="caption7" class="cell_1" style="left:475px; top:78px; width:80px; height:71px; text-align:center; vertical-align:middle; ">
  547. <![CDATA[Zero
  548. Time]]>
  549. </caption>
  550. <caption id="caption12" class="cell_1" style="left:475px; top:150px; width:80px; height:71px; text-align:center; vertical-align:middle; ">2시간</caption>
  551. <shape id="rectangle1" appearance="rectangle" style="left:475px; top:319px; width:630px; height:286px; "/>
  552. <button id="btn_graph" class="btn2_letter3" style="left:994px; top:299px; width:53px; height:19px; ">
  553. <caption>그래프</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. if(model.getValue("/root/init/chkfastpet")=="Y"){ //Fast PET
  557. calCcr4();
  558. }
  559. else {
  560. calCcr();
  561. fMakeChart();
  562. }
  563. ]]>
  564. </script>
  565. </button>
  566. <object id="TChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="315" Width="220" Height="266" Left="110" style="left:530px; top:330px; width:220px; height:265px; margin-left:1; margin-top:1; ">
  567. <!--object id="TChart1" clsid="{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}" Top="315" Width="220" Left="110" Height="266" style="left:80px; top:315px; width:220px; height:265px; margin-left:1; margin-top:1; "-->
  568. <script ev:event="OnClick">
  569. <![CDATA[
  570. ]]>
  571. </script>
  572. </object>
  573. <object id="TChart2" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="315" Width="289" Left="413" Height="266" style="left:755px; top:330px; width:290px; height:265px; margin-left:2; margin-top:2; ">
  574. <!--object id="TChart2" clsid="{BDEB0088-66F9-4A55-ABD2-0BF8DEEC1196}" Top="315" Width="289" Height="266" Left="413" style="left:305px; top:315px; width:290px; height:265px; margin-left:2; margin-top:2; "-->
  575. <script ev:event="OnClick">
  576. <![CDATA[
  577. ]]>
  578. </script>
  579. </object>
  580. <button id="button1" class="btn2_letter3" style="left:1049px; top:299px; width:53px; height:19px; ">
  581. <caption>출 력</caption>
  582. <script type="javascript" ev:event="DOMActivate">
  583. <![CDATA[
  584. TChart1.Export.SaveToBitmapFile(getTChartBackgroundImage("dialexamprint2"));
  585. TChart2.Export.SaveToBitmapFile(getTChartBackgroundImage("dialexamprint3"));
  586. model.setValue("/root/main/petinfo/petinfolist/goodcd", cmb_goodcd.label);
  587. exeReportPreview("RPMMO08200", "XMLSTR", "", "", "false", "", "", "", "", "false");
  588. ]]>
  589. </script>
  590. </button>
  591. <select1 id="cmb_goodcd" ref="/root/main/petinfo/petinfolist/goodcd" appearance="minimal" editmode="input" style="left:746px; top:31px; width:174px; height:19px; ">
  592. <choices>
  593. <item>
  594. <label>physioneal 2.5%</label>
  595. <value>1</value>
  596. </item>
  597. <item>
  598. <label>physioneal 4.25%</label>
  599. <value>2</value>
  600. </item>
  601. <item>
  602. <label>balance 2.5%</label>
  603. <value>3</value>
  604. </item>
  605. <item>
  606. <label>balance 4.25%</label>
  607. <value>4</value>
  608. </item>
  609. <item>
  610. <label>periplus 2.5%</label>
  611. <value>5</value>
  612. </item>
  613. <item>
  614. <label>periplus 4.25%</label>
  615. <value>6</value>
  616. </item>
  617. </choices>
  618. </select1>
  619. <line id="line1" class="line_2" style="x1:475px; y1:52px; x2:1105px; y2:52px; "/>
  620. <caption id="caption8" class="cell_1" style="left:475px; top:30px; width:80px; height:23px; text-align:center; vertical-align:middle; ">시행일자</caption>
  621. <caption id="caption9" class="cell_1" style="left:665px; top:30px; width:78px; height:23px; vertical-align:middle; ">제품명</caption>
  622. <caption id="caption10" class="cell_1" style="left:922px; top:30px; width:78px; height:23px; vertical-align:middle; ">Zero time</caption>
  623. <input id="ipt_zerotm" ref="/root/main/petinfo/petinfolist/zerotm" navindex="7" visibility="visible" format="hh:nn" style="left:1003px; top:31px; width:100px; height:19px; "/>
  624. <input id="ipt_dialglu" ref="/root/main/petinfo/petinfolist/dialglu" style="left:637px; top:79px; width:100px; height:19px; text-align:right; "/>
  625. <line id="line4" class="line_2" style="x1:558px; y1:100px; x2:740px; y2:100px; "/>
  626. <caption id="caption17" class="cell_1" style="left:556px; top:78px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Glucose</caption>
  627. <line id="line5" class="line_2" style="x1:557px; y1:124px; x2:739px; y2:124px; "/>
  628. <caption id="caption18" class="cell_1" style="left:556px; top:102px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Urea</caption>
  629. <line id="line7" class="line_2" style="x1:558px; y1:148px; x2:1106px; y2:148px; "/>
  630. <caption id="caption19" class="cell_1" style="left:556px; top:126px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Creatinine</caption>
  631. <line id="line8" class="line_2" style="x1:476px; y1:76px; x2:999px; y2:76px; "/>
  632. <caption id="caption11" class="cell_1" style="left:556px; top:54px; width:182px; height:23px; text-align:center; vertical-align:middle; ">Dialysate</caption>
  633. <caption id="caption13" class="cell_1" style="left:475px; top:54px; width:80px; height:23px; text-align:center; vertical-align:middle; ">시간</caption>
  634. <input id="ipt_dialurea" ref="/root/main/petinfo/petinfolist/dialurea" style="left:637px; top:103px; width:100px; height:19px; text-align:right; "/>
  635. <input id="ipt_dialcret" ref="/root/main/petinfo/petinfolist/dialcret" style="left:637px; top:127px; width:100px; height:19px; text-align:right; "/>
  636. <caption id="caption20" class="cell_1" style="left:739px; top:54px; width:182px; height:23px; text-align:center; vertical-align:middle; ">Blood</caption>
  637. <input id="ipt_rescret" ref="/root/main/petinfo/petinfolist/rescret" disabled="true" style="left:1003px; top:103px; width:100px; height:19px; text-align:right; "/>
  638. <input id="ipt_resurea" ref="/root/main/petinfo/petinfolist/resurea" disabled="true" style="left:1003px; top:127px; width:100px; height:19px; text-align:right; "/>
  639. <caption id="caption24" class="cell_1" style="left:922px; top:54px; width:182px; height:23px; text-align:center; vertical-align:middle; ">Result</caption>
  640. <caption id="caption27" class="cell_1" style="left:922px; top:126px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P Urea</caption>
  641. <caption id="caption2" class="cell_1" style="left:475px; top:222px; width:80px; height:71px; text-align:center; vertical-align:middle; ">4시간</caption>
  642. <input id="ipt_bldglu" ref="/root/main/petinfo/petinfolist/bldglu" style="left:819px; top:151px; width:100px; height:19px; text-align:right; "/>
  643. <input id="ipt_bldurea" ref="/root/main/petinfo/petinfolist/bldurea" style="left:819px; top:175px; width:100px; height:19px; text-align:right; "/>
  644. <input id="ipt_bldcret" ref="/root/main/petinfo/petinfolist/bldcret" style="left:819px; top:199px; width:100px; height:19px; text-align:right; "/>
  645. <input id="ipt_resglu2" ref="/root/main/petinfo/petinfolist/resglu2" disabled="true" style="left:1003px; top:151px; width:100px; height:19px; text-align:right; "/>
  646. <caption id="caption3" class="cell_1" style="left:739px; top:150px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Glucose</caption>
  647. <input id="ipt_rescret2" ref="/root/main/petinfo/petinfolist/rescret2" disabled="true" style="left:1003px; top:175px; width:100px; height:19px; text-align:right; "/>
  648. <caption id="caption5" class="cell_1" style="left:739px; top:174px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Urea</caption>
  649. <input id="ipt_resurea2" ref="/root/main/petinfo/petinfolist/resurea2" disabled="true" style="left:1003px; top:199px; width:100px; height:19px; text-align:right; "/>
  650. <caption id="caption14" class="cell_1" style="left:739px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Creatinine</caption>
  651. <caption id="caption28" class="cell_1" style="left:922px; top:150px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/Do</caption>
  652. <caption id="caption29" class="cell_1" style="left:922px; top:174px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P crea</caption>
  653. <caption id="caption33" class="cell_1" style="left:556px; top:150px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Glucose</caption>
  654. <line id="line9" class="line_2" style="x1:557px; y1:172px; x2:1105px; y2:172px; "/>
  655. <caption id="caption34" class="cell_1" style="left:556px; top:174px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Urea</caption>
  656. <line id="line10" class="line_2" style="x1:556px; y1:196px; x2:1104px; y2:196px; "/>
  657. <input id="ipt_dialglu2" ref="/root/main/petinfo/petinfolist/dialglu2" style="left:637px; top:151px; width:100px; height:19px; text-align:right; "/>
  658. <input id="ipt_dialurea2" ref="/root/main/petinfo/petinfolist/dialurea2" style="left:637px; top:175px; width:100px; height:19px; text-align:right; "/>
  659. <caption id="caption35" class="cell_1" style="left:556px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Creatinine</caption>
  660. <input id="ipt_dialcret2" ref="/root/main/petinfo/petinfolist/dialcret2" style="left:637px; top:199px; width:100px; height:19px; text-align:right; "/>
  661. <line id="line11" class="line_2" style="x1:557px; y1:220px; x2:1105px; y2:220px; "/>
  662. <line id="line12" class="line_2" style="x1:557px; y1:244px; x2:739px; y2:244px; "/>
  663. <line id="line13" class="line_2" style="x1:556px; y1:268px; x2:738px; y2:268px; "/>
  664. <input id="ipt_dialglu4" ref="/root/main/petinfo/petinfolist/dialglu4" style="left:637px; top:223px; width:100px; height:19px; text-align:right; "/>
  665. <input id="ipt_dialurea4" ref="/root/main/petinfo/petinfolist/dialurea4" style="left:637px; top:247px; width:100px; height:19px; text-align:right; "/>
  666. <input id="ipt_dialcret4" ref="/root/main/petinfo/petinfolist/dialcret4" style="left:637px; top:271px; width:100px; height:19px; text-align:right; "/>
  667. <input id="ipt_petvol" ref="/root/main/petinfo/petinfolist/petvol" format="9999" style="left:558px; top:296px; width:78px; height:19px; text-align:right; "/>
  668. <caption id="caption38" class="cell_1" style="left:556px; top:222px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Glucose</caption>
  669. <caption id="caption39" class="cell_1" style="left:556px; top:246px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Urea</caption>
  670. <caption id="caption41" class="cell_1" style="left:556px; top:270px; width:78px; height:23px; text-align:center; vertical-align:middle; ">Creatinine</caption>
  671. <input id="ipt_resglu4" ref="/root/main/petinfo/petinfolist/resglu4" disabled="true" style="left:1003px; top:223px; width:100px; height:19px; text-align:right; "/>
  672. <input id="ipt_rescret4" ref="/root/main/petinfo/petinfolist/rescret4" disabled="true" style="left:1003px; top:247px; width:100px; height:19px; text-align:right; "/>
  673. <input id="ipt_resurea4" ref="/root/main/petinfo/petinfolist/resurea4" disabled="true" style="left:1003px; top:271px; width:100px; height:19px; text-align:right; "/>
  674. <caption id="caption21" class="cell_1" style="left:922px; top:270px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P urea</caption>
  675. <caption id="caption30" class="cell_1" style="left:922px; top:198px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P urea</caption>
  676. <line id="line15" class="line_2" style="x1:923px; y1:244px; x2:1105px; y2:244px; "/>
  677. <line id="line16" class="line_2" style="x1:923px; y1:268px; x2:1105px; y2:268px; "/>
  678. <caption id="caption22" class="cell_1" style="left:922px; top:222px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/Do</caption>
  679. <caption id="caption23" class="cell_1" style="left:922px; top:246px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P crea</caption>
  680. <line id="line17" class="line_2" style="x1:923px; y1:124px; x2:1105px; y2:124px; "/>
  681. <caption id="caption26" class="cell_1" style="left:922px; top:102px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/P Crea</caption>
  682. <line id="line14" class="line_3" style="x1:477px; y1:292px; x2:1105px; y2:292px; "/>
  683. <caption id="caption25" class="cell_1" style="left:922px; top:78px; width:78px; height:23px; text-align:center; vertical-align:middle; ">D/Do</caption>
  684. <button id="button16" class="btn2_letter2" style="left:975px; top:5px; width:42px; height:19px; ">
  685. <caption>신규</caption>
  686. <script type="javascript" ev:event="DOMActivate">
  687. <![CDATA[
  688. model.resetInstanceNode("/root/main/petinfo/petinfolist");
  689. model.setValue(ipt_execdd.attribute("ref"), getCurrentDate());
  690. model.setValue(ipt_pid.attribute("ref"), model.getValue(ipt_srchpid.attribute("ref")));
  691. chk_fastpet.dispatch("xforms-value-changed");
  692. model.setValue(ipt_status.attribute("ref"), "i");
  693. fInitialize_detail();
  694. model.refresh();
  695. setChartInitLeft();
  696. setChartInitRight();
  697. ]]>
  698. </script>
  699. </button>
  700. <button id="btn_save" class="btn2_letter2" style="left:1019px; top:5px; width:42px; height:19px; ">
  701. <caption>저장</caption>
  702. <script type="javascript" ev:event="DOMActivate">
  703. <![CDATA[
  704. btn_graph.dispatch("DOMActivate");
  705. if ( messageBox("데이터를", "Q002") == 6 ) {
  706. if (model.getValue("/root/main/condition/srchpid") == "") {
  707. messageBox("등록번호 항목은", "I003");
  708. model.setFocus("ipt_srchpid");
  709. return;
  710. }
  711. if (model.getValue("/root/main/petinfo/petinfolist/execdd") == "") {
  712. messageBox("시행일자 항목은", "I003");
  713. model.setFocus("ipt_execdd");
  714. return;
  715. }
  716. model.copyNode("/root/send/savedata", "/root/main/petinfo/petinfolist");
  717. model.makeValue("/root/send/savedata/pid", model.getValue(ipt_srchpid.attribute("ref")));
  718. if ( model.getValue(ipt_status.attribute("ref")) == "" ) {
  719. model.setValue(ipt_status.attribute("ref"), "i");
  720. }
  721. model.makeValue("/root/send/savedata/status", model.getValue(ipt_status.attribute("ref")));
  722. //20131114 권영애 복막평형검사 결과값 추가
  723. //start
  724. var ccrRslt = model.getValue("/root/main/petinfo/petinfolist/rescret4");
  725. var rsltcnts2;
  726. if(ccrRslt > 0.81) { rsltcnts2 = "1" }
  727. else if(ccrRslt > 0.6501 && ccrRslt < 0.81) { rsltcnts2 = "2" }
  728. else if(ccrRslt >0.501 && ccrRslt < 0.65) { rsltcnts2 = "3" }
  729. else { rsltcnts2 = "4" }
  730. model.makeValue("/root/send/savedata/rsltcnts2", rsltcnts2);
  731. //end
  732. submit("TXMMO08202"); // 저장/수정
  733. //doSearch("S");
  734. btn_search.dispatch("DOMActivate");
  735. }
  736. ]]>
  737. </script>
  738. </button>
  739. <button id="button5" class="btn2_letter2" style="left:1063px; top:5px; width:42px; height:19px; ">
  740. <caption>삭제</caption>
  741. <script type="javascript" ev:event="DOMActivate">
  742. <![CDATA[
  743. if(model.getValue(ipt_status.attribute("ref")) == "u") {
  744. var rtn = messageBox("삭제하시겠습니까? ", "Q");
  745. if(rtn == "6") {
  746. model.setValue(ipt_status.attribute("ref"), "d");
  747. ipt_status.refresh();
  748. model.copyNode("/root/send/savedata", "/root/main/petinfo/petinfolist");
  749. model.makeValue("/root/send/savedata/pid", model.getValue(ipt_srchpid.attribute("ref")));
  750. model.makeValue("/root/send/savedata/status", model.getValue(ipt_status.attribute("ref")));
  751. submit("TXMMO08202"); // 삭제
  752. btn_search.dispatch("DOMActivate");
  753. }
  754. } else {
  755. messageBox("삭제할 검사를 선택해 주세요.", "E");
  756. return;
  757. }
  758. ]]>
  759. </script>
  760. </button>
  761. <input id="ipt_pid" ref="/root/main/petinfo/petinfolist/pid" visibility="hidden" style="left:820px; top:81px; width:100px; height:19px; "/>
  762. <input id="ipt_testseq" ref="/root/main/petinfo/petinfolist/testseq" visibility="hidden" style="left:820px; top:103px; width:100px; height:19px; "/>
  763. <caption id="caption42" style="left:677px; top:612px; width:20px; height:20px; ">ml</caption>
  764. <caption id="caption36" class="cell_1" style="left:700px; top:610px; width:80px; height:23px; text-align:center; vertical-align:middle; ">농 도(%)</caption>
  765. <input id="ipt_drainconc" ref="/root/main/petinfo/petinfolist/drainconc" style="left:783px; top:612px; width:78px; height:19px; text-align:right; "/>
  766. <caption id="caption40" style="left:865px; top:612px; width:20px; height:20px; ">%</caption>
  767. <caption id="caption43" class="cell_1" style="left:475px; top:610px; width:118px; height:23px; text-align:center; vertical-align:middle; ">Overnight drain Vol</caption>
  768. <input id="ipt_drainvol" ref="/root/main/petinfo/petinfolist/drainvol" style="left:595px; top:612px; width:78px; height:19px; text-align:right; "/>
  769. <caption id="caption44" style="left:677px; top:636px; width:20px; height:20px; ">cc</caption>
  770. <caption id="caption45" class="cell_1" style="left:475px; top:634px; width:118px; height:23px; text-align:center; vertical-align:middle; ">Infusion vol</caption>
  771. <input id="ipt_infvol" ref="/root/main/petinfo/petinfolist/infvol" format="9999" style="left:595px; top:636px; width:78px; height:19px; text-align:right; "/>
  772. <input id="input1" ref="/root/main/petinfo/petinfolist/drainconc" style="left:783px; top:612px; width:78px; height:19px; text-align:right; "/>
  773. <caption id="caption48" class="cell_1" style="left:700px; top:634px; width:80px; height:23px; text-align:center; vertical-align:middle; ">Dwell time</caption>
  774. <input id="ipt_dwelltim" ref="/root/main/petinfo/petinfolist/dwelltim" style="left:783px; top:636px; width:137px; height:19px; text-align:right; "/>
  775. <caption id="caption47" style="left:640px; top:296px; width:20px; height:20px; ">ml</caption>
  776. <caption id="caption49" class="cell_1" style="left:475px; top:294px; width:80px; height:23px; text-align:center; vertical-align:middle; ">PET volume</caption>
  777. <input id="input2" ref="/root/main/petinfo/petinfolist/petvol" format="9999" style="left:558px; top:296px; width:78px; height:19px; text-align:right; "/>
  778. <input id="ipt_status" ref="/root/main/condition/status" visibility="hidden" style="left:780px; top:5px; width:80px; height:19px; "/>
  779. <caption id="caption50" visibility="hidden" style="left:195px; top:5px; width:100px; height:20px; ">2231812</caption>
  780. <caption id="caption51" class="cell_1" visibility="hidden" style="left:740px; top:78px; width:78px; height:23px; text-align:center; vertical-align:middle; ">pid</caption>
  781. <caption id="caption52" class="cell_1" visibility="hidden" style="left:740px; top:102px; width:78px; height:23px; text-align:center; vertical-align:middle; ">testseq</caption>
  782. <button id="btn_bfprcpsrch" class="btn1_letter2" visibility="hidden" style="left:655px; top:3px; width:56px; height:22px; ">
  783. <caption>조회</caption>
  784. <script type="javascript" ev:event="DOMActivate">
  785. <![CDATA[
  786. model.setValue ( "/root/send/cond1", model.getValue ( "/root/init/srchcond1" ));
  787. if ( model.getValue ( "/root/send/cond1") == "1" ) {
  788. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/srchpid" ));
  789. } else {
  790. model.setValue ( "/root/send/cond2", model.getValue ("/root/main/condition/patname" ));
  791. }
  792. model.setValue ( "/root/send/cond3", getUserInfo("dutplceinstcd"));
  793. model.setValue ( "/root/send/cond99", "patchosinfo");
  794. if (!submit ( "TRMMO02501",false )) { //검색 시작 값이 없으면 clear 한다.
  795. model.resetInstanceNode ("/root/main/condition" );
  796. model.refresh();
  797. return;
  798. }
  799. var srcNodeList = model.instances(0).selectNodes("/root/patinfo/patinfolist");
  800. if ( srcNodeList.length == 1 ) { //값이 한개면 바로 화면에 보여준1다.
  801. model.setValue(ipt_srchpid.attribute("ref"), model.getValue ("/root/patinfo/patinfolist/pid"));
  802. model.setValue(ipt_patname.attribute("ref"), model.getValue ("/root/patinfo/patinfolist/hngnm"));
  803. model.setValue(ipt_patsex.attribute("ref"), model.getValue("/root/patinfo/patinfolist/sex"));
  804. model.setValue(ipt_patage.attribute("ref"), model.getValue("/root/patinfo/patinfolist/age"));
  805. doSearch();
  806. } else if ( srcNodeList.length > 1 ) { //값이 한개이상이면 팝업을 띄운다.
  807. searchPatinfoPop();
  808. }
  809. ipt_srchpid.refresh();
  810. ipt_patname.refresh();
  811. ipt_patsex.refresh();
  812. ipt_patage.refresh();
  813. ]]>
  814. </script>
  815. </button>
  816. <select id="chk_fastpet" ref="/root/init/chkfastpet" visibility="visible" overflow="hidden" appearance="full" style="left:875px; top:5px; width:85px; height:15px; border-style:none; ">
  817. <choices>
  818. <item>
  819. <label>Fast PET</label>
  820. <value>Y</value>
  821. </item>
  822. </choices>
  823. <script type="javascript" ev:event="xforms-value-changed">
  824. <![CDATA[
  825. if(model.getValue("/root/init/chkfastpet")=="Y"){ //Fast PET인 경우
  826. ipt_dialglu.disabled = true;
  827. ipt_dialurea.disabled = true;
  828. ipt_dialcret.disabled = true;
  829. ipt_dialglu2.disabled = true;
  830. ipt_dialurea2.disabled = true;
  831. ipt_dialcret2.disabled = true;
  832. ipt_dialglu4.disabled = true;
  833. ipt_dialurea4.disabled = true;
  834. ipt_bldglu.disabled = true;
  835. ipt_bldurea.disabled = true;
  836. }else {
  837. ipt_dialglu.disabled = false;
  838. ipt_dialurea.disabled = false;
  839. ipt_dialcret.disabled = false;
  840. ipt_dialglu2.disabled = false;
  841. ipt_dialurea2.disabled = false;
  842. ipt_dialcret2.disabled = false;
  843. ipt_dialglu4.disabled = false;
  844. ipt_dialurea4.disabled = false;
  845. ipt_bldglu.disabled = false;
  846. ipt_bldurea.disabled = false;
  847. }
  848. setChartInitLeft();
  849. setChartInitRight();
  850. model.refresh();
  851. ]]>
  852. </script>
  853. </select>
  854. <caption id="caption53" class="cell_1" style="left:740px; top:295px; width:80px; height:23px; text-align:center; vertical-align:middle; ">비고</caption>
  855. <input id="ipt_remcnts" ref="/root/main/petinfo/petinfolist/remcnts" style="left:820px; top:296px; width:160px; height:19px; text-align:center; "/>
  856. </group>
  857. <group id="group2" style="left:0px; top:25px; width:1105px; height:35px; vertical-align:top; ">
  858. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1105px; height:35px; "/>
  859. <button id="btn_search" class="btn1_letter2" style="left:1040px; top:7px; width:56px; height:22px; ">
  860. <caption>조회</caption>
  861. <script type="javascript" ev:event="DOMActivate">
  862. <![CDATA[
  863. if(model.getValue("/root/main/condition/srchpid") ==""){
  864. messageBox("등록번호를 ", "C001");
  865. model.setFocus("ipt_fromdd");
  866. }
  867. if(model.getValue("/root/main/condition/fromdd") ==""){
  868. messageBox("시행일자를 ", "C001");
  869. model.setFocus("ipt_fromdd");
  870. return;
  871. }
  872. if(model.getValue("/root/main/condition/todd") ==""){
  873. messageBox("시행일자를 ", "C001");
  874. model.setFocus("ipt_todd");
  875. return;
  876. }
  877. fInitialize_detail();
  878. doSearch();
  879. setChartInitLeft();
  880. setChartInitRight();
  881. model.refresh();
  882. ]]>
  883. </script>
  884. </button>
  885. <line id="line6" class="line_4" style="x1:1030px; y1:7px; x2:1030px; y2:29px; "/>
  886. <caption id="caption15" class="search_name" style="left:484px; top:9px; width:86px; height:17px; ">환자명 :</caption>
  887. <input id="ipt_patname" ref="/root/main/condition/patname" navindex="2" autonext="false" imemode="hangul" style="left:563px; top:9px; width:85px; height:19px; ">
  888. <script type="javascript" ev:event="onkeyup">
  889. <![CDATA[
  890. model.setValue ( "/root/init/srchcond1", "2");
  891. inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
  892. ]]>
  893. </script>
  894. </input>
  895. <input id="ipt_srchpid" ref="/root/main/condition/srchpid" class="input_s_essential" navindex="1" autonext="false" imemode="disabled" style="left:373px; top:9px; width:73px; height:19px; ">
  896. <script type="javascript" ev:event="onkeyup">
  897. <![CDATA[
  898. model.setValue ( "/root/init/srchcond1", "1");
  899. inputEnterKey ( "btn_bfprcpsrch", "DOMActivate" )
  900. ]]>
  901. </script>
  902. </input>
  903. <caption id="caption16" class="search_name" style="left:287px; top:9px; width:99px; height:17px; ">등록번호 :</caption>
  904. <button id="btn_srchpid" class="icon_search" style="left:456px; top:10px; width:16px; height:16px; ">
  905. <caption/>
  906. <script type="javascript" ev:event="DOMActivate">
  907. <![CDATA[
  908. searchPatinfoPop();
  909. ]]>
  910. </script>
  911. </button>
  912. <caption id="caption46" class="search_no_b" style="left:177px; top:9px; width:12px; height:17px; ">~</caption>
  913. <input id="ipt_todd" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:191px; top:9px; width:86px; height:19px; "/>
  914. <caption id="caption37" class="search_name" style="left:2px; top:9px; width:116px; height:17px; ">시행일자 :</caption>
  915. <input id="ipt_fromdd" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:89px; top:9px; width:86px; height:19px; "/>
  916. <caption id="caption1" class="search_name" style="left:661px; top:9px; width:61px; height:17px; ">성별 :</caption>
  917. <input id="ipt_patsex" ref="/root/main/condition/patsex" disabled="true" navindex="2" autonext="false" imemode="hangul" style="left:725px; top:9px; width:70px; height:19px; "/>
  918. <caption id="caption4" class="search_name" style="left:811px; top:9px; width:61px; height:17px; ">나이 :</caption>
  919. <input id="ipt_patage" ref="/root/main/condition/patage" disabled="true" navindex="2" autonext="false" imemode="hangul" style="left:875px; top:9px; width:85px; height:19px; "/>
  920. </group>
  921. </xhtml:body>
  922. </xhtml:html>