1
This commit is contained in:
@@ -43,7 +43,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
ApproveUserReviewID = Request.Params["ApproveUserReviewID"];
|
||||
BLL.DepartService.InitDepartDropDownList(DropDepart, true);
|
||||
BLL.PHTGL_BidDocumentsReviewService.InitGetBidCompleteDropDownList(drpBidDocumentCode, true);
|
||||
BLL.PHTGL_BidDocumentsReviewService.InitGetBidCompleteDropDownList(drpBidDocumentCode,this.CurrUser.LoginProjectId, true);
|
||||
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(DropUser, null, Const.UnitId_SEDIN, null, false);
|
||||
///绑定施工管理部正副主任
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @" select Sub.SetSubReviewID
|
||||
string strSql = @" select Sub.SetSubReviewID
|
||||
,Sub.SetSubReviewCode
|
||||
,Acp.ProjectShortName
|
||||
,BidDoc.BidDocumentsCode
|
||||
@@ -73,13 +73,11 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
WHEN @Type_ConEvaluation THEN '综合评估法' END) AS Type
|
||||
,U.PersonName AS CreateUser
|
||||
,Pro.ProjectName
|
||||
,Pro.ProjectCode"
|
||||
+ @" from PHTGL_SetSubReview as Sub "
|
||||
+ @" LEFT JOIN PHTGL_BidApproveUserReview as BidUser on BidUser.ApproveUserReviewID = Sub.ApproveUserReviewID "
|
||||
+ @" LEFT JOIN PHTGL_BidDocumentsReview as BidDoc on BidDoc.BidDocumentsReviewId = BidUser.BidDocumentsReviewId "
|
||||
+ @" LEFT JOIN PHTGL_ActionPlanFormation AS Acp ON Acp.ActionPlanID =BidDoc.ActionPlanID "
|
||||
+ @" LEFT JOIN Person_Persons AS U ON U.PersonId = Sub.CreateUser "
|
||||
+ @" LEFT JOIN Base_Project AS Pro ON Pro.ProjectId = BidUser.ProjectId WHERE 1=1 ";
|
||||
,Pro.ProjectCode from PHTGL_SetSubReview as Sub
|
||||
LEFT JOIN PHTGL_BidDocumentsReview as BidDoc on BidDoc.BidDocumentsReviewId = Sub.BidDocumentsReviewId
|
||||
LEFT JOIN PHTGL_ActionPlanFormation AS Acp ON Acp.ActionPlanID =BidDoc.ActionPlanID
|
||||
LEFT JOIN Person_Persons AS U ON U.PersonId = BidDoc.CreateUser
|
||||
LEFT JOIN Base_Project AS Pro ON Pro.ProjectId = BidDoc.ProjectId WHERE 1=1 ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
|
||||
@@ -92,7 +90,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
|
||||
if (!(this.CurrUser.PersonId == Const.sysglyId))
|
||||
{
|
||||
strSql += " and BidUser.ProjectId =@ProjectId";
|
||||
strSql += " and BidDoc.ProjectId =@ProjectId";
|
||||
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
}
|
||||
@@ -384,17 +382,22 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
if (this.judgementDelete(rowID, isShow))
|
||||
{
|
||||
var p = BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewById(rowID);
|
||||
if (p != null)
|
||||
if (p != null&& p.State==Const.ContractCreating)
|
||||
{
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, p.SetSubReviewID, p.ApproveUserReviewID, BLL.Const.SetSubReview, BLL.Const.BtnDelete);
|
||||
PHTGL_ApproveService.DeletePHTGL_ApproveBycontractId(rowID);
|
||||
BLL.AttachFileService.DeleteAttachFile(Funs.RootPath, rowID, BLL.Const.SetSubReview);
|
||||
PHTGL_SetSubReviewService.DeletePHTGL_SetSubReviewById(rowID);
|
||||
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("审批表已提交,无法删除!", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -447,10 +450,10 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
|
||||
{
|
||||
//btnMenuEdit.Hidden = false;
|
||||
}
|
||||
//if (buttonList.Contains(Const.BtnDelete))
|
||||
//{
|
||||
// btnMenuDelete.Hidden = false;
|
||||
//}
|
||||
if (buttonList.Contains(Const.BtnDelete))
|
||||
{
|
||||
btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void Grid1_RowClick(object sender, GridRowClickEventArgs e)
|
||||
|
||||
@@ -127,8 +127,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);
|
||||
if (_SetSubReview != null)
|
||||
{
|
||||
txtSetSubReviewCode.Text = _SetSubReview.SetSubReviewCode;
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="ID" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
EnableColumnLines="true" DataIDField="ID" MaxHeight="300px" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false">
|
||||
EnableColumnLines="true" DataIDField="ID" Height="300px" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" runat="server" Position="Top" ToolbarAlign="Left">
|
||||
<Items>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
|
||||
runat="server" DataKeyNames="ID" AllowCellEditing="true" ClicksToEdit="1" ForceFit="true"
|
||||
EnableColumnLines="true" DataIDField="ID" MaxHeight="300px" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false">
|
||||
EnableColumnLines="true" DataIDField="ID" Height="300px" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" runat="server" Position="Top" ToolbarAlign="Left">
|
||||
<Items>
|
||||
|
||||
@@ -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