SPLQP00400_QC결과Confirm.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 :
  4. * 설 명 :
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 :
  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>QC 결과 확인</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <cnfmlist>
  20. <userflag/>
  21. </cnfmlist>
  22. <getUsernm>
  23. <usernm/>
  24. </getUsernm>
  25. </main>
  26. <send>
  27. <fromdd/>
  28. <todd/>
  29. <userid/>
  30. <data1/>
  31. <refflag>1</refflag>
  32. <eqmtcd/>
  33. <testcdlist/>
  34. <levlcdlist/>
  35. </send>
  36. <init>
  37. </init>
  38. <hidden>
  39. <ref>
  40. <resncd>16000</resncd>
  41. <resn/>
  42. </ref>
  43. <param>
  44. <cnfmfromdd/>
  45. <cnfmtodd/>
  46. <userflag/>
  47. <eqmtcd/>
  48. <testcdlist/>
  49. <testnmlist/>
  50. <levlcdlist/>
  51. <levlnmlist/>
  52. <matrcdlist/>
  53. <lotnolist/>
  54. <viewtestnmlist/>
  55. <viewlevlnmlist/>
  56. </param>
  57. <temptxt/>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. model.makeValue("/root/send/codeflag","0101|"); //0101:사유코드
  69. submit("TRLZZ00101");
  70. if(isPopup()){
  71. //그래프 조회에서 띄우는 팝업이라면~
  72. }
  73. if(model.getValue("/root/hidden/param/userflag") != ""){
  74. //저장
  75. model.toggle("case2");
  76. }else{
  77. //조회
  78. model.toggle("case1");
  79. fGetCnfmList();
  80. }
  81. ]]>
  82. </script>
  83. <submission id="TRLQP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cnfmlist"/>
  84. <submission id="TXLQP90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  85. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  86. <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
  87. <submission id="TXLQP90402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  88. </model>
  89. <script type="javascript">
  90. <![CDATA[
  91. function fKeyEvent(){
  92. //등록자
  93. if(event.keyCode == "13"){
  94. if(event.target == "ipt_testpsn"){
  95. model.setvalue("/root/send/userid",ipt_testpsn.currentText.toUpperCase());
  96. if(model.getvalue("/root/send/userid") != ""){
  97. submit("TRLZZ00104");
  98. }
  99. ipt_testpsn.selBegin = 0;
  100. ipt_testpsn.selEnd = ipt_testpsn.currentText.length;
  101. model.setFocus("ipt_testpsn");
  102. }
  103. }
  104. }
  105. function fSetCnfm(){
  106. if( model.getValue("/root/main/getUsernm/usernm") == "" || model.getValue("/root/send/userid") == ""){
  107. messageBox("등록자를 입력하세요", "E");
  108. return;
  109. }
  110. if( model.getValue("/root/hidden/ref/resncd") == "16000" ){
  111. messageBox("종합적 보고 사유를 선택하세요", "E");
  112. return;
  113. }
  114. if(model.getValue("/root/hidden/ref/resn") == ""){
  115. messageBox("종합적 보고 사유를 입력하세요", "E");
  116. return;
  117. }
  118. var sText = "m▦eqmtcd▦testcd▦levlcd▦userflag▦cnfmrgstrid▦matrcd▦lotno▦cnfmfromdd▦cnfmtodd▦cnfmfactcd▦cnfmfactcnts▩";
  119. var sEqmtcd = model.getValue("/root/hidden/param/eqmtcd");
  120. var sUserflag = model.getValue("/root/hidden/param/userflag");
  121. var sCnfmrgstrid = model.getValue("/root/send/userid");
  122. var sCnfmfromdd = model.getValue("/root/hidden/param/cnfmfromdd");
  123. var sCnfmtodd = model.getValue("/root/hidden/param/cnfmtodd");
  124. var sCnfmfactcd = model.getValue("/root/hidden/ref/resncd");
  125. var sCnfmfactcnts = model.getValue("/root/hidden/ref/resn");
  126. var sTestcd = model.getValue("/root/hidden/param/testcdlist").split("▦");
  127. var sLevlcd = model.getValue("/root/hidden/param/levlcdlist").split("▦");
  128. var sMatrcd = model.getValue("/root/hidden/param/matrcdlist").split("▦");
  129. var sLotno = model.getValue("/root/hidden/param/lotnolist").split("▦");
  130. for(i = 0; i < sTestcd.length; i++){
  131. sText += "i▦" + sEqmtcd + "▦" + sTestcd[i] + "▦" + sLevlcd[i] + "▦" + sUserflag + "▦" + sCnfmrgstrid + "▦" + sMatrcd[i]
  132. + "▦" + sLotno[i] + "▦" + sCnfmfromdd + "▦" + sCnfmtodd + "▦" + sCnfmfactcd + "▦" + sCnfmfactcnts + "▩";
  133. }
  134. model.setValue("/root/send/data1", sText);
  135. if(submit("TXLQP90401")){
  136. messageBox("정상처리 되었습니다", "I");
  137. button2.disabled = true;
  138. }
  139. }
  140. function fSetCnfm_save(){
  141. // if( model.getValue("/root/main/getUsernm/usernm") == "" || model.getValue("/root/send/userid") == ""){
  142. // messageBox("등록자를 입력하세요", "E");
  143. // return;
  144. // }
  145. //
  146. // if( model.getValue("/root/hidden/ref/resncd") == "16000" ){
  147. // messageBox("종합적 보고 사유를 선택하세요", "E");
  148. // return;
  149. // }
  150. //
  151. // if(model.getValue("/root/hidden/ref/resn") == ""){
  152. // messageBox("종합적 보고 사유를 입력하세요", "E");
  153. // return;
  154. // }
  155. // for(i = 0; i < sTestcd.length; i++){
  156. // sText += "i▦" + sEqmtcd + "▦" + sTestcd[i] + "▦" + sLevlcd[i] + "▦" + sUserflag + "▦" + sCnfmrgstrid + "▦" + sMatrcd[i]
  157. // + "▦" + sLotno[i] + "▦" + sCnfmfromdd + "▦" + sCnfmtodd + "▦" + sCnfmfactcd + "▦" + sCnfmfactcnts + "▩";
  158. // }
  159. model.setValue("/root/send/data1", grd_cnfm.getUpdateData());
  160. if(submit("TXLQP90402")){
  161. messageBox("정상처리 되었습니다", "I");
  162. // button2.disabled = true;
  163. }
  164. }
  165. function fGetCnfmList(){
  166. model.setValue("/root/hidden/temptxt", "");
  167. model.setValue("/root/send/eqmtcd" , model.getValue("/root/hidden/param/eqmtcd"));
  168. model.setValue("/root/send/testcdlist" , model.getValue("/root/hidden/param/testcdlist"));
  169. model.setValue("/root/send/levlcdlist" , model.getValue("/root/hidden/param/levlcdlist"));
  170. model.setValue("/root/send/fromdd" , model.getValue("/root/hidden/param/cnfmfromdd"));
  171. model.setValue("/root/send/todd" , model.getValue("/root/hidden/param/cnfmtodd"));
  172. submit("TRLQP90401");
  173. }
  174. ]]>
  175. </script>
  176. </xhtml:head>
  177. <xhtml:body pagewidth="630" pageheight="330" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  178. <button id="btn_swacpt" class="btn_sw" visibility="hidden" group="tab" selected="true" style="left:0px; top:18px; width:70px; height:22px; ">
  179. <caption>조회</caption>
  180. <toggle case="case1" ev:event="DOMActivate"/>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. ]]>
  184. </script>
  185. </button>
  186. <button id="btn_swref" class="btn_sw" visibility="hidden" group="tab" style="left:70px; top:18px; width:70px; height:22px; ">
  187. <caption>확인</caption>
  188. <toggle case="case2" ev:event="DOMActivate"/>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. ]]>
  192. </script>
  193. </button>
  194. <switch id="switch3" class="sw_box" style="left:0px; top:19px; width:610px; height:300px; ">
  195. <case id="case1" selected="true">
  196. <group id="group1" scroll="auto" style="left:0px; top:0px; width:605px; height:296px; ">
  197. <datagrid id="grd_cnfm" nodeset="/root/main/cnfmlist" caption="확인구분^적용구간^적용구간^장비^검사명^레벨명^확인일시^확인자^사유 및 종합적보고^코드^코드2^등록일" colsep="^" colwidth="60, 70, 70, 45, 90, 60, 110, 60, 200,0,0,0" dataheight="23" defaultrows="1" ellipsis="true" explorerbar="sortshow" fixedcols="0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:60px; width:600px; height:185px; ">
  198. <col disabled="true" ref="userflag" type="combo" disable="true" style="text-align:center; ">
  199. <choices>
  200. <item>
  201. <label>UM</label>
  202. <value>1</value>
  203. </item>
  204. <item>
  205. <label>팀장</label>
  206. <value>2</value>
  207. </item>
  208. <item>
  209. <label>전문의</label>
  210. <value>3</value>
  211. </item>
  212. </choices>
  213. </col>
  214. <col ref="cnfmfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  215. <col ref="cnfmtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  216. <col ref="eqmtcd" style="text-align:center; "/>
  217. <col ref="testcd"/>
  218. <col ref="levlcd"/>
  219. <col ref="cnfmrgstdt" format="yyyy-mm-dd hh:nn"/>
  220. <col ref="cnfmrgstrid" style="text-align:center; "/>
  221. <col ref="cnfmfactcnts" type="input"/>
  222. <script type="javascript" ev:event="onaftersort">
  223. <![CDATA[
  224. grd_cnfm.gridToInstance();
  225. ]]>
  226. </script>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. model.setValue("/root/hidden/temptxt", model.getValue("/root/main/cnfmlist[" + grd_cnfm.row +"]/cnfmfactcnts"));
  230. textarea2.refresh();
  231. ]]>
  232. </script>
  233. <col ref="levl"/>
  234. <col ref="test"/>
  235. <col ref="cnfmrgstdt2"/>
  236. </datagrid>
  237. <line id="line10" class="line_1" style="x1:0px; y1:55px; x2:600px; y2:55px; "/>
  238. <caption id="caption32" class="tit_2" style="left:0px; top:40px; width:167px; height:14px; ">정도관리 확인 내역</caption>
  239. <group id="grp_sea" style="left:0px; top:0px; width:603px; height:35px; vertical-align:top; ">
  240. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:600px; height:35px; "/>
  241. <line id="line13" class="line_4" style="x1:525px; y1:5px; x2:525px; y2:27px; "/>
  242. <caption id="caption2" class="search_name" style="left:15px; top:10px; width:94px; height:17px; "/>
  243. <button id="btn_ref" class="btn1_letter2" style="left:533px; top:7px; width:56px; height:22px; ">
  244. <caption>조회</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fGetCnfmList();
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption3" class="search_no_b" style="left:245px; top:8px; width:15px; height:17px; ">~</caption>
  252. <input id="input1" ref="/root/hidden/param/cnfmfromdd" class="input_s_essential" inputtype="date" style="left:145px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  253. <input id="input2" ref="/root/hidden/param/cnfmtodd" class="input_s_essential" inputtype="date" style="left:264px; top:8px; width:95px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  254. <caption id="caption1" class="search_name" visibility="hidden" style="left:401px; top:9px; width:49px; height:17px; "/>
  255. <input id="ipt_pid" ref="/root/hidden/ref/abc" visibility="hidden" inputtype="button" style="left:420px; top:8px; width:100px; height:19px; ">
  256. <script type="javascript" ev:event="onkeypress">
  257. <![CDATA[
  258. fKeyEvent();
  259. ]]>
  260. </script>
  261. </input>
  262. <select1 id="cmb_flag" ref="/root/send/refflag" class="combo_default" appearance="minimal" style="left:37px; top:8px; width:92px; height:19px; ">
  263. <choices>
  264. <item>
  265. <label>적용일자</label>
  266. <value>1</value>
  267. </item>
  268. <item>
  269. <label>확인일자</label>
  270. <value>2</value>
  271. </item>
  272. </choices>
  273. </select1>
  274. </group>
  275. <button id="button1" class="btn4_letter2" style="left:545px; top:246px; width:56px; height:22px; ">
  276. <caption>닫기</caption>
  277. <script type="javascript" ev:event="onclick">
  278. <![CDATA[
  279. //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
  280. window.close();
  281. ]]>
  282. </script>
  283. </button>
  284. <textarea id="textarea2" ref="/root/hidden/temptxt" style="left:0px; top:246px; width:540px; height:50px; ">
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. ]]>
  288. </script>
  289. </textarea>
  290. <button id="button4" class="btn4_letter2" style="left:380px; top:10px; width:56px; height:22px; ">
  291. <caption>저장</caption>
  292. <script type="javascript" ev:event="onclick">
  293. <![CDATA[
  294. fSetCnfm_save();
  295. ]]>
  296. </script>
  297. </button>
  298. </group>
  299. </case>
  300. <case id="case2">
  301. <group id="grp_cnfm" scroll="auto" style="left:0px; top:0px; width:605px; height:210px; ">
  302. <caption id="cap_cnf" class="tit_2" style="left:0px; top:6px; width:123px; height:13px; ">결과 확인</caption>
  303. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:600px; y2:20px; "/>
  304. <caption id="cap_1" class="cell_1" style="left:0px; top:25px; width:80px; height:23px; ">확인기준일</caption>
  305. <caption id="caption7" class="cell_1" style="left:321px; top:25px; width:80px; height:23px; ">장비코드</caption>
  306. <caption id="caption4" class="cell_1" style="left:0px; top:51px; width:80px; height:23px; ">검사항목</caption>
  307. <caption id="caption9" class="cell_1" style="left:0px; top:77px; width:80px; height:23px; ">사유코드</caption>
  308. <caption id="caption5" class="cell_1" visibility="hidden" style="left:237px; top:183px; width:80px; height:23px; ">레벨명</caption>
  309. <line id="line2" class="line_2" style="x1:0px; y1:49px; x2:600px; y2:49px; "/>
  310. <line id="line3" class="line_2" style="x1:0px; y1:75px; x2:600px; y2:75px; "/>
  311. <input id="input26" ref="/root/hidden/param/cnfmfromdd" class="input_s_essential" inputtype="date" style="left:83px; top:27px; width:105px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  312. <input id="input4" ref="/root/hidden/param/cnfmtodd" class="input_s_essential" inputtype="date" style="left:213px; top:27px; width:105px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  313. <caption id="caption10" class="search_no_b" style="left:194px; top:28px; width:15px; height:17px; ">~</caption>
  314. <input id="input5" ref="/root/hidden/param/eqmtcd" disabled="true" style="left:404px; top:27px; width:195px; height:19px; "/>
  315. <input id="input6" ref="/root/hidden/param/viewtestnmlist" style="left:83px; top:53px; width:516px; height:19px; "/>
  316. <input id="input7" ref="/root/hidden/param/viewlevlnmlist" visibility="hidden" style="left:320px; top:185px; width:195px; height:19px; "/>
  317. <select1 id="radio1" ref="/root/hidden/param/userflag" disabled="true" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:85px; top:5px; width:170px; height:15px; border-style:none; ">
  318. <choices>
  319. <item>
  320. <label>UM</label>
  321. <value>1</value>
  322. </item>
  323. <item>
  324. <label>팀장</label>
  325. <value>2</value>
  326. </item>
  327. <item>
  328. <label>전문의</label>
  329. <value>3</value>
  330. </item>
  331. </choices>
  332. </select1>
  333. <select1 id="cmb_sect" ref="/root/hidden/ref/resncd" appearance="minimal" style="left:83px; top:79px; width:190px; height:19px; ">
  334. <choices>
  335. <itemset nodeset="/root/init/LB0101[etc01 = '16']">
  336. <label ref="nm"/>
  337. <value ref="cd"/>
  338. </itemset>
  339. </choices>
  340. <script type="javascript" ev:event="xforms-select">
  341. <![CDATA[
  342. if(model.getValue("/root/hidden/ref/resncd") == "16000"){
  343. model.setValue("/root/hidden/ref/resn", "");
  344. }else{
  345. var sResn = model.getValue("/root/hidden/ref/resn") + " ";
  346. model.setValue("/root/hidden/ref/resn", sResn + cmb_sect.label);
  347. }
  348. model.refresh();
  349. ]]>
  350. </script>
  351. </select1>
  352. <line id="line4" class="line_2" style="x1:0px; y1:101px; x2:600px; y2:101px; "/>
  353. <textarea id="textarea1" ref="/root/hidden/ref/resn" style="left:0px; top:103px; width:600px; height:80px; "/>
  354. <caption id="caption8" class="cell_1" style="left:276px; top:77px; width:80px; height:23px; ">등록자</caption>
  355. <input id="ipt_testpsn" ref="/root/send/userid" inputtype="button" style="left:359px; top:79px; width:85px; height:19px; ">
  356. <script type="javascript" ev:event="onkeypress">
  357. <![CDATA[
  358. fKeyEvent();
  359. ]]>
  360. </script>
  361. </input>
  362. <input id="input8" ref="/root/main/getUsernm/usernm" disabled="true" style="left:446px; top:79px; width:97px; height:19px; "/>
  363. <button id="button2" class="btn4_letter2" style="left:545px; top:78px; width:56px; height:22px; ">
  364. <caption>저장</caption>
  365. <script type="javascript" ev:event="onclick">
  366. <![CDATA[
  367. fSetCnfm();
  368. ]]>
  369. </script>
  370. </button>
  371. <button id="button3" class="btn4_letter2" style="left:545px; top:184px; width:56px; height:22px; ">
  372. <caption>닫기</caption>
  373. <script type="javascript" ev:event="onclick">
  374. <![CDATA[
  375. //opener.model.setvalue("/root/hidden/natinfo/deliveYN" , "");
  376. window.close();
  377. ]]>
  378. </script>
  379. </button>
  380. </group>
  381. </case>
  382. <case id="case3"/>
  383. </switch>
  384. <group id="grp_tle" style="left:0px; top:0px; width:605px; height:13px; ">
  385. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:179px; height:14px; ">정도관리 결과 확인</caption>
  386. </group>
  387. </xhtml:body>
  388. </xhtml:html>