代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
//this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 初始化下拉框
|
||||
/// </summary>
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
// this.UnitId = thisUnit.UnitId;
|
||||
//}
|
||||
|
||||
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnitId, BLL.Const.UnitId_SEDIN, true);
|
||||
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnitId, BLL.Const.UnitId_SEDIN, true);
|
||||
//BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
//if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
|
||||
//{
|
||||
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
//}
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -82,7 +82,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
//listStr.Add(new SqlParameter("@UnitId", this.UnitId));
|
||||
strSql += " AND EmergencyList.States = @States"; ///状态为已完成
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
|
||||
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
@@ -195,13 +195,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
if (this.btnMenuEdit.Hidden || Emergency.States == BLL.Const.State_2) ////双击事件 编辑权限有:编辑页面,无:查看页面 或者状态是完成时查看页面
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListView.aspx?EmergencyListId={0}", id, "查看 - ")));
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListView.aspx?EmergencyListId={0}", id, "查看 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("EmergencyListEdit.aspx?EmergencyListId={0}", id, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
@@ -230,9 +230,9 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
this.BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Emergency
|
||||
{
|
||||
@@ -36,8 +31,8 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.EmergencyListId = Request.Params["EmergencyListId"];
|
||||
if (!string.IsNullOrEmpty(this.EmergencyListId))
|
||||
{
|
||||
@@ -48,8 +43,8 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
this.txtEmergencyCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.EmergencyListId);
|
||||
this.txtEmergencyName.Text = EmergencyList.EmergencyName;
|
||||
this.drpUnit.Text = BLL.UnitService.GetUnitNameByUnitId(EmergencyList.UnitId);
|
||||
var emergencyType =BLL.EmergencyTypeService.GetEmergencyTypeById(EmergencyList.EmergencyTypeId);
|
||||
if(emergencyType != null)
|
||||
var emergencyType = BLL.EmergencyTypeService.GetEmergencyTypeById(EmergencyList.EmergencyTypeId);
|
||||
if (emergencyType != null)
|
||||
{
|
||||
this.drpEmergencyType.Text = emergencyType.EmergencyTypeName;
|
||||
}
|
||||
@@ -59,14 +54,14 @@ namespace FineUIPro.Web.ZHGL.Emergency
|
||||
this.txtEmergencyContents.Text = HttpUtility.HtmlDecode(EmergencyList.EmergencyContents);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///初始化审核菜单
|
||||
//this.ctlAuditFlow.MenuId = BLL.Const.UnitEmergencyListMenuId;
|
||||
//this.ctlAuditFlow.DataId = this.EmergencyListId;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
|
||||
Reference in New Issue
Block a user