1
This commit is contained in:
@@ -43,7 +43,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);
|
||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropApproval_Construction, null, CurrUser.UnitId, Const.ConstructionMinister + "," + Const.ConstructionViceMinister, false);
|
||||
@@ -105,8 +105,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)
|
||||
@@ -116,7 +115,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;
|
||||
@@ -166,9 +165,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);
|
||||
string projectcode = BLL.ProjectService.GetProjectCodeByProjectId(BidUser.ProjectId);
|
||||
var BidDocument = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(DropBidCode.SelectedValue);
|
||||
|
||||
string projectcode = BLL.ProjectService.GetProjectCodeByProjectId(BidDocument.ProjectId);
|
||||
if (string.IsNullOrEmpty(SetSubReviewID))
|
||||
{
|
||||
this.txtSetSubReviewCode.Text = projectcode + ".000.C01.93-";
|
||||
@@ -246,9 +245,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;
|
||||
@@ -263,45 +262,51 @@ 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);
|
||||
}
|
||||
|
||||
BLL.PHTGL_SetSubReview_Sch1Service.DeletePHTGL_SetSubReview_Sch1BySetSubReviewID(SetSubReviewID);
|
||||
JArray EditorArr = Grid1.GetMergedData();
|
||||
if (EditorArr.Count > 0)
|
||||
@@ -374,12 +379,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