代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web.UI.DataVisualization.Charting;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
@@ -54,7 +50,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
BLL.DepartService.InitDepartDropDownList(this.drpDepartId, false);
|
||||
Type = Request.Params["Type"];
|
||||
GetButtonPower();
|
||||
if (Type=="1")
|
||||
if (Type == "1")
|
||||
{
|
||||
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEditProject.aspx", "基本信息") + "return false;";
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
@@ -68,7 +64,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;";
|
||||
|
||||
}
|
||||
|
||||
|
||||
BindGrid();
|
||||
|
||||
}
|
||||
@@ -81,7 +77,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
{
|
||||
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new Model.PHTGL_BidDocumentsStandingBook();
|
||||
|
||||
if (Type=="1")
|
||||
if (Type == "1")
|
||||
{
|
||||
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
|
||||
{
|
||||
@@ -108,26 +104,26 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
|
||||
}
|
||||
}
|
||||
if (dropState.SelectedValue!=Const._Null)
|
||||
if (dropState.SelectedValue != Const._Null)
|
||||
{
|
||||
_BidDocumentsStandingBook.State = Funs.GetNewInt(dropState.SelectedValue) ;
|
||||
_BidDocumentsStandingBook.State = Funs.GetNewInt(dropState.SelectedValue);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEPCCode.Text))
|
||||
{
|
||||
_BidDocumentsStandingBook.EPCCode= txtEPCCode.Text;
|
||||
_BidDocumentsStandingBook.EPCCode = txtEPCCode.Text;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtShortName.Text))
|
||||
{
|
||||
_BidDocumentsStandingBook.ProjectShortName= txtShortName.Text;
|
||||
_BidDocumentsStandingBook.ProjectShortName = txtShortName.Text;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtProjectCode.Text))
|
||||
{
|
||||
_BidDocumentsStandingBook.ProjectCode= txtProjectCode.Text;
|
||||
_BidDocumentsStandingBook.ProjectCode = txtProjectCode.Text;
|
||||
}
|
||||
|
||||
var q= BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookByModle(_BidDocumentsStandingBook);
|
||||
var q = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookByModle(_BidDocumentsStandingBook);
|
||||
Grid1.RecordCount = q.Count;
|
||||
Grid1.DataSource=q;
|
||||
Grid1.DataSource = q;
|
||||
Grid1.DataBind();
|
||||
|
||||
}
|
||||
@@ -229,10 +225,10 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
return;
|
||||
}
|
||||
string id = Grid1.SelectedRowID;
|
||||
var model=BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(id);
|
||||
var model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(id);
|
||||
if (model != null)
|
||||
{
|
||||
if (Type=="1")
|
||||
if (Type == "1")
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEditProject.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
|
||||
|
||||
@@ -413,7 +409,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Type=="1")
|
||||
if (Type == "1")
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?Type=1", "导入 - ")));
|
||||
|
||||
@@ -428,8 +424,8 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
public string ConvertState(object State)
|
||||
{
|
||||
string StateName = string.Empty;
|
||||
if (State!=null&&!string.IsNullOrEmpty(State.ToString()))
|
||||
{
|
||||
if (State != null && !string.IsNullOrEmpty(State.ToString()))
|
||||
{
|
||||
switch (State.ToString())
|
||||
{
|
||||
case "0":
|
||||
@@ -465,10 +461,10 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
if (this.judgementDelete(rowID, isShow))
|
||||
{
|
||||
var p = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(rowID);
|
||||
var p = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(rowID);
|
||||
if (p != null)
|
||||
{
|
||||
if (p.State==1)
|
||||
if (p.State == 1)
|
||||
{
|
||||
ShowNotify(message: "已提交,删除失败!", MessageBoxIcon.Error);
|
||||
return;
|
||||
@@ -482,7 +478,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
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);
|
||||
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ShortListApproval", Const.ProjectBidDocumentsStandingBookMenuId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user