Commit 557bdd34 by liuyang

2024-08-31 文档库优化

parent a88c819a
......@@ -181,7 +181,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
DaoUtils.update(HGWD001.UPDATE, hgwd001);
}
@OperationLogAnnotation(operModul = "文档库",operType = "发布",operDesc = "发布操作")
@OperationLogAnnotation(operModul = "文档库",operType = "发布",operDesc = "发布附件操作")
public EiInfo updateRelease(EiInfo inInfo){
int i = 0;
try {
......@@ -209,6 +209,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
hgwd001a.setChangeContent("发布");
hgwd001a.setChangeStart("V".concat(hgwd001.getDocVersion()+""));
hgwd001a.setChangeEnd("V".concat(hgwd001.getDocVersion()+1+""));
//添加变更记录
HGWDTools.HgWd001.addHGWD001A(hgwd001a);
hgwd001.setStatus(HgWdConstant.FileStatus.S_1);
......@@ -223,7 +224,7 @@ public class ServiceHGWD001 extends ServiceEPBase {
return inInfo;
}
@OperationLogAnnotation(operModul = "文档库",operType = "修改",operDesc = "文档库-附件清单A-修改附件操作")
@OperationLogAnnotation(operModul = "文档库",operType = "修改",operDesc = "文档库-附件变更-变更附件操作")
public EiInfo updateFile(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
......@@ -258,6 +259,13 @@ public class ServiceHGWD001 extends ServiceEPBase {
return inInfo;
}
/**
* 初始化变更记录
* @param hgwd001 项目信息
* @param hgwd099 附件信息
* @param type 变更类型
* @return HGWD001A 变更记录
*/
public HGWD001A initHgwd001a(HGWD001 hgwd001,HGWD099 hgwd099,String type){
HGWD001A hgwd001a = new HGWD001A();
hgwd001a.setCompanyCode(hgwd001.getCompanyCode());
......@@ -312,7 +320,12 @@ public class ServiceHGWD001 extends ServiceEPBase {
return inInfo;
}
/**
* 附件变更通知
* @param hgwd001 待变更的项目名称
* @param oldName 变更前附件名称
* @param newName 变更后附件名称
*/
public void interaction(HGWD001 hgwd001,String oldName,String newName){
try {
HGPZ009 hgpz009 = HGPZTools.HgPz009.getByCode(hgwd001.getAccountCode());
......
......@@ -125,7 +125,7 @@ public class ServiceHGWD099 extends ServiceEPBase {
for (Map resultRow : resultRows) {
HGWD099 hgdm099 = new HGWD099();
hgdm099.fromMap(resultRow);
DaoUtils.update(HGWD099.DELETE, hgdm099);
DaoUtils.update(HGWD099.DELETE, hgdm099); //逻辑删除
HGWD001 hgwd001 = HGWDTools.HgWd001.get(hgdm099.getBizId());
if (hgwd001 != null) {
HGWD001A hgwd001a = new HGWD001A();
......
......@@ -202,7 +202,7 @@ $(function () {
let leafLevel = parseInt($("#inqu_status-0-leafLevel").val())+1;
let type = $("#inqu_status-0-type").val();
if (null == parentId || "" === parentId) {
message( "请在文档库树选择任意节点后新增文档库");
message( "请在文档目录树选择任意节点后新增文档目录");
return
}
/*if (type == "company"){
......@@ -235,7 +235,7 @@ $(function () {
$("#remove").on("click", () => {
const orgId = $("#inqu_status-0-parentId").val()
if (null == orgId || "" === orgId || "root" === orgId) {
message2("文档库", "请在文档库树选择任意节点后删除文档库");
message2("文档库", "请在文档目录树选择任意节点后删除文档目录");
return
}
$("#deleteOrgWindow").data("kendoWindow").center()
......@@ -297,7 +297,7 @@ $(function () {
let leafLevel = parseInt($("#inqu_status-0-leafLevel").val())+1;
let type = $("#inqu_status-0-type").val();
if (null == orgId || "" === orgId || "root" === orgId) {
message2("提示", "请在文档库树选择公司节点后编辑文档库");
message2("提示", "请在文档目录树选择公司节点后编辑文档目录");
return
}
if (type == "1"){
......@@ -810,8 +810,6 @@ function showPreview() {
/**
* 文件上传
*
* @param id
*/
function uploadFile() {
let lv = $("#inqu_status-0-leafLevel").val();
......
......@@ -14,7 +14,7 @@
<div id="splitter" class="i-fit-height">
<div id="left-pane" class="i-fit-height">
<EF:EFRegion title="文档树" id="tree" fitHeight="true">
<EF:EFRegion title="文档目录树" id="tree" fitHeight="true">
<div class="row" style="display: block">
<div class="col-md-12" style="display:flex;align-items: center">
<%--<EF:EFInput ename="searchText" colWidth="8" inline="true"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment