SMRSS01300_CSR 멸균장비 등록.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>CSR 멸균장비 등록</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <reqcollcdeptlist>
  12. <instcd/>
  13. <fixasetcd/>
  14. <fixasetnm/>
  15. <dinfkind/>
  16. <useyn/>
  17. <cmt/>
  18. </reqcollcdeptlist>
  19. <fixasetcdlist>
  20. <fixasetcd/>
  21. <goodflaghngnm/>
  22. </fixasetcdlist>
  23. <rscmeqmdlist/>
  24. </main>
  25. <send>
  26. <instcd/>
  27. <reqcollcdeptlist/>
  28. <fixasetcdlist/>
  29. <dinfkind/>
  30. <goodflag/>
  31. <cntrdeptcd/>
  32. <true/>
  33. <rscmeqmd/>
  34. </send>
  35. <init>
  36. </init>
  37. <hidden/>
  38. <temp/>
  39. </root>
  40. </instance>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  45. <submission id="TRRSS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
  46. <submission id="TXRSS01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  47. <script type="javascript" ev:event="xforms-ready">
  48. <![CDATA[
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <submission id="TRRSS01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/fixasetcdlist"/>
  53. <submission id="TRRSS01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rscmeqmd" resultref="/root/main/rscmeqmdlist"/>
  54. </model>
  55. <script type="javascript">
  56. <![CDATA[
  57. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  58. function fInitialize() {
  59. misfGridInit(grd_reqcollcdeptlist);
  60. misfGridInit(grd_equipment);
  61. misfGridInit(grd_rscmeqmdlist);
  62. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  63. misfMsterDetailSet(grd_reqcollcdeptlist, null,"TRRSS01301","Y"); //마스터 설정
  64. misfMsterDetailSet(grd_rscmeqmdlist, null,"TRRSS01303","Y"); //마스터 설정
  65. misfComboComCdList("R0271", rdo_dinfkind, "Y"); //CSR 멸균종류
  66. misfGridComboComCdList("R0271",grd_reqcollcdeptlist,"dinfkind"); // CSR 멸균종류
  67. model.removeNodeset("/root/main/reqcollcdeptlist");
  68. model.removeNodeset("/root/main/fixasetcdlist");
  69. model.resetInstanceNode("/root/send");
  70. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  71. model.setValue("/root/send/goodflag", "EQ"); // 물품 설정
  72. model.setValue("/root/send/cntrdeptcd", getUserInfo("dutplcecd")); // 귀속부서 설정
  73. rdo_dinfkind.select(0);
  74. //화면 권한 설정
  75. btn_save.disabled = !(checkAuth("X"));
  76. btn_prt.disabled= !(checkAuth("P"));
  77. submit("TRRSS01302");
  78. fsearch();
  79. misfSetReadOnlyCol(grd_equipment, "fixasetcd,goodflaghngnm", true);
  80. }
  81. function fsearch()
  82. {
  83. var updtdata = getGridUpdateData(grd_reqcollcdeptlist);
  84. if ( updtdata != "") {
  85. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  86. if (ret != 6) { // not OK
  87. return;
  88. }
  89. }
  90. //misfMsterDetailRetrieve();
  91. misfGridInit(grd_rscmeqmdlist);
  92. submit("TRRSS01301");
  93. misfSetReadOnlyCol(grd_reqcollcdeptlist, "instcd,fixasetcd,fixasetnm", true);
  94. }
  95. function fGridDataInsert()
  96. {
  97. if(!isRequiredControls("cmb_instcd")) return;
  98. misfGridIUD(grd_reqcollcdeptlist, "A");
  99. var cur_row = grd_reqcollcdeptlist.row;
  100. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  101. model.setValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  102. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  103. misfSetReadOnlyCol(grd_reqcollcdeptlist, "instcd,fixasetcd,fixasetnm", true);
  104. grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")) = grd_equipment.valueMatrix(grd_equipment.row,grd_equipment.colRef("fixasetcd"));
  105. grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetnm")) = grd_equipment.valueMatrix(grd_equipment.row,grd_equipment.colRef("goodflaghngnm"));
  106. }
  107. function fCheckTime(ftimeset)
  108. {
  109. if(grd_rscmeqmdlist.col == grd_rscmeqmdlist.colRef(ftimeset))
  110. {
  111. var sTime = grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef(ftimeset));
  112. if(sTime.length != 4)
  113. {
  114. messageBox("네자리를 ","C001");
  115. grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef(ftimeset)) = "";
  116. return;
  117. }
  118. var sFrontTime = sTime.substr(0, 2);
  119. var sBackTime = sTime.substr(2, 2);
  120. if(parseInt(sFrontTime) > 24)
  121. {
  122. messageBox("24시를 ","E003");
  123. grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef(ftimeset)) = "";
  124. return;
  125. }
  126. if(parseInt(sBackTime) > 59)
  127. {
  128. messageBox("59분을 ","E003");
  129. grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef(ftimeset)) = "";
  130. return;
  131. }
  132. }
  133. }
  134. ]]>
  135. </script>
  136. </xhtml:head>
  137. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  138. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  139. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">CSR 멸균장비 등록</caption>
  140. </group>
  141. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  142. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  143. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
  144. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  145. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  146. <caption id="cap_dinfkind" class="search_name" style="left:330px; top:9px; width:119px; height:17px; ">CSR 멸균종류 :</caption>
  147. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  148. <caption>조회</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. fsearch();
  152. ]]>
  153. </script>
  154. </button>
  155. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:107px; top:8px; width:158px; height:19px; ">
  156. <choices>
  157. <itemset>
  158. <label/>
  159. <value/>
  160. </itemset>
  161. </choices>
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. fsearch();
  165. ]]>
  166. </script>
  167. </select1>
  168. <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" appearance="full" cols="9" style="left:457px; top:8px; width:323px; height:19px; ">
  169. <choices>
  170. <itemset>
  171. <label/>
  172. <value/>
  173. </itemset>
  174. </choices>
  175. <script type="javascript" ev:event="xforms-value-changed">
  176. <![CDATA[
  177. fsearch();
  178. ]]>
  179. </script>
  180. </select1>
  181. </group>
  182. <line id="line2" class="line_1" style="x1:0px; y1:71px; x2:720px; y2:72px; "/>
  183. <caption id="caption8" class="tit_2" style="left:5px; top:56px; width:133px; height:13px; ">CSR 멸균장비 등록</caption>
  184. <button id="btn_grdadd" class="btn3_letter2" style="left:737px; top:240px; width:56px; height:22px; ">
  185. <caption>추가</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. if(grd_equipment.row == -1){
  189. messageBox("장비코드를","C002");
  190. return;
  191. }
  192. fGridDataInsert();
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="btn_grddel" class="btn4_letter2" style="left:736px; top:270px; width:56px; height:22px; ">
  197. <caption>삭제</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. misfGridIUD(grd_reqcollcdeptlist, "D");
  201. ]]>
  202. </script>
  203. </button>
  204. <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/reqcollcdeptlist" caption="기관코드^장비코드^장비명^중앙공급실명칭^CSR 멸균종류^사용유무^비고" colsep="^" colwidth="2, 90, 207, 100, 90, 56, 137" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:75px; width:720px; height:450px; ">
  205. <col ref="instcd" type="input" visibility="hidden" _key="true"/>
  206. <col class="input_s_essential" ref="fixasetcd" type="input" _key="true"/>
  207. <col ref="fixasetnm" type="input"/>
  208. <col ref="csrfixasetnm" type="input" _key="true"/>
  209. <col class="combo_s_essential" ref="dinfkind" type="combo" _key="true">
  210. <choices>
  211. <itemset>
  212. <label/>
  213. <value/>
  214. </itemset>
  215. </choices>
  216. </col>
  217. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  218. <col ref="cmt" type="input"/>
  219. <script type="javascript" ev:event="onrowchanged">
  220. <![CDATA[
  221. misfGridInit(grd_rscmeqmdlist);
  222. if(grd_reqcollcdeptlist.row > (grd_reqcollcdeptlist.fixedRows-1))
  223. {
  224. model.copyNode("/root/send/rscmeqmd", "/root/main/reqcollcdeptlist[" + grd_reqcollcdeptlist.row + "]");
  225. submit("TRRSS01303");
  226. }
  227. ]]>
  228. </script>
  229. </datagrid>
  230. <datagrid id="grd_equipment" nodeset="/root/main/fixasetcdlist" caption="장비코드^장비명" colsep="^" colwidth="90, 272" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:810px; top:75px; width:385px; height:665px; ">
  231. <col ref="fixasetcd" type="input"/>
  232. <col ref="goodflaghngnm" type="input"/>
  233. <script type="javascript" ev:event="ondblclick">
  234. <![CDATA[
  235. fGridDataInsert();
  236. ]]>
  237. </script>
  238. </datagrid>
  239. <line id="line1" class="line_1" style="x1:810px; y1:71px; x2:1195px; y2:72px; "/>
  240. <caption id="caption1" class="tit_2" style="left:810px; top:56px; width:133px; height:13px; ">장비</caption>
  241. <datagrid id="grd_rscmeqmdlist" nodeset="/root/main/rscmeqmdlist" caption="장비코드^CSR장비모드^CSR장비모드명칭^노출시간(시/분)^멸균온도(℃)^기관코드" colsep="^" colwidth="114, 151, 201, 110, 111, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:565px; width:720px; height:175px; ">
  242. <col class="input_s_essential" ref="fixasetcd" _key="true" style="text-align:center; "/>
  243. <col class="input_s_essential" ref="csrfixasetmd" type="input" _key="true" style="text-align:center; "/>
  244. <col ref="csrfixasetmdnm" type="input" style="text-align:center; "/>
  245. <col ref="expsurtm" type="input" format="hh:nn" style="text-align:center; "/>
  246. <col ref="dinftmpr" type="input" format="##.#" style="text-align:center; "/>
  247. <col ref="instcd" visibility="hidden" _key="true"/>
  248. <script type="javascript" ev:event="xforms-value-changed">
  249. <![CDATA[
  250. if( grd_rscmeqmdlist.col == grd_rscmeqmdlist.colRef("expsurtm") )
  251. {
  252. fCheckTime("expsurtm");
  253. }
  254. ]]>
  255. </script>
  256. </datagrid>
  257. <line id="line3" class="line_1" style="x1:0px; y1:561px; x2:720px; y2:562px; "/>
  258. <caption id="caption2" class="tit_2" style="left:0px; top:545px; width:164px; height:14px; ">CSR 멸균장비 모드</caption>
  259. <button id="btn_del" class="btn2_letter3" style="left:665px; top:540px; width:53px; height:19px; ">
  260. <caption>행삭제</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. misfGridIUD(grd_rscmeqmdlist, "D");
  264. ]]>
  265. </script>
  266. </button>
  267. <button id="btn_add" class="btn2_letter3" style="left:610px; top:540px; width:53px; height:19px; ">
  268. <caption>행추가</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. if(grd_reqcollcdeptlist.row > (grd_reqcollcdeptlist.fixedRows-1) )
  272. {
  273. misfGridIUD(grd_rscmeqmdlist, "A");
  274. grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef("instcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
  275. grd_rscmeqmdlist.valueMatrix(grd_rscmeqmdlist.row, grd_rscmeqmdlist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  276. }else{
  277. messageBox("등록된 CSR 멸균장비를 선택하세요.", "I999");
  278. }
  279. ]]>
  280. </script>
  281. </button>
  282. </group>
  283. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  284. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  285. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  286. <caption>초기화</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fInitialize();
  290. ]]>
  291. </script>
  292. </button>
  293. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  294. <caption>저장</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. var updtdata = getGridUpdateData(grd_reqcollcdeptlist) + getGridUpdateData(grd_rscmeqmdlist);
  298. if (updtdata == "")
  299. {
  300. messageBox("변경된 데이터가","I004");
  301. return;
  302. }
  303. if(!checkKeyColumn("grd_reqcollcdeptlist")) return;
  304. rtn = messageBox("", "Q002");
  305. if(rtn != "6" ) return false;
  306. misfSave("TXRSS01301");
  307. // btn_search.dispatch("DOMActivate");
  308. fsearch();
  309. ]]>
  310. </script>
  311. </button>
  312. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  313. <caption>출력</caption>
  314. </button>
  315. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  316. <caption>화면이동</caption>
  317. </button>
  318. </group>
  319. </xhtml:body>
  320. </xhtml:html>