123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 보관균주조회.xrw
- * 설 명 : 보관균주조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 -
- * 작 성 일 : 2006.11.24
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <rsltlist>
- <row>
- <a/>
- <b/>
- <c/>
- <d/>
- <e/>
- <f/>
- </row>
- <header/>
- </rsltlist>
- </main>
- <send>
- <bacgrup/>
- <bacnm/>
- <codeflag/>
- <startdt/>
- <enddt/>
- <delkeepkey/>
- </send>
- <init/>
- <hidden>
- <bacgroup>00</bacgroup>
- <bacnm/>
- <temp>
- <rsltlist/>
- </temp>
- <startdt/>
- <enddt/>
- <popupmenu/>
- <bcno/>
- <barcode>
- <barcodeinfo/>
- </barcode>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fSetData();
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
- <submission id="TRLMP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp/rsltlist"/>
- <submission id="TXLMP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetData(){
- //var mDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-730) // 2010-01-05 박강균선생님 오늘 ~ 오늘 로 바꿔달라함
- //model.setValue("/root/hidden/startdt", mDay.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/startdt", getCurrentDate());
- model.setValue("/root/hidden/enddt", getCurrentDate());
-
- model.setValue("/root/send/codeflag", "0209|"); //균주그룹
- submit("TRLZZ00101");
-
- var cols = grd_keepbaclist.cols-grd_keepbaclist.fixedCols;
- var rows = grd_keepbaclist.rows-grd_keepbaclist.fixedRows;
- //alert(cols)
- for( var i = 0; i < cols; i++ ) {
- grd_keepbaclist.removeColumn(false);
- }
-
- for( var i = 0; i < rows; i++ ) {
- grd_keepbaclist.removeRow(false);
- }
-
- model.removeNodeset("/root/main/");
- model.setValue("/root/send/bacgrup", model.getValue("/root/hidden/bacgroup"));
- model.setValue("/root/send/bacnm", model.getValue("/root/hidden/bacnm"));
- model.setValue("/root/send/startdt", model.getValue("/root/hidden/startdt"));
- model.setValue("/root/send/enddt", model.getValue("/root/hidden/enddt"));
- model.setValue("/root/hidden/bcno", "");
-
- model.makeValue("/root/send/scrnid", getScreenID());
- submit("TRLLC90101");
-
- lzzfMakeBrcdPrntObjHanDo("CommAX");
-
- }
-
-
- function fExeExcel(pGridId) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- pGridId.saveExcel(fileName);
- }
-
- }
-
- function fgetkeepbaclist(){
-
- // 그리드 컬럼 초기화
- var cols = grd_keepbaclist.cols-grd_keepbaclist.fixedCols;
- var rows = grd_keepbaclist.rows-grd_keepbaclist.fixedRows;
- //alert(cols)
- for( var i = 0; i < cols; i++ ) {
- grd_keepbaclist.removeColumn(false);
- }
-
- for( var i = 0; i < rows; i++ ) {
- grd_keepbaclist.removeRow(false);
- }
-
- model.removeNodeset("/root/main/");
- model.setValue("/root/send/bacgrup", model.getValue("/root/hidden/bacgroup"));
- model.setValue("/root/send/bacnm", model.getValue("/root/hidden/bacnm"));
- model.setValue("/root/send/startdt", model.getValue("/root/hidden/startdt"));
- model.setValue("/root/send/enddt", model.getValue("/root/hidden/enddt"));
- model.setValue("/root/hidden/bcno", "");
- submit("TRLMP00301", false);
-
- var gridCaption = model.getValue("/root/hidden/temp/rsltlist/header/caption");
-
- if(gridCaption == "") return;
- //ref 정보
- var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
- var gridColRefArray = gridColRef.split("^");
-
- for( var i = 0; i < gridColRefArray.length; i++ ) {
-
- grd_keepbaclist.addColumn("ref:" + gridColRefArray[i] + ";", false);
- }
- grd_keepbaclist.colWidth(1) = 40;
- grd_keepbaclist.colWidth(2) = 100;
- grd_keepbaclist.colWidth(3) = 100;
- grd_keepbaclist.colWidth(4) = 100;
- grd_keepbaclist.colWidth(5) = 200;
- grd_keepbaclist.ellipsis = true;
-
-
- for( i = 6; i < grd_keepbaclist.cols; i++ ) {
-
- grd_keepbaclist.colWidth(i) = 70;
-
-
-
- }
- grd_keepbaclist.caption = gridCaption;
- grd_keepbaclist.colType(1) = "checkbox"; //선택컬럼 체크박스로
-
- var node = instance1.selectSingleNode("/root/main");
- node.replaceChild(instance1.root.hidden.temp.rsltlist, instance1.root.main.rsltlist);
-
- grd_keepbaclist.rebuild();
-
- }
-
- function fdelpopuupmenu(){
-
-
- model.removeNodeset("/root/hidden/popupmenu");
- var i = 1;
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/name" , "▶ 균주삭제");
- model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/func" , "fdelkeep");
-
- if(grd_keepbaclist.isCell(event.target) && grd_keepbaclist.mouseRow >= grd_keepbaclist.fixedrows){
- setPopupMenu("grd_keepbaclist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fdelkeep(){
-
- var retval = window.alert( "보관균을 삭제 하시겠습니까?", "결과관리", "35" );
- if (retval != "6") return; // yes = 6, no = 7
-
-
- model.setValue("/root/send/delkeepkey", model.getValue("/root/main/rsltlist/row["+ grd_keepbaclist.row +"]/keepno"));
-
- //alert(model.getValue("/root/send/delkeepkey"));
- submit("TXLMP00301");
- fgetkeepbaclist();
-
- }
-
- // 그리드 클릭시 바코드번호 조회
- function fclickbcno(){
-
- model.setValue("/root/hidden/bcno", model.getValue("/root/main/rsltlist/row["+ grd_keepbaclist.row +"]/bcno"));
-
- model.refresh();
-
- }
-
-
- // 바코드출력
- function fExeBarcdPrint(){
- // /root/hidden/barcode/barcodeinfo
- var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
- var newrow = 0;
-
- for( var i = 1; i<grd_keepbaclist.rows; i++ ) {
- if(model.getValue("/root/main/rsltlist/row["+i+"]/chk")=="true"){
- newrow ++;
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepstrngrupcd", model.getValue("/root/main/rsltlist/row["+i+"]/keepstrngrupcd"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepno", model.getValue("/root/main/rsltlist/row["+i+"]/keepno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/bcno", model.getValue("/root/main/rsltlist/row["+i+"]/bcno"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/patnm", model.getValue("/root/main/rsltlist/row["+i+"]/patnm"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepdt", model.getValue("/root/main/rsltlist/row["+i+"]/keepdt"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepyy", model.getValue("/root/main/rsltlist/row["+i+"]/keepyy"));
- model.makeValue("/root/hidden/barcode/barcodeinfo["+newrow+"]/keepstrnseqno", model.getValue("/root/main/rsltlist/row["+i+"]/keepstrnseqno"));
- }
- }
-
- if(newrow == "0"){
- alert("출력할 보관균주를 선택 하십시오.");
- return;
- }
-
- //copyNodeType("/root/hidden/barcode/barcodeinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "after");
- if( prtkind == "2" || prtkind == "6" || prtkind == "7"){
- fLisMicroKeepBacBarcodePrint2("/root/hidden/barcode/barcodeinfo"); // sato
- }else{
- fLisMicroKeepBacBarcodePrint("/root/hidden/barcode/barcodeinfo"); // zebra
- }
-
- model.resetInstanceNode("/root/hidden/barcode/barcodeinfo");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:224px; height:14px; ">보관균주조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fgetkeepbaclist();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <caption id="caption4" class="search_name" style="left:15px; top:9px; width:80px; height:17px; ">균그룹 :</caption>
- <select1 id="combo1" ref="/root/hidden/bacgroup" class="combo_search" appearance="minimal" style="left:98px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0209">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" visibility="hidden" style="left:279px; top:9px; width:65px; height:17px; ">균명 :</caption>
- <input id="input3" ref="/root/hidden/bacnm" visibility="hidden" style="left:347px; top:8px; width:123px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:504px; top:9px; width:86px; height:17px; ">조회일시 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">보관균주 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeExcel(grd_keepbaclist);
- ]]>
- </script>
- </button>
- <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; ">
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fdelpopuupmenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseout">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fclickbcno();
- ]]>
- </script>
- </datagrid>
- <input id="input2" ref="/root/hidden/enddt" class="input_default" inputtype="date" rclass="input_search" style="left:710px; top:18px; width:95px; height:19px; "/>
- <caption id="caption7" class="search_no_b" style="left:695px; top:18px; width:15px; height:17px; ">~</caption>
- <input id="input1" ref="/root/hidden/startdt" class="input_default" inputtype="date" rclass="input_search" style="left:595px; top:18px; width:95px; height:19px; "/>
- <input id="input4" ref="/root/hidden/bcno" style="left:260px; top:51px; width:100px; height:19px; "/>
- <caption id="caption3" style="left:190px; top:53px; width:70px; height:20px; ">바코드번호:</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetData();
- ]]>
- </script>
- </button>
- <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="button26" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
- <caption>프린터설정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //window.load("SPLLC90100_바코드프린터설정.xrw","modeless","SPLLC90100_바코드프린터설정","width:340px; height:180;min:hidden;max:hidden;align:center");
- var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
-
- if(count == 0) {
- model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- }
- modal("SPLLC90100" , "","","","","/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
- //window.load("SPLLC90100_바코드프린터설정.xrw","modeless","width:327px; height:128;min:hidden;max:hidden;align:center");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter7" style="left:1008px; top:3px; width:116px; height:22px; ">
- <caption>균주바코드출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeBarcdPrint();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|