2023-03-29 001 合同招标文件台账修改
This commit is contained in:
@@ -26,6 +26,20 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 级别,1 为项目级
|
||||
/// </summary>
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Type"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Type"] = value;
|
||||
}
|
||||
}
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
@@ -37,22 +51,24 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
if (!IsPostBack)
|
||||
{
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;";
|
||||
BLL.DepartService.InitDepartDropDownList(this.drpDepartId, false);
|
||||
|
||||
Type = Request.Params["Type"];
|
||||
GetButtonPower();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||
if (Type=="1")
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx?Type=1", "基本信息") + "return false;";
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;";
|
||||
|
||||
//this.drpStates.DataValueField = "Value";
|
||||
//drpStates.DataTextField = "Text";
|
||||
//drpStates.DataSource = BLL.DropListService.GetState();
|
||||
//drpStates.DataBind();
|
||||
//Funs.FineUIPleaseSelect(drpStates);
|
||||
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
|
||||
}
|
||||
@@ -64,11 +80,15 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new Model.PHTGL_BidDocumentsStandingBook();
|
||||
|
||||
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
|
||||
|
||||
if (Type=="1")
|
||||
{
|
||||
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
|
||||
{
|
||||
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(drpDepartId.SelectedValue) )
|
||||
{
|
||||
|
||||
@@ -195,7 +215,16 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
var model=BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(id);
|
||||
if (model != null)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
|
||||
if (Type=="1")
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}?Type=1", id, "编辑 - ")));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void btnEdit_Click(object sender, EventArgs e)
|
||||
@@ -282,7 +311,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
return;
|
||||
}
|
||||
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.BidDocumentsStandingBookMenuId);
|
||||
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(Const.BtnAdd))
|
||||
@@ -367,7 +396,16 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?", "导入 - ")));
|
||||
if (Type=="1")
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?Type=1", "导入 - ")));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx", "导入 - ")));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public string ConvertState(object State)
|
||||
@@ -421,13 +459,13 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
}
|
||||
// BLL.LogService.AddSys_Log(this.CurrUser, p.ContractName, p.ContractId, BLL.Const.ContractMenuId, BLL.Const.BtnDelete);
|
||||
BLL.BidDocStandingBookService.DeletePHTGL_BidDocumentsStandingBookById(rowID);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidUnit", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidNotice", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ActionPlan", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidDocuments", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ApprovePersonForm", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-SetSubReview", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID +"-ShortListApproval", Const.BidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidUnit", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidNotice", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ActionPlan", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidDocuments", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ApprovePersonForm", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-SetSubReview", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID +"-ShortListApproval", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user