数据库变更CNPC_XJYJ
This commit is contained in:
@@ -20,7 +20,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.PunishNoticeItem getPunishNoticeById(string PunishNoticeId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getInfo = from x in db.Check_PunishNotice
|
||||
where x.PunishNoticeId == PunishNoticeId
|
||||
@@ -74,7 +74,7 @@ namespace BLL
|
||||
|
||||
public static List<Model.PunishNoticeItemItem> GetPunishNoticeItemList(string punishNoticeId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
return (from x in db.Check_PunishNoticeItem
|
||||
where x.PunishNoticeId == punishNoticeId
|
||||
@@ -98,7 +98,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.FlowOperateItem> getFlowOperateItem(string punishNoticeId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getInfo = from x in db.Check_PunishNoticeFlowOperate
|
||||
where x.PunishNoticeId == punishNoticeId
|
||||
@@ -130,7 +130,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static List<Model.PunishNoticeItem> getPunishNoticeList(string projectId, string unitId, string strParam, string states)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getPunishNotice = from x in db.Check_PunishNotice
|
||||
where x.ProjectId == projectId && (x.UnitId == unitId || unitId == null) && x.PunishStates == states
|
||||
@@ -178,7 +178,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static void SavePunishNotice(Model.PunishNoticeItem newItem)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
bool insertPunishNoticeItemItem = false;
|
||||
Model.Check_PunishNotice newPunishNotice = new Model.Check_PunishNotice
|
||||
@@ -453,7 +453,7 @@ namespace BLL
|
||||
/// <param name="attachUrl">回执单路径</param>
|
||||
public static void SavePunishNoticeReceiptUrl(string punishNoticeId, string attachUrl, string type)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getPunishNotice = db.Check_PunishNotice.FirstOrDefault(x => x.PunishNoticeId == punishNoticeId);
|
||||
if (getPunishNotice != null)
|
||||
|
||||
Reference in New Issue
Block a user