提交质量接口修改
This commit is contained in:
@@ -115,5 +115,73 @@ namespace BLL
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
//public static List<Model.Meeting_CQMSMeeting> getListDataForApi(string projectId, int startRowIndex, int maximumRows, string type)
|
||||
//{
|
||||
// using (var db = new Model.SGGLDB(Funs.ConnString))
|
||||
// {
|
||||
// IQueryable<Model.RewardAndPunish_RewardAndPunish> q = db.RewardAndPunish_RewardAndPunish;
|
||||
// if (!string.IsNullOrEmpty(projectId))
|
||||
// {
|
||||
// q = q.Where(e => e.ProjectId == projectId);
|
||||
// }
|
||||
// if (type!="0")
|
||||
// {
|
||||
// q = q.Where(e => e.Type == type);
|
||||
// }
|
||||
// var qres = from x in q
|
||||
// orderby x.CompileDate descending
|
||||
// select new
|
||||
// {
|
||||
// x.MeetingId,
|
||||
// x.ProjectId,
|
||||
// x.UnitId,
|
||||
// UnitName = (from y in db.Base_Unit where y.UnitId == x.UnitId select y.UnitName).First(),
|
||||
// x.MeetingType,
|
||||
// MeetingTypeStr = x.MeetingType == "M" ? "质量月例会" : "质量专题会",
|
||||
// x.MeetingCode,
|
||||
// x.MeetingDate,
|
||||
// x.Place,
|
||||
// x.HostMan,
|
||||
// HostManName = BLL.Person_PersonsService.getPersonsNamesPersonIds(x.HostMan),
|
||||
// x.AttentPerson,
|
||||
// AttentPersonName = BLL.Person_PersonsService.getPersonsNamesPersonIds(x.AttentPerson),
|
||||
// x.AttentPersonNum,
|
||||
// x.MeetingTheme,
|
||||
// x.MeetingContents,
|
||||
// x.CompileDate,
|
||||
// x.CompileMan,
|
||||
// x.State,
|
||||
// StateStr = ConvertState(x.State),
|
||||
// CompileManName = (from y in db.Person_Persons where y.PersonId == x.CompileMan select y.PersonName).First(),
|
||||
// HandleManName = BLL.CQMS_MeetingApproveService.GetHandleManName(x.MeetingId),
|
||||
// x.AttachUrl,
|
||||
// };
|
||||
// List<Model.Meeting_CQMSMeeting> res = new List<Model.Meeting_CQMSMeeting>();
|
||||
// var list = qres.Skip(startRowIndex).Take(maximumRows).ToList();
|
||||
// foreach (var item in list)
|
||||
// {
|
||||
// Model.Meeting_CQMSMeeting cd = new Model.Meeting_CQMSMeeting();
|
||||
// cd.MeetingId = item.MeetingId;
|
||||
// cd.ProjectId = item.ProjectId;
|
||||
// cd.UnitId = item.UnitId + "$" + item.UnitName;
|
||||
// cd.MeetingType = item.MeetingType + "$" + item.MeetingTypeStr;
|
||||
// cd.MeetingCode = item.MeetingCode;
|
||||
// cd.MeetingDate = item.MeetingDate;
|
||||
// cd.Place = item.Place;
|
||||
// cd.HostMan = item.HostMan + "$" + item.HostManName;
|
||||
// cd.AttentPerson = item.AttentPerson + "$" + item.AttentPersonName;
|
||||
// cd.AttentPersonNum = item.AttentPersonNum;
|
||||
// cd.MeetingTheme = item.MeetingTheme;
|
||||
// cd.MeetingContents = item.MeetingContents;
|
||||
// cd.CompileDate = item.CompileDate;
|
||||
// cd.CompileMan = item.CompileMan + "$" + item.CompileManName;
|
||||
// cd.State = item.State + "$" + item.StateStr + "$" + item.HandleManName;
|
||||
// cd.AttachUrl = AttachFileService.getFileUrl(item.MeetingId);
|
||||
// res.Add(cd);
|
||||
// }
|
||||
// return res;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user