2023-03-24
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using FineUIPro.Web.PHTGL.BiddingManagement;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
@@ -33,27 +34,37 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
|
||||
//BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
|
||||
this.GetButtonPower();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
||||
{
|
||||
Model.PHTGL_BidDocumentsStandingBook model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(this.BidDocumentsStandingBookId);
|
||||
if (model != null)
|
||||
{
|
||||
DropSetSubReviewCode.SelectedValue = model.SetSubReviewCode;
|
||||
cbIsOnLine.Checked = model.IsOnLine==1?true:false;
|
||||
txtShortListApprovalCode.Text= model.ShortListApprovalCode;
|
||||
txtProposedInviter.Text=model.ProposedInviter;
|
||||
txtApprovePersonFormCode.Text= model.ApprovePersonFormCode;
|
||||
txtBidWinner.Text= model.BidWinner;
|
||||
DropSetSubReviewCode_SelectedIndexChanged(null,null);
|
||||
this.txtEPCCode.Text = model.EPCCode;
|
||||
this.txtProjectShortName.Text = model.ProjectShortName;
|
||||
this.txtProjectCode.Text = model.ProjectCode;
|
||||
this.txtIsOnLine.Text = model.IsOnLine;
|
||||
this.txtBidType.Text = model.BidType;
|
||||
this.txtActionPlanCode.Text = model.ActionPlanCode;
|
||||
this.txtBidDocumentsCode.Text = model.BidDocumentsCode;
|
||||
this.txtBidProject.Text = model.BidProject;
|
||||
this.txtShortListApprovalCode.Text = model.ShortListApprovalCode;
|
||||
this.txtProposedInviter.Text = model.ProposedInviter;
|
||||
this.txtBidding_SendTime.Text = model.Bidding_SendTime;
|
||||
this.txtBidding_StartTime.Text = model.Bidding_StartTime;
|
||||
this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
||||
this.txtBidWinner.Text = model.BidWinner;
|
||||
this.txtSetSubReviewCode.Text = model.SetSubReviewCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 保存提交
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
@@ -62,30 +73,119 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
|
||||
table.IsOnLine = cbIsOnLine.Checked ? 1 : 0 ;
|
||||
table.SetSubReviewCode = this.DropSetSubReviewCode.SelectedValue;
|
||||
table.EPCCode = this.txtEPCCode.Text;
|
||||
table.ProjectShortName = this.txtProjectShortName.Text;
|
||||
table.ProjectCode = this.txtProjectCode.Text;
|
||||
table.IsOnLine = this.txtIsOnLine.Text;
|
||||
table.BidType = this.txtBidType.Text;
|
||||
table.ActionPlanCode = this.txtActionPlanCode.Text;
|
||||
table.BidDocumentsCode = this.txtBidDocumentsCode.Text;
|
||||
table.BidProject = this.txtBidProject.Text;
|
||||
table.ShortListApprovalCode = this.txtShortListApprovalCode.Text;
|
||||
table.ProposedInviter = this.txtProposedInviter.Text;
|
||||
table.Bidding_SendTime = this.txtBidding_SendTime.Text;
|
||||
table.Bidding_StartTime = this.txtBidding_StartTime.Text;
|
||||
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
|
||||
table.BidWinner = this.txtBidWinner.Text;
|
||||
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
table.State = 0;
|
||||
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
||||
{
|
||||
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
|
||||
BidDocumentsStandingBookId = table.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
var model= BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
|
||||
if (model!=null)
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
var q = BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(table.BidDocumentsStandingBookId);
|
||||
if (q != null)
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
}
|
||||
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传中标单位投标文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传中标通知书,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传实施计划文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传招标文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传评委名单审批表文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传确定中标人审批表文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.BidDocumentsStandingBookMenuId))
|
||||
{
|
||||
ShowNotify("未上传短名单审批表文件,无法提交!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
|
||||
table.EPCCode = this.txtEPCCode.Text;
|
||||
table.ProjectShortName = this.txtProjectShortName.Text;
|
||||
table.ProjectCode = this.txtProjectCode.Text;
|
||||
table.IsOnLine = this.txtIsOnLine.Text;
|
||||
table.BidType = this.txtBidType.Text;
|
||||
table.ActionPlanCode = this.txtActionPlanCode.Text;
|
||||
table.BidDocumentsCode = this.txtBidDocumentsCode.Text;
|
||||
table.BidProject = this.txtBidProject.Text;
|
||||
table.ShortListApprovalCode = this.txtShortListApprovalCode.Text;
|
||||
table.ProposedInviter = this.txtProposedInviter.Text;
|
||||
table.Bidding_SendTime = this.txtBidding_SendTime.Text;
|
||||
table.Bidding_StartTime = this.txtBidding_StartTime.Text;
|
||||
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
|
||||
table.BidWinner = this.txtBidWinner.Text;
|
||||
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
table.State = 1;
|
||||
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
||||
{
|
||||
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
var q = BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(table.BidDocumentsStandingBookId);
|
||||
if (q != null)
|
||||
{
|
||||
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
@@ -93,6 +193,8 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
@@ -101,12 +203,13 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.BidDocumentsStandingBookMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
if (!string .IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
var q = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
|
||||
if (q != null&& q.State==1)
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
btnSave.Hidden = true;
|
||||
btnSubmit.Hidden=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -114,57 +217,136 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// 中标单位投标文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
protected void btnAttachUrl_BidUnit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}", this.BidDocumentsStandingBookId+ "-Notice", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId+ "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 情况说明附件
|
||||
/// 中标通知书
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Remark_Click(object sender, EventArgs e)
|
||||
protected void btnAttachUrl_BidNotice_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}", this.BidDocumentsStandingBookId+ "-Bidder", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId+ "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 实施计划文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_ActionPlanCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 招标文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
protected void btnAttachUrl_BidDocumentsCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 评委名单审批表文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
protected void btnAttachUrl_ApprovePersonFormCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 确定中标人审批表文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
protected void btnAttachUrl_SetSubReviewCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 短名单审批表文件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_ShortListApprovalCode_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||
{
|
||||
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
|
||||
this.BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||
}
|
||||
#endregion
|
||||
protected void DropSetSubReviewCode_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
var _SetSub= BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewBySetSubReviewCode(DropSetSubReviewCode.SelectedValue);
|
||||
var _BidApprove= PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(_SetSub.ApproveUserReviewID);
|
||||
var _BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(_BidApprove.BidDocumentsReviewId);
|
||||
var _ActPlan = BLL.PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(_BidDoc.ActionPlanID);
|
||||
var _Project=BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||
|
||||
//protected void DropSetSubReviewCode_SelectedIndexChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// var _SetSub= BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewBySetSubReviewCode(DropSetSubReviewCode.SelectedValue);
|
||||
// var _BidApprove= PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(_SetSub.ApproveUserReviewID);
|
||||
// var _BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(_BidApprove.BidDocumentsReviewId);
|
||||
// var _ActPlan = BLL.PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(_BidDoc.ActionPlanID);
|
||||
// var _Project=BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||
|
||||
|
||||
this.txtEPCCode.Text = _ActPlan.EPCCode;
|
||||
this.txtProjectShortName.Text = _Project.ShortName;
|
||||
this.txtProjectCode.Text = _Project.ProjectCode;
|
||||
this.txtBidType.Text = _BidDoc.BidType;
|
||||
this.txtBidProject.Text = _ActPlan.BidProject;
|
||||
this.txtActionPlanCode.Text = _ActPlan.ActionPlanCode;
|
||||
this.txtBidDocumentsCode.Text = _BidDoc.BidDocumentsCode;
|
||||
if (_BidDoc.Bidding_SendTime != null)
|
||||
{
|
||||
this.txtBidding_SendTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_SendTime);
|
||||
}
|
||||
if (_BidDoc.Bidding_StartTime != null)
|
||||
{
|
||||
this.txtBidding_StartTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_StartTime);
|
||||
}
|
||||
//this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
||||
}
|
||||
// this.txtEPCCode.Text = _ActPlan.EPCCode;
|
||||
// this.txtProjectShortName.Text = _Project.ShortName;
|
||||
// this.txtProjectCode.Text = _Project.ProjectCode;
|
||||
// this.txtBidType.Text = _BidDoc.BidType;
|
||||
// this.txtBidProject.Text = _ActPlan.BidProject;
|
||||
// this.txtActionPlanCode.Text = _ActPlan.ActionPlanCode;
|
||||
// this.txtBidDocumentsCode.Text = _BidDoc.BidDocumentsCode;
|
||||
// if (_BidDoc.Bidding_SendTime != null)
|
||||
// {
|
||||
// this.txtBidding_SendTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_SendTime);
|
||||
// }
|
||||
// if (_BidDoc.Bidding_StartTime != null)
|
||||
// {
|
||||
// this.txtBidding_StartTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_StartTime);
|
||||
// }
|
||||
// //this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user