代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
@@ -16,16 +12,16 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Id"];
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Id"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Id"] = value;
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Id"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -154,23 +150,23 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
}
|
||||
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
Model.HJGLData_HJGL model = BLL.HJGLData_HJGLService.GetHJGLData_HJGLById(this.Id);
|
||||
if (model != null)
|
||||
{
|
||||
var dt= BLL.HJGLData_DefectService.GetHJGLData_DefectByDate(model.ReportDate);
|
||||
var dt = BLL.HJGLData_DefectService.GetHJGLData_DefectByDate(model.ReportDate);
|
||||
Grid1.RecordCount = dt.Count;
|
||||
// var table = this.GetPagedDataTable(Grid1, tb);
|
||||
// var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = dt;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
protected void txtReportDate_DateSelect(object sender, EventArgs e)
|
||||
{
|
||||
if (txtReportDate.SelectedDate != null)
|
||||
@@ -209,24 +205,24 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
return Confirm.GetShowReference("确定删除当前数据吗?", String.Empty, MessageBoxIcon.Question, Grid1.GetDeleteSelectedRowsReference(), String.Empty);
|
||||
}
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.HJGLData_HJGLMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.HJGLData_HJGLMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user