This commit is contained in:
2026-01-14 10:35:47 +08:00
parent e6dde96b09
commit 4cf26d85e9
17 changed files with 6249 additions and 1 deletions
+2
View File
@@ -754,6 +754,7 @@
<Compile Include="TokenHelper.cs" />
<Compile Include="WebService\CNCECHSSEWebService.cs" />
<Compile Include="WebService\FileStructService.cs" />
<Compile Include="Workflow\WorkflowTodoitemsService.cs" />
<Compile Include="ZHGL\ConstructionMonthReport\ConstructionMonthReportMainCostService.cs" />
<Compile Include="ZHGL\ConstructionMonthReport\ConstructionMonthReportService.cs" />
<Compile Include="ZHGL\ConstructionMonthReport\ConstructionMonthReportSubCostService.cs" />
@@ -795,6 +796,7 @@
<Compile Include="ZHGL\Information\AccidentCauseReportService.cs" />
<Compile Include="ZHGL\Information\ActionWorkLedgerItemService.cs" />
<Compile Include="ZHGL\Information\ActionWorkLedgerService.cs" />
<Compile Include="ZHGL\Information\DCGL_KeyProjectRectificationSituationLedgerService.cs" />
<Compile Include="ZHGL\Information\DrillConductedQuarterlyReportItemService.cs" />
<Compile Include="ZHGL\Information\DrillConductedQuarterlyReportService.cs" />
<Compile Include="ZHGL\Information\DrillPlanHalfYearReportItemService.cs" />
+5
View File
@@ -5275,5 +5275,10 @@ namespace BLL
public const string ProjectHighlightsSitePicReportMenuId = "38177E89-4BA8-4D66-AFB9-93644DFE7451";
#endregion
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
public const string DCGLKeyProjectRectificationSituationLedgerMenuId = "35BA8E89-4575-4A3F-9C22-98B323E67DA1";
}
}
@@ -2050,6 +2050,76 @@
}
}
#endregion
#region
/// <summary>
/// 督查大队:重点工程项目质量专项整治行动开展情况台账上报
/// </summary>
/// <param name="Id"></param>
/// <param name="CurrUser"></param>
/// <returns></returns>
public static string UpKeyProjectRectificationSituationLedger(string Id, Model.Person_Persons CurrUser)
{
string code = "0";
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
try
{
var upReport = from x in db.DCGL_Report_KeyProjectRectificationSituationLedger
where x.Id == Id
select x;
code = UpApiKeyProjectRectificationSituationLedger(upReport).ToString();
if (code == "1")
{
foreach (var item in upReport.Select(p => p.Id))
{
var report = db.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == item);
if (report != null)
{
report.UpState = BLL.Const.UpState_3;
report.ReportDate = DateTime.Now;
db.SubmitChanges();
////更新 当前人要处理的意见
ProjectDataFlowSetService.CloseFlowOperate(Const.DCGLKeyProjectRectificationSituationLedgerMenuId, item, string.Empty);
// //更新催报信息
//UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString());
}
}
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
else
{
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
}
catch (Exception ex)
{
ErrLogInfo.WriteLog("【重点工程项目质量专项整治行动开展情况台账】上传到服务器", ex);
LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
}
return code;
}
}
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="upReport">主表</param>
/// <param name="upReportItem">明细表</param>
/// <returns></returns>
private static int UpApiKeyProjectRectificationSituationLedger(IQueryable<Model.DCGL_Report_KeyProjectRectificationSituationLedger> upReport)
{
string baseurl = "/api/InformationData/SaveKeyProjectRectificationSituationLedger";
var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport).Replace("}{", ",") + "]}";
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
return responeData.code;
}
#endregion
#endregion
@@ -0,0 +1,253 @@
using FineUIPro;
using Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BLL
{
public static class WorkflowTodoitemsService
{
public enum Status:int
{
= 0,
= 1,
}
public static string SysCode = "QHSE";
#region
/// <summary>
/// 记录数
/// </summary>
public static int Count
{
get;
set;
}
private static IQueryable<Model.Workflow_TodoItems> GetWorkflow_TodoItemsByModle(Model.Workflow_TodoItems table)
{
var q = from x in Funs.DB.Workflow_TodoItems
where
(string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) &&
(string.IsNullOrEmpty(table.SysCode) || x.SysCode.Contains(table.SysCode)) &&
(string.IsNullOrEmpty(table.FlowId) || x.FlowId.Contains(table.FlowId)) &&
(string.IsNullOrEmpty(table.RequestName) || x.RequestName.Contains(table.RequestName)) &&
(string.IsNullOrEmpty(table.WorkflowName) || x.WorkflowName.Contains(table.WorkflowName)) &&
(string.IsNullOrEmpty(table.NodeName) || x.NodeName.Contains(table.NodeName)) &&
(string.IsNullOrEmpty(table.PCUrl) || x.PCUrl.Contains(table.PCUrl)) &&
(string.IsNullOrEmpty(table.AppUrl) || x.AppUrl.Contains(table.AppUrl)) &&
(string.IsNullOrEmpty(table.Creator) || x.Creator.Contains(table.Creator)) &&
(string.IsNullOrEmpty(table.Receiver) || x.Receiver.Contains(table.Receiver))
select x
;
return q;
}
/// <summary>
/// 获取分页列表
/// </summary>
/// <param name="table"></param>
/// <param name="grid1"></param>
/// <returns></returns>
private static IEnumerable GetListData(Model.Workflow_TodoItems table, Grid grid1)
{
var q = GetWorkflow_TodoItemsByModle(table);
Count = q.Count();
if (Count == 0)
{
return null;
}
q = q.Skip(grid1.PageSize * grid1.PageIndex).Take(grid1.PageSize);
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
return from x in q
select new
{
x.Id,
x.SysCode,
x.FlowId,
x.RequestName,
x.WorkflowName,
x.NodeName,
x.PCUrl,
x.AppUrl,
x.Creator,
x.CreateDateTime,
x.Receiver,
x.ReceiveDateTime,
x.Status,
};
}
private static void UpdateWorkflow_TodoItems(Model.Workflow_TodoItems newtable)
{
Model.Workflow_TodoItems table = Funs.DB.Workflow_TodoItems.FirstOrDefault(x => x.Id == newtable.Id);
if (table != null)
{
table.Id = newtable.Id;
table.SysCode = newtable.SysCode;
table.FlowId = newtable.FlowId;
table.RequestName = newtable.RequestName;
table.WorkflowName = newtable.WorkflowName;
table.NodeName = newtable.NodeName;
table.PCUrl = newtable.PCUrl;
table.AppUrl = newtable.AppUrl;
table.Creator = newtable.Creator;
table.CreateDateTime = newtable.CreateDateTime;
table.Receiver = newtable.Receiver;
table.ReceiveDateTime = newtable.ReceiveDateTime;
table.Status = newtable.Status;
Funs.DB.SubmitChanges();
}
}
private static void DeleteWorkflow_TodoItemsById(string Id)
{
Model.Workflow_TodoItems table = Funs.DB.Workflow_TodoItems.FirstOrDefault(x => x.Id == Id);
if (table != null)
{
Funs.DB.Workflow_TodoItems.DeleteOnSubmit(table);
Funs.DB.SubmitChanges();
}
}
#endregion
public static Model.Workflow_TodoItems GetWorkflow_TodoItemsById(string id)
{
return Funs.DB.Workflow_TodoItems.FirstOrDefault(x => x.Id == id);
}
/// <summary>
/// 根据接收者获取待办事项
/// </summary>
/// <param name="receiver">接收者名称</param>
/// <returns>待办事项列表</returns>
public static List<Model.Workflow_TodoItems> GetWorkflow_TodoItemsByReceiver (string receiver)
{
return Funs.DB.Workflow_TodoItems.Where(x => x.Receiver == receiver && x.Status == (int)Status.).OrderByDescending(x => x.CreateDateTime).ToList();
}
public static int GetWorkflow_TodoItemCountByReceiver(string receiver)
{
return Funs.DB.Workflow_TodoItems.Count(x => x.Receiver == receiver && x.Status == (int)Status.);
}
public static List<Model.Workflow_TodoItems> GetWorkflow_TodoItemsByReceiver(string receiver,int state)
{
if (state==-1)
{
return Funs.DB.Workflow_TodoItems.Where(x => x.Receiver == receiver ).OrderByDescending(x=>x.CreateDateTime).ToList();
}
else
{
return Funs.DB.Workflow_TodoItems.Where(x => x.Receiver == receiver && x.Status == state).OrderByDescending(x => x.CreateDateTime).ToList();
}
}
/// <summary>
/// 添加待办事项
/// </summary>
/// <param name="newtable"></param>
public static void AddWorkflow_TodoItems(Model.Workflow_TodoItems newtable)
{
Model.Workflow_TodoItems table = new Model.Workflow_TodoItems
{
Id = newtable.Id,
SysCode = newtable.SysCode,
FlowId = newtable.FlowId,
RequestName = newtable.RequestName,
WorkflowName = newtable.WorkflowName,
NodeName = newtable.NodeName,
PCUrl = newtable.PCUrl,
AppUrl = newtable.AppUrl,
Creator = newtable.Creator,
CreateDateTime = newtable.CreateDateTime,
Receiver = newtable.Receiver,
ReceiveDateTime = newtable.ReceiveDateTime,
Status = newtable.Status,
};
Funs.DB.Workflow_TodoItems.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
/// <summary>
/// 增加待办事项
/// </summary>
/// <param name="flowId">流程ID</param>
/// <param name="requestName">标题</param>
/// <param name="workflowName">流程类型名称</param>
/// <param name="nodeName">步骤名称(节点名称)</param>
/// <param name="pcUrl">PC地址</param>
/// <param name="appUrl">APP地址</param>
/// <param name="creator">创建人</param>
/// <param name="receiver">接收人</param>
public static void Add(string flowId, string requestName, string workflowName, string nodeName, string pcUrl, string appUrl, string creator, string receiver)
{
if (IsWorkflow_TodoItems( flowId, receiver, nodeName))
{
return;
}
Model.Workflow_TodoItems table = new Model.Workflow_TodoItems
{
Id = SQLHelper.GetNewID(),
SysCode = SysCode,
FlowId = flowId,
RequestName = requestName,
WorkflowName = workflowName,
NodeName = nodeName,
PCUrl = pcUrl,
AppUrl = "",
Creator = creator,
CreateDateTime = DateTime.Now,
Receiver = receiver,
ReceiveDateTime = DateTime.Now,
Status = (int)Status.,
};
Funs.DB.Workflow_TodoItems.InsertOnSubmit(table);
Funs.DB.SubmitChanges();
}
/// <summary>
/// 删除待办事项
/// </summary>
/// <param name="flowId"></param>
public static void DeleteWorkflow_TodoItemsByflowId(string flowId)
{
var q = from x in Funs.DB.Workflow_TodoItems
where x.FlowId == flowId
select x;
foreach (var item in q)
{
Funs.DB.Workflow_TodoItems.DeleteOnSubmit(item);
}
Funs.DB.SubmitChanges();
}
//根据flowid 和 receiver 判断是否有待办事项
public static bool IsWorkflow_TodoItems(string flowId, string receiver,string nodename)
{
return Funs.DB.Workflow_TodoItems.Any(x => x.FlowId == flowId && x.Receiver == receiver && x.NodeName== nodename);
}
/// <summary>
/// 办结待办事项
/// </summary>
/// <param name="flowId"></param>
/// <param name="receiver"></param>
public static void DoneWorkflow_TodoItems(string flowId,string receiver)
{
Model.Workflow_TodoItems table =
Funs.DB.Workflow_TodoItems.FirstOrDefault(x => x.FlowId == flowId && x.Receiver == receiver);
if (table != null)
{
table.Status = (int)Status.;
Funs.DB.SubmitChanges();
}
}
}
}
@@ -0,0 +1,215 @@
using System.Collections.Generic;
using System.Linq;
namespace BLL
{
public static class DCGL_KeyProjectRectificationSituationLedgerService
{
/// <summary>
/// 重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="Id">重点工程项目质量专项整治行动开展情况台账Id</param>
/// <returns>重点工程项目质量专项整治行动开展情况台账</returns>
public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerById(string Id)
{
return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
}
///// <summary>
///// 重点工程项目质量专项整治行动开展情况台账
///// </summary>
///// <param name="unitId">单位Id</param>
///// <param name = "year" > 年度 </ param >
///// <param name="month">月份</param>
///// <returns>重点工程项目质量专项整治行动开展情况台账</returns>
//public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdAndYearAndMonth(string unitId, int year, int month)
//{
// return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
//}
/// <summary>
/// 根据单位Id获取重点工程项目质量专项整治行动开展情况台账集合
/// </summary>
/// <param name="UnitId">单位Id</param>
/// <returns>重点工程项目质量专项整治行动开展情况台账集合</returns>
public static List<Model.View_Information_MillionsMonthlyReport> GetMillionsMonthlyReportsByUnitId(string UnitId)
{
return (from x in Funs.DB.View_Information_MillionsMonthlyReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
}
/// <summary>
/// 增加重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="model">重点工程项目质量专项整治行动开展情况台账实体</param>
public static void AddKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = new Model.DCGL_Report_KeyProjectRectificationSituationLedger
{
Id = model.Id,
UnitId = model.UnitId,
Year = model.Year,
UpState = model.UpState,
HandleState = model.HandleState,
HandleMan = model.HandleMan,
DutyPerson = model.DutyPerson,
CompileDate = model.CompileDate,
CompileMan = model.CompileMan,
CompileManName = model.CompileManName,
};
newModel.HasPlan = model.HasPlan;
newModel.PlanDate = model.PlanDate;
newModel.HasWorkTeam = model.HasWorkTeam;
newModel.TeamDate = model.TeamDate;
newModel.KeyProjectNum = model.KeyProjectNum;
newModel.Remark = model.Remark;
newModel.ReportDate = model.ReportDate;
newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.InsertOnSubmit(newModel);
Funs.DB.SubmitChanges();
}
/// <summary>
/// 修改重点工程项目质量专项整治行动开展情况台账
/// </summary>
/// <param name="model">重点工程项目质量专项整治行动开展情况台账实体</param>
public static void UpdateKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == model.Id);
if (newModel != null)
{
newModel.UnitId = model.UnitId;
newModel.Year = model.Year;
newModel.UpState = model.UpState;
newModel.HandleState = model.HandleState;
newModel.HandleMan = model.HandleMan;
newModel.DutyPerson = model.DutyPerson;
newModel.ReportDate = model.ReportDate;
newModel.CompileDate = model.CompileDate;
newModel.HasPlan = model.HasPlan;
newModel.PlanDate = model.PlanDate;
newModel.HasWorkTeam = model.HasWorkTeam;
newModel.TeamDate = model.TeamDate;
newModel.KeyProjectNum = model.KeyProjectNum;
newModel.Remark = model.Remark;
newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据Id获取数据
/// </summary>
/// <param name="Id"></param>
public static void DeleteKeyProjectRectificationSituationLedgerById(string Id)
{
Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
if (newModel != null)
{
Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.DeleteOnSubmit(newModel);
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 根据报表单位,报表时间判断是否存在
/// </summary>
/// <param name="Id">Id</param>
/// <returns></returns>
public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdDate(string unitId, int year)
{
return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Year == year);
}
}
}