班前会添加装置单元

This commit is contained in:
2025-09-03 16:40:38 +08:00
parent 47c8a5d415
commit f6b2bdfb81
19 changed files with 409 additions and 147 deletions
+20
View File
@@ -87,6 +87,26 @@ namespace BLL
}
#endregion
#region
public static List<Model.BaseInfoItem> getProjectInstallations(string projectId)
{
using(Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var list = (from x in db.Project_Installation
where x.ProjectId == projectId
select new Model.BaseInfoItem
{
BaseInfoId = x.InstallationId,
BaseInfoCode = x.InstallationCode,
BaseInfoName = x.InstallationName
}
).ToList();
return list;
}
}
#endregion
#region
/// <summary>
/// 根据项目号获取项目信息
+9 -2
View File
@@ -47,6 +47,8 @@ namespace BLL
MeetingHostManName = db.SitePerson_Person.First(y => y.PersonId == x.MeetingHostMan).PersonName,
AttentPerson = x.AttentPerson,
AttentPersonNum = x.AttentPersonNum ?? 0,
InstallationId = x.InstallationId,
InstallationName = x.InstallationName,
CompileDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.CompileDate),
CompileManId = x.CompileMan,
MeetingHostManOther = x.MeetingHostManOther,
@@ -228,6 +230,8 @@ namespace BLL
MeetingType = meetingType,
MeetingHours = x.MeetingHours ?? 0,
MeetingHostMan = x.MeetingHostMan,
InstallationId = x.InstallationId,
InstallationName = x.InstallationName,
AttentPerson = x.AttentPerson,
CompileDate = string.Format("{0:yyyy-MM-dd HH:mm}", x.CompileDate),
MeetingHostManOther=x.MeetingHostManOther,
@@ -400,8 +404,11 @@ namespace BLL
AttentPersonNum=meeting.AttentPersonNum,
MeetingHostManOther=meeting.MeetingHostManOther,
States = Const.State_2,
ManagePersonNum = m_personum
};
ManagePersonNum = m_personum,
InstallationId = meeting.InstallationId,
InstallationName = meeting.InstallationName,
}
;
if (meeting.States != "1")
{
+1 -1
View File
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BLL</RootNamespace>
<AssemblyName>BLL</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
+3 -1
View File
@@ -45,7 +45,9 @@ namespace BLL
AttentPerson = classMeeting.AttentPerson,
AttentPersonNum=classMeeting.AttentPersonNum,
MeetingHostManOther=classMeeting.MeetingHostManOther,
ManagePersonNum = classMeeting.ManagePersonNum
ManagePersonNum = classMeeting.ManagePersonNum,
InstallationId = classMeeting.InstallationId,
InstallationName = classMeeting.InstallationName
};
db.Meeting_ClassMeeting.InsertOnSubmit(newClassMeeting);
db.SubmitChanges();
+15 -5
View File
@@ -82,13 +82,23 @@ namespace BLL
/// <param name="teamGroupId"></param>
public static void DeleteTeamGroupById(string teamGroupId)
{
Model.SGGLDB db = Funs.DB;
Model.ProjectData_TeamGroup teamGroup = db.ProjectData_TeamGroup.FirstOrDefault(e => e.TeamGroupId == teamGroupId);
if (teamGroup != null)
try
{
db.ProjectData_TeamGroup.DeleteOnSubmit(teamGroup);
db.SubmitChanges();
using (var db = new Model.SGGLDB(Funs.ConnString))
{
Model.ProjectData_TeamGroup teamGroup = db.ProjectData_TeamGroup.FirstOrDefault(e => e.TeamGroupId == teamGroupId);
if (teamGroup != null)
{
db.ProjectData_TeamGroup.DeleteOnSubmit(teamGroup);
db.SubmitChanges();
}
}
}catch(System.Exception ex)
{
}
}
/// <summary>