Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
06fff596
"0283-Move-Zeroes/vscode:/vscode.git/clone" did not exist on "5871d9af0920d304c40c4c23c9389c14ab10ae1f"
Commit
06fff596
authored
Jul 05, 2017
by
季圣华
Browse files
给商品增加“规格”字段
parent
92dc39c7
Changes
10
Show whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/action/materials/DepotItemAction.java
View file @
06fff596
...
@@ -153,8 +153,9 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
...
@@ -153,8 +153,9 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
item
.
put
(
"Id"
,
depotItem
.
getId
());
item
.
put
(
"Id"
,
depotItem
.
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
String
MaterialName
=
((
depotItem
.
getMaterialId
().
getModel
().
equals
(
""
))?
""
:
""
+
depotItem
.
getMaterialId
().
getModel
())+
" "
+
depotItem
.
getMaterialId
().
getName
()
String
MaterialName
=
((
depotItem
.
getMaterialId
().
getModel
().
equals
(
""
))?
""
:
""
+
depotItem
.
getMaterialId
().
getModel
())+
" "
+
depotItem
.
getMaterialId
().
getName
()
+((
depotItem
.
getMaterialId
().
getColor
()
==
null
)?
"("
:
"("
+
depotItem
.
getMaterialId
().
getColor
())
+
")"
+((
depotItem
.
getMaterialId
().
getStandard
()
==
null
||
depotItem
.
getMaterialId
().
getStandard
().
equals
(
""
))?
""
:
"("
+
depotItem
.
getMaterialId
().
getStandard
()
+
")"
)
+((
depotItem
.
getMaterialId
().
getUnit
()
==
null
)?
"("
:
"("
+
depotItem
.
getMaterialId
().
getUnit
())
+
")"
;
+((
depotItem
.
getMaterialId
().
getColor
()
==
null
||
depotItem
.
getMaterialId
().
getColor
().
equals
(
""
))?
""
:
"("
+
depotItem
.
getMaterialId
().
getColor
()
+
")"
)
+((
depotItem
.
getMaterialId
().
getUnit
()
==
null
||
depotItem
.
getMaterialId
().
getUnit
().
equals
(
""
))?
""
:
"("
+
depotItem
.
getMaterialId
().
getUnit
()
+
")"
);
item
.
put
(
"MaterialName"
,
MaterialName
);
item
.
put
(
"MaterialName"
,
MaterialName
);
item
.
put
(
"OperNumber"
,
depotItem
.
getOperNumber
());
item
.
put
(
"OperNumber"
,
depotItem
.
getOperNumber
());
item
.
put
(
"UnitPrice"
,
depotItem
.
getUnitPrice
());
item
.
put
(
"UnitPrice"
,
depotItem
.
getUnitPrice
());
...
@@ -210,6 +211,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
...
@@ -210,6 +211,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialStandard"
,
depotItem
.
getMaterialId
().
getStandard
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"prevSum"
,
prevSum
);
item
.
put
(
"prevSum"
,
prevSum
);
...
@@ -266,6 +268,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
...
@@ -266,6 +268,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialStandard"
,
depotItem
.
getMaterialId
().
getStandard
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"InSum"
,
InSum
);
item
.
put
(
"InSum"
,
InSum
);
...
@@ -324,6 +327,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
...
@@ -324,6 +327,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialStandard"
,
depotItem
.
getMaterialId
().
getStandard
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"OutSum"
,
OutSumRetail
+
OutSum
);
item
.
put
(
"OutSum"
,
OutSumRetail
+
OutSum
);
...
@@ -418,6 +422,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
...
@@ -418,6 +422,7 @@ public class DepotItemAction extends BaseAction<DepotItemModel>
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialId"
,
depotItem
.
getMaterialId
()==
null
?
""
:
depotItem
.
getMaterialId
().
getId
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialName"
,
depotItem
.
getMaterialId
().
getName
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialModel"
,
depotItem
.
getMaterialId
().
getModel
());
item
.
put
(
"MaterialStandard"
,
depotItem
.
getMaterialId
().
getStandard
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialColor"
,
depotItem
.
getMaterialId
().
getColor
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"MaterialUnit"
,
depotItem
.
getMaterialId
().
getUnit
());
item
.
put
(
"prevSum"
,
prevSum
);
item
.
put
(
"prevSum"
,
prevSum
);
...
...
src/main/java/com/jsh/action/materials/MaterialAction.java
View file @
06fff596
...
@@ -43,6 +43,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
...
@@ -43,6 +43,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
material
.
setName
(
model
.
getName
());
material
.
setName
(
model
.
getName
());
material
.
setModel
(
model
.
getModel
());
material
.
setModel
(
model
.
getModel
());
material
.
setStandard
(
model
.
getStandard
());
material
.
setColor
(
model
.
getColor
());
material
.
setColor
(
model
.
getColor
());
material
.
setUnit
(
model
.
getUnit
());
material
.
setUnit
(
model
.
getUnit
());
material
.
setRetailPrice
(
model
.
getRetailPrice
());
material
.
setRetailPrice
(
model
.
getRetailPrice
());
...
@@ -124,6 +125,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
...
@@ -124,6 +125,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
material
.
setName
(
model
.
getName
());
material
.
setName
(
model
.
getName
());
material
.
setModel
(
model
.
getModel
());
material
.
setModel
(
model
.
getModel
());
material
.
setStandard
(
model
.
getStandard
());
material
.
setColor
(
model
.
getColor
());
material
.
setColor
(
model
.
getColor
());
material
.
setUnit
(
model
.
getUnit
());
material
.
setUnit
(
model
.
getUnit
());
material
.
setRetailPrice
(
model
.
getRetailPrice
());
material
.
setRetailPrice
(
model
.
getRetailPrice
());
...
@@ -223,6 +225,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
...
@@ -223,6 +225,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
item
.
put
(
"Id"
,
material
.
getId
());
item
.
put
(
"Id"
,
material
.
getId
());
item
.
put
(
"Name"
,
material
.
getName
());
item
.
put
(
"Name"
,
material
.
getName
());
item
.
put
(
"Model"
,
material
.
getModel
());
item
.
put
(
"Model"
,
material
.
getModel
());
item
.
put
(
"Standard"
,
material
.
getStandard
());
item
.
put
(
"Color"
,
material
.
getColor
());
item
.
put
(
"Color"
,
material
.
getColor
());
item
.
put
(
"Unit"
,
material
.
getUnit
());
item
.
put
(
"Unit"
,
material
.
getUnit
());
item
.
put
(
"RetailPrice"
,
material
.
getRetailPrice
());
item
.
put
(
"RetailPrice"
,
material
.
getRetailPrice
());
...
@@ -271,6 +274,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
...
@@ -271,6 +274,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
item
.
put
(
"Id"
,
material
.
getId
());
item
.
put
(
"Id"
,
material
.
getId
());
item
.
put
(
"Name"
,
material
.
getName
());
item
.
put
(
"Name"
,
material
.
getName
());
item
.
put
(
"Model"
,
material
.
getModel
());
item
.
put
(
"Model"
,
material
.
getModel
());
item
.
put
(
"Standard"
,
material
.
getStandard
());
item
.
put
(
"Color"
,
material
.
getColor
());
item
.
put
(
"Color"
,
material
.
getColor
());
item
.
put
(
"Unit"
,
material
.
getUnit
());
item
.
put
(
"Unit"
,
material
.
getUnit
());
item
.
put
(
"RetailPrice"
,
material
.
getRetailPrice
());
item
.
put
(
"RetailPrice"
,
material
.
getRetailPrice
());
...
@@ -320,6 +324,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
...
@@ -320,6 +324,7 @@ public class MaterialAction extends BaseAction<MaterialModel>
item
.
put
(
"Id"
,
material
.
getId
());
item
.
put
(
"Id"
,
material
.
getId
());
//名称
//名称
String
MaterialName
=
((
material
.
getModel
().
equals
(
""
))?
""
:
""
+
material
.
getModel
())
+
" "
+
material
.
getName
()
String
MaterialName
=
((
material
.
getModel
().
equals
(
""
))?
""
:
""
+
material
.
getModel
())
+
" "
+
material
.
getName
()
+
((
material
.
getStandard
()
==
null
||
material
.
getStandard
().
equals
(
""
))?
""
:
"("
+
material
.
getStandard
()
+
")"
)
+
((
material
.
getColor
()
==
null
||
material
.
getColor
().
equals
(
""
))?
""
:
"("
+
material
.
getColor
()
+
")"
)
+
((
material
.
getColor
()
==
null
||
material
.
getColor
().
equals
(
""
))?
""
:
"("
+
material
.
getColor
()
+
")"
)
+
((
material
.
getUnit
()
==
null
||
material
.
getUnit
().
equals
(
""
))?
""
:
"("
+
material
.
getUnit
()
+
")"
);
+
((
material
.
getUnit
()
==
null
||
material
.
getUnit
().
equals
(
""
))?
""
:
"("
+
material
.
getUnit
()
+
")"
);
item
.
put
(
"MaterialName"
,
MaterialName
);
item
.
put
(
"MaterialName"
,
MaterialName
);
...
...
src/main/java/com/jsh/model/po/Material.java
View file @
06fff596
...
@@ -7,6 +7,7 @@ public class Material implements java.io.Serializable
...
@@ -7,6 +7,7 @@ public class Material implements java.io.Serializable
private
MaterialCategory
materialCategory
;
private
MaterialCategory
materialCategory
;
private
String
Name
;
private
String
Name
;
private
String
Model
;
private
String
Model
;
private
String
Standard
;
private
String
Color
;
private
String
Color
;
private
String
Unit
;
private
String
Unit
;
private
Double
RetailPrice
;
private
Double
RetailPrice
;
...
@@ -26,13 +27,14 @@ public class Material implements java.io.Serializable
...
@@ -26,13 +27,14 @@ public class Material implements java.io.Serializable
}
}
public
Material
(
MaterialCategory
materialCategory
,
String
name
,
public
Material
(
MaterialCategory
materialCategory
,
String
name
,
String
model
,
String
color
,
String
unit
,
String
remark
,
String
model
,
String
standard
,
String
color
,
String
unit
,
String
remark
,
Double
retailPrice
,
Double
lowPrice
,
Double
presetPriceOne
,
Double
presetPriceTwo
)
Double
retailPrice
,
Double
lowPrice
,
Double
presetPriceOne
,
Double
presetPriceTwo
)
{
{
super
();
super
();
this
.
materialCategory
=
materialCategory
;
this
.
materialCategory
=
materialCategory
;
Name
=
name
;
Name
=
name
;
Model
=
model
;
Model
=
model
;
Standard
=
standard
;
Color
=
color
;
Color
=
color
;
Unit
=
unit
;
Unit
=
unit
;
RetailPrice
=
retailPrice
;
RetailPrice
=
retailPrice
;
...
@@ -82,6 +84,14 @@ public class Material implements java.io.Serializable
...
@@ -82,6 +84,14 @@ public class Material implements java.io.Serializable
Model
=
model
;
Model
=
model
;
}
}
public
String
getStandard
()
{
return
Standard
;
}
public
void
setStandard
(
String
standard
)
{
Standard
=
standard
;
}
public
String
getColor
()
public
String
getColor
()
{
{
return
Color
;
return
Color
;
...
...
src/main/java/com/jsh/model/vo/materials/MaterialModel.java
View file @
06fff596
...
@@ -18,6 +18,11 @@ public class MaterialModel implements Serializable
...
@@ -18,6 +18,11 @@ public class MaterialModel implements Serializable
*/
*/
private
String
Model
=
""
;
private
String
Model
=
""
;
/**
* 规格
*/
private
String
Standard
=
""
;
/**
/**
* 颜色
* 颜色
*/
*/
...
@@ -112,6 +117,14 @@ public class MaterialModel implements Serializable
...
@@ -112,6 +117,14 @@ public class MaterialModel implements Serializable
Model
=
model
;
Model
=
model
;
}
}
public
String
getStandard
()
{
return
Standard
;
}
public
void
setStandard
(
String
standard
)
{
Standard
=
standard
;
}
public
String
getColor
()
{
public
String
getColor
()
{
return
Color
;
return
Color
;
}
}
...
...
src/main/java/com/jsh/service/materials/DepotItemService.java
View file @
06fff596
...
@@ -89,8 +89,8 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
...
@@ -89,8 +89,8 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
workbook
=
Workbook
.
createWorkbook
(
os
);
workbook
=
Workbook
.
createWorkbook
(
os
);
WritableSheet
sheet
=
workbook
.
createSheet
(
"进销存报表"
,
0
);
WritableSheet
sheet
=
workbook
.
createSheet
(
"进销存报表"
,
0
);
//增加列头
//增加列头
int
[]
colunmWidth
=
{
10
,
10
,
10
,
10
,
10
,
15
,
15
,
15
,
15
,
15
};
int
[]
colunmWidth
=
{
10
,
10
,
10
,
10
,
10
,
10
,
15
,
15
,
15
,
15
,
15
};
String
[]
colunmName
=
{
"名称"
,
"型号"
,
"颜色"
,
"单位"
,
"单价"
,
"上月结存数量"
,
"入库数量"
,
"出库数量"
,
"本月结存数量"
,
"结存金额"
};
String
[]
colunmName
=
{
"名称"
,
"型号"
,
"
规格"
,
"
颜色"
,
"单位"
,
"单价"
,
"上月结存数量"
,
"入库数量"
,
"出库数量"
,
"本月结存数量"
,
"结存金额"
};
for
(
int
i
=
0
;
i
<
colunmWidth
.
length
;
i
++)
for
(
int
i
=
0
;
i
<
colunmWidth
.
length
;
i
++)
{
{
sheet
.
setColumnView
(
i
,
colunmWidth
[
i
]);
sheet
.
setColumnView
(
i
,
colunmWidth
[
i
]);
...
@@ -102,16 +102,17 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
...
@@ -102,16 +102,17 @@ public class DepotItemService extends BaseService<DepotItem> implements DepotIte
JSONObject
jo
=
JSONObject
.
fromObject
(
dataArray
.
get
(
j
));
JSONObject
jo
=
JSONObject
.
fromObject
(
dataArray
.
get
(
j
));
sheet
.
addCell
(
new
Label
(
0
,
j
+
1
,
jo
.
getString
(
"MaterialName"
)));
sheet
.
addCell
(
new
Label
(
0
,
j
+
1
,
jo
.
getString
(
"MaterialName"
)));
sheet
.
addCell
(
new
Label
(
1
,
j
+
1
,
jo
.
getString
(
"MaterialModel"
)));
sheet
.
addCell
(
new
Label
(
1
,
j
+
1
,
jo
.
getString
(
"MaterialModel"
)));
sheet
.
addCell
(
new
Label
(
2
,
j
+
1
,
jo
.
getString
(
"MaterialColor"
)));
sheet
.
addCell
(
new
Label
(
2
,
j
+
1
,
jo
.
getString
(
"MaterialStandard"
)));
sheet
.
addCell
(
new
Label
(
3
,
j
+
1
,
jo
.
getString
(
"MaterialUnit"
)));
sheet
.
addCell
(
new
Label
(
3
,
j
+
1
,
jo
.
getString
(
"MaterialColor"
)));
sheet
.
addCell
(
new
Label
(
4
,
j
+
1
,
jo
.
getString
(
"UnitPrice"
)));
sheet
.
addCell
(
new
Label
(
4
,
j
+
1
,
jo
.
getString
(
"MaterialUnit"
)));
sheet
.
addCell
(
new
Label
(
5
,
j
+
1
,
jo
.
getString
(
"prevSum"
)));
sheet
.
addCell
(
new
Label
(
5
,
j
+
1
,
jo
.
getString
(
"UnitPrice"
)));
sheet
.
addCell
(
new
Label
(
6
,
j
+
1
,
jo
.
getString
(
"InSum"
)));
sheet
.
addCell
(
new
Label
(
6
,
j
+
1
,
jo
.
getString
(
"prevSum"
)));
sheet
.
addCell
(
new
Label
(
7
,
j
+
1
,
jo
.
getString
(
"OutSum"
)));
sheet
.
addCell
(
new
Label
(
7
,
j
+
1
,
jo
.
getString
(
"InSum"
)));
sheet
.
addCell
(
new
Label
(
8
,
j
+
1
,
jo
.
getString
(
"thisSum"
)));
sheet
.
addCell
(
new
Label
(
8
,
j
+
1
,
jo
.
getString
(
"OutSum"
)));
sheet
.
addCell
(
new
Label
(
9
,
j
+
1
,
jo
.
getString
(
"thisSum"
)));
double
d
=
Double
.
parseDouble
(
jo
.
getString
(
"thisAllPrice"
).
toString
());
double
d
=
Double
.
parseDouble
(
jo
.
getString
(
"thisAllPrice"
).
toString
());
String
s1
=
String
.
format
(
"%.2f"
,
d
);
String
s1
=
String
.
format
(
"%.2f"
,
d
);
sheet
.
addCell
(
new
Label
(
9
,
j
+
1
,
s1
));
sheet
.
addCell
(
new
Label
(
10
,
j
+
1
,
s1
));
}
}
}
}
workbook
.
write
();
workbook
.
write
();
...
...
src/main/resources/hibernate/Material.hbm.xml
View file @
06fff596
...
@@ -20,6 +20,11 @@
...
@@ -20,6 +20,11 @@
<comment>
型号
</comment>
<comment>
型号
</comment>
</column>
</column>
</property>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Standard"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Standard"
>
<comment>
规格
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Color"
type=
"java.lang.String"
>
<property
generated=
"never"
lazy=
"false"
name=
"Color"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Color"
>
<column
length=
"50"
name=
"Color"
>
<comment>
颜色
</comment>
<comment>
颜色
</comment>
...
...
src/main/webapp/pages/materials/material.jsp
View file @
06fff596
...
@@ -48,53 +48,49 @@
...
@@ -48,53 +48,49 @@
<table
id=
"tableData"
style=
"top:300px;border-bottom-color:#FFFFFF"
></table>
<table
id=
"tableData"
style=
"top:300px;border-bottom-color:#FFFFFF"
></table>
</div>
</div>
<div
id=
"materialDlg"
class=
"easyui-dialog"
style=
"width:
3
80px;padding:10px 20px"
<div
id=
"materialDlg"
class=
"easyui-dialog"
style=
"width:
5
80px;padding:10px 20px"
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
closed=
"true"
buttons=
"#dlg-buttons"
modal=
"true"
cache=
"false"
collapsible=
"false"
closable=
"true"
>
<form
id=
"materialFM"
method=
"post"
novalidate
>
<form
id=
"materialFM"
method=
"post"
novalidate
>
<table>
<table>
<tr>
<tr>
<td>
名称
</td>
<td>
名称
</td>
<td
style=
"padding:5px"
><input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
colspan=
"3"
><input
name=
"Name"
id=
"Name"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[2,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
</tr>
<tr>
<tr>
<td>
类别
</td>
<td>
类别
</td>
<td
style=
"padding:5px"
>
<td
style=
"padding:5px"
colspan=
"3"
>
<select
name=
"CategoryId_f"
id=
"CategoryId_f"
style=
"width:1
80
px;height: 20px"
></select>
<br/>
<select
name=
"CategoryId_f"
id=
"CategoryId_f"
style=
"width:1
45
px;height: 20px"
></select>
<select
name=
"CategoryId_s"
id=
"CategoryId_s"
style=
"width:1
80
px;height: 20px"
></select>
<br/>
<select
name=
"CategoryId_s"
id=
"CategoryId_s"
style=
"width:1
45
px;height: 20px"
></select>
<select
name=
"CategoryId_t"
id=
"CategoryId_t"
style=
"width:1
80
px;height: 20px"
></select>
<select
name=
"CategoryId_t"
id=
"CategoryId_t"
style=
"width:1
45
px;height: 20px"
></select>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
型号
</td>
<td>
型号
</td>
<td
style=
"padding:5px"
><input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"Model"
id=
"Model"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td>
规格
</td>
<td
style=
"padding:5px"
><input
name=
"Standard"
id=
"Standard"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
</tr>
<tr>
<tr>
<td>
颜色
</td>
<td>
颜色
</td>
<td
style=
"padding:5px"
><input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"Color"
id=
"Color"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
<tr>
<td>
单位
</td>
<td>
单位
</td>
<td
style=
"padding:5px"
><input
name=
"Unit"
id=
"Unit"
class=
"easyui-validatebox"
data-options=
"
required:true,
validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"Unit"
id=
"Unit"
class=
"easyui-validatebox"
data-options=
"validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
</tr>
<tr>
<tr>
<td>
零售价
</td>
<td>
零售价
</td>
<td
style=
"padding:5px"
><input
name=
"RetailPrice"
id=
"RetailPrice"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"RetailPrice"
id=
"RetailPrice"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
<tr>
<td>
最低售价
</td>
<td>
最低售价
</td>
<td
style=
"padding:5px"
><input
name=
"LowPrice"
id=
"LowPrice"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"LowPrice"
id=
"LowPrice"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
</tr>
<tr>
<tr>
<td>
预设售价一
</td>
<td>
预设售价一
</td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceOne"
id=
"PresetPriceOne"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceOne"
id=
"PresetPriceOne"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
<tr>
<td>
预设售价二
</td>
<td>
预设售价二
</td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceTwo"
id=
"PresetPriceTwo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
<td
style=
"padding:5px"
><input
name=
"PresetPriceTwo"
id=
"PresetPriceTwo"
class=
"easyui-validatebox"
data-options=
"required:true,validType:'length[1,30]'"
style=
"width: 180px;height: 20px"
/></td>
</tr>
</tr>
<tr>
<tr>
<td>
备注
</td>
<td>
备注
</td>
<td
style=
"padding:5px"
><input
name=
"Remark"
id=
"Remark"
style=
"width:
18
0px;height: 20px"
/></td>
<td
style=
"padding:5px"
colspan=
"3"
><input
name=
"Remark"
id=
"Remark"
style=
"width:
44
0px;height: 20px"
/></td>
</tr>
</tr>
</table>
</table>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
<input
type=
"hidden"
name=
"clientIp"
id=
"clientIp"
value=
"
<%=
clientIp
%>
"
/>
...
@@ -317,17 +313,17 @@
...
@@ -317,17 +313,17 @@
{
field
:
'
Id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
field
:
'
Id
'
,
width
:
35
,
align
:
"
center
"
,
checkbox
:
true
},
{
title
:
'
名称
'
,
field
:
'
Name
'
,
width
:
80
},
{
title
:
'
名称
'
,
field
:
'
Name
'
,
width
:
80
},
{
title
:
'
型号
'
,
field
:
'
Model
'
,
width
:
80
},
{
title
:
'
型号
'
,
field
:
'
Model
'
,
width
:
80
},
{
title
:
'
颜色
'
,
field
:
'
Color
'
,
width
:
40
},
{
title
:
'
规格
'
,
field
:
'
Standard
'
,
width
:
80
},
{
title
:
'
单位
'
,
field
:
'
Unit
'
,
width
:
50
},
{
title
:
'
颜色
'
,
field
:
'
Color
'
,
width
:
60
},
{
title
:
'
零售价
'
,
field
:
'
RetailPrice
'
,
width
:
50
},
{
title
:
'
单位
'
,
field
:
'
Unit
'
,
width
:
60
},
{
title
:
'
零售价
'
,
field
:
'
RetailPrice
'
,
width
:
60
},
{
title
:
'
最低售价
'
,
field
:
'
LowPrice
'
,
width
:
70
},
{
title
:
'
最低售价
'
,
field
:
'
LowPrice
'
,
width
:
70
},
{
title
:
'
预设售价一
'
,
field
:
'
PresetPriceOne
'
,
width
:
70
},
{
title
:
'
预设售价一
'
,
field
:
'
PresetPriceOne
'
,
width
:
70
},
{
title
:
'
预设售价二
'
,
field
:
'
PresetPriceTwo
'
,
width
:
70
},
{
title
:
'
预设售价二
'
,
field
:
'
PresetPriceTwo
'
,
width
:
70
},
{
title
:
'
备注
'
,
field
:
'
Remark
'
,
width
:
90
},
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
110
,
formatter
:
function
(
value
,
rec
)
{
title
:
'
操作
'
,
field
:
'
op
'
,
align
:
"
center
"
,
width
:
150
,
formatter
:
function
(
value
,
rec
)
{
{
var
str
=
''
;
var
str
=
''
;
var
rowInfo
=
rec
.
Id
+
'
AaBb
'
+
rec
.
Name
+
'
AaBb
'
+
rec
.
Model
+
'
AaBb
'
+
rec
.
Color
+
'
AaBb
'
+
rec
.
Unit
+
'
AaBb
'
+
rec
.
RetailPrice
+
'
AaBb
'
+
rec
.
LowPrice
+
'
AaBb
'
+
rec
.
PresetPriceOne
+
'
AaBb
'
+
rec
.
PresetPriceTwo
+
'
AaBb
'
+
rec
.
Remark
;
var
rowInfo
=
rec
.
Id
+
'
AaBb
'
+
rec
.
Name
+
'
AaBb
'
+
rec
.
Model
+
'
AaBb
'
+
rec
.
Color
+
'
AaBb
'
+
rec
.
Unit
+
'
AaBb
'
+
rec
.
RetailPrice
+
'
AaBb
'
+
rec
.
LowPrice
+
'
AaBb
'
+
rec
.
PresetPriceOne
+
'
AaBb
'
+
rec
.
PresetPriceTwo
+
'
AaBb
'
+
rec
.
Remark
+
'
AaBb
'
+
rec
.
Standard
;
if
(
1
==
value
)
if
(
1
==
value
)
{
{
str
+=
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editMaterial(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editMaterial(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
str
+=
'
<img src="
<%=
path
%>
/js/easyui-1.3.5/themes/icons/pencil.png" style="cursor: pointer;" onclick="editMaterial(
\'
'
+
rowInfo
+
'
\'
);"/> <a onclick="editMaterial(
\'
'
+
rowInfo
+
'
\'
);" style="text-decoration:none;color:black;" href="javascript:void(0)">编辑</a>
'
;
...
@@ -556,6 +552,7 @@
...
@@ -556,6 +552,7 @@
CategoryId
:
parent
,
CategoryId
:
parent
,
Name
:
$
.
trim
(
$
(
"
#Name
"
).
val
()),
Name
:
$
.
trim
(
$
(
"
#Name
"
).
val
()),
Model
:
$
.
trim
(
$
(
"
#Model
"
).
val
()),
Model
:
$
.
trim
(
$
(
"
#Model
"
).
val
()),
Standard
:
$
.
trim
(
$
(
"
#Standard
"
).
val
()),
Color
:
$
.
trim
(
$
(
"
#Color
"
).
val
()),
Color
:
$
.
trim
(
$
(
"
#Color
"
).
val
()),
Unit
:
$
.
trim
(
$
(
"
#Unit
"
).
val
()),
Unit
:
$
.
trim
(
$
(
"
#Unit
"
).
val
()),
RetailPrice
:
$
.
trim
(
$
(
"
#RetailPrice
"
).
val
()),
RetailPrice
:
$
.
trim
(
$
(
"
#RetailPrice
"
).
val
()),
...
@@ -601,8 +598,9 @@
...
@@ -601,8 +598,9 @@
$
(
"
#clientIp
"
).
val
(
'
<%=
clientIp
%>
'
);
$
(
"
#clientIp
"
).
val
(
'
<%=
clientIp
%>
'
);
$
(
"
#Name
"
).
focus
().
val
(
materialInfo
[
1
]);
$
(
"
#Name
"
).
focus
().
val
(
materialInfo
[
1
]);
$
(
"
#Model
"
).
val
(
materialInfo
[
2
]);
$
(
"
#Model
"
).
val
(
materialInfo
[
2
]);
$
(
"
#Color
"
).
val
(
materialInfo
[
3
]);
$
(
"
#Standard
"
).
val
(
materialInfo
[
10
]
==
"
undefined
"
?
""
:
materialInfo
[
10
]);
$
(
"
#Unit
"
).
val
(
materialInfo
[
4
]);
$
(
"
#Color
"
).
val
(
materialInfo
[
3
]
==
"
undefined
"
?
""
:
materialInfo
[
3
]);
$
(
"
#Unit
"
).
val
(
materialInfo
[
4
]
==
"
undefined
"
?
""
:
materialInfo
[
4
]);
$
(
"
#RetailPrice
"
).
val
(
materialInfo
[
5
]);
$
(
"
#RetailPrice
"
).
val
(
materialInfo
[
5
]);
$
(
"
#LowPrice
"
).
val
(
materialInfo
[
6
]);
$
(
"
#LowPrice
"
).
val
(
materialInfo
[
6
]);
$
(
"
#PresetPriceOne
"
).
val
(
materialInfo
[
7
]);
$
(
"
#PresetPriceOne
"
).
val
(
materialInfo
[
7
]);
...
...
src/main/webapp/pages/reports/buy_in_report.jsp
View file @
06fff596
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
columns:[[
columns:[[
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
型号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
型号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
规格
'
,field:
'
MaterialStandard
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
进货数量
'
,field:
'
InSum
'
,width:60},
{ title:
'
进货数量
'
,field:
'
InSum
'
,width:60},
...
...
src/main/webapp/pages/reports/in_out_stock_report.jsp
View file @
06fff596
...
@@ -99,6 +99,7 @@
...
@@ -99,6 +99,7 @@
columns:[[
columns:[[
{ title: '名称',field: 'MaterialName',width:60},
{ title: '名称',field: 'MaterialName',width:60},
{ title: '型号',field: 'MaterialModel',width:80},
{ title: '型号',field: 'MaterialModel',width:80},
{ title: '规格',field: 'MaterialStandard',width:80},
{ title: '颜色',field: 'MaterialColor',width:80},
{ title: '颜色',field: 'MaterialColor',width:80},
{ title: '单位',field: 'MaterialUnit',width:80},
{ title: '单位',field: 'MaterialUnit',width:80},
{ title: '单价',field: 'UnitPrice',width:60,formatter: function(value,row,index){
{ title: '单价',field: 'UnitPrice',width:60,formatter: function(value,row,index){
...
...
src/main/webapp/pages/reports/sale_out_report.jsp
View file @
06fff596
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
columns:[[
columns:[[
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
名称
'
,field:
'
MaterialName
'
,width:60},
{ title:
'
型号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
型号
'
,field:
'
MaterialModel
'
,width:80},
{ title:
'
规格
'
,field:
'
MaterialStandard
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
颜色
'
,field:
'
MaterialColor
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
单位
'
,field:
'
MaterialUnit
'
,width:80},
{ title:
'
销售数量
'
,field:
'
OutSum
'
,width:60},
{ title:
'
销售数量
'
,field:
'
OutSum
'
,width:60},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment