修改质量计划
This commit is contained in:
@@ -115,6 +115,16 @@ namespace BLL
|
|||||||
{
|
{
|
||||||
return db.Plan_MainPlanApprove.OrderByDescending(x => x.ApproveDate).FirstOrDefault(x => x.MainPlanId == MainPlanId && x.ApproveType == state);
|
return db.Plan_MainPlanApprove.OrderByDescending(x => x.ApproveDate).FirstOrDefault(x => x.MainPlanId == MainPlanId && x.ApproveType == state);
|
||||||
}
|
}
|
||||||
|
public static string GetHandleManName(string MainPlanId)
|
||||||
|
{
|
||||||
|
string name = string.Empty;
|
||||||
|
var a= Funs.DB.Plan_MainPlanApprove.FirstOrDefault(x => x.MainPlanId == MainPlanId && x.ApproveDate == null);
|
||||||
|
if (a != null)
|
||||||
|
{
|
||||||
|
name = BLL.Person_PersonsService.GetPersonsNameById(a.ApproveMan);
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改总包施工计划审批信息
|
/// 修改总包施工计划审批信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ namespace BLL
|
|||||||
x.State,
|
x.State,
|
||||||
StateStr = ConvertState(x.State),
|
StateStr = ConvertState(x.State),
|
||||||
CompileManName = (from y in db.Person_Persons where y.PersonId == x.CompileMan select y.PersonName).First(),
|
CompileManName = (from y in db.Person_Persons where y.PersonId == x.CompileMan select y.PersonName).First(),
|
||||||
|
HandleManName = BLL.CQMS_MainPlanApproveService.GetHandleManName(x.State),
|
||||||
FilePath = x.FilePath,
|
FilePath = x.FilePath,
|
||||||
};
|
};
|
||||||
List<Model.Plan_MainPlan> res = new List<Model.Plan_MainPlan>();
|
List<Model.Plan_MainPlan> res = new List<Model.Plan_MainPlan>();
|
||||||
@@ -208,7 +209,7 @@ namespace BLL
|
|||||||
cd.FileName = item.FileName;
|
cd.FileName = item.FileName;
|
||||||
cd.CompileDate = item.CompileDate;
|
cd.CompileDate = item.CompileDate;
|
||||||
cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
|
cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
|
||||||
cd.State = item.State + "$" + item.StateStr;
|
cd.State = item.State + "$" + item.StateStr + "&" + item.HandleManName;
|
||||||
cd.FilePath = item.FilePath;
|
cd.FilePath = item.FilePath;
|
||||||
res.Add(cd);
|
res.Add(cd);
|
||||||
}
|
}
|
||||||
@@ -226,7 +227,7 @@ namespace BLL
|
|||||||
var q = Funs.DB.Plan_MainPlan.FirstOrDefault(e => e.MainPlanId == MainPlanId);
|
var q = Funs.DB.Plan_MainPlan.FirstOrDefault(e => e.MainPlanId == MainPlanId);
|
||||||
if (q != null)
|
if (q != null)
|
||||||
{
|
{
|
||||||
q.State = q.State + "$" + ConvertState(q.State);
|
q.State = q.State + "$" + ConvertState(q.State) + "$" + BLL.CQMS_MainPlanApproveService.GetHandleManName(q.State);
|
||||||
q.CompileMan = q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
|
q.CompileMan = q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
|
||||||
}
|
}
|
||||||
return q;
|
return q;
|
||||||
|
|||||||
@@ -295,6 +295,15 @@ namespace BLL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetHandleManName(string SubPlanId)
|
||||||
|
{
|
||||||
|
string name = string.Empty;
|
||||||
|
var a = Funs.DB.Plan_SubPlanApprove.FirstOrDefault(x => x.SubPlanId == SubPlanId && x.ApproveDate == null);
|
||||||
|
if (a != null)
|
||||||
|
{
|
||||||
|
name = BLL.Person_PersonsService.GetPersonsNameById(a.ApproveMan);
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ namespace BLL
|
|||||||
UnitName = BLL.UnitService.GetUnitNameByUnitId(x.UnitId),
|
UnitName = BLL.UnitService.GetUnitNameByUnitId(x.UnitId),
|
||||||
UnitWorkNames=BLL.UnitWorkService.GetUnitWorkName(x.UnitWorkIds),
|
UnitWorkNames=BLL.UnitWorkService.GetUnitWorkName(x.UnitWorkIds),
|
||||||
CNProfessionalNames=BLL.CNProfessionalService.GetCNProfessionalNameByCode(x.CNProfessionalCodes),
|
CNProfessionalNames=BLL.CNProfessionalService.GetCNProfessionalNameByCode(x.CNProfessionalCodes),
|
||||||
|
HandleManName = BLL.CQMS_SubPlanApproveService.GetHandleManName(x.State),
|
||||||
FilePath = x.FilePath,
|
FilePath = x.FilePath,
|
||||||
};
|
};
|
||||||
List<Model.Plan_SubPlan> res = new List<Model.Plan_SubPlan>();
|
List<Model.Plan_SubPlan> res = new List<Model.Plan_SubPlan>();
|
||||||
@@ -244,7 +245,7 @@ namespace BLL
|
|||||||
cd.CNProfessionalCodes = item.CNProfessionalCodes + "$" + item.CNProfessionalNames;
|
cd.CNProfessionalCodes = item.CNProfessionalCodes + "$" + item.CNProfessionalNames;
|
||||||
cd.CompileDate = item.CompileDate;
|
cd.CompileDate = item.CompileDate;
|
||||||
cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
|
cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
|
||||||
cd.State = item.State + "$" + item.StateStr;
|
cd.State = item.State + "$" + item.StateStr + "&" + item.HandleManName;
|
||||||
cd.Edition = item.Edition;
|
cd.Edition = item.Edition;
|
||||||
cd.FilePath = item.FilePath;
|
cd.FilePath = item.FilePath;
|
||||||
res.Add(cd);
|
res.Add(cd);
|
||||||
@@ -267,7 +268,7 @@ namespace BLL
|
|||||||
q.UnitWorkIds = q.UnitWorkIds + "$" + BLL.UnitWorkService.GetUnitWorkName(q.UnitWorkIds);
|
q.UnitWorkIds = q.UnitWorkIds + "$" + BLL.UnitWorkService.GetUnitWorkName(q.UnitWorkIds);
|
||||||
q.CNProfessionalCodes = q.CNProfessionalCodes + "$" + BLL.CNProfessionalService.GetCNProfessionalNameByCode(q.CNProfessionalCodes);
|
q.CNProfessionalCodes = q.CNProfessionalCodes + "$" + BLL.CNProfessionalService.GetCNProfessionalNameByCode(q.CNProfessionalCodes);
|
||||||
q.CompileMan=q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
|
q.CompileMan=q.CompileMan + "$" + BLL.Person_PersonsService.GetPersonsNameById(q.CompileMan);
|
||||||
q.State = q.State + "$" + ConvertState(q.State);
|
q.State = q.State + "$" + ConvertState(q.State) + "$" + BLL.CQMS_SubPlanApproveService.GetHandleManName(q.State);
|
||||||
}
|
}
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,7 @@
|
|||||||
<f:TemplateField ColumnID="State" Width="60px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="State" Width="60px" HeaderText="状态" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
EnableLock="true" Locked="False">
|
EnableLock="true" Locked="False">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMSConstructSolutionService.ConvertState(Eval("State")) %>'></asp:Label>
|
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMS_SubPlanService.ConvertState(Eval("State")) %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</f:TemplateField>
|
</f:TemplateField>
|
||||||
<f:TemplateField ColumnID="AuditMan" Width="80px" HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="AuditMan" Width="80px" HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
EnableLock="true" Locked="False">
|
EnableLock="true" Locked="False">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMSConstructSolutionService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMS_SubPlanService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</f:TemplateField>
|
</f:TemplateField>
|
||||||
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="ApproveType" Width="150px" HeaderText="办理类型" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
EnableLock="true" Locked="False">
|
EnableLock="true" Locked="False">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMSConstructSolutionService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMS_SubPlanService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</f:TemplateField>
|
</f:TemplateField>
|
||||||
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="办理人员" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
|
|||||||
Reference in New Issue
Block a user