班前会添加装置单元
This commit is contained in:
@@ -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>
|
||||
/// 根据项目号获取项目信息
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user