1
This commit is contained in:
@@ -434,7 +434,7 @@ namespace BLL
|
||||
Model.HJGL_Batch_BatchTrust newBatchTrust = new Model.HJGL_Batch_BatchTrust
|
||||
{
|
||||
TrustBatchId = trustBatchId,
|
||||
TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now),
|
||||
TrustBatchCode = BLL.Batch_BatchTrustService.BuildTrustBatchCode(batch.PointBatchCode, DateTime.Now,string.Empty,string.Empty),
|
||||
TrustDate = DateTime.Now,
|
||||
ProjectId = batch.ProjectId,
|
||||
PointBatchId = pointBatchId,
|
||||
|
||||
@@ -100,6 +100,20 @@
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按类型获取探伤类型项
|
||||
/// </summary>
|
||||
/// <param name="DetectionTypeType"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_DetectionType> GetDetectionTypeListByDetectionTypeType2(string[] strs)
|
||||
{
|
||||
var list = (from x in Funs.DB.Base_DetectionType
|
||||
where strs.Contains(x.DetectionTypeCode) && !x.DetectionTypeCode.Contains("/")
|
||||
orderby x.DetectionTypeCode
|
||||
select x).ToList();
|
||||
return list;
|
||||
}
|
||||
|
||||
#region 探伤类型下拉项
|
||||
/// <summary>
|
||||
/// 探伤类型下拉项
|
||||
|
||||
@@ -10,9 +10,9 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 根据点口批编号生成委托单号,在流水号前追加日期段。
|
||||
/// </summary>
|
||||
public static string BuildTrustBatchCode(string pointBatchCode, System.DateTime trustDate)
|
||||
public static string BuildTrustBatchCode(string pointBatchCode, System.DateTime trustDate, string typeStr1, string typeStr2)
|
||||
{
|
||||
string trustBatchCode = (pointBatchCode ?? string.Empty).Replace("-DK-", "-WT-");
|
||||
string trustBatchCode = (pointBatchCode ?? string.Empty).Replace("-DK-", "-WT-").Replace(typeStr1, typeStr2);
|
||||
return InsertDateBeforeSerial(trustBatchCode, trustDate);
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ namespace BLL
|
||||
newBatchDetail.IsBuildTrust = batchDetail.IsBuildTrust;
|
||||
newBatchDetail.IsWelderFirst = batchDetail.IsWelderFirst;
|
||||
newBatchDetail.IsPipelineFirst = batchDetail.IsPipelineFirst;
|
||||
newBatchDetail.NDT = batchDetail.NDT;
|
||||
newBatchDetail.Remark = batchDetail.Remark;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user