Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
syzy_se
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
管理员
syzy_se
Commits
2f054007
Commit
2f054007
authored
Mar 31, 2023
by
罗鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能
parent
0a19c5ec
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
918 additions
and
0 deletions
+918
-0
LaboratoryEquipmentMakeDao.java
...m/spk/zyse/laboratory/dao/LaboratoryEquipmentMakeDao.java
+19
-0
LaboratoryEquipmentMake.java
...m/spk/zyse/laboratory/entity/LaboratoryEquipmentMake.java
+226
-0
LaboratoryEquipmentMakeService.java
...se/laboratory/service/LaboratoryEquipmentMakeService.java
+40
-0
LaboratoryEquipmentMakeController.java
...yse/laboratory/web/LaboratoryEquipmentMakeController.java
+149
-0
LaboratoryEquipmentMakeQuery.java
...se/laboratory/web/query/LaboratoryEquipmentMakeQuery.java
+20
-0
laboratoryEquipmentMake.md
src/main/resources/sql/laboratory/laboratoryEquipmentMake.md
+23
-0
add.js
...urces/static/js/laboratory/laboratoryEquipmentMake/add.js
+29
-0
del.js
...urces/static/js/laboratory/laboratoryEquipmentMake/del.js
+24
-0
edit.js
...rces/static/js/laboratory/laboratoryEquipmentMake/edit.js
+29
-0
index.js
...ces/static/js/laboratory/laboratoryEquipmentMake/index.js
+134
-0
laboratoryEquipmentMakeApi.js
...ory/laboratoryEquipmentMake/laboratoryEquipmentMakeApi.js
+19
-0
add.html
...ces/templates/laboratory/laboratoryEquipmentMake/add.html
+92
-0
edit.html
...es/templates/laboratory/laboratoryEquipmentMake/edit.html
+94
-0
index.html
...s/templates/laboratory/laboratoryEquipmentMake/index.html
+20
-0
No files found.
src/main/java/com/spk/zyse/laboratory/dao/LaboratoryEquipmentMakeDao.java
0 → 100644
View file @
2f054007
package
com
.
spk
.
zyse
.
laboratory
.
dao
;
import
java.util.List
;
import
org.beetl.sql.core.annotatoin.SqlResource
;
import
org.beetl.sql.core.mapper.BaseMapper
;
import
org.beetl.sql.core.engine.PageQuery
;
import
com.spk.zyse.laboratory.entity.*
;
/**
* LaboratoryEquipmentMake Dao
*/
@SqlResource
(
"laboratory.laboratoryEquipmentMake"
)
public
interface
LaboratoryEquipmentMakeDao
extends
BaseMapper
<
LaboratoryEquipmentMake
>{
public
PageQuery
<
LaboratoryEquipmentMake
>
queryByCondition
(
PageQuery
query
);
public
void
batchDelLaboratoryEquipmentMakeByIds
(
List
<
Long
>
ids
);
}
\ No newline at end of file
src/main/java/com/spk/zyse/laboratory/entity/LaboratoryEquipmentMake.java
0 → 100644
View file @
2f054007
package
com
.
spk
.
zyse
.
laboratory
.
entity
;
import
java.util.Date
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Null
;
import
org.beetl.sql.core.annotatoin.AutoID
;
import
org.beetl.sql.core.annotatoin.SeqID
;
import
com.spk.admin.core.util.ValidateConfig
;
import
org.beetl.sql.core.TailBean
;
import
java.math.*
;
import
com.spk.admin.core.annotation.Dict
;
import
com.spk.admin.core.entity.BaseEntity
;
import
org.beetl.sql.core.annotatoin.InsertIgnore
;
import
org.beetl.sql.core.annotatoin.Version
;
import
org.beetl.sql.core.annotatoin.LogicDelete
;
/*
*
* gen by Spring Boot2 Admin 2023-03-31
*/
public
class
LaboratoryEquipmentMake
extends
BaseEntity
{
//主键
@NotNull
(
message
=
"ID不能为空"
,
groups
=
ValidateConfig
.
UPDATE
.
class
)
@SeqID
(
name
=
ORACLE_CORE_SEQ_NAME
)
@AutoID
private
Integer
id
;
//流程主键
private
String
processinstId
;
//设备
private
String
equipment
;
//课题名称
private
String
topicName
;
//实验人
private
String
experimenter
;
//创建时间
private
Date
createTime
;
//修改时间
private
Date
updateTime
;
//开始时间
private
String
startTime
;
//结束时间
private
String
endTime
;
//备注
private
String
remarks
;
//实验室id
private
String
laboratoryId
;
public
LaboratoryEquipmentMake
()
{
}
/**主键
*@return
*/
public
Integer
getId
(){
return
id
;
}
/**主键
*@param id
*/
public
void
setId
(
Integer
id
){
this
.
id
=
id
;
}
/**流程主键
*@return
*/
public
String
getProcessinstId
(){
return
processinstId
;
}
/**流程主键
*@param processinstId
*/
public
void
setProcessinstId
(
String
processinstId
){
this
.
processinstId
=
processinstId
;
}
/**设备
*@return
*/
public
String
getEquipment
(){
return
equipment
;
}
/**设备
*@param equipment
*/
public
void
setEquipment
(
String
equipment
){
this
.
equipment
=
equipment
;
}
/**课题名称
*@return
*/
public
String
getTopicName
(){
return
topicName
;
}
/**课题名称
*@param topicName
*/
public
void
setTopicName
(
String
topicName
){
this
.
topicName
=
topicName
;
}
/**实验人
*@return
*/
public
String
getExperimenter
(){
return
experimenter
;
}
/**实验人
*@param experimenter
*/
public
void
setExperimenter
(
String
experimenter
){
this
.
experimenter
=
experimenter
;
}
/**创建时间
*@return
*/
public
Date
getCreateTime
(){
return
createTime
;
}
/**创建时间
*@param createTime
*/
public
void
setCreateTime
(
Date
createTime
){
this
.
createTime
=
createTime
;
}
/**修改时间
*@return
*/
public
Date
getUpdateTime
(){
return
updateTime
;
}
/**修改时间
*@param updateTime
*/
public
void
setUpdateTime
(
Date
updateTime
){
this
.
updateTime
=
updateTime
;
}
/**开始时间
*@return
*/
public
String
getStartTime
(){
return
startTime
;
}
/**开始时间
*@param startTime
*/
public
void
setStartTime
(
String
startTime
){
this
.
startTime
=
startTime
;
}
/**结束时间
*@return
*/
public
String
getEndTime
(){
return
endTime
;
}
/**结束时间
*@param endTime
*/
public
void
setEndTime
(
String
endTime
){
this
.
endTime
=
endTime
;
}
/**备注
*@return
*/
public
String
getRemarks
(){
return
remarks
;
}
/**备注
*@param remarks
*/
public
void
setRemarks
(
String
remarks
){
this
.
remarks
=
remarks
;
}
/**实验室id
*@return
*/
public
String
getLaboratoryId
(){
return
laboratoryId
;
}
/**实验室id
*@param laboratoryId
*/
public
void
setLaboratoryId
(
String
laboratoryId
){
this
.
laboratoryId
=
laboratoryId
;
}
}
src/main/java/com/spk/zyse/laboratory/service/LaboratoryEquipmentMakeService.java
0 → 100644
View file @
2f054007
package
com
.
spk
.
zyse
.
laboratory
.
service
;
import
java.util.List
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
com.spk.admin.core.util.PlatformException
;
import
com.spk.zyse.laboratory.dao.LaboratoryEquipmentMakeDao
;
import
com.spk.zyse.laboratory.entity.LaboratoryEquipmentMake
;
import
com.spk.admin.core.service.BaseService
;
/**
* LaboratoryEquipmentMake Service
*/
@Service
@Transactional
public
class
LaboratoryEquipmentMakeService
extends
BaseService
<
LaboratoryEquipmentMake
>{
@Autowired
private
LaboratoryEquipmentMakeDao
laboratoryEquipmentMakeDao
;
public
PageQuery
<
LaboratoryEquipmentMake
>
queryByCondition
(
PageQuery
query
){
PageQuery
ret
=
laboratoryEquipmentMakeDao
.
queryByCondition
(
query
);
queryListAfter
(
ret
.
getList
());
return
ret
;
}
public
void
batchDelLaboratoryEquipmentMake
(
List
<
Long
>
ids
){
try
{
laboratoryEquipmentMakeDao
.
batchDelLaboratoryEquipmentMakeByIds
(
ids
);
}
catch
(
Exception
e
)
{
throw
new
PlatformException
(
"批量删除LaboratoryEquipmentMake失败"
,
e
);
}
}
}
\ No newline at end of file
src/main/java/com/spk/zyse/laboratory/web/LaboratoryEquipmentMakeController.java
0 → 100644
View file @
2f054007
package
com
.
spk
.
zyse
.
laboratory
.
web
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.beetl.sql.core.engine.PageQuery
;
import
org.jxls.common.Context
;
import
org.jxls.reader.ReaderBuilder
;
import
org.jxls.reader.ReaderConfig
;
import
org.jxls.reader.XLSReadMessage
;
import
org.jxls.reader.XLSReadStatus
;
import
org.jxls.reader.XLSReader
;
import
org.jxls.util.JxlsHelper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.servlet.ModelAndView
;
import
com.spk.admin.console.web.dto.DictExcelImportData
;
import
com.spk.admin.console.web.query.UserQuery
;
import
com.spk.admin.core.annotation.Function
;
import
com.spk.admin.core.annotation.Query
;
import
com.spk.admin.core.entity.CoreDict
;
import
com.spk.admin.core.entity.CoreUser
;
import
com.spk.admin.core.file.FileItem
;
import
com.spk.admin.core.file.FileService
;
import
com.spk.admin.core.web.JsonResult
;
import
com.spk.admin.core.util.*
;
import
com.spk.zyse.laboratory.entity.*
;
import
com.spk.zyse.laboratory.service.*
;
import
com.spk.zyse.laboratory.web.query.*
;
/**
* LaboratoryEquipmentMake 接口
*/
@Controller
public
class
LaboratoryEquipmentMakeController
{
private
final
Log
log
=
LogFactory
.
getLog
(
this
.
getClass
());
private
static
final
String
MODEL
=
"/laboratory/laboratoryEquipmentMake"
;
@Autowired
private
LaboratoryEquipmentMakeService
laboratoryEquipmentMakeService
;
@Autowired
FileService
fileService
;
/* 页面 */
@GetMapping
(
MODEL
+
"/index.do"
)
@Function
(
"laboratoryEquipmentMake.query"
)
@ResponseBody
public
ModelAndView
index
()
{
ModelAndView
view
=
new
ModelAndView
(
"/laboratory/laboratoryEquipmentMake/index.html"
)
;
view
.
addObject
(
"search"
,
LaboratoryEquipmentMakeQuery
.
class
.
getName
());
return
view
;
}
@GetMapping
(
MODEL
+
"/edit.do"
)
@Function
(
"laboratoryEquipmentMake.edit"
)
@ResponseBody
public
ModelAndView
edit
(
Integer
id
)
{
ModelAndView
view
=
new
ModelAndView
(
"/laboratory/laboratoryEquipmentMake/edit.html"
);
LaboratoryEquipmentMake
laboratoryEquipmentMake
=
laboratoryEquipmentMakeService
.
queryById
(
id
);
view
.
addObject
(
"laboratoryEquipmentMake"
,
laboratoryEquipmentMake
);
return
view
;
}
@GetMapping
(
MODEL
+
"/add.do"
)
@Function
(
"laboratoryEquipmentMake.add"
)
@ResponseBody
public
ModelAndView
add
()
{
ModelAndView
view
=
new
ModelAndView
(
"/laboratory/laboratoryEquipmentMake/add.html"
);
return
view
;
}
/* ajax json */
@PostMapping
(
MODEL
+
"/list.json"
)
@Function
(
"laboratoryEquipmentMake.query"
)
@ResponseBody
public
JsonResult
<
PageQuery
>
list
(
LaboratoryEquipmentMakeQuery
condtion
)
{
PageQuery
page
=
condtion
.
getPageQuery
();
laboratoryEquipmentMakeService
.
queryByCondition
(
page
);
return
JsonResult
.
success
(
page
);
}
@PostMapping
(
MODEL
+
"/add.json"
)
@Function
(
"laboratoryEquipmentMake.add"
)
@ResponseBody
public
JsonResult
add
(
@Validated
(
ValidateConfig
.
ADD
.
class
)
LaboratoryEquipmentMake
laboratoryEquipmentMake
)
{
laboratoryEquipmentMakeService
.
save
(
laboratoryEquipmentMake
);
return
new
JsonResult
().
success
();
}
@PostMapping
(
MODEL
+
"/update.json"
)
@Function
(
"laboratoryEquipmentMake.update"
)
@ResponseBody
public
JsonResult
<
String
>
update
(
@Validated
(
ValidateConfig
.
UPDATE
.
class
)
LaboratoryEquipmentMake
laboratoryEquipmentMake
)
{
boolean
success
=
laboratoryEquipmentMakeService
.
update
(
laboratoryEquipmentMake
);
if
(
success
)
{
return
new
JsonResult
().
success
();
}
else
{
return
JsonResult
.
failMessage
(
"保存失败"
);
}
}
@GetMapping
(
MODEL
+
"/view.json"
)
@Function
(
"laboratoryEquipmentMake.query"
)
@ResponseBody
public
JsonResult
<
LaboratoryEquipmentMake
>
queryInfo
(
Integer
id
)
{
LaboratoryEquipmentMake
laboratoryEquipmentMake
=
laboratoryEquipmentMakeService
.
queryById
(
id
);
return
JsonResult
.
success
(
laboratoryEquipmentMake
);
}
@PostMapping
(
MODEL
+
"/delete.json"
)
@Function
(
"laboratoryEquipmentMake.delete"
)
@ResponseBody
public
JsonResult
delete
(
String
ids
)
{
if
(
ids
.
endsWith
(
","
))
{
ids
=
StringUtils
.
substringBeforeLast
(
ids
,
","
);
}
List
<
Long
>
idList
=
ConvertUtil
.
str2longs
(
ids
);
laboratoryEquipmentMakeService
.
batchDelLaboratoryEquipmentMake
(
idList
);
return
new
JsonResult
().
success
();
}
}
src/main/java/com/spk/zyse/laboratory/web/query/LaboratoryEquipmentMakeQuery.java
0 → 100644
View file @
2f054007
package
com
.
spk
.
zyse
.
laboratory
.
web
.
query
;
import
com.spk.admin.core.annotation.Query
;
import
com.spk.admin.core.util.enums.CoreDictType
;
import
com.spk.admin.core.web.query.PageParam
;
import
java.util.Date
;
/**
*LaboratoryEquipmentMake查询
*/
public
class
LaboratoryEquipmentMakeQuery
extends
PageParam
{
@Query
(
name
=
"主键"
,
display
=
true
)
private
Integer
id
;
public
Integer
getId
(){
return
id
;
}
public
void
setId
(
Integer
id
){
this
.
id
=
id
;
}
}
src/main/resources/sql/laboratory/laboratoryEquipmentMake.md
0 → 100644
View file @
2f054007
queryByCondition
===
select
@pageTag(){
t.*
@}
from laboratory_equipment_make t
where 1=1
@//数据权限,该sql语句功能点
and #function("laboratoryEquipmentMake.query")#
batchDelLaboratoryEquipmentMakeByIds
===
*
批量逻辑删除
update laboratory_equipment_make set del_flag = 1 where ID in( #join(ids)#)
src/main/resources/static/js/laboratory/laboratoryEquipmentMake/add.js
0 → 100644
View file @
2f054007
layui
.
define
([
'form'
,
'laydate'
,
'table'
,
'laboratoryEquipmentMakeApi'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laboratoryEquipmentMakeApi
=
layui
.
laboratoryEquipmentMakeApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"#addForm"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"#addButton"
).
click
(
function
(){
form
.
on
(
'submit(form)'
,
function
(){
laboratoryEquipmentMakeApi
.
addLaboratoryEquipmentMake
(
$
(
'#addForm'
),
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"添加成功"
);
Lib
.
closeFrame
();
});
});
});
$
(
"#addButton-cancel"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'add'
,
view
);
});
\ No newline at end of file
src/main/resources/static/js/laboratory/laboratoryEquipmentMake/del.js
0 → 100644
View file @
2f054007
layui
.
define
([
'table'
,
'laboratoryEquipmentMakeApi'
],
function
(
exports
)
{
var
laboratoryEquipmentMakeApi
=
layui
.
laboratoryEquipmentMakeApi
;
var
table
=
layui
.
table
;
var
view
=
{
init
:
function
(){
},
delBatch
:
function
(){
var
data
=
Common
.
getMoreDataFromTable
(
table
,
"laboratoryEquipmentMakeTable"
);
if
(
data
==
null
){
return
;
}
Common
.
openConfirm
(
"确认要删除这些LaboratoryEquipmentMake?"
,
function
(){
var
ids
=
Common
.
concatBatchId
(
data
,
"id"
);
laboratoryEquipmentMakeApi
.
del
(
ids
,
function
(){
Common
.
info
(
"删除成功"
);
dataReload
();
})
})
}
}
exports
(
'del'
,
view
);
});
\ No newline at end of file
src/main/resources/static/js/laboratory/laboratoryEquipmentMake/edit.js
0 → 100644
View file @
2f054007
layui
.
define
([
'form'
,
'laydate'
,
'table'
,
'laboratoryEquipmentMakeApi'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laboratoryEquipmentMakeApi
=
layui
.
laboratoryEquipmentMakeApi
;
var
index
=
layui
.
index
;
var
view
=
{
init
:
function
(){
Lib
.
initGenrealForm
(
$
(
"#updateForm"
),
form
);
this
.
initSubmit
();
},
initSubmit
:
function
(){
$
(
"#updateButton"
).
click
(
function
(){
form
.
on
(
'submit(form)'
,
function
(){
laboratoryEquipmentMakeApi
.
updateLaboratoryEquipmentMake
(
$
(
'#updateForm'
),
function
(){
parent
.
window
.
dataReload
();
Common
.
info
(
"更新成功"
);
Lib
.
closeFrame
();
});
});
});
$
(
"#updateButton-cancel"
).
click
(
function
(){
Lib
.
closeFrame
();
});
}
}
exports
(
'edit'
,
view
);
});
\ No newline at end of file
src/main/resources/static/js/laboratory/laboratoryEquipmentMake/index.js
0 → 100644
View file @
2f054007
layui
.
define
([
'form'
,
'laydate'
,
'table'
],
function
(
exports
)
{
var
form
=
layui
.
form
;
var
laydate
=
layui
.
laydate
;
var
table
=
layui
.
table
;
var
laboratoryEquipmentMakeTable
=
null
;
var
view
=
{
init
:
function
(){
this
.
initTable
();
this
.
initSearchForm
();
this
.
initToolBar
();
window
.
dataReload
=
function
(){
Lib
.
doSearchForm
(
$
(
"#searchForm"
),
laboratoryEquipmentMakeTable
)
}
},
initTable
:
function
(){
laboratoryEquipmentMakeTable
=
table
.
render
({
elem
:
'#laboratoryEquipmentMakeTable'
,
height
:
Lib
.
getTableHeight
(
1
),
cellMinWidth
:
100
,
method
:
'post'
,
url
:
Common
.
ctxPath
+
'/laboratory/laboratoryEquipmentMake/list.json'
// 数据接口
,
page
:
Lib
.
tablePage
// 开启分页
,
limit
:
10
,
cols
:
[
[
// 表头
{
type
:
'checkbox'
,
fixed
:
'left'
,
},
{
field
:
'id'
,
title
:
'主键'
,
fixed
:
'left'
,
width
:
60
,
},
{
field
:
'processinstId'
,
title
:
'流程主键'
,
},
{
field
:
'equipment'
,
title
:
'设备'
,
},
{
field
:
'topicName'
,
title
:
'课题名称'
,
},
{
field
:
'experimenter'
,
title
:
'实验人'
,
},
{
field
:
'createTime'
,
title
:
'创建时间'
,
},
{
field
:
'updateTime'
,
title
:
'修改时间'
,
},
{
field
:
'startTime'
,
title
:
'开始时间'
,
},
{
field
:
'endTime'
,
title
:
'结束时间'
,
},
{
field
:
'remarks'
,
title
:
'备注'
,
},
{
field
:
'laboratoryId'
,
title
:
'实验室id'
,
}
]
]
});
table
.
on
(
'checkbox(laboratoryEquipmentMakeTable)'
,
function
(
obj
){
var
laboratoryEquipmentMake
=
obj
.
data
;
if
(
obj
.
checked
){
//按钮逻辑Lib.buttonEnable()
}
else
{
}
})
},
initSearchForm
:
function
(){
Lib
.
initSearchForm
(
$
(
"#searchForm"
),
laboratoryEquipmentMakeTable
,
form
);
},
initToolBar
:
function
(){
toolbar
=
{
add
:
function
()
{
// 获取选中数据
var
url
=
"/laboratory/laboratoryEquipmentMake/add.do"
;
Common
.
openDlg
(
url
,
"LaboratoryEquipmentMake管理>新增"
);
},
edit
:
function
()
{
// 获取选中数目
var
data
=
Common
.
getOneFromTable
(
table
,
"laboratoryEquipmentMakeTable"
);
if
(
data
==
null
){
return
;
}
var
url
=
"/laboratory/laboratoryEquipmentMake/edit.do?id="
+
data
.
id
;
Common
.
openDlg
(
url
,
"LaboratoryEquipmentMake管理>"
+
data
.
id
+
">编辑"
);
},
del
:
function
()
{
layui
.
use
([
'del'
],
function
(){
var
delView
=
layui
.
del
delView
.
delBatch
();
});
}
};
$
(
'.ext-toolbar'
).
on
(
'click'
,
function
()
{
var
type
=
$
(
this
).
data
(
'type'
);
toolbar
[
type
]
?
toolbar
[
type
].
call
(
this
)
:
''
;
});
}
}
exports
(
'index'
,
view
);
});
\ No newline at end of file
src/main/resources/static/js/laboratory/laboratoryEquipmentMake/laboratoryEquipmentMakeApi.js
0 → 100644
View file @
2f054007
/*访问后台的代码*/
layui
.
define
([],
function
(
exports
)
{
var
api
=
{
updateLaboratoryEquipmentMake
:
function
(
form
,
callback
){
Lib
.
submitForm
(
"/laboratory/laboratoryEquipmentMake/update.json"
,
form
,{},
callback
)
},
addLaboratoryEquipmentMake
:
function
(
form
,
callback
){
Lib
.
submitForm
(
"/laboratory/laboratoryEquipmentMake/add.json"
,
form
,{},
callback
)
},
del
:
function
(
ids
,
callback
){
Common
.
post
(
"/laboratory/laboratoryEquipmentMake/delete.json"
,{
"ids"
:
ids
},
function
(){
callback
();
})
}
};
exports
(
'laboratoryEquipmentMakeApi'
,
api
);
});
\ No newline at end of file
src/main/resources/templates/laboratory/laboratoryEquipmentMake/add.html
0 → 100644
View file @
2f054007
<!--# layout("/common/layout.html",{"jsBase":"/js/laboratory/laboratoryEquipmentMake/"}){ -->
<form
class=
"layui-form layui-form-pane"
id=
"addForm"
>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
流程主键
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"processinstId"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
设备
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"equipment"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
课题名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"topicName"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
实验人
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"experimenter"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
创建时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"createTime"
class=
"layui-input input-date"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
修改时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"updateTime"
class=
"layui-input input-date"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
开始时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"startTime"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
结束时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"endTime"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
备注
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"remarks"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
实验室id
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"laboratoryId"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<layui:submitButtons
id=
"addButton"
/>
</form>
<!--#} -->
<script>
layui
.
use
([
'add'
],
function
(){
var
laboratoryEquipmentMakeAdd
=
layui
.
add
laboratoryEquipmentMakeAdd
.
init
();
});
</script>
src/main/resources/templates/laboratory/laboratoryEquipmentMake/edit.html
0 → 100644
View file @
2f054007
<!--# layout("/common/layout.html",{"jsBase":"/js/laboratory/laboratoryEquipmentMake/"}){ -->
<form
class=
"layui-form layui-form-pane"
id=
"updateForm"
>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
流程主键
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"processinstId"
name=
"processinstId"
value=
"${laboratoryEquipmentMake.processinstId}"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
设备
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"equipment"
name=
"equipment"
value=
"${laboratoryEquipmentMake.equipment}"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
课题名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"topicName"
name=
"topicName"
value=
"${laboratoryEquipmentMake.topicName}"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
实验人
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"experimenter"
name=
"experimenter"
value=
"${laboratoryEquipmentMake.experimenter}"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
创建时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"createTime"
name=
"createTime"
value=
"${laboratoryEquipmentMake.createTime,"
yyyy-MM-dd
"}"
class=
"layui-input input-date"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
修改时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"updateTime"
name=
"updateTime"
value=
"${laboratoryEquipmentMake.updateTime,"
yyyy-MM-dd
"}"
class=
"layui-input input-date"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
开始时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"startTime"
name=
"startTime"
value=
"${laboratoryEquipmentMake.startTime}"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
结束时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"endTime"
name=
"endTime"
value=
"${laboratoryEquipmentMake.endTime}"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-row"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
备注
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"remarks"
name=
"remarks"
value=
"${laboratoryEquipmentMake.remarks}"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
实验室id
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"laboratoryId"
name=
"laboratoryId"
value=
"${laboratoryEquipmentMake.laboratoryId}"
class=
"layui-input"
>
</div>
</div>
</div>
</div>
<!-- 业务对象须有hidden字段,保存delFlag和version字段-->
<input
type=
"hidden"
name=
"id"
value=
${laboratoryEquipmentMake.id}
/>
<layui:submitButtons
id=
"updateButton"
/>
</form>
<!--#} -->
<script>
layui
.
use
([
'edit'
],
function
(){
var
laboratoryEquipmentMakeEdit
=
layui
.
edit
laboratoryEquipmentMakeEdit
.
init
();
});
</script>
src/main/resources/templates/laboratory/laboratoryEquipmentMake/index.html
0 → 100644
View file @
2f054007
<!--#layout("/common/layout.html",{"jsBase":"/js/laboratory/laboratoryEquipmentMake/"}){ -->
<layui:searchForm
formId=
"searchForm"
condition=
"${search}"
>
</layui:searchForm>
<div
class=
"layui-btn-group"
>
<layui:accessButton
function=
"laboratoryEquipmentMake.add"
action=
"add"
>
增加
</layui:accessButton>
<layui:accessButton
function=
"laboratoryEquipmentMake.edit"
action=
"edit"
>
编辑
</layui:accessButton>
<layui:accessButton
function=
"laboratoryEquipmentMake.del"
action=
"del"
>
删除
</layui:accessButton>
</div>
<table
id=
"laboratoryEquipmentMakeTable"
lay-filter=
"laboratoryEquipmentMakeTable"
></table>
<!--#} -->
<script>
layui
.
use
([
'index'
],
function
(){
var
index
=
layui
.
index
index
.
init
();
});
</script>
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