11
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
<Compile Include="WeldingProcess\TrustManage\Batch_BatchTrustService.cs" />
|
||||
<Compile Include="WeldingProcess\TrustManage\Batch_PointBatchItemService.cs" />
|
||||
<Compile Include="WeldingProcess\TrustManage\Batch_PointBatchService.cs" />
|
||||
<Compile Include="WeldingProcess\WeldingManage\DailyReportCompleteService.cs" />
|
||||
<Compile Include="WeldingProcess\WeldingManage\Pipeline_PipelineDetectionTypeService.cs" />
|
||||
<Compile Include="WeldingProcess\WeldingManage\Pipeline_PipelineService.cs" />
|
||||
<Compile Include="WeldingProcess\WeldingManage\Pipeline_WeldingDailyService.cs" />
|
||||
|
||||
@@ -530,6 +530,11 @@ namespace BLL
|
||||
/// </summary>
|
||||
public const string HJGL_PreWeldReportMenuId = "8D92CA4E-F267-4175-9152-56F095668FC9";
|
||||
|
||||
/// <summary>
|
||||
/// 日报完成情况
|
||||
/// </summary>
|
||||
public const string DailyReportCompleteMenuId = "948B01F1-27B4-49DF-9315-C42BB7BBE7AF";
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
@@ -84,24 +84,6 @@ namespace BLL
|
||||
return (from x in Funs.DB.Welder_TeamGroup orderby x.TeamGroupCode select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 班组下拉选择项
|
||||
/// </summary>
|
||||
/// <param name="dropName"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
/// <param name="itemText"></param>
|
||||
public static void InitTeamGroupDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string itemText)
|
||||
{
|
||||
dropName.DataValueField = "TeamGroupId";
|
||||
dropName.DataTextField = "TeamGroupName";
|
||||
dropName.DataSource = GetTeamGroupList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName,itemText);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取班组下拉选择项
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
using Model;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public partial class DailyReportCompleteService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取日报完成信息
|
||||
/// </summary>
|
||||
/// <param name="completeId">Id</param>
|
||||
/// <returns></returns>
|
||||
public static Model.Pipeline_DailyReportComplete GetDailyReportComplete(string completeId)
|
||||
{
|
||||
return Funs.DB.Pipeline_DailyReportComplete.FirstOrDefault(x => x.DailyReportCompleteId == completeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加日报完成信息
|
||||
/// </summary>
|
||||
/// <param name="complete"></param>
|
||||
public static void AddDailyReportComplete(Model.Pipeline_DailyReportComplete complete)
|
||||
{
|
||||
Model.HJGLDB db = Funs.DB;
|
||||
Model.Pipeline_DailyReportComplete newR = new Model.Pipeline_DailyReportComplete();
|
||||
newR.DailyReportCompleteId = complete.DailyReportCompleteId;
|
||||
newR.ProjectId =complete.ProjectId;
|
||||
newR.UnitId = complete.UnitId;
|
||||
newR.TeamGroupId =complete.TeamGroupId;
|
||||
newR.DailyReportDate = complete.DailyReportDate;
|
||||
newR.IsComplete = complete.IsComplete;
|
||||
|
||||
db.Pipeline_DailyReportComplete.InsertOnSubmit(newR);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改日报完成信息
|
||||
/// </summary>
|
||||
/// <param name="complete"></param>
|
||||
public static void UpdateDailyReportComplete(Model.Pipeline_DailyReportComplete complete)
|
||||
{
|
||||
Model.HJGLDB db = Funs.DB;
|
||||
Model.Pipeline_DailyReportComplete newR = db.Pipeline_DailyReportComplete.First(e => e.DailyReportCompleteId == complete.DailyReportCompleteId);
|
||||
newR.ProjectId = complete.ProjectId;
|
||||
newR.UnitId = complete.UnitId;
|
||||
newR.TeamGroupId = complete.TeamGroupId;
|
||||
newR.DailyReportDate = complete.DailyReportDate;
|
||||
newR.IsComplete = complete.IsComplete;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除日报完成信息
|
||||
/// </summary>
|
||||
/// <param name="completeId"></param>
|
||||
public static void DeleteDailyReportComplete(string completeId)
|
||||
{
|
||||
Model.HJGLDB db = Funs.DB;
|
||||
Model.Pipeline_DailyReportComplete delR = db.Pipeline_DailyReportComplete.First(e => e.DailyReportCompleteId == completeId);
|
||||
db.Pipeline_DailyReportComplete.DeleteOnSubmit(delR);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否存在日报完成信息
|
||||
/// </summary>
|
||||
/// <param name="projectId"></param>
|
||||
/// <param name="completeId"></param>
|
||||
/// <param name="teamGroup"></param>
|
||||
/// <param name="reportDate"></param>
|
||||
/// <returns>是否存在</returns>
|
||||
public static bool IsExistDailyReportComplete(string projectId , string completeId, string teamGroup, DateTime reportDate)
|
||||
{
|
||||
bool isExist = false;
|
||||
var role = Funs.DB.Pipeline_DailyReportComplete.FirstOrDefault(x => x.ProjectId == projectId && x.TeamGroupId==teamGroup && x.DailyReportDate== reportDate && x.DailyReportCompleteId != completeId);
|
||||
if (role != null)
|
||||
{
|
||||
isExist = true;
|
||||
}
|
||||
return isExist;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user