SMRSE01101_일일멸균일지.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  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. <rsdhdinflist>
  11. <instcd/>
  12. <workdd/>
  13. <fixasetcd/>
  14. <goodflag/>
  15. <usetims/>
  16. <usetm/>
  17. <funtngtm/>
  18. <expsurtmpr/>
  19. <expsurtm/>
  20. <dinftmpr/>
  21. <dinfitemspec/>
  22. <nowrongyn/>
  23. <purfctm/>
  24. <userid/>
  25. <useridnm/>
  26. <totm/>
  27. <endpsnid/>
  28. <endpsnnm/>
  29. <cheindint/>
  30. <cheindext/>
  31. <biindng/>
  32. <biindg/>
  33. <bowdicok/>
  34. <bowdicic/>
  35. <bowdicna/>
  36. <incubtm/>
  37. <incubcnfmr/>
  38. <incubcnfmrnm/>
  39. <rsltcnfmtm/>
  40. <rsltcnfmpsn/>
  41. <rsltcnfmpsnnm/>
  42. <reading/>
  43. <spclmentfact/>
  44. <chrgid/>
  45. <chrgnm/>
  46. <cmt/>
  47. </rsdhdinflist>
  48. <eqiprgstlist>
  49. <instcd/>
  50. <fixasetcd/>
  51. <fixasetnm/>
  52. <dinfkind/>
  53. <useyn/>
  54. <cmt/>
  55. </eqiprgstlist>
  56. <prndatalist/>
  57. <list>
  58. <temp/>
  59. </list>
  60. </main>
  61. <send>
  62. <instcd/>
  63. <goodflag/>
  64. <dinfkind/>
  65. <workdd/>
  66. <usernm/>
  67. <true/>
  68. <fixasetcd/>
  69. <rsdhdinflist/>
  70. <test/>
  71. <dutycd/>
  72. </send>
  73. <init>
  74. <radio1>
  75. <label>고압증기</label>
  76. <value>1</value>
  77. <label>건열</label>
  78. <value>2</value>
  79. <label>EO gas</label>
  80. <value>3</value>
  81. <label>STERRAD</label>
  82. <value>4</value>
  83. <label>전체</label>
  84. <value/>
  85. </radio1>
  86. <biindflag>
  87. <label>No growth</label>
  88. <value>1</value>
  89. <label>Growth</label>
  90. <value>2</value>
  91. </biindflag>
  92. <bowdicflag1>
  93. <label>OK</label>
  94. <value>1</value>
  95. <label>IC</label>
  96. <value>2</value>
  97. <label>NA</label>
  98. <value>3</value>
  99. </bowdicflag1>
  100. <bowdicflag2>
  101. <label>No growth</label>
  102. <value>1</value>
  103. <label>Growth</label>
  104. <value>2</value>
  105. </bowdicflag2>
  106. </init>
  107. <temp>
  108. <nodeset/>
  109. </temp>
  110. </root>
  111. </instance>
  112. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  113. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  115. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  116. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  117. <script type="javascript" ev:event="xforms-ready">
  118. <![CDATA[
  119. fInitialize();
  120. ]]>
  121. </script>
  122. <submission id="TXRSE01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  123. <submission id="TRRSE01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdinflist"/>
  124. <submission id="TRRSE01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
  125. <submission id="TRRSE01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prndatalist"/>
  126. <submission id="TRRSS01311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/divsflaglist"/>
  127. <submission id="TRRSS01312" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/eqiprgstlist"/>
  128. <submission id="TRRSC06411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dutylist"/>
  129. </model>
  130. <script type="javascript">
  131. <![CDATA[
  132. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  133. function fInitialize() {
  134. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  135. //기관코드 설정
  136. // rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
  137. misfGridInit(grd_reqcollcdeptlist);
  138. misfGridInit(grd_rsdhdinflist);
  139. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  140. model.makeValue("/root/send/reqdata/useyn", "Y");
  141. model.makeValue("/root/send/reqdata/cdflag", "E");
  142. submit("TRRSC06411");
  143. model.removeNodeset("/root/main/dutylist[dutycd='S']"); //일반장비구분 삭제.
  144. addComboItem("cmb_dutycd", "전체" , "", "above");
  145. cmb_dutycd.refresh();
  146. //fsearch2();
  147. misfMsterDetailSet(grd_rsdhdinflist, null, "TRRSE01101", "Y");
  148. model.removeNodeset("/root/main/rsdhdinflist");
  149. model.removeNodeset("/root/main/reqcollcdeptlist");
  150. model.resetInstanceNode("/root/send");
  151. model.setValue("/root/send/usernm", getUserInfo("usernm")); // 사용자 이름 설정
  152. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  153. model.setValue("/root/send/goodflag", "E"); // 물품 설정
  154. model.setValue("/root/send/true", "Y"); // 사용유무 설정.
  155. model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
  156. // model.setValue("/root/send/cntrdeptcd", getUserInfo("dutplcecd")); // 귀속부서 설정
  157. model.setValue("/root/send/workdd", getCurrentDate());
  158. //화면 권한 설정
  159. // btn_save.disabled = !(checkAuth("X"));
  160. // btn_prt.disabled= !(checkAuth("P"));
  161. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  162. cmb_dutycd.select(0);
  163. rdo_dinfkind.select(0);
  164. fsearch();
  165. // rszfModeGetComboList( '012', , "grd_rsdhdinflist.csrfixasetmdnm");
  166. // var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmdnm"), "id"));
  167. // alert(obj.choices.itemset.attribute("nodeset"));
  168. misfSetReadOnlyCol(grd_reqcollcdeptlist, "fixasetcd,fixasetnm", true);
  169. }
  170. function fModeCheck()
  171. {
  172. // var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  173. //
  174. // if( fixasetcd.substr(0, 5) == "E8001" ) {
  175. //
  176. // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
  177. //
  178. // } else {
  179. //
  180. // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
  181. //
  182. // }
  183. }
  184. function fCheckTime(ftimeset)
  185. {
  186. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef(ftimeset))
  187. {
  188. var sTime = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset));
  189. if(sTime.length != 4)
  190. {
  191. messageBox("네자리를 ","C001");
  192. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  193. return;
  194. }
  195. var sFrontTime = sTime.substr(0, 2);
  196. var sBackTime = sTime.substr(2, 2);
  197. if(parseInt(sFrontTime) > 24)
  198. {
  199. messageBox("24시를 ","E003");
  200. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  201. return;
  202. }
  203. if(parseInt(sBackTime) > 59)
  204. {
  205. messageBox("59분을 ","E003");
  206. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  207. return;
  208. }
  209. }
  210. }
  211. // 장비코드 조회
  212. function fsearch()
  213. {
  214. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  215. model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
  216. model.makeValue("/root/send/reqdata/divscd", rdo_dinfkind.value);
  217. model.makeValue("/root/send/reqdata/useyn", "Y");
  218. if(submit("TRRSS01312")) {
  219. }
  220. //
  221. //
  222. }
  223. function fsearch2() {
  224. var dutycd = model.getValue(cmb_dutycd.attribute("ref"));
  225. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  226. model.makeValue("/root/send/reqdata/dutycd", dutycd);
  227. model.makeValue("/root/send/reqdata/useyn", "Y");
  228. submit("TRRSS01311");
  229. addComboItem("rdo_dinfkind", "전체" , "", "above");
  230. rdo_dinfkind.select(0);
  231. }
  232. function fsearch3() {
  233. model.removeNodeset("/root/main/rsdhdinflist");
  234. grd_rsdhdinflist.rebuild();
  235. model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
  236. model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
  237. model.makeValue("/root/send/reqdata/divscd", cmb_dinfkind.value);
  238. model.makeValue("/root/send/reqdata/useyn", "Y");
  239. if(submit("TRRSS01312")) {
  240. grd_reqcollcdeptlist.row = 1;
  241. }
  242. }
  243. // 세부내역 조회
  244. function fsearchGrid()
  245. {
  246. var updtdata = getGridUpdateData(grd_rsdhdinflist);
  247. if ( updtdata != "") {
  248. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  249. if (ret != 6) { // not OK
  250. return;
  251. }
  252. }
  253. model.setValue("/root/send/fixasetcd", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")));
  254. model.setValue("/root/send/workdd", ipt_workdd.value);
  255. model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
  256. submit("TRRSE01101");
  257. misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,workdd,fixasetcd,goodflag", true);
  258. }
  259. //행 추가
  260. function finsert()
  261. {
  262. if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")) == "")
  263. {
  264. messageBox("장비코드를","C002");
  265. }else{
  266. misfGridIUD(grd_rsdhdinflist, "A");
  267. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  268. }
  269. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
  270. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
  271. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
  272. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
  273. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
  274. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
  275. if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")) == "")
  276. {
  277. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = cmb_instcd.value;
  278. }else{
  279. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
  280. }
  281. misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,fixasetcd,goodflag", true);
  282. }
  283. function fModeComboNodeSetGet()
  284. {
  285. //////////////////////////모드코드 콤보설정//////////////////////////////////////////
  286. // 모드 콤보 설정되기전에 콤보에 nodeset이 지정되어 있으며 화면상에 나타내어 지고 있으면 콤보의 노드를 변경할 수가 없다.
  287. // 그리드를 초기화 시켜줌으로써 nodeset을 재설정 할수있도록 해준다.
  288. misfGridInit(grd_rsdhdinflist);
  289. grd_rsdhdinflist.rebuild();
  290. // 모드코드 콤보를 설정한다.
  291. rszfModeGetComboList( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")), grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")), "grd_rsdhdinflist.csrfixasetmd");
  292. /* 모드콤보에 설정된 nodeset을 임시저장소에 담아둔다.
  293. 이유 : 임시저장소에 저장된 nodeset은 모드코드콤보를 선택했을시
  294. 콤보값에 맞는 노출시간과 멸균온도를 가져오기위한 위치를 나타낼때 사용됨.
  295. */
  296. var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmd"), "id"));
  297. model.removenode("/root/temp/nodeset");
  298. model.makeNode("/root/temp/nodeset");
  299. model.setValue("/root/temp/nodeset", obj.choices.itemset.attribute("nodeset"));
  300. //////////////////////////모드코드 콤보설정//////////////////////////////////////////
  301. }
  302. function fPrintRex() {
  303. model.makeNode("/root/send/report/rsdhdinflist");
  304. copyNodesetType("/root/send/report/rsdhdinflist", "/root/main/rsdhdinflist");
  305. exeReportPreview("RPRSE01102", "XMLSTR", "/root/send/report/rsdhdinflist");
  306. }
  307. function subTm(fstTm, lastTm) {
  308. var fstHour = fstTm.substr(0,2);
  309. var fstTm2 = fstTm.substr(2,2);
  310. var fstss = fstTm.substr(4,2);
  311. var lastHour = lastTm.substr(0,2);
  312. var lastTm2 = lastTm.substr(2,2);
  313. var lastss = lastTm.substr(4,2);
  314. var subHour = Number(lastHour) - Number(fstHour);
  315. var subTm = Number(lastTm2) - Number(fstTm2);
  316. var subss = Number(lastss) - Number(fstss);
  317. var hr;
  318. var tm;
  319. var ss;
  320. if(subss < 0) {
  321. subss += 60;
  322. subTm -= 1;
  323. }
  324. if(subTm < 0) {
  325. subTm += 60;
  326. subHour -= 1;
  327. }
  328. if(subHour < 0) {
  329. subHour += 24;
  330. }
  331. if(subHour < 10) {
  332. subHour = "0" + subHour;
  333. } else {
  334. subHour = String(subHour);
  335. }
  336. if(subTm < 10) {
  337. subTm = "0" + subTm;
  338. } else {
  339. subTm = String(subTm);
  340. }
  341. if(subss <10) {
  342. subss = "0" + subss;
  343. } else {
  344. subss = String(subss);
  345. }
  346. return subHour + subTm + subss;
  347. }
  348. ]]>
  349. </script>
  350. </xhtml:head>
  351. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  352. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  353. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일일 멸균일지</caption>
  354. </group>
  355. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  356. <group id="grp_sea" style="left:0px; top:10px; width:1191px; height:60px; vertical-align:top; ">
  357. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:1190px; height:51px; background-color:#fffbf2; border-color:#ffd799; "/>
  358. <caption id="cap_workdd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">작업일자 :</caption>
  359. <caption id="cap_dinfkind" class="search_name" style="left:465px; top:10px; width:102px; height:17px; ">멸균구분 :</caption>
  360. <input id="ipt_workdd" ref="/root/send/workdd" class="input_default" inputtype="date" style="left:103px; top:34px; width:120px; height:19px; ">
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. var workdd = model.getValue(ipt_workdd.attribute("ref"));
  364. if(workdd == getCurrentDate()) {
  365. btn_insert.disabled = false;
  366. btn_delete.disabled = false;
  367. btn_save.disabled = false;
  368. } else {
  369. btn_insert.disabled = true;
  370. btn_delete.disabled = true;
  371. btn_save.disabled = true;
  372. }
  373. btn_insert.refresh();
  374. btn_delete.refresh();
  375. btn_save.refresh();
  376. fsearchGrid();
  377. ]]>
  378. </script>
  379. </input>
  380. <caption id="cap_usernm" class="search_name" visibility="hidden" style="left:235px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
  381. <output id="opt_usernm" ref="/root/send/usernm" class="output_fix" visibility="hidden" appearance="output" style="left:323px; top:34px; width:130px; height:19px; "/>
  382. <line id="line30" class="line_4" style="x1:985px; y1:14px; x2:985px; y2:47px; "/>
  383. <button id="btn_search" class="btn1_letter2" style="left:996px; top:19px; width:56px; height:22px; ">
  384. <caption>조회</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. fsearch3();
  388. ]]>
  389. </script>
  390. </button>
  391. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:103px; top:8px; width:120px; height:19px; ">
  392. <choices>
  393. <itemset>
  394. <label/>
  395. <value/>
  396. </itemset>
  397. </choices>
  398. <script type="javascript" ev:event="xforms-value-changed">
  399. <![CDATA[
  400. model.setValue("/root/send/instcd", cmb_instcd.value);
  401. fsearch();
  402. ]]>
  403. </script>
  404. </select1>
  405. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기관코드 :</caption>
  406. <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" visibility="hidden" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:660px; top:10px; width:219px; height:15px; background-color:transparent; border-style:none; ">
  407. <choices>
  408. <itemset nodeset="/root/init/divsflaglist">
  409. <label ref="divsnm"/>
  410. <value ref="divscd"/>
  411. </itemset>
  412. </choices>
  413. <script type="javascript" ev:event="xforms-value-changed">
  414. <![CDATA[
  415. fsearch();
  416. ]]>
  417. </script>
  418. </select1>
  419. <button id="btn_excel" class="btn1_letter2" style="left:1054px; top:19px; width:56px; height:22px; ">
  420. <caption>엑셀</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. var fileName = window.fileDialog("save", ",", false, "일일멸균일지", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  424. if (fileName != "")
  425. {
  426. grd_csrtmlist.saveExcel(fileName, "일일멸균일지");
  427. }
  428. ]]>
  429. </script>
  430. </button>
  431. <button id="btn_prt" class="btn1_letter2" style="left:1112px; top:19px; width:56px; height:22px; ">
  432. <caption>출력</caption>
  433. <script type="javascript" ev:event="DOMActivate">
  434. <![CDATA[
  435. fPrintRex();
  436. ]]>
  437. </script>
  438. </button>
  439. <caption id="caption1" class="search_name" style="left:235px; top:10px; width:87px; height:17px; ">장비구분 :</caption>
  440. <select1 id="cmb_dutycd" ref="/root/send/dutycd" appearance="minimal" style="left:323px; top:10px; width:130px; height:19px; ">
  441. <choices>
  442. <itemset nodeset="/root/main/dutylist">
  443. <label ref="dutynm"/>
  444. <value ref="dutycd"/>
  445. </itemset>
  446. </choices>
  447. <script type="javascript" ev:event="xforms-value-changed">
  448. <![CDATA[
  449. fsearch2();
  450. fsearch3();
  451. ]]>
  452. </script>
  453. </select1>
  454. <select1 id="cmb_dinfkind" ref="/root/send/dinfkind" appearance="minimal" style="left:550px; top:10px; width:100px; height:19px; ">
  455. <choices>
  456. <itemset nodeset="/root/init/divsflaglist">
  457. <label ref="divsnm"/>
  458. <value ref="divscd"/>
  459. </itemset>
  460. </choices>
  461. <script type="javascript" ev:event="xforms-value-changed">
  462. <![CDATA[
  463. fsearch3();
  464. ]]>
  465. </script>
  466. </select1>
  467. </group>
  468. <caption id="cap_fixasetcdlist" class="tit_2" style="left:5px; top:80px; width:80px; height:13px; ">장비코드</caption>
  469. <line id="line1" class="line_1" style="x1:205px; y1:94px; x2:1195px; y2:94px; "/>
  470. <datagrid id="grd_rsdhdinflist" nodeset="/root/main/rsdhdinflist" class="datagrid2" visibility="visible" autoresize="true" caption="횟수^모드^노출시간^멸균온도^시작시간^종료시간^작동시간^B-I^Bowie-Dick^정화시간^멸균품내역^이상무^비고^작동자ID^작동자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용&#xA;시간^노출온도" colsep="^" colwidth="36, 129, 75, 55, 70, 70, 55, 83, 73, 55, 192, 46, 250, 80, 70, 80, 70, 60, 60, 100, 160, 169, 130, 120, 120, 120, 100, 100, 120, 100, 100, 100, 130, 39, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:205px; top:99px; width:990px; height:635px; ">
  471. <col ref="usetims" format="9" _key="true" style="left:20px; top:23px; width:36px; height:23px; text-align:center; "/>
  472. <col ref="csrfixasetmd" type="combo" style="text-align:center; ">
  473. <choices>
  474. <itemset>
  475. <label/>
  476. <value/>
  477. </itemset>
  478. </choices>
  479. </col>
  480. <col ref="expsurtm" format="hh:nn" maxlength="6" style="text-align:right; "/>
  481. <col ref="dinftmpr" maxlength="4" style="text-align:right; "/>
  482. <col ref="starttm" type="input" format="hh:nn:ss"/>
  483. <col ref="endtm" type="input" format="hh:nn:ss"/>
  484. <col ref="funtngtm" format="hh:nn:ss"/>
  485. <col ref="biindflag" type="combo" visibility="visible">
  486. <choices>
  487. <itemset nodeset="/root/init/biindflag">
  488. <label ref="label"/>
  489. <value ref="value"/>
  490. </itemset>
  491. </choices>
  492. </col>
  493. <col id="bowdicflag" ref="bowdicflag" type="combo" visibility="visible">
  494. <choices>
  495. <itemset nodeset="/root/init/bowdicflag1">
  496. <label ref="label"/>
  497. <value ref="value"/>
  498. </itemset>
  499. </choices>
  500. </col>
  501. <col ref="purfctm" type="input" format="hh:nn"/>
  502. <col ref="dinfitemspec" type="inputbutton" maxlength="96"/>
  503. <col checkvalue="Y,N" ref="nowrongyn" type="checkbox"/>
  504. <col ref="cmt" type="input" maxlength="100"/>
  505. <col ref="userid" type="inputbutton" maxlength="10"/>
  506. <col ref="useridnm"/>
  507. <col ref="endpsnid" type="inputbutton" maxlength="10"/>
  508. <col ref="endpsnnm"/>
  509. <col ref="cheindint" type="input" visibility="hidden" maxlength="24"/>
  510. <col ref="cheindext" type="input" visibility="hidden" maxlength="24"/>
  511. <col ref="incubtm" type="input" visibility="hidden" format="hh:nn"/>
  512. <col ref="incubcnfmr" type="inputbutton" visibility="hidden" maxlength="10"/>
  513. <col ref="incubcnfmrnm" visibility="hidden"/>
  514. <col ref="rsltcnfmtm" type="input" format="hh:nn"/>
  515. <col ref="rsltcnfmpsn" type="inputbutton" maxlength="10"/>
  516. <col ref="rsltcnfmpsnnm"/>
  517. <col ref="reading" type="input" visibility="hidden" maxlength="24"/>
  518. <col ref="spclmentfact" type="input" visibility="hidden" maxlength="36"/>
  519. <col ref="chrgid" type="inputbutton" visibility="hidden" maxlength="10"/>
  520. <col ref="chrgnm" visibility="hidden"/>
  521. <col ref="instcd" type="input" visibility="hidden" maxlength="3" _key="true"/>
  522. <col class="input_default" ref="workdd" type="inputdate" visibility="hidden" _key="true"/>
  523. <col ref="fixasetcd" type="input" visibility="hidden" maxlength="20" _key="true"/>
  524. <col ref="goodflag" type="input" visibility="hidden" maxlength="1" _key="true"/>
  525. <col disabled="true" ref="usetm" visibility="hidden" format="hh:nn"/>
  526. <col ref="expsurtmpr" type="input" visibility="hidden" maxlength="4"/>
  527. <script type="javascript" ev:event="onendedit">
  528. <![CDATA[
  529. fCheckTime("usetm");
  530. fCheckTime("funtngtm");
  531. fCheckTime("expsurtm");
  532. fCheckTime("purfctm");
  533. fCheckTime("totm");
  534. fCheckTime("incubtm");
  535. fCheckTime("rsltcnfmtm");
  536. ]]>
  537. </script>
  538. <script type="javascript" ev:event="onbuttonclick">
  539. <![CDATA[
  540. model.property("instcd") = cmb_instcd.value;
  541. model.property("dutplcecd") = getUserInfo("dutplcecd");
  542. model.property("dutplcenm") = getUserInfo("dutplcenm");
  543. clearParameter("param");
  544. if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("userid")) {//작동자 ID 버튼을 눌렀을 때
  545. modal("SPRSE01102");
  546. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("userid")) = model.property("userid");
  547. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("useridnm")) = model.property("usernm");
  548. }
  549. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endpsnid")) {//종료자ID 버튼을 눌렀을 때
  550. modal("SPRSE01102");
  551. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnid")) = model.property("userid");
  552. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnnm")) = model.property("usernm");
  553. }
  554. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("incubcnfmr")) {//Incubator 확인자ID 버튼을 눌렀을 때
  555. modal("SPRSE01102");
  556. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmr")) = model.property("userid");
  557. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmrnm")) = model.property("usernm");
  558. }
  559. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("rsltcnfmpsn")) {//결과확인자ID 버튼을 눌렀을 때
  560. modal("SPRSE01102");
  561. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsn")) = model.property("userid");
  562. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = model.property("usernm");
  563. }
  564. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("chrgid")) {//담당자ID 버튼을 눌렀을 때
  565. modal("SPRSE01102");
  566. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid")) = model.property("userid");
  567. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm")) = model.property("usernm");
  568. }
  569. else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("dinfitemspec")){
  570. modal("SPRSE01101");
  571. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) = getParameter("param");
  572. grd_rsdhdinflist.resizeCells();
  573. }
  574. model.property("instcd") = "";
  575. model.property("dutplcecd") = "";
  576. model.property("dutplcenm") = "";
  577. // else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmdnm")){
  578. // misfOpenPopUpList("42", grd_rsdhdinflist, "", "fixasetcd,csrfixasetmd,csrfixasetmdnm,expsurtm,dinftmpr", grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")),"instcd,fixasetcd");
  579. // //rszfOpenPopUpListByWndName(grd_rsdhdinflist,"","csrfixasetmd,expsurtm,dinftmpr","SPRSD00300", "instcd,fixasetcd", sins+ "," + sfix, "Y");
  580. // }
  581. ]]>
  582. </script>
  583. <script type="javascript" ev:event="xforms-value-changed">
  584. <![CDATA[
  585. var starttm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("starttm"));
  586. var endtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endtm"));
  587. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("starttm") || grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endtm") ) {
  588. if(starttm.length < 6) {
  589. messageBox("시작시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
  590. grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("starttm");
  591. return;
  592. }
  593. if(endtm.length < 6) {
  594. messageBox("종료시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
  595. grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("endtm");
  596. return;
  597. }
  598. }
  599. var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  600. var csrfixasetmd = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmd"));
  601. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmd")) {
  602. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue("/root/init/item/"+fixasetcd+"/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/expsurtm");
  603. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue("/root/init/item/"+fixasetcd+"/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/dinftmpr");
  604. }
  605. if(starttm != "" && endtm != "") {
  606. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("funtngtm")) = subTm(starttm, endtm);
  607. }
  608. ]]>
  609. </script>
  610. </datagrid>
  611. <button id="btn_delete" class="btn2_letter3" style="left:1089px; top:74px; width:53px; height:19px; ">
  612. <caption>행삭제</caption>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. misfGridIUD(grd_rsdhdinflist, "D");
  616. ]]>
  617. </script>
  618. </button>
  619. <button id="btn_insert" class="btn2_letter3" style="left:1033px; top:74px; width:53px; height:19px; ">
  620. <caption>행추가</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. // finsert()
  624. grd_rsdhdinflist.addRow();
  625. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  626. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
  627. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
  628. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
  629. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
  630. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
  631. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
  632. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  633. ]]>
  634. </script>
  635. </button>
  636. <caption id="caption4" class="tit_2" style="left:210px; top:80px; width:70px; height:13px; ">세부내역</caption>
  637. <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/eqiprgstlist" caption="기관코드^장비코드^멸균구분^장비명^CSR청구부서코드^사용유무^비고" colsep="^" colwidth="0, 0, 96, 90, 70, 58, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:99px; width:200; height:635px; ">
  638. <col ref="instcd" visibility="hidden"/>
  639. <col ref="fixasetcd" visibility="hidden"/>
  640. <col ref="divsnm"/>
  641. <col ref="csrfixasetnm" style="text-align:center; "/>
  642. <col ref="dinfkind" visibility="hidden"/>
  643. <col ref="useyn" visibility="hidden"/>
  644. <col ref="cmt" visibility="hidden"/>
  645. <col ref="fixasetnm" visibility="hidden"/>
  646. <col ref="csrfixaset" visibility="hidden"/>
  647. <script type="javascript" ev:event="onclick">
  648. <![CDATA[
  649. if(grd_reqcollcdeptlist.row > 0){
  650. fModeCheck();
  651. // 모드콤보 설정.
  652. fModeComboNodeSetGet();
  653. fsearchGrid();
  654. }
  655. ]]>
  656. </script>
  657. </datagrid>
  658. <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:200; y2:94px; "/>
  659. <button id="btn_save" class="btn5_letter2" style="left:1145px; top:74px; width:42px; height:19px; ">
  660. <caption>저장</caption>
  661. <script type="javascript" ev:event="DOMActivate">
  662. <![CDATA[
  663. var updtdata = getGridUpdateData(grd_rsdhdinflist);
  664. if (updtdata == "")
  665. {
  666. messageBox("변경된 데이터가","I004");
  667. return;
  668. }
  669. //if(!checkKeyColumn("grd_rsdhdinflist")) return;
  670. rtn = messageBox("", "Q002");
  671. if(rtn != "6" ) return false;
  672. misfSave("TXRSE01101");
  673. btn_search.dispatch("DOMActivate");
  674. ]]>
  675. </script>
  676. </button>
  677. </group>
  678. </xhtml:body>
  679. </xhtml:html>