SMRSE01100_일일멸균일지.xrw 29 KB

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