This commit is contained in:
2024-10-30 15:47:15 +08:00
parent ddb85663b2
commit 0b047a056a
14 changed files with 291 additions and 234 deletions
@@ -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)