2023-03-21
This commit is contained in:
@@ -33,6 +33,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
|
||||
@@ -41,31 +42,13 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
Model.PHTGL_BidDocumentsStandingBook model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(this.BidDocumentsStandingBookId);
|
||||
if (model != null)
|
||||
{
|
||||
this.txtEPCCode.Text = model.EPCCode;
|
||||
this.txtProjectShortName.Text = model.ProjectShortName;
|
||||
this.txtProjectCode.Text = model.ProjectCode;
|
||||
if (model.IsOnLine.HasValue)
|
||||
{
|
||||
this.txtIsOnLine.Text = model.IsOnLine.Value.ToString();
|
||||
}
|
||||
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;
|
||||
if (model.Bidding_SendTime != null)
|
||||
{
|
||||
this.txtBidding_SendTime.Text = string.Format("{0:yyyy-MM-dd}", model.Bidding_SendTime);
|
||||
}
|
||||
if (model.Bidding_StartTime != null)
|
||||
{
|
||||
this.txtBidding_StartTime.Text = string.Format("{0:yyyy-MM-dd}", model.Bidding_StartTime);
|
||||
}
|
||||
this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
||||
this.txtBidWinner.Text = model.BidWinner;
|
||||
this.txtSetSubReviewCode.Text = model.SetSubReviewCode;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,31 +62,33 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
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 = Funs.GetNewInt(this.txtIsOnLine.Text);
|
||||
table.BidType = this.txtBidType.Text;
|
||||
table.ActionPlanCode = this.txtActionPlanCode.Text;
|
||||
table.BidDocumentsCode = this.txtBidDocumentsCode.Text;
|
||||
table.BidProject = this.txtBidProject.Text;
|
||||
table.IsOnLine = cbIsOnLine.Checked ? 1 : 0 ;
|
||||
table.SetSubReviewCode = this.DropSetSubReviewCode.SelectedValue;
|
||||
table.ShortListApprovalCode = this.txtShortListApprovalCode.Text;
|
||||
table.ProposedInviter = this.txtProposedInviter.Text;
|
||||
table.Bidding_SendTime = this.txtBidding_SendTime.SelectedDate;
|
||||
table.Bidding_StartTime = this.txtBidding_StartTime.SelectedDate;
|
||||
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
|
||||
table.BidWinner = this.txtBidWinner.Text;
|
||||
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
|
||||
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
||||
{
|
||||
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
|
||||
BidDocumentsStandingBookId = table.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
||||
var model= BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
|
||||
if (model!=null)
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
||||
}
|
||||
else
|
||||
{
|
||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||
|
||||
}
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
@@ -125,7 +110,61 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_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)));
|
||||
}
|
||||
/// <summary>
|
||||
/// 情况说明附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Remark_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)));
|
||||
}
|
||||
#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);
|
||||
|
||||
|
||||
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