1
This commit is contained in:
@@ -44,7 +44,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
SetSubReviewID = Request.Params["SetSubReviewID"];
|
||||
BLL.DepartService.InitDepartDropDownList(DropDepart, true);
|
||||
PHTGL_BidApproveUserReviewService.InitGetBidCompleteDropDownList(DropBidCode, true);
|
||||
BLL.PHTGL_BidDocumentsReviewService.InitGetBidCompleteDropDownList(DropBidCode, this.CurrUser.LoginProjectId, true);
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.DropConstructionManager, null, Const.UnitId_SEDIN, null, true);
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.DropProjectManager, null, Const.UnitId_SEDIN, null, true);
|
||||
|
||||
@@ -111,8 +111,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
if (!string.IsNullOrEmpty(SetSubReviewID))
|
||||
{
|
||||
var _SetSubReview = BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewById(SetSubReviewID);
|
||||
var BidUser = BLL.PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(_SetSubReview.ApproveUserReviewID);
|
||||
var BidDocument = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(BidUser.BidDocumentsReviewId);
|
||||
var BidDocument = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(_SetSubReview.BidDocumentsReviewId);
|
||||
var Act = BLL.PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(BidDocument.ActionPlanID);
|
||||
if (_SetSubReview != null)
|
||||
{
|
||||
@@ -121,7 +120,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
{
|
||||
txtSetSubReviewCode.Text = Act.ProjectCode + ".000.C01.93-";
|
||||
}
|
||||
DropBidCode.SelectedValue = _SetSubReview.ApproveUserReviewID;
|
||||
DropBidCode.SelectedValue = _SetSubReview.BidDocumentsReviewId;
|
||||
txtProjectName.Text = PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(BidDocument.ActionPlanID).ProjectShortName;
|
||||
txtBidContent.Text = BidDocument.BidContent;
|
||||
StartTime.SelectedDate = BidDocument.Bidding_StartTime;
|
||||
@@ -174,10 +173,9 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
{
|
||||
if (DropBidCode.SelectedValue != Const._Null)
|
||||
{
|
||||
var BidUser = BLL.PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(DropBidCode.SelectedValue);
|
||||
var BidDocument = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(BidUser.BidDocumentsReviewId);
|
||||
var BidDocument = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(DropBidCode.SelectedValue);
|
||||
|
||||
string projectcode = BLL.ProjectService.GetProjectCodeByProjectId(BidUser.ProjectId);
|
||||
string projectcode = BLL.ProjectService.GetProjectCodeByProjectId(BidDocument.ProjectId);
|
||||
if (string.IsNullOrEmpty(SetSubReviewID))
|
||||
{
|
||||
this.txtSetSubReviewCode.Text = projectcode + ".000.C01.93-";
|
||||
@@ -254,9 +252,9 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
|
||||
|
||||
Model.PHTGL_SetSubReview _SetSubReview = new Model.PHTGL_SetSubReview();
|
||||
var BidUser = BLL.PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(DropBidCode.SelectedValue);
|
||||
_SetSubReview.ApproveUserReviewID = DropBidCode.SelectedValue;
|
||||
_SetSubReview.ActionPlanID = BidUser.ActionPlanID;
|
||||
var BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(DropBidCode.SelectedValue);
|
||||
_SetSubReview.ActionPlanID = BidDoc.ActionPlanID;
|
||||
_SetSubReview.BidDocumentsReviewId = DropBidCode.SelectedValue;
|
||||
_SetSubReview.SetSubReviewCode = txtSetSubReviewCode.Text.Trim().ToString();
|
||||
_SetSubReview.CreateUser = this.CurrUser.PersonId;
|
||||
_SetSubReview.State = state;
|
||||
@@ -271,42 +269,49 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
{
|
||||
_SetSubReview.SetSubReviewID = SQLHelper.GetNewID(typeof(Model.PHTGL_SetSubReview));
|
||||
SetSubReviewID = _SetSubReview.SetSubReviewID;
|
||||
if (CBIsOwenerApprove.SelectedValueArray[0] == "1")
|
||||
|
||||
if (state== Const.ContractCreat_Complete)
|
||||
{
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID, BLL.Const.SetSubReview))
|
||||
if (CBIsOwenerApprove.SelectedValueArray[0] == "1")
|
||||
{
|
||||
ShowNotify("未上传业主审批结果,无法保存!", MessageBoxIcon.Warning);
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID, BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上传业主审批结果,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID + "report", BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上评标报告,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID + "report", BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上评标报告,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
PHTGL_SetSubReviewService.AddPHTGL_SetSubReview(_SetSubReview);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
_SetSubReview.SetSubReviewID = SetSubReviewID;
|
||||
if (CBIsOwenerApprove.SelectedValueArray[0] == "1")
|
||||
if (state == Const.ContractCreat_Complete)
|
||||
{
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID, BLL.Const.SetSubReview))
|
||||
if (CBIsOwenerApprove.SelectedValueArray[0] == "1")
|
||||
{
|
||||
ShowNotify("未上传业主审批结果,无法保存!", MessageBoxIcon.Warning);
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID, BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上传业主审批结果,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID + "report", BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上评标报告,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!BLL.AttachFileService.Getfile(SetSubReviewID + "report", BLL.Const.SetSubReview))
|
||||
{
|
||||
ShowNotify("未上评标报告,无法保存!", MessageBoxIcon.Warning);
|
||||
|
||||
return false;
|
||||
}
|
||||
PHTGL_SetSubReviewService.UpdatePHTGL_SetSubReview(_SetSubReview);
|
||||
}
|
||||
|
||||
@@ -385,11 +390,17 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SetSubReviewAttachUrl&menuId={1}", this.SetSubReviewID, BLL.Const.SetSubReview)));
|
||||
if (Save(Const.ContractCreating))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SetSubReviewAttachUrl&menuId={1}", this.SetSubReviewID, BLL.Const.SetSubReview)));
|
||||
}
|
||||
}
|
||||
protected void btnAttachUrl2_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SetSubReviewAttachUrl&menuId={1}", this.SetSubReviewID + "report", BLL.Const.SetSubReview)));
|
||||
if (Save(Const.ContractCreating))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SetSubReviewAttachUrl&menuId={1}", this.SetSubReviewID + "report", BLL.Const.SetSubReview)));
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user