Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
88f002f0
Commit
88f002f0
authored
Apr 22, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-22 新增销售计划页面和功能
parent
dccd687a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
576 additions
and
0 deletions
+576
-0
HPPZ018.java
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ018.java
+0
-0
ServiceHPPZ018.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ018.java
+128
-0
HPPZ018.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ018.xml
+233
-0
HPPZ018.js
src/main/webapp/HP/PZ/HPPZ018.js
+169
-0
HPPZ018.jsp
src/main/webapp/HP/PZ/HPPZ018.jsp
+46
-0
No files found.
src/main/java/com/baosight/hpjx/hp/pz/domain/HPPZ018.java
0 → 100644
View file @
88f002f0
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ018.java
0 → 100644
View file @
88f002f0
package
com
.
baosight
.
hpjx
.
hp
.
pz
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.pz.domain.HPPZ018
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.ErrorCodeUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.resource.I18nMessages
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author LiuYang
* @version 1.0 2024/4/22
*/
public
class
ServiceHPPZ018
extends
ServiceEPBase
{
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
inInfo
.
setCell
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HPPZ018
.
FIELD_DELETE_FLAG
,
CommonConstant
.
YesNo
.
NO_0
);
final
EiInfo
outEiInfo
=
super
.
query
(
inInfo
,
HPPZ018
.
QUERY
,
new
HPPZ018
());
return
outEiInfo
;
}
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
return
super
.
query
(
inInfo
,
HPPZ018
.
QUERY
);
}
@OperationLogAnnotation
(
operModul
=
"销售计划"
,
operType
=
"删除"
,
operDesc
=
"删除操作"
)
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
int
i
=
0
;
try
{
HPPZ018
hppz018
=
new
HPPZ018
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz018
.
fromMap
(
map
);
hppz018
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
update
(
HPPZ018
.
DELETE_FLAG
,
hppz018
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.delete"
,
"删除"
)});
}
catch
(
PlatException
e
)
{
e
.
printStackTrace
();
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
ErrorCodeUtils
.
handleDeleteException
(
inInfo
,
i
,
e
);
logError
(
"删除失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
inInfo
;
}
@OperationLogAnnotation
(
operModul
=
"销售计划"
,
operType
=
"保存"
,
operDesc
=
"操作"
)
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 写入数据
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPPZ018
hppz018
=
new
HPPZ018
();
hppz018
.
fromMap
(
resultRows
.
get
(
i
));
if
(
hppz018
.
getId
()
==
null
||
hppz018
.
getId
()
==
0
)
{
this
.
add
(
hppz018
);
}
else
{
this
.
modify
(
hppz018
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 新增操作
*/
public
void
add
(
HPPZ018
hppz018
)
{
hppz018
.
setPlanSalesCode
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
PLAN_SALES_CODE
));
List
<
HPPZ018
>
hppz018s
=
HPPZTools
.
HpPz018
.
getYear
(
hppz018
.
getYear
());
AssertUtils
.
isNotEmpty
(
hppz018s
,
String
.
format
(
"年度[%s]已存在"
,
hppz018
.
getYear
()));
DaoUtils
.
insert
(
HPPZ018
.
INSERT
,
hppz018
);
}
/**
* 修改操作
*/
public
void
modify
(
HPPZ018
hppz018
)
{
DaoUtils
.
update
(
HPPZ018
.
UPDATE
,
hppz018
);
}
public
EiInfo
updateStatus
(
EiInfo
inInfo
){
int
i
=
0
;
try
{
HPPZ018
hppz018
=
new
HPPZ018
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz018
.
fromMap
(
map
);
DaoUtils
.
update
(
HPPZ018
.
UPDATE_STATUS
,
hppz018
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsgByKey
(
"ep.1000"
,
new
String
[]{
String
.
valueOf
(
i
),
I18nMessages
.
getText
(
"label.update"
,
"修改"
)});
}
catch
(
PlatException
e
)
{
e
.
printStackTrace
();
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
ErrorCodeUtils
.
handleUpdateException
(
inInfo
,
i
,
e
);
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ018.xml
0 → 100644
View file @
88f002f0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-04-22 15:24:59
Version : 1.0
schema : hpjx
tableName : T_HPPZ018
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
YEAR VARCHAR,
MONTH VARCHAR,
SALES_CODE VARCHAR,
PLAN_SALES_CODE VARCHAR,
SALES_AMOUNT DECIMAL
-->
<sqlMap
namespace=
"HPPZ018"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"deleteFlag"
>
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"year"
>
YEAR = #year#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"month"
>
MONTH = #month#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"salesCode"
>
SALES_CODE = #salesCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planSalesCode"
>
PLAN_SALES_CODE = #planSalesCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"salesAmount"
>
SALES_AMOUNT = #salesAmount#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.pz.domain.HPPZ018"
>
SELECT
ID as "id",
<!-- ID -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 修改人 -->
UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 是否删除0:否1.是 -->
YEAR as "year",
<!-- 年度 -->
MONTH as "month",
<!-- 月份 -->
SALES_CODE as "salesCode",
<!-- 销售单号 -->
PLAN_SALES_CODE as "planSalesCode",
<!-- 销售计划单号 -->
SALES_AMOUNT as "salesAmount",
<!-- 营销额 -->
STATUS as "status"
<!-- 状态 0-未审核,1-已审核 -->
FROM ${hpjxSchema}.T_HPPZ018 WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPPZ018 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="year">
YEAR = #year#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="month">
MONTH = #month#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="salesCode">
SALES_CODE = #salesCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planSalesCode">
PLAN_SALES_CODE = #planSalesCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="salesAmount">
SALES_AMOUNT = #salesAmount#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.T_HPPZ018 (ID,
<!-- ID -->
COMPANY_CODE,
<!-- 企业编码 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 修改人 -->
UPDATED_NAME,
<!-- 修改人名称 -->
UPDATED_TIME,
<!-- 修改时间 -->
DELETE_FLAG,
<!-- 是否删除0:否1.是 -->
YEAR,
<!-- 年度 -->
MONTH,
<!-- 月份 -->
SALES_CODE,
<!-- 销售单号 -->
PLAN_SALES_CODE,
<!-- 销售计划单号 -->
SALES_AMOUNT,
<!-- 营销额 -->
STATUS
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #year#, #month#, #salesCode#, #planSalesCode#, #salesAmount#, #status#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.T_HPPZ018 WHERE
ID = #id#
</delete>
<!--逻辑删除-->
<update
id=
"deleteFlag"
>
UPDATE ${hpjxSchema}.T_HPPZ018
SET
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 是否删除0:否1.是 -->
WHERE
ID = #id#
</update>
<!--审批状态-->
<update
id=
"updateStatus"
>
UPDATE ${hpjxSchema}.T_HPPZ018
SET
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
STATUS = #status#
WHERE
ID = #id#
</update>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.T_HPPZ018
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 -->
DEP_CODE = #depCode#,
<!-- 部门编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 修改人 -->
UPDATED_NAME = #updatedName#,
<!-- 修改人名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 修改时间 -->
DELETE_FLAG = #deleteFlag#,
<!-- 是否删除0:否1.是 -->
YEAR = #year#,
<!-- 年度 -->
MONTH = #month#,
<!-- 月份 -->
SALES_CODE = #salesCode#,
<!-- 销售单号 -->
PLAN_SALES_CODE = #planSalesCode#,
<!-- 销售计划单号 -->
SALES_AMOUNT = #salesAmount#,
<!-- 营销额 -->
STATUS = #status#
WHERE
ID = #id#
</update>
</sqlMap>
src/main/webapp/HP/PZ/HPPZ018.js
0 → 100644
View file @
88f002f0
$
(
function
()
{
$
(
".row"
).
children
().
attr
(
"class"
,
"col-md-3"
);
$
(
"#QUERY"
).
on
(
"click"
,
query
);
/* 页面查询框的尺寸设置 */
$
.
extend
(
true
,
IPLATUI
.
Config
,
{
EFGrid
:
{
height
:
$
(
document
).
height
()
-
$
(
"#inqu"
).
height
()
-
$
(
"#ef_form_head"
).
height
()
-
100
,
/*pageable: {
input: true,
numeric: false,
pageSizes: [10, 50 , 100 , 200]
}*/
}
});
IPLATUI
.
EFDatePicker
=
{
"inqu_status-0-year"
:{
start
:
"decade"
,
depth
:
"decade"
,
format
:
"yyyy"
,
},
"inqu_status-0-month"
:{
start
:
"year"
,
depth
:
"year"
,
format
:
"mm"
,
}
}
IPLATUI
.
EFGrid
=
{
"result"
:
{
pageable
:
{
pageSize
:
10
,
pageSizes
:
[
10
,
20
,
50
,
100
],
},
columns
:
[
{
field
:
"operator"
,
title
:
"操作"
,
template
:
function
(
item
)
{
let
id
=
item
.
id
;
let
template
=
''
;
if
(
item
.
status
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
')" >审核</a>'
;
}
return
template
;
}
},
{
field
:
"createdName"
,
template
:
function
(
options
)
{
return
showUserName
(
options
.
createdBy
,
options
.
createdName
);
}
},
{
field
:
"updatedName"
,
template
:
function
(
options
)
{
return
showUserName
(
options
.
updatedBy
,
options
.
updatedName
);
}
}
],
loadComplete
:
function
(
grid
)
{
},
beforeEdit
:
function
(
e
)
{
if
(
e
.
model
[
"status"
]
===
"1"
)
{
e
.
preventDefault
();
}
},
//单元格数据储存时回调
afterEdit
:
function
(
e
)
{
/*if (e.field === "groupCode" && e.model["factoryCode"].length === 0){
for (let i = 0; i < groupCodeBox.length; i++) {
if (e.model[e.field] === groupCodeBox[i]["valueField"]){
e.model["factoryCode"]=groupCodeBox[i]["param1Field"]
break;
}
}
}*/
},
onSave
:
function
(
e
)
{
// 阻止默认请求,使用自定义保存
e
.
preventDefault
();
let
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
save
(
btnNode
);
},
onDelete
:
function
(
e
)
{
// 阻止默认请求,使用自定义删除
//e.preventDefault();
//deleteFunc();
},
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
)
{
query
();
}
},
exportGrid
:
{
exportFileName
:
function
(
gridInstance
)
{
// 导出的文件名包含时间戳 yyyy-MM-dd HH:mm:ss
return
"销售目标_"
+
kendo
.
toString
(
new
Date
(),
IPLAT
.
FORMAT
.
DATE_14_PR
);
},
exportFileType
:
"xls"
,
exportBlockId
:
"result"
,
}
}
}
downKeyUp
();
});
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 保存
*/
let
save
=
function
(
btnNode
)
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
let
flag
=
true
;
/*$.each(rows, function(index, item) {
let factoryCode= item.get("factoryCode");
if(isBlank(factoryCode)){
message("选中的第"+(index+1)+"行\"工厂\",不能为空!");
flag = false;
return false;
}
});*/
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPPZ018"
,
"save"
,
true
);
btnNode
.
attr
(
"disabled"
,
false
);
}
});
}
}
/**
* 分解销售目标
*
* @param id
*/
function
updateStatus
(
id
)
{
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-status"
,
1
);
EiCommunicator
.
send
(
'HPPZ018'
,
'updateStatus'
,
inEiInfo
,
{
onSuccess
(
response
)
{
NotificationUtil
(
response
.
msg
);
query
();
},
onFail
(
errorMessage
,
status
,
e
)
{
NotificationUtil
(
"执行失败!"
,
"error"
);
}
},
{
async
:
false
}
);
}
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ018.jsp
0 → 100644
View file @
88f002f0
<%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/4/22
Time: 15:36
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<EF:EFPage title="销售计划">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFDatePicker blockId="inqu_status" row="0" ename="year" cname="年度" colWidth="4"/>
<EF:EFInput blockId="inqu_status" row="0" ename="salesAmount" cname="营业额" editType="number" colWidth="4"
data-regex="/^-?[0-9]{1,18}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置18位整数和2位小数!"
/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="记录集">
<EF:EFGrid blockId="result" autoDraw="override" checkMode="cell">
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="year" cname="年度" align="center" width="120" editType="date" start="decade" depth="decade"
readonly="true" dateFormat="yyyy" parseFormats="['yyyy']"/>
<EF:EFColumn ename="month" cname="月度" align="center" width="120" editType="date" start="year" depth="year"
readonly="true" dateFormat="mm" parseFormats="['mm']"/>
<EF:EFColumn ename="salesCode" cname="单号" enable="false" align="center" width="160"/>
<EF:EFColumn ename="planSalesCode" cname="计划单号" enable="false" align="center" width="160"/>
<EF:EFColumn ename="salesAmount" cname="营业额" width="120" format="{0:N2}" editType="text"
displayType="0.000" sort="true" align="right" maxLength="20"
data-regex="/^-?[0-9]{1,18}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置17位整数和3位小数!"/>
<EF:EFColumn ename="createdName" cname="记录创建者" readonly="true" width="120" align="center" enable="false"/>
<EF:EFColumn ename="createdTime" cname="记录创建时间" readonly="true" width="150" align="center" enable="false" parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/>
<EF:EFColumn ename="updatedName" cname="记录修改者" readonly="true" width="120" align="center" enable="false"/>
<EF:EFColumn ename="updatedTime" cname="记录修改时间" readonly="true" width="150" align="center" enable="false" parseFormats="['yyyyMMddHHmmss']" editType="datetime" dateFormat="yyyy-MM-dd HH:mm:ss"/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
Write
Preview
Markdown
is supported
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