修改款号为型号、颜色去掉必填限制
This commit is contained in:
@@ -320,8 +320,8 @@ public class MaterialAction extends BaseAction<MaterialModel>
|
||||
item.put("Id", material.getId());
|
||||
//名称
|
||||
String MaterialName = ((material.getModel().equals(""))?"":""+material.getModel()) +" "+ material.getName()
|
||||
+ ((material.getColor() == null)?"":"("+material.getColor() + ")")
|
||||
+ ((material.getUnit() == null)?"":"("+material.getUnit() + ")");
|
||||
+ ((material.getColor() == null || material.getColor().equals(""))?"":"("+material.getColor() + ")")
|
||||
+ ((material.getUnit() == null || material.getUnit().equals(""))?"":"("+material.getUnit() + ")");
|
||||
item.put("MaterialName", MaterialName);
|
||||
dataArray.add(item);
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
|
||||
WritableSheet sheet = workbook.createSheet("进销存报表", 0);
|
||||
//增加列头
|
||||
int[] colunmWidth = {10,10,10,10,10,15,15,15,15,15};
|
||||
String[] colunmName = {"名称","款号","颜色","单位","单价","上月结存数量","入库数量","出库数量","本月结存数量","结存金额"};
|
||||
String[] colunmName = {"名称","型号","颜色","单位","单价","上月结存数量","入库数量","出库数量","本月结存数量","结存金额"};
|
||||
for(int i = 0 ;i < colunmWidth.length;i ++)
|
||||
{
|
||||
sheet.setColumnView(i,colunmWidth[i]);
|
||||
|
||||
Reference in New Issue
Block a user