SMLPC01100_분자Risk등록.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPC01100_분자Risk등록.xrw
  4. * 설 명 : 분자Risk등록 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.05.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <moledngrcnts>
  20. <moledngrlist>
  21. <instcd/>
  22. <testcd/>
  23. <usefromdd/>
  24. <usetodd/>
  25. <riskflagcd/>
  26. <itemseqno/>
  27. <item01/>
  28. <item02/>
  29. <item03/>
  30. <item04/>
  31. <item05/>
  32. <item06/>
  33. <item07/>
  34. <item08/>
  35. <item09/>
  36. <item10/>
  37. <item11/>
  38. <item12/>
  39. <item13/>
  40. <item14/>
  41. <item15/>
  42. <item16/>
  43. <item17/>
  44. <item18/>
  45. <item19/>
  46. <item20/>
  47. <orgusetodd/>
  48. </moledngrlist>
  49. </moledngrcnts>
  50. </main>
  51. <send>
  52. </send>
  53. <init>
  54. <testcnts>
  55. <testlist>
  56. <testcd/>
  57. <testengnm/>
  58. </testlist>
  59. </testcnts>
  60. <sysdt>
  61. <sysdtinfo>
  62. <sysdd/>
  63. <systm/>
  64. </sysdtinfo>
  65. </sysdt>
  66. <workflagcd/>
  67. </init>
  68. <hidden>
  69. <instcd/>
  70. <refval/>
  71. </hidden>
  72. </root>
  73. </instance>
  74. <bind id="bind1" ref="/root/main/moledngrcnts/moledngrlist/testcd" readonly="../testcd/@readonly = 'true'"/>
  75. <bind id="bind2" ref="/root/main/moledngrcnts/moledngrlist/riskflagcd" readonly="../riskflagcd/@readonly = 'true'"/>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. fExeInitialize();
  82. ]]>
  83. </script>
  84. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  85. <submission id="TRLPC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/testcnts/testlist"/>
  86. <submission id="TRLPC01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/moledngrcnts/moledngrlist"/>
  87. <submission id="TXLPC01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/msg"/>
  88. </model>
  89. <script type="javascript">
  90. <![CDATA[
  91. /* @group : 분자Risk등록 화면
  92. * @ver : 2007.05.24 (CMCDEV-0001)
  93. * @by : 유동철(ACK)
  94. * @-----------------------------------
  95. * @type : function
  96. * @access : public
  97. * @desc : 화면초기화 함수
  98. */
  99. function fExeInitialize(){
  100. model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
  101. model.setValue("/root/hidden/instcd", getUserInfo("dutplceinstcd")); //instcd
  102. //----------------
  103. // 시스템일시 조회
  104. model.removeNodeset("/root/send");
  105. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  106. submit("TRLPZ00102", false);
  107. //-------------------------------------------
  108. model.makeValue("/root/hidden/refval", ""); // 조회항목
  109. model.makeValue("/root/init/workflagcd", "1007"); // 분자(1007), 전자(1008)
  110. //---------------
  111. fGetTestCdList();
  112. //--------------
  113. model.refresh();
  114. }
  115. /* @group : 분자Risk등록 화면
  116. * @ver : 2007.01.24 (CMCDEV-0001)
  117. * @by : 유동철(ACK)
  118. * @-----------------------------------
  119. * @type : function
  120. * @access : public
  121. * @desc : 검사목록 조회 함수
  122. */
  123. function fGetTestCdList() {
  124. model.makeValue("/root/hidden/refval", "");
  125. model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
  126. model.makeValue("/root/send/workflagcd", model.getValue("/root/init/workflagcd"));
  127. submit("TRLPC01101");
  128. //---------
  129. // 노드생성
  130. var iMaxRow = Number(getNodesetCount("/root/init/testcnts/testlist"))+1;
  131. model.makeValue("/root/init/testcnts/testlist[" + iMaxRow + "]/testcd", "");
  132. model.makeValue("/root/init/testcnts/testlist[" + iMaxRow + "]/testengnm", "전 체");
  133. //-------------------
  134. cmb_testnm.refresh();
  135. }
  136. /* @group : 분자Risk등록 화면
  137. * @ver : 2007.01.24 (CMCDEV-0001)
  138. * @by : 유동철(ACK)
  139. * @-----------------------------------
  140. * @type : function
  141. * @access : public
  142. * @desc : High-Risk / Low-Risk 조회 함수
  143. */
  144. function fGetRiskList(){
  145. model.removeNodeset("/root/main/moledngrcnts/moledngrlist");
  146. model.removeNodeset("/root/send");
  147. model.makeValue("/root/send/instcd", model.getValue("/root/hidden/instcd"));
  148. model.makeValue("/root/send/workflagcd", model.getValue("/root/init/workflagcd"));
  149. model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval"));
  150. submit("TRLPC01102");
  151. model.refresh();
  152. }
  153. /* @group : 분자Risk등록 화면
  154. * @ver : 2007.05.24 (CMCDEV-0001)
  155. * @by : 유동철(ACK)
  156. * @-----------------------------------
  157. * @type : function
  158. * @access : public
  159. * @desc : 조회내역 행추가 함수
  160. */
  161. function fGetAddRow() {
  162. var curRow = 0;
  163. var strNode = "/root/main/moledngrcnts/moledngrlist";
  164. //-------------------------
  165. grd_moledngrlist.addItem();
  166. //--------------
  167. // 추가된 Row번호
  168. curRow = grd_moledngrlist.row;
  169. //--------------------------------------------------------------------------------------------
  170. model.setValue(strNode + "[" + curRow + "]/instcd", model.getValue("/root/hidden/instcd")); // 기관코드
  171. model.setValue(strNode + "[" + curRow + "]/usefromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 시작일자
  172. model.setValue(strNode + "[" + curRow + "]/usetodd", "99991231"); // 종료일자
  173. //------------------------------------------
  174. // 검사명이 선택된 경우 해당 검사코드를 설정
  175. if (model.getValue("/root/hidden/refval") != "") {
  176. model.setValue(strNode+"["+curRow+"]/testcd", model.getValue("/root/hidden/refval")); // 검사코드
  177. }
  178. }
  179. /* @group : 분자Risk등록 화면
  180. * @ver : 2007.05.24 (CMCDEV-0001)
  181. * @by : 유동철(ACK)
  182. * @-----------------------------------
  183. * @type : function
  184. * @access : public
  185. * @desc : 조회내역 행삭제 함수
  186. */
  187. function fGetDelRow(){
  188. var curRow = grd_moledngrlist.row;
  189. var vStatus = grd_moledngrlist.rowStatus(curRow);
  190. var strNode = "/root/main/moledngrcnts/moledngrlist";
  191. if(vStatus == "1" || vStatus == "3") { // New or New&Insert?
  192. grd_moledngrlist.deleteItem(curRow);
  193. for(var i = curRow; i < grd_moledngrlist.rows; i++){
  194. grd_moledngrlist.row = i; //Current Row Set
  195. grd_moledngrlist.col = 5; //Current Col Set
  196. fGetSeqNo();
  197. }
  198. }
  199. else {
  200. grd_moledngrlist.rowstatus(curRow) = 4; // Delete
  201. model.setValue(strNode + "[" + curRow + "]/usetodd",
  202. model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); //종료일자
  203. }
  204. }
  205. /* @group : 분자Risk등록 화면
  206. * @ver : 2007.05.24 (CMCDEV-0001)
  207. * @by : 유동철(ACK)
  208. * @-----------------------------------
  209. * @type : function
  210. * @access : public
  211. * @desc : 항목일련번호 부여 함수
  212. */
  213. function fGetSeqNo(){
  214. var curRow = grd_moledngrlist.row;
  215. var curCol = grd_moledngrlist.col;
  216. var strNode = "/root/main/moledngrcnts/moledngrlist";
  217. var vSeqNo = 0;
  218. var vSeqNoTemp = 0;
  219. var prest_row;
  220. if(curCol != "2" && curCol != "5") return; // H/L?
  221. var vTestCd = model.getValue(strNode + "[" + curRow + "]/testcd");
  222. var vRiskFlagCd = model.getValue(strNode + "[" + curRow + "]/riskflagcd");
  223. if(vTestCd == "" || vRiskFlagCd == "") return;
  224. if(curRow > 1) {
  225. for(var i = 1; i < grd_moledngrlist.rows; i++){
  226. if(i != curRow) {
  227. var vTestCdT = model.getValue(strNode + "[" + i + "]/testcd");
  228. var vRiskFlagCdT = model.getValue(strNode + "[" + i + "]/riskflagcd");
  229. if(vTestCd == vTestCdT && vRiskFlagCd == vRiskFlagCdT) {
  230. vSeqNoTemp = parseInt(model.getValue(strNode + "[" + i + "]/itemseqno"));
  231. if(vSeqNoTemp > vSeqNo) vSeqNo = vSeqNoTemp;
  232. }
  233. }
  234. }
  235. }
  236. model.setValue(strNode + "[" + curRow + "]/itemseqno", vSeqNo+1);
  237. }
  238. /* @group : 분자Risk등록 화면
  239. * @ver : 2007.05.24 (CMCDEV-0001)
  240. * @by : 유동철(ACK)
  241. * @-----------------------------------
  242. * @type : function
  243. * @access : public
  244. * @desc : 저장함수
  245. */
  246. function fSetUpdtData(){
  247. var strNode = "/root/main/moledngrcnts/moledngrlist";
  248. var vTestCd;
  249. var vRiskFlagCd;
  250. for(var i = 1; i < grd_moledngrlist.rows; i++){
  251. var vTestCd = model.getValue(strNode + "[" + i + "]/testcd");
  252. var vRiskFlagCd = model.getValue(strNode + "[" + i + "]/riskflagcd");
  253. if( vTestCd == "" || vRiskFlagCd == "") {
  254. messageBox("검사명 또는 RISK구분을", "C002");
  255. return;
  256. }
  257. }
  258. //--------------------------------
  259. model.removeNodeset("/root/send");
  260. model.makeValue("/root/send/moledngrlist", grd_moledngrlist.getUpdateData());
  261. //-----------
  262. setAlertOn();
  263. if (submit("TXLPC01101")) {
  264. fGetRiskList();
  265. }
  266. }
  267. ]]>
  268. </script>
  269. </xhtml:head>
  270. <xhtml:body guideline="2,784;2,757;1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  271. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  272. <group id="grp_biz" style="left:0px; top:0px; width:1195px; height:744; ">
  273. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  274. <button id="btn_grdadd" class="btn2_letter3" navindex="6" style="left:1141px; top:50px; width:53px; height:19px; ">
  275. <caption>행삭제</caption>
  276. <script type="javascript" ev:event="DOMActivate">
  277. <![CDATA[
  278. fGetDelRow();
  279. ]]>
  280. </script>
  281. </button>
  282. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:260px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">분자RISK/전자현미경 목록</caption>
  283. <button id="button2" class="btn2_letter3" navindex="5" style="left:1082px; top:50px; width:53px; height:19px; ">
  284. <caption>행추가</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. fGetAddRow();
  288. ]]>
  289. </script>
  290. </button>
  291. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
  292. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  293. <button id="button3" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  294. <caption>조회</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. fGetRiskList();
  298. ]]>
  299. </script>
  300. </button>
  301. <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  302. <caption id="caption23" class="search_name" style="left:15px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">작업구분 :</caption>
  303. <select1 id="cmb_testnm" ref="/root/hidden/refval" class="combo_search" navindex="2" appearance="minimal" style="left:833px; top:8; width:262px; height:19px; ">
  304. <choices>
  305. <itemset nodeset="/root/init/testcnts/testlist">
  306. <label ref="testengnm"/>
  307. <value ref="testcd"/>
  308. </itemset>
  309. </choices>
  310. </select1>
  311. <select1 id="rdo_workflagcd" ref="/root/init/workflagcd" navindex="1" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:105px; top:8px; width:165px; height:20px; border-style:none; ">
  312. <choices>
  313. <item>
  314. <label>분자</label>
  315. <value>1007</value>
  316. </item>
  317. <item>
  318. <label>전자</label>
  319. <value>1008</value>
  320. </item>
  321. </choices>
  322. <script type="javascript" ev:event="xforms-value-changed">
  323. <![CDATA[
  324. fGetTestCdList();
  325. ]]>
  326. </script>
  327. </select1>
  328. <caption id="caption2" class="search_name" style="left:755px; top:9px; width:75px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검사명 :</caption>
  329. </group>
  330. <datagrid id="grd_moledngrlist" nodeset="/root/main/moledngrcnts/moledngrlist" caption="기관코드^검사명^시작일자^종료일자^H/L^SEQ^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^caption1" colsep="^" colwidth="0, 124, 80, 80, 50, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 0" dataheight="23" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" navindex="4" style="left:0px; top:75px; width:1195px; height:667px; ">
  331. <col ref="instcd"/>
  332. <col ref="testcd" type="combo">
  333. <choices>
  334. <itemset nodeset="/root/init/testcnts/testlist[testcd!='']">
  335. <label ref="testengnm"/>
  336. <value ref="testcd"/>
  337. </itemset>
  338. </choices>
  339. </col>
  340. <col ref="usefromdd" type="output" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  341. <col ref="usetodd" type="input" format="yyyy-mm-dd" mask="exclude" showmask="true">
  342. <choices>
  343. <item>
  344. <label>사용</label>
  345. <value>0</value>
  346. </item>
  347. <item>
  348. <label>미사용</label>
  349. <value>1</value>
  350. </item>
  351. </choices>
  352. </col>
  353. <col ref="riskflagcd" type="combo" style="font-size:12pt; font-weight:bold; color:#000000; text-align:center; vertical-align:middle; ">
  354. <choices>
  355. <item>
  356. <label>H</label>
  357. <value>0</value>
  358. </item>
  359. <item>
  360. <label>L</label>
  361. <value>1</value>
  362. </item>
  363. </choices>
  364. </col>
  365. <col ref="itemseqno" type="output" style="font-size:12pt; font-weight:bold; color:#000000; text-align:center; vertical-align:middle; "/>
  366. <col ref="item01" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  367. <col ref="item02" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  368. <col ref="item03" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  369. <col ref="item04" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  370. <col ref="item05" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  371. <col ref="item06" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  372. <col ref="item07" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  373. <col ref="item08" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  374. <col ref="item09" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  375. <col ref="item10" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  376. <col ref="item11" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  377. <col ref="item12" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  378. <col ref="item13" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  379. <col ref="item14" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  380. <col ref="item15" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  381. <col ref="item16" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  382. <col ref="item17" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  383. <col ref="item18" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  384. <col ref="item19" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  385. <col ref="item20" type="input" maxlength="20" style="text-align:center; vertical-align:middle; "/>
  386. <col ref="orgusetodd"/>
  387. <script type="javascript" ev:event="xforms-value-changed">
  388. <![CDATA[
  389. fGetSeqNo();
  390. ]]>
  391. </script>
  392. </datagrid>
  393. </group>
  394. </group>
  395. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  396. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">분자Risk등록</caption>
  397. </group>
  398. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  399. <button id="button1" class="btn4_letter2" navindex="7" style="left:1139px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  400. <caption>저장</caption>
  401. <script type="javascript" ev:event="DOMActivate">
  402. <![CDATA[
  403. fSetUpdtData();
  404. ]]>
  405. </script>
  406. </button>
  407. <line id="line1" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  408. </group>
  409. </xhtml:body>
  410. </xhtml:html>