2023-03-29 001 合同招标文件台账修改
This commit is contained in:
@@ -29,7 +29,17 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
/// 错误集合
|
||||
/// </summary>
|
||||
public static string errorInfos = string.Empty;
|
||||
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Type"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Type"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载
|
||||
@@ -48,6 +58,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
BidDocStandingBookList.Clear();
|
||||
}
|
||||
errorInfos = string.Empty;
|
||||
Type = Request.Params["Type"];
|
||||
|
||||
}
|
||||
}
|
||||
@@ -63,6 +74,8 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
try
|
||||
{
|
||||
Grid1.DataSource = null;
|
||||
Grid1.DataBind();
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning);
|
||||
@@ -93,6 +106,30 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
string filePath = initFullPath + this.hdFileName.Text;
|
||||
this.fuAttachUrl.PostedFile.SaveAs(filePath);
|
||||
ImportXlsToData(rootPath + initPath + this.hdFileName.Text);
|
||||
|
||||
if (string.IsNullOrEmpty(errorInfos))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdFileName.Text))
|
||||
{
|
||||
if (BidDocStandingBookList.Count > 0)
|
||||
{
|
||||
this.Grid1.Hidden = false;
|
||||
this.Grid1.DataIDField = "BidDocumentsStandingBookId";
|
||||
this.Grid1.DataSource = BidDocStandingBookList;
|
||||
this.Grid1.DataBind();
|
||||
Grid1.RecordCount = BidDocStandingBookList.Count;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -163,7 +200,10 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new PHTGL_BidDocumentsStandingBook();
|
||||
_BidDocumentsStandingBook.BidDocumentsStandingBookId = SQLHelper.GetNewID();
|
||||
_BidDocumentsStandingBook.State = 0;
|
||||
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (Type=="1")
|
||||
{
|
||||
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
_BidDocumentsStandingBook.EPCCode = pds[i].A;
|
||||
_BidDocumentsStandingBook.ProjectShortName = pds[i].B;
|
||||
_BidDocumentsStandingBook.ProjectCode = pds[i].C;
|
||||
@@ -179,6 +219,8 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
_BidDocumentsStandingBook.ApprovePersonFormCode = pds[i].M;
|
||||
_BidDocumentsStandingBook.BidWinner = pds[i].N;
|
||||
_BidDocumentsStandingBook.SetSubReviewCode = pds[i].O;
|
||||
_BidDocumentsStandingBook.BidNoticeCode= pds[i].P;
|
||||
_BidDocumentsStandingBook.BidUnitFileCode= pds[i].Q;
|
||||
BidDocStandingBookList.Add(_BidDocumentsStandingBook);
|
||||
|
||||
//if (col24 != null)
|
||||
|
||||
Reference in New Issue
Block a user