Commit 8f9bfa49 by yangliang

DNA标签打印添加人员编号的条形码

parent 103cd379
......@@ -161,7 +161,6 @@ public class KhtjController {
int swcjs=0;int swxzcjs=0;int swwcjs=0;
int zjcjs=0;int zjxzcjs=0;int zjwcjs=0;
int hmcjs=0;int hmxzcjs=0;int hmwcjs=0;
int sjcjs=0;int sjxzcjs=0;int sjwcjs=0;
int dnacjs=0;int dnaxzcjs=0;int dnawcjs=0;
for(RstBean aj:rstBeanlist){
aj.setMaxccsjStr(rstBean.getMaxccsjStr());
......@@ -185,9 +184,6 @@ public class KhtjController {
hmcjs=hmcjs+Integer.parseInt(aj.getHmcjs());
hmxzcjs=hmxzcjs+Integer.parseInt(aj.getHmxzcjs());
hmwcjs=hmwcjs+Integer.parseInt(aj.getHmwcjs());
sjcjs=sjcjs+Integer.parseInt(aj.getSjcjs());
sjxzcjs=sjxzcjs+Integer.parseInt(aj.getSjxzcjs());
sjwcjs=sjwcjs+Integer.parseInt(aj.getSjwcjs());
dnacjs=dnacjs+Integer.parseInt(aj.getDnacjs());
dnaxzcjs=dnaxzcjs+Integer.parseInt(aj.getDnaxzcjs());
dnawcjs=dnawcjs+Integer.parseInt(aj.getDnawcjs());
......@@ -220,12 +216,12 @@ public class KhtjController {
rstBean.setDnaxzcjtotal(dnaxzcjs+"");
rstBean.setDnawcjtotal(dnawcjs+"");
*/
rstBean.setZwcjl(jscjl(zycs+"",zwcjs+""));
rstBean.setRxcjl(jscjl(zycs+"",rxcjs+""));
rstBean.setSwcjl(jscjl(zycs+"",swcjs+""));
rstBean.setZjcjl(jscjl(zycs+"",zjcjs+""));
rstBean.setHmcjl(jscjl(zycs+"",hmcjs+""));
rstBean.setDnacjl(jscjl(zycs+"",dnacjs+""));
rstBean.setZwcjl(jscjl(ycs+"",zwcjs+""));
rstBean.setRxcjl(jscjl(ycs+"",rxcjs+""));
rstBean.setSwcjl(jscjl(ycs+"",swcjs+""));
rstBean.setZjcjl(jscjl(ycs+"",zjcjs+""));
rstBean.setHmcjl(jscjl(ycs+"",hmcjs+""));
rstBean.setDnacjl(jscjl(ycs+"",dnacjs+""));
rstBean.setZycs(zycs+"");
rstBean.setYcs(ycs+"");
rstBean.setZwcjs(zwcjs+"");
......
......@@ -45,12 +45,12 @@ public class SequenceServiceImpl extends BaseService<Sequence> implements Sequen
sequence.setId(user.getUnitcode() + tableName + df.format(getSystemDateTime()) + "5001");
}
}else{
maxNo="0001";
sequence.setMaxSeq("0001");
maxNo="5001";
sequence.setMaxSeq("5001");
if (tableName.length() > 10) {
sequence.setId(user.getUnitcode() + tableName.substring(tableName.length() - 10, tableName.length()) + df.format(getSystemDateTime()) + "0001");
sequence.setId(user.getUnitcode() + tableName.substring(tableName.length() - 10, tableName.length()) + df.format(getSystemDateTime()) + "5001");
} else {
sequence.setId(user.getUnitcode() + tableName + df.format(getSystemDateTime()) + "0001");
sequence.setId(user.getUnitcode() + tableName + df.format(getSystemDateTime()) + "5001");
}
}
sequence.setLrr(user.getUsername());
......@@ -66,7 +66,8 @@ public class SequenceServiceImpl extends BaseService<Sequence> implements Sequen
if("43".equals(user.getUnitcode().substring(0,2))) {
maxNo = "5"+("0000"+mxo).substring(("0000"+mxo).length()-3,("0000"+mxo).length());
}else{
maxNo = ("0000"+mxo).substring(("0000"+mxo).length()-4,("0000"+mxo).length());
maxNo = "5"+("0000"+mxo).substring(("0000"+mxo).length()-3,("0000"+mxo).length());
//maxNo = ("0000"+mxo).substring(("0000"+mxo).length()-4,("0000"+mxo).length());
}
sequence.setMaxSeq(maxNo);
sequence.setGxr(user.getUsername());
......
......@@ -17,9 +17,9 @@ mybatis.mapperLocations=classpath:mapper/*.xml
#协同数据源配置
spring.datasource.xzxtdb.url=jdbc:oracle:thin:@47.92.129.99:1600:XTBA
spring.datasource.xzxtdb.username=YTHCJ
spring.datasource.xzxtdb.password=YTHCJ
spring.datasource.xzxtdb.url=jdbc:oracle:thin:@127.0.0.1:1521:orcl
spring.datasource.xzxtdb.username=XZXT
spring.datasource.xzxtdb.password=XZXT
spring.datasource.xzxtdb.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.xzxtdb.type: com.alibaba.druid.pool.DruidDataSource
#指纹数据源配置
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16,6 +16,7 @@
<script type="text/javascript" src="/static/rygl/js/jQuery.print.js"></script>
<script type="text/javascript" src="/static/rygl/js/jquery.jqprint-0.3.js"></script>
<script type="text/javascript" src="/static/rygl/js/jquery-migrate-1.0.0.js"></script>
<script type="text/javascript" src="/static/rygl/js/JsBarcode.all.js"></script>
<style type="text/css">
</style>
<script type="text/javascript">
......@@ -40,6 +41,33 @@
document.getElementById("lrr").innerHTML = window.parent.document.getElementById("lrrXm").value;
document.getElementById("lrsj").innerHTML = window.parent.document.getElementById("lrsj").value;
document.getElementById("lxdm").innerHTML = window.parent.document.getElementById("cjRlxdh").value;
var barcode = document.getElementById('barcode'),
str = window.parent.document.getElementById("rybh").value;
options = {
format:"CODE128",
displayValue:false,
fontSize:18,
height:40
};
JsBarcode(barcode, str, options);
/*
JsBarcode("#svgcode", window.parent.document.getElementById("rybh").value, {
format: "CODE39",//选择要使用的条形码类型
width:3,//设置条之间的宽度
height:40,//高度
//displayValue:true,//是否在条形码下方显示文字
//text:"456",//覆盖显示的文本
fontOptions:"bold italic",//使文字加粗体或变斜体
font:"fantasy",//设置文本的字体
textAlign:"center",//设置文本的水平对齐方式
//textPosition:"top",//设置文本的垂直位置
textMargin:5,//设置条形码和文本之间的间距
fontSize:15,//设置文本的大小
background:"#eee",//设置条形码的背景
lineColor:"#2196f3",//设置条和文本的颜色。
margin:5//设置条形码周围的空白边距
});
*/
}
//格式化字典
......@@ -116,6 +144,10 @@
</tr>
</table>
</div>
<div style="width: 100%;height: 60px;">
<!--<svg id="svgcode"></svg>-->
<img style="margin-top: 10px;margin-left: 10px;" id="barcode"/>
</div>
<div><button id="capture" onclick="jQuery('#jt').print();" style="cursor: pointer;background-color: orange;width: 60px;height: 27px;margin-top: 10px;margin-left: 174px;">打印</button></div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment