2023-2-14 001
This commit is contained in:
@@ -545,6 +545,7 @@
|
||||
<Compile Include="PHTGL\BiddingManagement\ActionPlanReviewService.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\BidApproveUserReviewService.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\BidApproveUserReview_Sch1Service.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\BidDocStandingBookService.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\BidDocumentsReviewService.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\SetSubReviewService.cs" />
|
||||
<Compile Include="PHTGL\BiddingManagement\SetSubReview_Sch1Service.cs" />
|
||||
|
||||
@@ -2901,6 +2901,12 @@
|
||||
/// 确定分包商审批
|
||||
/// </summary>
|
||||
public const string SetSubReview = "11503AD6-742D-406D-96F1-17BA3B9E7580";
|
||||
/// <summary>
|
||||
/// 招标工作台账
|
||||
/// </summary>
|
||||
public const string BidDocumentsStandingBookMenuId = "11f4f882-28a9-4610-a657-6a58336097d2";
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -377,6 +377,54 @@ namespace BLL
|
||||
return strList;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// json字符串将属性值中的英文双引号变成中文双引号
|
||||
/// </summary>
|
||||
/// <param name="strJson">json字符串</param>
|
||||
/// <returns></returns>
|
||||
public static string JsonReplaceSign(string strJson)
|
||||
{
|
||||
//获取每个字符
|
||||
char[] temp = strJson.ToCharArray();
|
||||
//获取字符数组长度
|
||||
int n = temp.Length;
|
||||
//循环整个字符数组
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
//查找json属性值(:+" )
|
||||
if (temp[i] == ':' && temp[i + 1] == '"')
|
||||
{
|
||||
//循环属性值内的字符(:+2 推算到value值)
|
||||
for (int j = i + 2; j < n; j++)
|
||||
{
|
||||
//判断是否是英文双引号
|
||||
if (temp[j] == '"')
|
||||
{
|
||||
//排除json属性的双引号
|
||||
if (temp[j + 1] != ',' && temp[j + 1] != '}')
|
||||
{
|
||||
//替换成中文双引号
|
||||
temp[j] = '”';
|
||||
}
|
||||
else if (temp[j + 1] == ',' || temp[j + 1] == '}')
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
//else if (temp[j] == '-')
|
||||
//{
|
||||
// temp[j] = ' ';
|
||||
//}
|
||||
//else if (true)
|
||||
//{
|
||||
// // 要过虑其他字符,继续添加判断就可以
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
return new String(temp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
|
||||
public static class BidDocStandingBookService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
#region 获取列表
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
/// </summary>
|
||||
public static int count
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public static List<Model.PHTGL_BidDocumentsStandingBook> GetPHTGL_BidDocumentsStandingBookByModle(Model.PHTGL_BidDocumentsStandingBook table)
|
||||
{
|
||||
var q = from x in db.PHTGL_BidDocumentsStandingBook
|
||||
where
|
||||
(string.IsNullOrEmpty(table.BidDocumentsStandingBookId) || x.BidDocumentsStandingBookId.Contains(table.BidDocumentsStandingBookId)) &&
|
||||
(string.IsNullOrEmpty(table.EPCCode) || x.EPCCode.Contains(table.EPCCode)) &&
|
||||
(string.IsNullOrEmpty(table.ProjectShortName) || x.ProjectShortName.Contains(table.ProjectShortName)) &&
|
||||
(string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) &&
|
||||
(string.IsNullOrEmpty(table.BidType) || x.BidType.Contains(table.BidType)) &&
|
||||
(string.IsNullOrEmpty(table.ActionPlanCode) || x.ActionPlanCode.Contains(table.ActionPlanCode)) &&
|
||||
(string.IsNullOrEmpty(table.BidDocumentsCode) || x.BidDocumentsCode.Contains(table.BidDocumentsCode)) &&
|
||||
(string.IsNullOrEmpty(table.BidProject) || x.BidProject.Contains(table.BidProject)) &&
|
||||
(string.IsNullOrEmpty(table.ShortListApprovalCode) || x.ShortListApprovalCode.Contains(table.ShortListApprovalCode)) &&
|
||||
(string.IsNullOrEmpty(table.ProposedInviter) || x.ProposedInviter.Contains(table.ProposedInviter)) &&
|
||||
(string.IsNullOrEmpty(table.ApprovePersonFormCode) || x.ApprovePersonFormCode.Contains(table.ApprovePersonFormCode)) &&
|
||||
(string.IsNullOrEmpty(table.BidWinner) || x.BidWinner.Contains(table.BidWinner)) &&
|
||||
(string.IsNullOrEmpty(table.SetSubReviewCode) || x.SetSubReviewCode.Contains(table.SetSubReviewCode))
|
||||
select x
|
||||
;
|
||||
|
||||
return q.ToList();
|
||||
}
|
||||
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
/// <param name="PageIndex">页码</param>
|
||||
/// <param name="PageSize">每页数量</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerable getListData(Model.PHTGL_BidDocumentsStandingBook table, Grid Grid1)
|
||||
{
|
||||
var q = GetPHTGL_BidDocumentsStandingBookByModle(table);
|
||||
count = q.Count();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
q= q.Take(Grid1.PageSize * Grid1.PageIndex).Skip(Grid1.PageSize * (Grid1.PageIndex)).ToList();
|
||||
// q = SortConditionHelper.SortingAndPaging(q, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
return from x in q
|
||||
select new
|
||||
{
|
||||
x.BidDocumentsStandingBookId,
|
||||
x.EPCCode,
|
||||
x.ProjectShortName,
|
||||
x.ProjectCode,
|
||||
x.IsOnLine,
|
||||
x.BidType,
|
||||
x.ActionPlanCode,
|
||||
x.BidDocumentsCode,
|
||||
x.BidProject,
|
||||
x.ShortListApprovalCode,
|
||||
x.ProposedInviter,
|
||||
x.Bidding_SendTime,
|
||||
x.Bidding_StartTime,
|
||||
x.ApprovePersonFormCode,
|
||||
x.BidWinner,
|
||||
x.SetSubReviewCode,
|
||||
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
public static Model.PHTGL_BidDocumentsStandingBook GetPHTGL_BidDocumentsStandingBookById(string BidDocumentsStandingBookId)
|
||||
{
|
||||
return db.PHTGL_BidDocumentsStandingBook.FirstOrDefault(x => x.BidDocumentsStandingBookId == BidDocumentsStandingBookId);
|
||||
}
|
||||
|
||||
|
||||
public static void AddPHTGL_BidDocumentsStandingBook(Model.PHTGL_BidDocumentsStandingBook newtable)
|
||||
{
|
||||
|
||||
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook
|
||||
{
|
||||
BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId,
|
||||
EPCCode = newtable.EPCCode,
|
||||
ProjectShortName = newtable.ProjectShortName,
|
||||
ProjectCode = newtable.ProjectCode,
|
||||
IsOnLine = newtable.IsOnLine,
|
||||
BidType = newtable.BidType,
|
||||
ActionPlanCode = newtable.ActionPlanCode,
|
||||
BidDocumentsCode = newtable.BidDocumentsCode,
|
||||
BidProject = newtable.BidProject,
|
||||
ShortListApprovalCode = newtable.ShortListApprovalCode,
|
||||
ProposedInviter = newtable.ProposedInviter,
|
||||
Bidding_SendTime = newtable.Bidding_SendTime,
|
||||
Bidding_StartTime = newtable.Bidding_StartTime,
|
||||
ApprovePersonFormCode = newtable.ApprovePersonFormCode,
|
||||
BidWinner = newtable.BidWinner,
|
||||
SetSubReviewCode = newtable.SetSubReviewCode,
|
||||
};
|
||||
db.PHTGL_BidDocumentsStandingBook.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
public static void AddBulkPHTGL_BidDocumentsStandingBook(List<Model.PHTGL_BidDocumentsStandingBook> newtables)
|
||||
{
|
||||
|
||||
db.PHTGL_BidDocumentsStandingBook.InsertAllOnSubmit(newtables);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
public static void UpdatePHTGL_BidDocumentsStandingBook(Model.PHTGL_BidDocumentsStandingBook newtable)
|
||||
{
|
||||
|
||||
Model.PHTGL_BidDocumentsStandingBook table = db.PHTGL_BidDocumentsStandingBook.FirstOrDefault(x => x.BidDocumentsStandingBookId == newtable.BidDocumentsStandingBookId);
|
||||
if (table != null)
|
||||
{
|
||||
table.BidDocumentsStandingBookId = newtable.BidDocumentsStandingBookId;
|
||||
table.EPCCode = newtable.EPCCode;
|
||||
table.ProjectShortName = newtable.ProjectShortName;
|
||||
table.ProjectCode = newtable.ProjectCode;
|
||||
table.IsOnLine = newtable.IsOnLine;
|
||||
table.BidType = newtable.BidType;
|
||||
table.ActionPlanCode = newtable.ActionPlanCode;
|
||||
table.BidDocumentsCode = newtable.BidDocumentsCode;
|
||||
table.BidProject = newtable.BidProject;
|
||||
table.ShortListApprovalCode = newtable.ShortListApprovalCode;
|
||||
table.ProposedInviter = newtable.ProposedInviter;
|
||||
table.Bidding_SendTime = newtable.Bidding_SendTime;
|
||||
table.Bidding_StartTime = newtable.Bidding_StartTime;
|
||||
table.ApprovePersonFormCode = newtable.ApprovePersonFormCode;
|
||||
table.BidWinner = newtable.BidWinner;
|
||||
table.SetSubReviewCode = newtable.SetSubReviewCode;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
public static void DeletePHTGL_BidDocumentsStandingBookById(string BidDocumentsStandingBookId)
|
||||
{
|
||||
|
||||
Model.PHTGL_BidDocumentsStandingBook table = db.PHTGL_BidDocumentsStandingBook.FirstOrDefault(x => x.BidDocumentsStandingBookId == BidDocumentsStandingBookId);
|
||||
if (table != null)
|
||||
{
|
||||
db.PHTGL_BidDocumentsStandingBook.DeleteOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void DeleteALLPHTGL_BidDocumentsStandingBook()
|
||||
{
|
||||
if (db.PHTGL_BidDocumentsStandingBook != null)
|
||||
{
|
||||
db.PHTGL_BidDocumentsStandingBook.DeleteAllOnSubmit(db.PHTGL_BidDocumentsStandingBook);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user