SMLMP00300_보관균주조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 보관균주조회.xrw
  4. * 설 명 : 보관균주조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 -
  7. * 작 성 일 : 2006.11.24
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>Untitle</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <rsltlist>
  20. <row>
  21. <a/>
  22. <b/>
  23. <c/>
  24. <d/>
  25. <e/>
  26. <f/>
  27. </row>
  28. <header/>
  29. </rsltlist>
  30. </main>
  31. <send>
  32. <bacgrup/>
  33. <bacnm/>
  34. <codeflag/>
  35. <startdt/>
  36. <enddt/>
  37. <delkeepkey/>
  38. </send>
  39. <init/>
  40. <hidden>
  41. <bacgroup>00</bacgroup>
  42. <bacnm/>
  43. <temp>
  44. <rsltlist/>
  45. </temp>
  46. <startdt/>
  47. <enddt/>
  48. <popupmenu/>
  49. <bcno/>
  50. <barcode>
  51. <barcodeinfo/>
  52. </barcode>
  53. </hidden>
  54. </root>
  55. </instance>
  56. <script type="javascript" ev:event="xforms-model-construct-done">
  57. <![CDATA[
  58. fSetData();
  59. ]]>
  60. </script>
  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="../../../com/commonweb/js/numericHelper.js"/>
  66. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  67. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  68. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  69. <submission id="TRLMP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp/rsltlist"/>
  70. <submission id="TXLMP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  71. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fSetData(){
  76. //var mDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-730) // 2010-01-05 박강균선생님 오늘 ~ 오늘 로 바꿔달라함
  77. //model.setValue("/root/hidden/startdt", mDay.getDateFormat("YYYYMMDD"));
  78. model.setValue("/root/hidden/startdt", getCurrentDate());
  79. model.setValue("/root/hidden/enddt", getCurrentDate());
  80. model.setValue("/root/send/codeflag", "0209|"); //균주그룹
  81. submit("TRLZZ00101");
  82. var cols = grd_keepbaclist.cols-grd_keepbaclist.fixedCols;
  83. var rows = grd_keepbaclist.rows-grd_keepbaclist.fixedRows;
  84. //alert(cols)
  85. for( var i = 0; i < cols; i++ ) {
  86. grd_keepbaclist.removeColumn(false);
  87. }
  88. for( var i = 0; i < rows; i++ ) {
  89. grd_keepbaclist.removeRow(false);
  90. }
  91. model.removeNodeset("/root/main/");
  92. model.setValue("/root/send/bacgrup", model.getValue("/root/hidden/bacgroup"));
  93. model.setValue("/root/send/bacnm", model.getValue("/root/hidden/bacnm"));
  94. model.setValue("/root/send/startdt", model.getValue("/root/hidden/startdt"));
  95. model.setValue("/root/send/enddt", model.getValue("/root/hidden/enddt"));
  96. model.setValue("/root/hidden/bcno", "");
  97. model.makeValue("/root/send/scrnid", getScreenID());
  98. submit("TRLLC90101");
  99. lzzfMakeBrcdPrntObjHanDo("CommAX");
  100. }
  101. function fExeExcel(pGridId) {
  102. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  103. if (fileName != "")
  104. {
  105. pGridId.saveExcel(fileName);
  106. }
  107. }
  108. function fgetkeepbaclist(){
  109. // 그리드 컬럼 초기화
  110. var cols = grd_keepbaclist.cols-grd_keepbaclist.fixedCols;
  111. var rows = grd_keepbaclist.rows-grd_keepbaclist.fixedRows;
  112. //alert(cols)
  113. for( var i = 0; i < cols; i++ ) {
  114. grd_keepbaclist.removeColumn(false);
  115. }
  116. for( var i = 0; i < rows; i++ ) {
  117. grd_keepbaclist.removeRow(false);
  118. }
  119. model.removeNodeset("/root/main/");
  120. model.setValue("/root/send/bacgrup", model.getValue("/root/hidden/bacgroup"));
  121. model.setValue("/root/send/bacnm", model.getValue("/root/hidden/bacnm"));
  122. model.setValue("/root/send/startdt", model.getValue("/root/hidden/startdt"));
  123. model.setValue("/root/send/enddt", model.getValue("/root/hidden/enddt"));
  124. model.setValue("/root/hidden/bcno", "");
  125. submit("TRLMP00301", false);
  126. var gridCaption = model.getValue("/root/hidden/temp/rsltlist/header/caption");
  127. if(gridCaption == "") return;
  128. //ref 정보
  129. var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
  130. var gridColRefArray = gridColRef.split("^");
  131. for( var i = 0; i < gridColRefArray.length; i++ ) {
  132. grd_keepbaclist.addColumn("ref:" + gridColRefArray[i] + ";", false);
  133. }
  134. grd_keepbaclist.colWidth(1) = 40;
  135. grd_keepbaclist.colWidth(2) = 100;
  136. grd_keepbaclist.colWidth(3) = 100;
  137. grd_keepbaclist.colWidth(4) = 100;
  138. grd_keepbaclist.colWidth(5) = 200;
  139. grd_keepbaclist.ellipsis = true;
  140. for( i = 6; i < grd_keepbaclist.cols; i++ ) {
  141. grd_keepbaclist.colWidth(i) = 70;
  142. }
  143. grd_keepbaclist.caption = gridCaption;
  144. grd_keepbaclist.colType(1) = "checkbox"; //선택컬럼 체크박스로
  145. var node = instance1.selectSingleNode("/root/main");
  146. node.replaceChild(instance1.root.hidden.temp.rsltlist, instance1.root.main.rsltlist);
  147. grd_keepbaclist.rebuild();
  148. }
  149. function fdelpopuupmenu(){
  150. model.removeNodeset("/root/hidden/popupmenu");
  151. var i = 1;
  152. if(event.button == 3){ // 라이트클릭 메뉴만들기...
  153. model.makeNode("/root/hidden/popupmenu/grid");
  154. model.makeNode("/root/hidden/popupmenu/grid/item");
  155. model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/name" , "▶ 균주삭제");
  156. model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/func" , "fdelkeep");
  157. if(grd_keepbaclist.isCell(event.target) && grd_keepbaclist.mouseRow >= grd_keepbaclist.fixedrows){
  158. setPopupMenu("grd_keepbaclist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  159. }else{
  160. window.setPopupMenu(false);
  161. }
  162. }
  163. }
  164. function fdelkeep(){
  165. var retval = window.alert( "보관균을 삭제 하시겠습니까?", "결과관리", "35" );
  166. if (retval != "6") return; // yes = 6, no = 7
  167. model.setValue("/root/send/delkeepkey", model.getValue("/root/main/rsltlist/row["+ grd_keepbaclist.row +"]/keepno"));
  168. //alert(model.getValue("/root/send/delkeepkey"));
  169. submit("TXLMP00301");
  170. fgetkeepbaclist();
  171. }
  172. // 그리드 클릭시 바코드번호 조회
  173. function fclickbcno(){
  174. model.setValue("/root/hidden/bcno", model.getValue("/root/main/rsltlist/row["+ grd_keepbaclist.row +"]/bcno"));
  175. model.refresh();
  176. }
  177. // 바코드출력
  178. function fExeBarcdPrint(){
  179. // /root/hidden/barcode/barcodeinfo
  180. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  181. var newrow = 0;
  182. for( var i = 1; i<grd_keepbaclist.rows; i++ ) {
  183. if(model.getValue("/root/main/rsltlist/row["+i+"]/chk")=="true"){
  184. newrow ++;
  185. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepstrngrupcd", model.getValue("/root/main/rsltlist/row["+i+"]/keepstrngrupcd"));
  186. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepno", model.getValue("/root/main/rsltlist/row["+i+"]/keepno"));
  187. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/bcno", model.getValue("/root/main/rsltlist/row["+i+"]/bcno"));
  188. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/patnm", model.getValue("/root/main/rsltlist/row["+i+"]/patnm"));
  189. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepdt", model.getValue("/root/main/rsltlist/row["+i+"]/keepdt"));
  190. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepyy", model.getValue("/root/main/rsltlist/row["+i+"]/keepyy"));
  191. model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepstrnseqno", model.getValue("/root/main/rsltlist/row["+i+"]/keepstrnseqno"));
  192. }
  193. }
  194. if(newrow == "0"){
  195. alert("출력할 보관균주를 선택 하십시오.");
  196. return;
  197. }
  198. //copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
  199. if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
  200. fLisMicroKeepBacBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // sato
  201. }else{
  202. fLisMicroKeepBacBarcodePrint("/root/hidden/barcode/barcodeinfo"); // zebra
  203. }
  204. model.resetInstanceNode("/root/hidden/barcode/barcodeinfo");
  205. }
  206. ]]>
  207. </script>
  208. </xhtml:head>
  209. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  210. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  211. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:224px; height:14px; ">보관균주조회</caption>
  212. </group>
  213. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  214. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  215. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  216. <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  217. <caption>조회</caption>
  218. <script type="javascript" ev:event="onclick">
  219. <![CDATA[
  220. fgetkeepbaclist();
  221. ]]>
  222. </script>
  223. </button>
  224. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  225. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:80px; height:17px; ">균그룹 :</caption>
  226. <select1 id="combo1" ref="/root/hidden/bacgroup" class="combo_search" appearance="minimal" style="left:98px; top:8px; width:150px; height:19px; ">
  227. <choices>
  228. <itemset nodeset="/root/init/LB0209">
  229. <label ref="nm"/>
  230. <value ref="cd"/>
  231. </itemset>
  232. </choices>
  233. </select1>
  234. <caption id="caption5" class="search_name" visibility="hidden" style="left:279px; top:9px; width:65px; height:17px; ">균명 :</caption>
  235. <input id="input3" ref="/root/hidden/bacnm" visibility="hidden" style="left:347px; top:8px; width:123px; height:19px; "/>
  236. <caption id="caption2" class="search_name" style="left:504px; top:9px; width:86px; height:17px; ">조회일시 :</caption>
  237. </group>
  238. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">보관균주 목록</caption>
  239. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  240. <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
  241. <caption>엑셀</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. fExeExcel(grd_keepbaclist);
  245. ]]>
  246. </script>
  247. </button>
  248. <datagrid id="grd_keepbaclist" nodeset="/root/main/rsltlist/row" backcoloralternate="transparent" colsep="^" dataheight="25" fixedcols="0" mergecellsfixedcols="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:1194px; height:669px; ">
  249. <script type="javascript" ev:event="onmousedown">
  250. <![CDATA[
  251. fdelpopuupmenu();
  252. ]]>
  253. </script>
  254. <script type="javascript" ev:event="onmouseout">
  255. <![CDATA[
  256. window.setPopupMenu(false);
  257. ]]>
  258. </script>
  259. <script type="javascript" ev:event="onclick">
  260. <![CDATA[
  261. fclickbcno();
  262. ]]>
  263. </script>
  264. </datagrid>
  265. <input id="input2" ref="/root/hidden/enddt" class="input_default" inputtype="date" rclass="input_search" style="left:710px; top:18px; width:95px; height:19px; "/>
  266. <caption id="caption7" class="search_no_b" style="left:695px; top:18px; width:15px; height:17px; ">~</caption>
  267. <input id="input1" ref="/root/hidden/startdt" class="input_default" inputtype="date" rclass="input_search" style="left:595px; top:18px; width:95px; height:19px; "/>
  268. <input id="input4" ref="/root/hidden/bcno" style="left:260px; top:51px; width:100px; height:19px; "/>
  269. <caption id="caption3" style="left:190px; top:53px; width:70px; height:20px; ">바코드번호:</caption>
  270. </group>
  271. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  272. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  273. <caption>초기화</caption>
  274. <script type="javascript" ev:event="onclick">
  275. <![CDATA[
  276. fSetData();
  277. ]]>
  278. </script>
  279. </button>
  280. <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  281. <button id="button26" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  282. <caption>프린터설정</caption>
  283. <script type="javascript" ev:event="onclick">
  284. <![CDATA[
  285. //window.load("SPLLC90100_바코드프린터설정.xrw","modeless","SPLLC90100_바코드프린터설정","width:340px; height:180;min:hidden;max:hidden;align:center");
  286. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  287. if(count == 0) {
  288. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  289. }
  290. modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  291. //window.load("SPLLC90100_바코드프린터설정.xrw","modeless","width:327px; height:128;min:hidden;max:hidden;align:center");
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="button3" class="btn4_letter7" style="left:1008px; top:3px; width:116px; height:22px; ">
  296. <caption>균주바코드출력</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fExeBarcdPrint();
  300. ]]>
  301. </script>
  302. </button>
  303. </group>
  304. </xhtml:body>
  305. </xhtml:html>