代码无效引用清理,试压包资料界面看板修改
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
|
||||
{
|
||||
public partial class CQMSData_CQMS : PageBase
|
||||
public partial class CQMSData_CQMS : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -92,7 +90,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CQMSData_CQMSEdit.aspx?Id={0}", string.Empty, "增加 - ")));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -139,12 +137,12 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.CQMSDataService.GetCQMSData_CQMSById(rowID);
|
||||
if (model!=null)
|
||||
if (model != null)
|
||||
{
|
||||
BLL.CQMSDataService.DeleteCQMSData_CQMSById(rowID);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
|
||||
@@ -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
|
||||
{
|
||||
public partial class CQMSData_CQMSEdit: PageBase
|
||||
public partial class CQMSData_CQMSEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -198,10 +194,10 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
if (txtReportDate.SelectedDate == null)
|
||||
{
|
||||
|
||||
|
||||
ShowNotify("请选择上报日期!");
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
Model.CQMSData_CQMS table = new Model.CQMSData_CQMS();
|
||||
table.UnitId = BLL.Const.UnitId_SEDIN;
|
||||
@@ -288,8 +284,8 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
var responedata= CQMSDataService.PushCncec(Id);
|
||||
if (responedata.code==1)
|
||||
var responedata = CQMSDataService.PushCncec(Id);
|
||||
if (responedata.code == 1)
|
||||
{
|
||||
ShowNotify("上报成功!");
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
@@ -298,11 +294,11 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
else
|
||||
{
|
||||
ShowNotify(responedata.message);
|
||||
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
using Aspose.Words;
|
||||
using BLL;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
public partial class HSSEData_HSSE :PageBase
|
||||
public partial class HSSEData_HSSE : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -139,7 +134,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.HSSEData_HSSEService.GetHSSEData_HSSEById(rowID);
|
||||
if (model!=null)
|
||||
if (model != null)
|
||||
{
|
||||
BLL.HSSEData_HSSEService.DeleteHSSEData_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
|
||||
{
|
||||
public partial class HSSEData_HSSEEdit: PageBase
|
||||
public partial class HSSEData_HSSEEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
@@ -561,7 +557,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
/// <param name="e"></param>
|
||||
protected void btnCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.HSSEData_HSSE model = Funs.DB.HSSEData_HSSE.OrderByDescending(x=>x.ReportDate).FirstOrDefault();
|
||||
Model.HSSEData_HSSE model = Funs.DB.HSSEData_HSSE.OrderByDescending(x => x.ReportDate).FirstOrDefault();
|
||||
if (model != null)
|
||||
{
|
||||
if (model.BeUnderConstructionNum.HasValue)
|
||||
|
||||
@@ -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("该日期已上报!");
|
||||
|
||||
@@ -1,16 +1,11 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
public partial class SYHSEData_Data :PageBase
|
||||
public partial class SYHSEData_Data : PageBase
|
||||
{
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RestSharp.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.DataSync
|
||||
{
|
||||
@@ -40,7 +34,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
BLL.Base_FactoryService.InitBase_FactoryDownList(DropFactory, true);
|
||||
if (!string.IsNullOrEmpty(this.Id))
|
||||
{
|
||||
// Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
// Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
|
||||
Model.SYHSEData_Data model = BLL.SYHSEData_DataService.GetSYHSEData_DataById(this.Id);
|
||||
if (model != null)
|
||||
@@ -48,7 +42,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
//this.txtUnitId.Text = model.UnitId;
|
||||
if (!string.IsNullOrEmpty(model.FactoryId))
|
||||
{
|
||||
DropFactory.SelectedValue=model.FactoryId;
|
||||
DropFactory.SelectedValue = model.FactoryId;
|
||||
|
||||
}
|
||||
if (model.ReportDate != null)
|
||||
@@ -144,7 +138,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
return;
|
||||
|
||||
}
|
||||
if (DropFactory.SelectedValue==Const._Null)
|
||||
if (DropFactory.SelectedValue == Const._Null)
|
||||
{
|
||||
|
||||
ShowNotify("请选择实业!");
|
||||
@@ -189,9 +183,9 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
defect.Medium = objects["values"]["Medium"].ToString();
|
||||
defect.MeasurementUnit = objects["values"]["MeasurementUnit"].ToString();
|
||||
defect.Value = objects["values"]["Value"].ToString();
|
||||
defect.DateTime =DateTime.Parse(objects["values"]["DateTime"].ToString()) ;
|
||||
defect.DateTime = DateTime.Parse(objects["values"]["DateTime"].ToString());
|
||||
//defect.HazardLevel = Funs.GetNewInt(objects["values"]["HazardLevel"].ToString());
|
||||
|
||||
|
||||
BLL.HazardRealtimedeviceService.AddHazard_RealTimeDevice(defect);
|
||||
}
|
||||
}
|
||||
@@ -252,7 +246,7 @@ namespace FineUIPro.Web.ZHGL.DataSync
|
||||
Grid_Realtimedevice.DataSource = dt_Realtimedevice;
|
||||
Grid_Realtimedevice.DataBind();
|
||||
|
||||
var dt_Hidden= SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(model.ReportDate);
|
||||
var dt_Hidden = SyhsedataHiddendangercheckService.GetSYHSEData_HiddenDangerCheckByDate(model.ReportDate);
|
||||
Grid_Hidden.RecordCount = dt_Hidden.Count;
|
||||
Grid_Hidden.DataSource = dt_Hidden;
|
||||
Grid_Hidden.DataBind();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
public partial class SYHSEData_SYHSEEdit: PageBase
|
||||
public partial class SYHSEData_SYHSEEdit : PageBase
|
||||
{
|
||||
#region
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user