1
This commit is contained in:
@@ -9,14 +9,14 @@ namespace BLL
|
||||
{
|
||||
public class BreakdownProjectAuditRecordService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_BreakdownProjectAuditRecord> qq = from x in db.WBS_BreakdownProjectAuditRecord orderby x.CreateDate select x;
|
||||
private static IQueryable<Model.WBS_BreakdownProjectAuditRecord> qq = from x in Funs.DB.WBS_BreakdownProjectAuditRecord orderby x.CreateDate select x;
|
||||
|
||||
public static Model.WBS_BreakdownProjectAuditRecord GetBreakdownProjectAuditRecordById(string id)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class BreakdownProjectService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -41,7 +41,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_BreakdownProject> qq = from x in db.WBS_BreakdownProject orderby x.SortIndex select x;
|
||||
private static IQueryable<Model.WBS_BreakdownProject> qq = from x in Funs.DB.WBS_BreakdownProject orderby x.SortIndex select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
@@ -108,7 +108,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.View_WBS> qq2 = from x in db.View_WBS select x;
|
||||
private static IQueryable<Model.View_WBS> qq2 = from x in Funs.DB.View_WBS select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目已选择的WBS列表
|
||||
@@ -164,7 +164,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.View_WBS_BreakdownProject> qq3 = from x in db.View_WBS_BreakdownProject orderby x.SortIndex select x;
|
||||
private static IQueryable<Model.View_WBS_BreakdownProject> qq3 = from x in Funs.DB.View_WBS_BreakdownProject orderby x.SortIndex select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class BreakdownService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_Breakdown> qq = from x in db.WBS_Breakdown orderby x.SortIndex select x;
|
||||
private static IQueryable<Model.WBS_Breakdown> qq = from x in Funs.DB.WBS_Breakdown orderby x.SortIndex select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class DivisionProjectService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_DivisionProject> qq = from x in db.WBS_DivisionProject orderby x.SortIndex select x;
|
||||
private static IQueryable<Model.WBS_DivisionProject> qq = from x in Funs.DB.WBS_DivisionProject orderby x.SortIndex select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class DivisionService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.WBS_Division> qq = from x in db.WBS_Division orderby x.SortIndex select x;
|
||||
private static IQueryable<Model.WBS_Division> qq = from x in Funs.DB.WBS_Division orderby x.SortIndex select x;
|
||||
|
||||
/// <summary>
|
||||
/// 获取项目列表
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BLL
|
||||
{
|
||||
public class ProjectQualityService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -39,6 +39,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.WBS_ProjectQuality GetProjectQualityModel(string ProjectQualityId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var model = db.WBS_ProjectQuality.FirstOrDefault(c => c.ProjectQualityId == ProjectQualityId);
|
||||
return model;
|
||||
}
|
||||
@@ -51,6 +52,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static bool UpdateProjectQuality(Model.WBS_ProjectQuality model)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
bool isok = true;
|
||||
try
|
||||
{
|
||||
@@ -91,7 +93,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static bool DelProjectQuality(string id)
|
||||
{
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
bool isok = true;
|
||||
try
|
||||
{
|
||||
@@ -163,6 +165,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<dynamic> GetGroupProjectQualityDes(string projectName)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var list = db.WBS_ProjectQuality.Where(c => c.ProjectName == projectName).GroupBy(c => c.ProjectQualityDes).Select(c => new
|
||||
{
|
||||
QuestionDef = c.Key,
|
||||
@@ -180,6 +183,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<dynamic> GetGroupProjectQualityDes(List<string> projectNames)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var list = db.WBS_ProjectQuality.Where(c => projectNames.Contains(c.ProjectName)).GroupBy(c => c.ProjectQualityDes).Select(c => new
|
||||
{
|
||||
QuestionDef = c.Key,
|
||||
@@ -194,6 +198,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<dynamic> GetProjectQualityResult(string projectQualityDes)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var list = db.WBS_ProjectQuality.Where(c => c.ProjectQualityDes == projectQualityDes).Select(c => new
|
||||
{
|
||||
RectifyOpinion = c.ProjectQualityResult,
|
||||
|
||||
Reference in New Issue
Block a user