代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Text;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
public partial class Project_CQMSData_CQMS : PageBase
|
||||
public partial class Project_CQMSData_CQMS : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -93,7 +91,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("Project_CQMSData_CQMSEdit.aspx?Id={0}", string.Empty, "增加 - ")));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -140,12 +138,12 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.Project_CQMSDataService.GetProject_CQMSData_CQMSById(rowID);
|
||||
if (model!=null)
|
||||
if (model != null)
|
||||
{
|
||||
BLL.Project_CQMSDataService.DeleteProject_CQMSData_CQMSById(rowID);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
@@ -198,10 +194,10 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
if (txtReportDate.SelectedDate == null)
|
||||
{
|
||||
|
||||
|
||||
ShowNotify("请选择上报日期!");
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
Model.Project_CQMSData_CQMS table = new Model.Project_CQMSData_CQMS();
|
||||
table.UnitId = BLL.Const.UnitId_SEDIN;
|
||||
@@ -276,7 +272,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
if (txtReportDate.SelectedDate != null)
|
||||
{
|
||||
DateTime dt = (DateTime)txtReportDate.SelectedDate;
|
||||
if (BLL.Project_CQMSDataService.IsReportByDate(dt,this.CurrUser.LoginProjectId))
|
||||
if (BLL.Project_CQMSDataService.IsReportByDate(dt, this.CurrUser.LoginProjectId))
|
||||
{
|
||||
txtReportDate.SelectedDate = null;
|
||||
ShowNotify("该日期已上报!");
|
||||
@@ -303,7 +299,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
|
||||
+33
-38
@@ -1,12 +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 FineUIPro.Web.HJGL.BaseInfo;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
@@ -17,16 +12,16 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
/// 主键
|
||||
/// </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)
|
||||
{
|
||||
@@ -157,23 +152,23 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
}
|
||||
|
||||
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
Model.Project_HJGLData_HJGL model = BLL.Project_HJGLData_HJGLService.GetProject_HJGLData_HJGLById(this.Id);
|
||||
if (model != null)
|
||||
{
|
||||
var dt= BLL.Project_HJGLData_DefectService.GetProject_HJGLData_DefectByDate(model.ReportDate,this.CurrUser.LoginProjectId);
|
||||
var dt = BLL.Project_HJGLData_DefectService.GetProject_HJGLData_DefectByDate(model.ReportDate, this.CurrUser.LoginProjectId);
|
||||
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)
|
||||
@@ -212,24 +207,24 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
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.Project_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.Project_HJGLData_HJGLMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
public partial class Project_HSSEData_HSSE :PageBase
|
||||
public partial class Project_HSSEData_HSSE : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -140,7 +135,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.Project_HSSEData_HSSEService.GetProject_HSSEData_HSSEById(rowID);
|
||||
if (model!=null)
|
||||
if (model != null)
|
||||
{
|
||||
BLL.Project_HSSEData_HSSEService.DeleteProject_HSSEData_HSSEById(rowID);
|
||||
BLL.HSSEData_HiddenDangerDetailService.DeleteHSSEData_HiddenDangerDetailByDate(model.ReportDate);
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
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.ProjectDataSync
|
||||
{
|
||||
public partial class Project_HSSEData_HSSEEdit: PageBase
|
||||
public partial class Project_HSSEData_HSSEEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -475,7 +471,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
table.Id = this.Id;
|
||||
BLL.Project_HSSEData_HSSEService.UpdateProject_HSSEData_HSSE(table);
|
||||
}
|
||||
BLL.Project_HSSEData_HiddenDangerDetailService.DeleteProject_HSSEData_HiddenDangerDetailByDate(table.ReportDate,this.CurrUser.LoginProjectId);
|
||||
BLL.Project_HSSEData_HiddenDangerDetailService.DeleteProject_HSSEData_HiddenDangerDetailByDate(table.ReportDate, this.CurrUser.LoginProjectId);
|
||||
JArray EditorArr = Grid1.GetMergedData();
|
||||
if (EditorArr.Count > 0)
|
||||
{
|
||||
@@ -503,7 +499,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
if (txtReportDate.SelectedDate != null)
|
||||
{
|
||||
DateTime dt = (DateTime)txtReportDate.SelectedDate;
|
||||
if (BLL.Project_HSSEData_HSSEService.IsReportByDate(dt,this.CurrUser.LoginProjectId))
|
||||
if (BLL.Project_HSSEData_HSSEService.IsReportByDate(dt, this.CurrUser.LoginProjectId))
|
||||
{
|
||||
txtReportDate.SelectedDate = null;
|
||||
ShowNotify("该日期已上报!");
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
|
||||
+4
-8
@@ -1,14 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
{
|
||||
public partial class Project_SYHSEData_SYHSEEdit: PageBase
|
||||
public partial class Project_SYHSEData_SYHSEEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -269,7 +265,7 @@ namespace FineUIPro.Web.ZHGL.DataSync.ProjectDataSync
|
||||
if (txtReportDate.SelectedDate != null)
|
||||
{
|
||||
DateTime dt = (DateTime)txtReportDate.SelectedDate;
|
||||
if (BLL.Project_SYHSEData_SYHSEService.IsReportByDate(dt,this.CurrUser.LoginProjectId))
|
||||
if (BLL.Project_SYHSEData_SYHSEService.IsReportByDate(dt, this.CurrUser.LoginProjectId))
|
||||
{
|
||||
txtReportDate.SelectedDate = null;
|
||||
ShowNotify("该日期已上报!");
|
||||
|
||||
Reference in New Issue
Block a user