添加报送文件开始编号属性及相关逻辑
This commit is contained in:
@@ -695,5 +695,9 @@ namespace YLErp.Configuration
|
||||
/// 衡泰内证账号
|
||||
/// </summary>
|
||||
public string HTAccount { get; }
|
||||
/// <summary>
|
||||
/// 报送文件开始编号
|
||||
/// </summary>
|
||||
int ReportFileBeginNumber { get; }
|
||||
}
|
||||
}
|
||||
@@ -140,6 +140,11 @@ namespace YLErp.Configuration
|
||||
/// </summary>
|
||||
public int UploadFileSizeLimit => ErpElement.UploadFileSizeLimit;
|
||||
|
||||
/// <summary>
|
||||
/// 报送文件开始编号
|
||||
/// </summary>
|
||||
public int ReportFileBeginNumber => ErpElement.ReportFileBeginNumber;
|
||||
|
||||
#region-----is-----
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -813,6 +813,8 @@ namespace YLErp
|
||||
/// 衡泰内证账号
|
||||
/// </summary>
|
||||
public string HTAccount { get; set; } = "";
|
||||
|
||||
public int ReportFileBeginNumber { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -303,6 +303,7 @@ namespace YLErp.Modules.AppModule
|
||||
// 5.4.1
|
||||
//-----------------------------------------------
|
||||
configService.AddDataIfNotExists("ProjectConfig", "Erp.IsAutoSealAfterGeneratedBook", "false", "bool", "确认书生成时是否自动用印(IsAutoSealAndUploadFiles勾选时生效)");
|
||||
configService.AddDataIfNotExists("ProjectConfig", "Erp.ReportFileBeginNumber", "0", "int", "报送文件开始编号");
|
||||
//-----------------------------------------------
|
||||
// 删除不再使用的
|
||||
//-----------------------------------------------
|
||||
|
||||
@@ -262,6 +262,10 @@ namespace YLErp.Modules.SuperviseReportModule.SAC.Service
|
||||
fileId = Regex.Match(fileId, @"\d{4}$").Value;
|
||||
index = int.Parse(fileId) + 1;
|
||||
}
|
||||
if (index <= PS.Config.ReportFileBeginNumber)
|
||||
{
|
||||
index += PS.Config.ReportFileBeginNumber;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user