打印格式调整

master
e 2019-02-21 08:37:56 +08:00
parent b2106bddda
commit 0b671a5a79
5 changed files with 65 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@ import com.zzjee.wm.page.WmNoticeImpPage;
import com.zzjee.wm.service.WmImNoticeHServiceI; import com.zzjee.wm.service.WmImNoticeHServiceI;
import com.zzjee.wm.page.WmImNoticeHPage; import com.zzjee.wm.page.WmImNoticeHPage;
import java.text.DecimalFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
@ -193,6 +194,8 @@ public class WmImNoticeHController extends BaseController {
//查询-产品 //查询-产品
Double tomsum = 0.00; Double tomsum = 0.00;
Double noticesum = 0.00; Double noticesum = 0.00;
DecimalFormat dfsum=new DecimalFormat(".##");
List<WmImNoticeIEntity> wmImNoticeIEntitynewList = new ArrayList<>(); List<WmImNoticeIEntity> wmImNoticeIEntitynewList = new ArrayList<>();
String hql0 = "from WmImNoticeIEntity where 1 = 1 AND iM_NOTICE_ID = ? "; String hql0 = "from WmImNoticeIEntity where 1 = 1 AND iM_NOTICE_ID = ? ";
try { try {
@ -217,6 +220,23 @@ public class WmImNoticeHController extends BaseController {
}catch (Exception e){ }catch (Exception e){
} }
try{
wmImNoticeIEntity.setGoodsFvol(dfsum.format(Double.parseDouble(wmImNoticeIEntity.getGoodsFvol())));
}catch (Exception e){
}
try{
wmImNoticeIEntity.setGoodsWeight(dfsum.format(Double.parseDouble(wmImNoticeIEntity.getGoodsWeight())));
}catch (Exception e){
}
wmImNoticeIEntitynewList.add(wmImNoticeIEntity); wmImNoticeIEntitynewList.add(wmImNoticeIEntity);
} }

View File

@ -118,7 +118,9 @@ public class WmImNoticeIEntity implements java.io.Serializable {
@Excel(name="商品条码") @Excel(name="商品条码")
private java.lang.String barCode; private java.lang.String barCode;
private java.lang.String shpGuiGe; private java.lang.String shpGuiGe;
/**保质期*/
// @Excel(name="保质期")
private java.lang.String bzhiQi;
/** /**
*: java.lang.String *: java.lang.String
*@return: java.lang.String *@return: java.lang.String
@ -679,4 +681,17 @@ public class WmImNoticeIEntity implements java.io.Serializable {
public void setShpGuiGe(java.lang.String shpGuiGe){ public void setShpGuiGe(java.lang.String shpGuiGe){
this.shpGuiGe = shpGuiGe; this.shpGuiGe = shpGuiGe;
} }
@Column(name ="BZHI_QI",nullable=true,length=32)
public java.lang.String getBzhiQi(){
return this.bzhiQi;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setBzhiQi(java.lang.String bzhiQi){
this.bzhiQi = bzhiQi;
}
} }

View File

@ -101,6 +101,7 @@ public class WvGiNoticeEntity implements java.io.Serializable {
/**任务接收人*/ /**任务接收人*/
@Excel(name="任务接收人") @Excel(name="任务接收人")
private java.lang.String assignTo; private java.lang.String assignTo;
private java.lang.String shpGuiGe;
/** /**
*: java.util.Date *: java.util.Date
@ -491,4 +492,22 @@ public class WvGiNoticeEntity implements java.io.Serializable {
public void setOmBeiZhu(String omBeiZhu){ public void setOmBeiZhu(String omBeiZhu){
this.omBeiZhu = omBeiZhu; this.omBeiZhu = omBeiZhu;
} }
/**
*: java.lang.String
*@return: java.lang.String
*/
@Column(name ="SHP_GUI_GE",nullable=true,length=32)
public java.lang.String getShpGuiGe(){
return this.shpGuiGe;
}
/**
*: java.lang.String
*@param: java.lang.String
*/
public void setShpGuiGe(java.lang.String shpGuiGe){
this.shpGuiGe = shpGuiGe;
}
} }

View File

@ -147,7 +147,7 @@ function printview(){
<tr height=33 style='mso-height-source:userset;height:25.05pt'> <tr height=33 style='mso-height-source:userset;height:25.05pt'>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>最近上架</td> <td class=xl65 style='border:1.0pt solid black;text-align: center'>69码</td>
<%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>--%> <%--<td class=xl65 style='border:1.0pt solid black;text-align: center'>商品编码</td>--%>
<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>商品</td> <td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>商品</td>
@ -169,7 +169,7 @@ function printview(){
<c:forEach items="${wmImNoticeIList}" var="poVal" varStatus="stuts"> <c:forEach items="${wmImNoticeIList}" var="poVal" varStatus="stuts">
<tr height=33 style='mso-height-source:userset;height:50px'> <tr height=33 style='mso-height-source:userset;height:50px'>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.binPlan } </td> <td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.barCode } </td>
<%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsCode }</td>--%> <%--<td height=33 class=xl65 style='height:25.05pt;border:1.0pt solid black;text-align: center'>${poVal.goodsCode }</td>--%>
<td class=xl65 style='border:1.0pt solid black;text-align: center;word-break:break-all;'><span style='word-break:break-all;width: auto;font-size: 14pt'>${poVal.goodsName }</span></td> <td class=xl65 style='border:1.0pt solid black;text-align: center;word-break:break-all;'><span style='word-break:break-all;width: auto;font-size: 14pt'>${poVal.goodsName }</span></td>
<td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsUnit }</td> <td class=xl65 style='border:1.0pt solid black;text-align: center'>${poVal.goodsUnit }</td>