SMLQJ00400_미생물QC접수관리.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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>QC접수관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <qcacptlist>
  11. <acptdt/>
  12. <eqmtnm/>
  13. <eqmtcd/>
  14. </qcacptlist>
  15. <tclscdlist>
  16. <bcchk/>
  17. <chk/>
  18. <bcno/>
  19. <levlnm/>
  20. <matrnm/>
  21. <testnm/>
  22. <matrcd/>
  23. <levlcd/>
  24. <testcd/>
  25. <matrfromdd/>
  26. <acptbcflag/>
  27. <rsltstat/>
  28. <lotno/>
  29. </tclscdlist>
  30. <bcnoinfo/>
  31. <barcdprntsetup>
  32. <prntsetupinfo>
  33. <setupinfo/>
  34. </prntsetupinfo>
  35. </barcdprntsetup>
  36. </main>
  37. <send>
  38. <codeflag/>
  39. <deptflag/>
  40. <basecdid/>
  41. <eqmtcd/>
  42. <acptflag/>
  43. <acptdt/>
  44. <tclscdlist/>
  45. <scrnid/>
  46. <acptfromdd/>
  47. <acpttodd/>
  48. <matrcd/>
  49. <bcno/>
  50. </send>
  51. <init/>
  52. <hidden>
  53. <acptdt/>
  54. <execdept>00</execdept>
  55. <eqmt>00</eqmt>
  56. <acptflag>00</acptflag>
  57. <acptfromdd/>
  58. <acpttodd/>
  59. <bcno/>
  60. </hidden>
  61. </root>
  62. </instance>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. fSetInit();
  66. ]]>
  67. </script>
  68. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  69. <script type="javascript" src="../../../lis/commonweb/js/LQZ001.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  74. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  75. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/LB0111"/>
  76. <submission id="TRLQJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tclscdlist"/>
  77. <submission id="TXLQJ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/bcnoinfo"/>
  78. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  79. <submission id="TRLQJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qcacptlist"/>
  80. <submission id="TRLQJ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/tclscdlist"/>
  81. <submission id="TXLQJ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  82. </model>
  83. <script type="javascript">
  84. <![CDATA[
  85. //#################################### 접수, 미접수 공통 #########################################################
  86. //초기화 버튼
  87. function fSetInit(){
  88. model.setValue("/root/send/scrnid", getScreenID()); //바코드프린터 설정 관련 화면아이디조회?
  89. submit("TRLLC90101");
  90. //lzzfMakeBrcdPrntObj("CommAX"); //바코드출력 위해
  91. lzzfMakeBrcdPrntObjHanDo("CommAX"); //한도에서 제공한 OCX로 변경 20080701
  92. //그리드 초기화
  93. model.removeNodeset("/root/main/qcacptlist");
  94. grd_qcAcptList.rebuild();
  95. model.removeNodeset("/root/main/tclscdlist");
  96. grd_tclsCdList.rebuild();
  97. model.removeNodeset("/root/init");
  98. //조회구분 날짜 설정
  99. model.setValue("/root/hidden/acptdt", getCurrentDate());
  100. model.setValue("/root/hidden/acptfromdd", getCurrentDate());
  101. model.setValue("/root/hidden/acpttodd", getCurrentDate());
  102. //미접수탭 선택
  103. fBcnoVisible("F");
  104. model.toggle("case1");
  105. model.setValue("/root/send/codeflag","0000|0701|"); //0000:사용자부서코드, 0707: 장비코드
  106. //cbo_eqmtList.nodeset = "/root/init/LB0701";
  107. //model.copyNode("/root/init/LB0701", "/root/init/LB0701[etc1 = '" + "M" + "']");
  108. //cbo_eqmtList.item = "/root/init/LB0701[etc1 = '" + "M" + "']";
  109. //alert(model.getValue("/root/send/codeflag"));
  110. submit("TRLZZ00101");
  111. model.setValue("/root/send/codeflag","0704|"); //0704: 접수구분
  112. model.setValue("/root/send/basecdid", model.getValue("/root/init/LB0000/nm"));
  113. submit("TRLZZ00101"); //부서에 따른 접수구분 조회
  114. }
  115. //키입력이벤트
  116. function fKeyEvent(){
  117. if(event.keyCode == "13"){
  118. if(event.target == "ipt_bcno"){
  119. model.setValue("/root/hidden/bcno", (ipt_bcno.currentText).toUpperCase());
  120. fGetAcptList();
  121. }
  122. }
  123. }
  124. //장비코드설정
  125. function fSetEqmtCd(){
  126. model.removeNodeset("/root/main/tclscdlist");
  127. grd_tclsCdList.rebuild();
  128. model.removeNodeset("/root/init/LB0701");
  129. var execdept = model.getValue("/root/hidden/execdept");
  130. model.setValue("/root/send/basecdid", execdept); //검사실구분 코드(장비코드앞자리)
  131. model.setValue("/root/send/codeflag","0701|");
  132. model.setValue("/root/hidden/eqmt", '00');
  133. submit("TRLZZ00101");
  134. }
  135. //검사항목리스트 바코드 컬럼 보이기
  136. function fBcnoVisible(ref){
  137. model.resetInstanceNode("/root/send");
  138. model.removeNodeset("/root/main/qcacptlist");
  139. grd_qcAcptList.rebuild();
  140. model.removeNodeset("/root/main/tclscdlist");
  141. grd_tclsCdList.rebuild();
  142. if(ref == "T"){ //접수탭 선택
  143. grd_tclsCdList.colHidden(3) = false; //바코드번호 안보이기
  144. grd_tclsCdList.colHidden(15) = false; //결과상태 안보이기
  145. btn_acpt.attribute("visibility") = "hidden"; //접수버튼 사라지기
  146. btn_reiss.attribute("visibility") = "visible"; //재발행 버튼 보이게
  147. btn_acptcan.attribute("visibility") = "visible"; //접수취소버튼 보이게
  148. model.setValue("/root/hidden/acptflag", "00"); //접수구분 -전체- 로 셋팅
  149. }
  150. else { //미접수탭 선택
  151. grd_tclsCdList.colHidden(3) = true;
  152. grd_tclsCdList.colHidden(15) = true;
  153. btn_acpt.attribute("visibility") = "visible";
  154. btn_reiss.attribute("visibility") = "hidden";
  155. btn_acptcan.attribute("visibility") = "hidden";
  156. model.setValue("/root/hidden/acptflag", "0"); //접수구분 QC로 셋팅
  157. }
  158. model.refresh();
  159. }
  160. //바코드 구분 이미지 표시
  161. function fSetBcnoImg(){
  162. for(i=1; i<=grd_tclsCdList.rows-1; i++){
  163. if(model.getValue("/root/main/tclscdlist[" +i+"]/bcflag")=="0"){ //bcflag = 바코드구분하기 위한 값이 있다면 바코드 구분됨 0 or 1(미접수탭은 0, 접수탭은 1)
  164. grd_tclsCdList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/chkBC0.gif"; //바코드체크이미지 설정
  165. grd_tclsCdList.cellstyle("background-position", i, 1) = "center";
  166. }else if(model.getValue("/root/main/tclscdlist[" +i+"]/bcflag")=="1"){ //bcflag = 바코드구분하기 위한 값
  167. grd_tclsCdList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/chkBC1.gif"; //바코드체크이미지 설정
  168. grd_tclsCdList.cellstyle("background-position", i, 1) = "center";
  169. }
  170. }
  171. grd_tclsCdList.refresh();
  172. }
  173. //검사항목 리스트 바코드 구분 선택(바코드이미지 선택했을때 체크박스 자동 선택 해제기능)
  174. function fSetGrdChoi(){
  175. var row = grd_tclsCdList.row;
  176. var col = grd_tclsCdList.col;
  177. if(grd_tclsCdList.isCell(event.target) && grd_tclsCdList.row >= grd_tclsCdList.fixedRows){
  178. if(col == 1){ //바코드 구분을 선택하였을때
  179. if(model.getValue("/root/main/tclscdlist[" + row + "]/bcflag") == "1"){ //바코드 구분이 선택되어있으면
  180. model.setValue("/root/main/tclscdlist[" + row + "]/bcflag", "0"); //바코드 선택을 해제하고
  181. model.setValue("/root/main/tclscdlist[" + row + "]/chk", "0"); //선택된 체크값도 해제한다
  182. grd_tclsCdList.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC0.gif"; //바코드 구분 이미지를 체크해제 이미지로 변경한다
  183. if(row+1 <= grd_tclsCdList.rows-1){
  184. for(iRow=row+1; ;iRow++){
  185. if(model.getValue("/root/main/tclscdlist[" + iRow + "]/bcflag") == "1" ||model.getValue("/root/main/tclscdlist[" + iRow + "]/bcflag") == "0" || iRow>grd_tclsCdList.rows-1 ){
  186. break; //다음 바코드구분을 만나거나 마지막이라면 끝~
  187. }
  188. model.setValue("/root/main/tclscdlist[" + iRow + "]/chk", "0"); //선택값 체크해제
  189. }
  190. }
  191. }else if(model.getValue("/root/main/tclscdlist[" + row + "]/bcflag") == "0"){ //바코드 구분이 선택되어있지 않다면(해제상태)
  192. model.setValue("/root/main/tclscdlist[" + row + "]/bcflag", "1"); //바코드 선택하고
  193. model.setValue("/root/main/tclscdlist[" + row + "]/chk", "1"); //해제된 체크값도 선택한다
  194. grd_tclsCdList.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC1.gif"; //바코드 구분 이미지를 체크 이미지로 변경한다
  195. if(row+1 <= grd_tclsCdList.rows-1){
  196. for(iRow=row+1; ;iRow++){
  197. if(model.getValue("/root/main/tclscdlist[" + iRow + "]/bcflag") == "1" || model.getValue("/root/main/tclscdlist[" + iRow + "]/bcflag") == "0" || iRow>grd_tclsCdList.rows-1){
  198. break; //다음 바코드구분을 만나거나 마지막이라면 끝~
  199. }
  200. model.setValue("/root/main/tclscdlist[" + iRow + "]/chk", "1"); //선택값 체크해제
  201. }
  202. }
  203. }
  204. }
  205. }
  206. }
  207. //접수, 접수취소된 리스트 항목에서 사라진다~ removenodeset으로.. (사용안함)
  208. function fDelAcptList(){
  209. var kRows = grd_tclsCdList.rows;
  210. var i;
  211. for(i = 1 ; i < kRows ; i ++){
  212. if(model.getValue("/root/main/tclscdlist["+i+"]/chk") == "1"){
  213. model.removenodeset("/root/main/tclscdlist["+i+"]");
  214. i = i -1;
  215. kRows = kRows -1 ;
  216. }
  217. }
  218. model.refresh();
  219. }
  220. //접수, 접수취소된 항목 화면에서 사라지게~~ deleteRow방식 (사용안함.. 바코드 이미지 재설정하는 기능과 합침)
  221. function fSetDelSelect(){
  222. var maxRow = grd_tclsCdList.rows;
  223. for(i=0; i<=maxRow; i++){
  224. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  225. grd_tclsCdList.deleteRow(i, "false")
  226. i = i-1;
  227. maxRow = maxRow -1
  228. }
  229. }
  230. }
  231. //선택된 항목 화면에서 지우고 바코드 이미지 다시 설정
  232. function fSetBcImg(){
  233. //접수된 항목 화면에서 사라지게~~ deleteRow방식
  234. var maxRow = grd_tclsCdList.rows;
  235. for(i=0; i<=maxRow; i++){
  236. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  237. grd_tclsCdList.deleteRow(i, "false")
  238. i = i-1;
  239. maxRow = maxRow -1
  240. }
  241. }
  242. //바코드 구분 비교하여 바코드 이미지 셋팅
  243. for(i=1; i<maxRow; i++){
  244. var j = i-1; //이전 바코드구분값과 비교하기 위한 값 -_-
  245. if(i == 1){ //접수된 항목이 지워지고 난 후 첫번째 항목에 바코드이미지 셋팅
  246. grd_tclsCdList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/chkBC0.gif";
  247. grd_tclsCdList.cellstyle("background-position", i, 1) = "center";
  248. model.setValue("/root/main/tclscdlist[" + i + "]/bcflag", "0");
  249. }else if(model.getValue("/root/main/tclscdlist[" + j +"]/acptbcflag") != model.getValue("/root/main/tclscdlist[" +i+"]/acptbcflag")){ //두번째부터는 이전 바코드 구분과 비교하여 다르다면 바코드 이미지 셋팅
  250. grd_tclsCdList.cellstyle("background-image", i, 1) = "../../../lis/commonweb/images/chkBC0.gif";
  251. grd_tclsCdList.cellstyle("background-position", i, 1) = "center";
  252. model.setValue("/root/main/tclscdlist[" + i + "]/bcflag", "0");
  253. }
  254. }
  255. grd_tclsCdList.refresh();
  256. }
  257. //###################################################### 미접수탭 ######################################################
  258. //미접수탭 검사항목리스트 조회
  259. function fGetTestList(){
  260. model.removeNodeset("/root/main/tclscdlist");
  261. grd_tclsCdList.rebuild();
  262. model.setValue("/root/send/eqmtcd", model.getValue("/root/hidden/eqmt")); //장비코드
  263. model.setValue("/root/send/deptflag", "M");
  264. submit("TRLQJ00101");
  265. //바코드 구분별로 바코드 이미지 셋팅
  266. fSetBcnoImg();
  267. }
  268. //접수 버튼
  269. function fInstAcpt(){
  270. //model.removeNodeset("/root/send/tclscdlist");
  271. if(model.getValue("/root/hidden/acptdt") != getCurrentDate()){
  272. var rtn = messageBox("선택하신 날짜가 현재일과 일치하지 않습니다. \n접수를", "Q003");
  273. if(rtn == "7"){
  274. return;
  275. }
  276. }
  277. if(model.getValue("/root/hidden/acptflag") == "00"){
  278. alert("접수구분을 선택하세요");
  279. return;
  280. }
  281. for(i=1; i<=grd_tclsCdList.rows; i++){
  282. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  283. grd_tclsCdList.addStatus(i, "insert"); //status 를 insert로 변경
  284. }else{
  285. grd_tclsCdList.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
  286. }
  287. }
  288. model.setValue("/root/send/tclscdlist", grd_tclsCdList.getUpdateData());
  289. model.setValue("/root/send/deptflag", "M"); //사용자부서코드
  290. model.setValue("/root/send/acptdt", model.getValue("/root/hidden/acptdt")); //접수일자
  291. model.setValue("/root/send/acptflag", model.getValue("/root/hidden/acptflag")); //접수구분
  292. model.setValue("/root/send/eqmtcd", model.getValue("/root/hidden/eqmt")); //장비코드
  293. model.setValue("/root/send/basecdid", model.getValue("/root/hidden/execdept")); //검사실
  294. //선택항목 접수 및 바코드 정보 조회
  295. submit("TXLQJ00101");
  296. fLisQCBarcodePrint_NewOCX("/root/main/bcnoinfo"); //바코드출력
  297. fSetBcImg(); //체크된 항목 지우고 바코드 이미지 다시 셋팅
  298. }
  299. //########################################### 접수탭 #####################################################
  300. //접수취소 버튼
  301. function fSetAcptCancel(){
  302. for(i=1; i<=grd_tclsCdList.rows; i++){
  303. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  304. if(model.getValue("/root/main/tclscdlist[" + i + "]/rsltstat") != "접수"){ //결과상태가 '-'인것만 취소가능(결과미입력상태)
  305. alert("결과가 저장된 항목이 있어 취소가 불가능합니다!!");
  306. return 0;
  307. }
  308. grd_tclsCdList.addStatus(i, "delete"); //status 를 delete로 변경
  309. }else{
  310. grd_tclsCdList.removeStatus(i , "update"); //선택된 항목이 아니라면 update를 초기화한다
  311. }
  312. }
  313. model.setValue("/root/send/tclscdlist", grd_tclsCdList.getUpdateData());
  314. submit("TXLQJ00102");
  315. //선택된 항목 그리드에서 삭제후 바코드 재생성
  316. //fSetBcImg();
  317. //접수리스트부터 재조회
  318. fGetAcptList();
  319. }
  320. //재발행 버튼
  321. function fSetReIss(){
  322. model.removeNodeset("/root/main/bcnoinfo");
  323. model.makeNode("/root/main/bcnoinfo");
  324. //var count = 0; // 체크된 값을 makeValue 하기 위해 변수 선언
  325. for(i = 1; i<grd_tclsCdList.rows; i++){
  326. if(model.getValue("/root/main/tclscdlist["+i+"]/chk") == "1"){
  327. copyNodeListType("/root/main/bcnoinfo", "/root/main/tclscdlist["+i+"]", "after"); //바코드 재출력위해 선택된 항목 바코드정보 복사
  328. //++count;
  329. /*model.makeValue("/root/main/bcnoinfo["+count+"]/bcno", model.getValue("/root/main/tclscdlist["+i+"]/bcno"));
  330. model.makeValue("/root/main/bcnoinfo["+count+"]/matrcd", model.getValue("/root/main/tclscdlist["+i+"]/matrcd"));
  331. model.makeValue("/root/main/bcnoinfo["+count+"]/levlcd", model.getValue("/root/main/tclscdlist["+i+"]/levlcd"));
  332. model.makeValue("/root/main/bcnoinfo["+count+"]/eqmtnm", model.getValue("/root/main/tclscdlist["+i+"]/eqmtnm"));
  333. model.makeValue("/root/main/bcnoinfo["+count+"]/testroom", model.getValue("/root/main/tclscdlist["+i+"]/sectnm"));
  334. model.makeValue("/root/main/bcnoinfo["+count+"]/acptdt", model.getValue("/root/main/tclscdlist["+i+"]/acptdt"));
  335. */
  336. }
  337. model.refresh();
  338. }
  339. fLisQCBarcodePrint_NewOCX("/root/main/bcnoinfo/tclscdlist"); // 바코드 출력 //경로 바꿔서 makeValue해결했음
  340. }
  341. //접수탭 조회버튼
  342. function fGetAcptList(){
  343. model.removeNodeset("/root/main/tclscdlist");
  344. grd_tclsCdList.rebuild();
  345. model.setValue("/root/send/matrcd" , model.getValue("/root/hidden/matrcd"));
  346. model.setValue("/root/send/acptflag" , model.getValue("/root/hidden/acptflag"));
  347. model.setValue("/root/send/eqmtcd" , model.getValue("/root/hidden/eqmt"));
  348. model.setValue("/root/send/basecdid" , "M"); //검사실
  349. model.setValue("/root/send/acptfromdd" , model.getValue("/root/hidden/acptfromdd"));
  350. model.setValue("/root/send/acpttodd" , model.getValue("/root/hidden/acpttodd"));
  351. model.setValue("/root/send/deptflag" , "M");
  352. model.setValue("/root/send/bcno" , model.getValue("/root/hidden/bcno"));
  353. submit("TRLQJ00102");
  354. //QC 접수리스트 첫번째 항목 검사리스트 조회
  355. grd_qcAcptList.row = 1;
  356. fGetDetlAcptList();
  357. }
  358. //접수된 검사항목 리스트를 조회하기 위해 QC접수 리스트 클릭시
  359. function fGetDetlAcptList(){
  360. model.removeNodeset("/root/main/tclscdlist");
  361. grd_tclsCdList.rebuild();
  362. model.setValue("/root/send/acptdt" , model.getValue("/root/main/qcacptlist["+ grd_qcAcptList.row +"]/acptdt"));
  363. model.setValue("/root/send/eqmtcd" , model.getValue("/root/main/qcacptlist["+ grd_qcAcptList.row +"]/eqmtcd"));
  364. model.setValue("/root/send/deptflag" , "M");
  365. submit("TRLQJ00103");
  366. //바코드 구분별로 바코드 이미지 셋팅
  367. fSetBcnoImg();
  368. model.setFocus("ipt_bcno");
  369. }
  370. ]]>
  371. </script>
  372. </xhtml:head>
  373. <xhtml:body style="font-size:10pt; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  374. <group id="group1" style="left:0px; top:40px; width:1195px; height:744px; font-size:18pt; ">
  375. <datagrid id="grd_tclsCdList" nodeset="/root/main/tclscdlist" caption="검체구분^선택^바코드^물질명^레벨^검사항목^바코드구분^물질코드^lotno^레벨코드^검사코드^물질시작일자^시작일자^acptbcflag^결과상태" colsep="^" colwidth="60, 40, 100, 145, 100, 210, 10, 10, 10, 10, 10, 10, 10, 10, 80" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:345px; top:107px; width:849px; height:621px; ">
  376. <col ref="bcchk" type="output" uncheckimage="1" style="left:20px; top:32px; width:43px; height:23px; "/>
  377. <col checkvalue="1,0" ref="chk" type="checkbox"/>
  378. <col ref="bcno"/>
  379. <col ref="matrnm"/>
  380. <col ref="levlnm"/>
  381. <col ref="testnm"/>
  382. <col ref="bcflag" visibility="hidden"/>
  383. <col ref="matrcd" visibility="hidden"/>
  384. <col ref="lotno" visibility="hidden"/>
  385. <col ref="levlcd" visibility="hidden"/>
  386. <col ref="testcd" visibility="hidden"/>
  387. <col ref="matrfromdd" visibility="hidden"/>
  388. <col ref="testfromdd" visibility="hidden"/>
  389. <col ref="acptbcflag" visibility="hidden"/>
  390. <col ref="rsltstat"/>
  391. <script type="javascript" ev:event="onclick">
  392. <![CDATA[
  393. //바코드 이미지 체크시 자동 체크 기능위한..
  394. fSetGrdChoi();
  395. ]]>
  396. </script>
  397. </datagrid>
  398. <line id="line1" class="line_1" style="x1:0px; y1:102px; x2:340px; y2:102px; "/>
  399. <caption id="caption7" class="tit_2" style="left:5px; top:87px; width:115px; height:13px; ">QC 접수 리스트</caption>
  400. <datagrid id="grd_qcAcptList" nodeset="/root/main/qcacptlist" caption="접수일시^장비명^장비코드" colsep="^" colwidth="120, 150^30" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:107px; width:340px; height:621px; ">
  401. <col ref="acptdt" format="yyyy-mm-dd hh:mm:ss"/>
  402. <col ref="eqmtnm"/>
  403. <col ref="eqmtcd" visibility="hidden"/>
  404. <script type="javascript" ev:event="onclick">
  405. <![CDATA[
  406. if(grd_qcAcptList.isCell(event.target) && grd_qcAcptList.row >= grd_qcAcptList.fixedRows){
  407. fGetDetlAcptList();
  408. }
  409. ]]>
  410. </script>
  411. </datagrid>
  412. <line id="line14" class="line_1" style="x1:345px; y1:102px; x2:1194px; y2:102px; "/>
  413. <caption id="caption3" class="tit_2" style="left:350px; top:87px; width:126px; height:14px; ">향균제항목 리스트</caption>
  414. <group id="group5" style="left:0px; top:10px; width:1195px; height:67px; ">
  415. <switch id="switch1" class="sw_box" style="left:0px; top:21px; width:1195px; height:45px; ">
  416. <case id="case1" style="left:0px; top:0px; width:1195px; height:70px; ">
  417. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:5px; top:5px; width:1185px; height:35px; "/>
  418. <button id="btn_get" class="btn1_letter2" style="left:1119px; top:12px; width:56px; height:22px; ">
  419. <caption>조회</caption>
  420. <script type="javascript" ev:event="onclick">
  421. <![CDATA[
  422. //장비 선택 안하면 뜬다
  423. //if(model.getValue("/root/hidden/eqmt") == "00"){
  424. // messageBox("장비를 ", "C002");
  425. // model.setFocus("cbo_eqmtList");
  426. //}else
  427. fGetTestList(); //검사항목리스트 조회
  428. ]]>
  429. </script>
  430. </button>
  431. <input id="cbo_acptDt" ref="/root/hidden/acptdt" class="input_s_essential" inputtype="date" style="left:109px; top:13px; width:90px; height:19px; "/>
  432. <caption id="caption9" class="search_name" style="left:20px; top:14px; width:86px; height:17px; ">접수일자 :</caption>
  433. <caption id="caption1" class="search_name" style="left:390px; top:14px; width:86px; height:17px; ">접수구분 :</caption>
  434. <caption id="caption2" class="search_name" style="left:215px; top:14px; width:61px; height:17px; ">장비 :</caption>
  435. <select1 id="cbo_acptFlag" ref="/root/hidden/acptflag" class="combo_s_essential" appearance="minimal" style="left:481px; top:13px; width:100px; height:19px; ">
  436. <choices>
  437. <itemset nodeset="/root/init/LB0704">
  438. <label ref="nm"/>
  439. <value ref="cd"/>
  440. </itemset>
  441. </choices>
  442. </select1>
  443. <select1 id="cbo_eqmtList" ref="/root/hidden/eqmt" class="combo_s_essential" appearance="minimal" style="left:280px; top:13px; width:100px; height:19px; ">
  444. <choices>
  445. <itemset nodeset="/root/init/LB0701[etc01 = 'M']">
  446. <label ref="nm"/>
  447. <value ref="cd"/>
  448. </itemset>
  449. </choices>
  450. <script type="javascript" ev:event="xforms-select">
  451. <![CDATA[
  452. fGetTestList();
  453. ]]>
  454. </script>
  455. </select1>
  456. <line id="line2" class="line_4" style="x1:1104px; y1:11px; x2:1104px; y2:33px; "/>
  457. </case>
  458. <case id="case2" selected="true" style="left:0px; top:0px; width:1195px; height:70px; ">
  459. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" style="left:5px; top:5px; width:1185px; height:35px; "/>
  460. <caption id="caption10" class="search_n_b" style="left:201px; top:16px; width:12px; height:17px; ">~</caption>
  461. <input id="ipt_acptFromdd" ref="/root/hidden/acptfromdd" class="input_s_essential" inputtype="date" style="left:109px; top:13px; width:90px; height:19px; "/>
  462. <caption id="caption11" class="search_name" style="left:20px; top:14px; width:86px; height:17px; ">접수일자 :</caption>
  463. <input id="ipt_acptTodd" ref="/root/hidden/acpttodd" class="input_s_essential" inputtype="date" style="left:215px; top:13px; width:90px; height:19px; "/>
  464. <button id="btn_getAcpt" class="btn1_letter2" style="left:1119px; top:12px; width:56px; height:22px; ">
  465. <caption>조회</caption>
  466. <script type="javascript" ev:event="onclick">
  467. <![CDATA[
  468. fGetAcptList();
  469. ]]>
  470. </script>
  471. </button>
  472. <caption id="caption4" class="search_name" style="left:502px; top:14; width:60px; height:17px; ">장비 :</caption>
  473. <caption id="caption5" class="search_name" style="left:859px; top:14px; width:96px; height:17px; ">바코드번호:</caption>
  474. <caption id="caption13" class="search_name" style="left:676px; top:14px; width:86px; height:17px; ">접수구분 :</caption>
  475. <line id="line5" class="line_4" style="x1:1104px; y1:11px; x2:1104px; y2:33px; "/>
  476. <select1 id="cbo_acptEqmtList" ref="/root/hidden/eqmt" class="combo_s_essential" appearance="minimal" style="left:565px; top:13; width:100px; height:19px; ">
  477. <choices>
  478. <itemset nodeset="/root/init/LB0701[etc01 = 'M']">
  479. <label ref="nm"/>
  480. <value ref="cd"/>
  481. </itemset>
  482. </choices>
  483. </select1>
  484. <select1 id="acptFlagCd" ref="/root/hidden/acptflag" class="combo_s_essential" appearance="minimal" style="left:765px; top:13px; width:80px; height:19px; ">
  485. <choices>
  486. <itemset nodeset="/root/init/LB0704">
  487. <label ref="nm"/>
  488. <value ref="cd"/>
  489. </itemset>
  490. </choices>
  491. </select1>
  492. <input id="ipt_bcno" ref="/root/hidden/bcno" class="input_s_button" imemode="disabled" inputtype="button" _chartype="upper" style="left:959px; top:13px; width:120px; height:19px; ">
  493. <script type="javascript" ev:event="onkeypress">
  494. <![CDATA[
  495. fKeyEvent();
  496. ]]>
  497. </script>
  498. </input>
  499. <button id="btn_matrSearch" class="icon_search" visibility="hidden" style="left:1082px; top:14px; width:16px; height:16px; ">
  500. <caption/>
  501. </button>
  502. </case>
  503. </switch>
  504. <button id="button2" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:70px; top:0px; width:70px; height:22px; ">
  505. <caption>접수</caption>
  506. <toggle case="case2" ev:event="onclick"/>
  507. <script type="javascript" ev:event="DOMActivate">
  508. <![CDATA[
  509. fBcnoVisible("T");
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="button3" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:0px; width:70px; height:22px; ">
  514. <caption>미접수</caption>
  515. <toggle case="case1" ev:event="onclick"/>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. fBcnoVisible("F");
  519. ]]>
  520. </script>
  521. </button>
  522. </group>
  523. </group>
  524. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  525. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:126px; height:14px; ">미생물QC접수관리</caption>
  526. </group>
  527. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  528. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  529. <button id="btn_reiss" class="btn4_letter3" style="left:974px; top:3px; width:68px; height:22px; ">
  530. <caption>재발행</caption>
  531. <script type="javascript" ev:event="onclick">
  532. <![CDATA[
  533. var acptcount = 0;
  534. for(i=1; i<=grd_tclsCdList.rows; i++){
  535. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  536. acptcount = acptcount + 1;
  537. }
  538. }
  539. if(acptcount !=0) fSetReIss(); // 선택된 항목이 있다면 고고싱~
  540. else {
  541. messageBox("재발행할 항목이 ", "I004");
  542. }
  543. ]]>
  544. </script>
  545. </button>
  546. <button id="btn_acpt" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  547. <caption>접수</caption>
  548. <script type="javascript" ev:event="onclick">
  549. <![CDATA[
  550. var acptcount = 0;
  551. for(i=1; i<=grd_tclsCdList.rows; i++){
  552. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  553. acptcount = acptcount + 1;
  554. }
  555. }
  556. if(acptcount !=0) fInstAcpt(); // 선택된 항목이 있다면 고고싱~
  557. else {
  558. messageBox("접수할 내역이", "I004");
  559. }
  560. ]]>
  561. </script>
  562. </button>
  563. <button id="btn_acptcan" class="btn4_letter4" style="left:1045px; top:3px; width:80px; height:22px; ">
  564. <caption>접수취소</caption>
  565. <script type="javascript" ev:event="onclick">
  566. <![CDATA[
  567. var acptcount = 0;
  568. for(i=1; i<=grd_tclsCdList.rows; i++){
  569. if(model.getValue("/root/main/tclscdlist[" + i + "]/chk") == "1"){ //선택된 항목
  570. acptcount = acptcount + 1;
  571. }
  572. }
  573. if(acptcount !=0) fSetAcptCancel();
  574. else {
  575. messageBox("접수를 취소할 내역이", "I004");
  576. }
  577. ]]>
  578. </script>
  579. </button>
  580. <button id="btn_cle" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  581. <caption>초기화</caption>
  582. <script type="javascript" ev:event="onclick">
  583. <![CDATA[
  584. window.reload();
  585. ]]>
  586. </script>
  587. </button>
  588. <button id="btn_prtSet" class="btn3_letter5" style="left:0px; top:2px; width:92px; height:22px; ">
  589. <caption>프린터설정</caption>
  590. <script type="javascript" ev:event="onclick">
  591. <![CDATA[
  592. //window.load("SPLLC90100_바코드프린터설정.xrw","modeless","width:327px; height:128;min:hidden;max:hidden;align:center");
  593. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  594. if(count == 0) {
  595. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  596. }
  597. modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  598. ]]>
  599. </script>
  600. </button>
  601. </group>
  602. </xhtml:body>
  603. </xhtml:html>