SMMNG04501_BI멸균일지관리(칠곡).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Biological Indicator일지 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <fromdd/>
  12. <todd/>
  13. <deptcd/>
  14. </cond>
  15. <biinfo>
  16. <bilist/>
  17. </biinfo>
  18. </main>
  19. <init>
  20. <codeinfo/>
  21. <deptinfo>
  22. <csrdeptlist/>
  23. </deptinfo>
  24. </init>
  25. <send>
  26. <reqdata/>
  27. </send>
  28. </root>
  29. </instance>
  30. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  31. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  34. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  35. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. fInitialize();
  39. ]]>
  40. </script>
  41. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/codeinfo"/>
  42. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/deptinfo/csrdeptlist"/>
  43. <submission id="TRMNG04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/biinfo"/>
  44. <submission id="TXMNG04501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  45. </model>
  46. <script type="javascript">
  47. <![CDATA[
  48. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  49. function fInitialize() {
  50. model.makeValue("/root/send/reqdata/srchdd", getCurrentDate());
  51. model.makeValue("/root/send/reqdata/cdgrupid", "'018', 'U01', 'U02'");
  52. submit("TRMNW00001");
  53. model.makeValue("/root/send/reqdata/useyn", model.getValue("/root/send/useyn"));
  54. model.makeValue("/root/send/reqdata/biyn", "Y");
  55. submit("TRMNG00402");
  56. var deptcd= getUserInfo("dutplcecd");
  57. var csrdept = model.getValue("/root/init/codeinfo/codelist[cdgrupid='018']/cdid");
  58. if(deptcd == csrdept) {
  59. addComboItem("cmb_deptcd", "전 체", "", "above");
  60. btn_add.disabled = true;
  61. btn_del.disabled = true;
  62. ipt_fromdd.value = getCurrentDate();
  63. ipt_todd.value = getCurrentDate();
  64. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentid")) = false;
  65. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentnm")) = false;
  66. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentdd")) = false;
  67. // grd_bilist.colDisabled(grd_bilist.colRef("rsltenttm")) = false;
  68. cmb_deptcd.disabled = false;
  69. } else { //공급실을 제외하면, 업무부서를 로그인한 사용자 부서로 자동으로 셋팅한다.
  70. addComboItem("cmb_deptcd", "전 체", "", "above");
  71. ipt_fromdd.value = getCurrentDate();
  72. ipt_todd.value = getCurrentDate();
  73. cmb_deptcd.value = deptcd;
  74. btn_add.disabled = false;
  75. btn_del.disabled = false;
  76. cmb_deptcd.disabled = true;
  77. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentid")) = true;
  78. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentnm")) = true;
  79. // grd_bilist.colDisabled(grd_bilist.colRef("rsltentdd")) = true;
  80. // grd_bilist.colDisabled(grd_bilist.colRef("rsltenttm")) = true;
  81. }
  82. //멸균내역 그리드 초기화.
  83. model.removeNodeset(grd_bilist.nodeset);
  84. fSearch();
  85. model.refresh();
  86. }
  87. function fSearch() {
  88. model.copyNode("/root/send/reqdata", "/root/main/cond");
  89. submit("TRMNG04501");
  90. }
  91. function subTm(fstTm, lastTm) {
  92. var fstHour = fstTm.substr(0,2);
  93. var fstTm2 = fstTm.substr(2,2);
  94. var fstss = fstTm.substr(4,2);
  95. var lastHour = lastTm.substr(0,2);
  96. var lastTm2 = lastTm.substr(2,2);
  97. var lastss = lastTm.substr(4,2);
  98. var subHour = Number(lastHour) - Number(fstHour);
  99. var subTm = Number(lastTm2) - Number(fstTm2);
  100. var subss = Number(lastss) - Number(fstss);
  101. var hr;
  102. var tm;
  103. var ss;
  104. if(subss < 0) {
  105. subss += 60;
  106. subTm -= 1;
  107. }
  108. if(subTm < 0) {
  109. subTm += 60;
  110. subHour -= 1;
  111. }
  112. if(subHour < 0) {
  113. subHour += 24;
  114. }
  115. if(subHour < 10) {
  116. subHour = "0" + subHour;
  117. } else {
  118. subHour = String(subHour);
  119. }
  120. if(subTm < 10) {
  121. subTm = "0" + subTm;
  122. } else {
  123. subTm = String(subTm);
  124. }
  125. if(subss <10) {
  126. subss = "0" + subss;
  127. } else {
  128. subss = String(subss);
  129. }
  130. return subHour + subTm;
  131. }
  132. ]]>
  133. </script>
  134. </xhtml:head>
  135. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  136. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  137. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:226px; height:13px; font-family:돋움체; ">Biological Indicator일지 관리</caption>
  138. </group>
  139. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  140. <group id="grp_sea" style="left:0px; top:10px; width:1191px; height:36px; font-family:돋움체; vertical-align:top; ">
  141. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:36px; font-family:돋움체; background-color:#fffbf2; border-color:#ffd799; "/>
  142. <caption id="caption14" class="search_name" style="left:10px; top:9px; width:86px; height:17px; font-family:돋움체; ">멸균일자:</caption>
  143. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:95px; top:9px; width:90px; height:19px; font-family:돋움체; "/>
  144. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:205px; top:9px; width:90px; height:19px; font-family:돋움체; "/>
  145. <caption id="caption1" style="left:190px; top:14px; width:12px; height:15px; font-family:돋움체; ">~</caption>
  146. <caption id="caption2" class="search_name" style="left:305px; top:9px; width:86px; height:17px; font-family:돋움체; ">멸균부서:</caption>
  147. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_search" appearance="minimal" style="left:390px; top:9px; width:110px; height:19px; font-family:돋움체; ">
  148. <choices>
  149. <itemset nodeset="/root/init/deptinfo/csrdeptlist">
  150. <label ref="deptnm"/>
  151. <value ref="deptcd"/>
  152. </itemset>
  153. </choices>
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. ]]>
  157. </script>
  158. </select1>
  159. <button id="button4" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; font-family:돋움체; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. fSearch();
  164. ]]>
  165. </script>
  166. </button>
  167. <line id="line3" class="line_4" style="x1:1119px; y1:8px; x2:1119px; y2:28px; font-family:돋움체; "/>
  168. </group>
  169. <button id="btn_del" class="btn2_letter2" style="left:1100px; top:60px; width:42px; height:19px; ">
  170. <caption>삭제</caption>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. grd_bilist.rowStatus(grd_bilist.row) = "4";
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="button3" class="btn5_letter2" style="left:1145px; top:60px; width:42px; height:19px; ">
  178. <caption>저장</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. var bilist = getGridUpdateData(grd_bilist);
  182. model.makeValue("/root/send/savedata/bilist", bilist);
  183. if(submit("TXMNG04501")) {
  184. messageBox("저장되었습니다", "I");
  185. fSearch();
  186. }
  187. ]]>
  188. </script>
  189. </button>
  190. <caption id="caption4" class="tit_2" style="left:0px; top:66px; width:70px; height:13px; font-family:돋움체; ">멸균내역</caption>
  191. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1190px; y2:80px; font-family:돋움체; "/>
  192. <button id="btn_add" class="btn2_letter2" style="left:1055px; top:60px; width:42px; height:19px; ">
  193. <caption>추가</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. grd_bilist.addRow();
  197. var iRow = grd_bilist.row;
  198. grd_bilist.valueMatrix(iRow, grd_bilist.colRef("deptcd")) = cmb_deptcd.value;
  199. grd_bilist.valueMatrix(iRow, grd_bilist.colRef("workdd")) = getCurrentDate();
  200. ]]>
  201. </script>
  202. </button>
  203. <datagrid id="grd_bilist" nodeset="/root/main/biinfo/bilist" class="datagrid2" autoresize="true" caption="멸균일자^부서^부서명^횟수^멸균기번호^BI Lot 번호^멸균온도^노출&#xA;시간^dry시간^종료시간^작동시간^B-I배양&#xA;시작자^B-I배양&#xA;시작일시^B-I배양&#xA;시작일시^B-I배양&#xA;시작확인자^B-I배양결과&#xA;확인자^B-I배양완료&#xA;확인일시^B-I배양완료&#xA;확인일시^B-I배양완료&#xA;확인자^B-I 배양결과^Control BI&#xA;결과확인^비고" colsep="^" colwidth="89, 100, 118, 35, 100, 100, 32, 35, 32, 33, 27, 0, 96, 54, 82, 0, 100, 78, 80, 100, 100, 116" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:85px; width:1190px; height:655px; font-family:돋움체; ">
  204. <col ref="workdd" type="inputdate"/>
  205. <col ref="deptcd" type="combo" visibility="hidden">
  206. <choices>
  207. <itemset nodeset="/root/init/deptinfo/csrdeptlist[deptcd!='']">
  208. <label ref="deptnm"/>
  209. <value ref="deptcd"/>
  210. </itemset>
  211. </choices>
  212. </col>
  213. <col ref="deptnm" style="text-align:left; "/>
  214. <col ref="tims" visibility="hidden"/>
  215. <col ref="bino" type="input"/>
  216. <col ref="bilotno" type="input"/>
  217. <col editmode="input" ref="dinftmpr" type="combo" visibility="hidden" format="999" maxlength="3" style="text-align:center; ">
  218. <choices>
  219. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U02']">
  220. <label ref="cdnm"/>
  221. <value ref="cdid"/>
  222. </itemset>
  223. </choices>
  224. </col>
  225. <col editmode="input" ref="expsurtm" type="combo" visibility="hidden" maxlength="3" style="text-align:center; ">
  226. <choices>
  227. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U01']">
  228. <label ref="cdnm"/>
  229. <value ref="cdid"/>
  230. </itemset>
  231. </choices>
  232. </col>
  233. <col editmode="input" ref="drytm" type="combo" visibility="hidden">
  234. <choices>
  235. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='U01']">
  236. <label ref="cdnm"/>
  237. <value ref="cdid"/>
  238. </itemset>
  239. </choices>
  240. </col>
  241. <col ref="endtm" type="inputbutton" visibility="hidden" format="hh:nn" style="text-align:right; "/>
  242. <col ref="funtngtm" type="output" visibility="hidden" format="hh:nn"/>
  243. <col ref="startid" visibility="hidden"/>
  244. <col ref="startdd" type="inputdate"/>
  245. <col ref="starttm" type="inputbutton" format="hh:nn"/>
  246. <col ref="startnm" type="inputbutton"/>
  247. <col ref="rsltentid" visibility="hidden"/>
  248. <col ref="rsltentdd" type="inputdate"/>
  249. <col ref="rsltenttm" type="inputbutton" format="hh:nn"/>
  250. <col ref="rsltentnm" type="inputbutton"/>
  251. <col ref="birslt" type="combo">
  252. <choices>
  253. <item>
  254. <label>No growth</label>
  255. <value>1</value>
  256. </item>
  257. <item>
  258. <label>Growth</label>
  259. <value>2</value>
  260. </item>
  261. <item>
  262. <label>N/A</label>
  263. <value>3</value>
  264. </item>
  265. </choices>
  266. </col>
  267. <col checkvalue="Y,N" ref="birsltcnfmyn" type="checkbox"/>
  268. <col ref="cmt" type="input"/>
  269. <script type="javascript" ev:event="onbuttonclick">
  270. <![CDATA[
  271. var iCol = grd_bilist.col;
  272. var iRow = grd_bilist.row;
  273. var starttm = "";
  274. var endtm = "";
  275. if(iCol == grd_bilist.colRef("starttm") || iCol == grd_bilist.colRef("endtm")) {
  276. grd_bilist.valueMatrix(iRow, iCol) = getCurrentTime().substr(0,4);
  277. starttm = grd_bilist.valueMatrix(iRow, grd_bilist.colRef("starttm"));
  278. endtm = grd_bilist.valueMatrix(iRow, grd_bilist.colRef("endtm"));
  279. } else if(iCol == grd_bilist.colRef("startnm")) {
  280. grd_bilist.valueMatrix(iRow, iCol) = getUserInfo("usernm");
  281. grd_bilist.valueMatrix(iRow, grd_bilist.colRef("startid")) = getUserInfo("userid");
  282. } else if(iCol == grd_bilist.colRef("rsltentnm")) {
  283. grd_bilist.valueMatrix(iRow, iCol) = getUserInfo("usernm");
  284. grd_bilist.valueMatrix(iRow, grd_bilist.colRef("rsltentid")) = getUserInfo("userid");
  285. } else if(iCol == grd_bilist.colRef("rsltenttm")) {
  286. grd_bilist.valueMatrix(iRow, grd_bilist.colRef("rsltentdd")) = getCurrentDate();
  287. grd_bilist.valueMatrix(iRow, iCol) = getCurrentTime().substr(0,4);
  288. }
  289. // if(grd_bilist.rowStatus(iRow) == "1" || grd_bilist.rowStatus(iRow) == "3") {
  290. //
  291. // } else {
  292. //
  293. // grd_bilist.rowStatus(iRow) = "2";
  294. // }
  295. ]]>
  296. </script>
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. // var iCol = grd_bilist.col;
  300. // var iRow = grd_bilist.row;
  301. // var starttm;
  302. // var endtm;
  303. //
  304. // if(iCol == grd_bilist.colRef("starttm") || iCol == grd_bilist.colRef("endtm")) {
  305. // starttm = grd_bilist.valueMatrix(iRow, grd_bilist.colRef("starttm"));
  306. // endtm = grd_bilist.valueMatrix(iRow, grd_bilist.colRef("endtm"));
  307. //
  308. // if( (starttm !="" && endtm !="") ) {
  309. // grd_bilist.valueMatrix(iRow, grd_bilist.colRef("funtngtm")) = subTm(starttm, endtm);
  310. // }
  311. //
  312. // }
  313. ]]>
  314. </script>
  315. </datagrid>
  316. <caption id="caption3" style="left:475px; top:55px; width:360px; height:20px; font-weight:bold; color:#3366ff; ">☞ B-I 배양 시작일시 부터는 중앙공급실에서 입력합니다.</caption>
  317. </group>
  318. </xhtml:body>
  319. </xhtml:html>