代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
|
||||
@@ -795,7 +795,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 复制上月数据
|
||||
/// <summary>
|
||||
/// 复制上月报表数据
|
||||
|
||||
@@ -6,8 +6,6 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 关闭办理流程窗口
|
||||
/// <summary>
|
||||
/// 关闭办理流程窗口
|
||||
|
||||
@@ -343,7 +343,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
Save("submit");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Grid1行点击事件
|
||||
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
@@ -16,7 +16,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
if (!IsPostBack)
|
||||
{
|
||||
string loginform = ConfigurationManager.AppSettings["LoginForm"];
|
||||
if (!string.IsNullOrWhiteSpace(loginform) &&loginform == "Login_ZJ.aspx")
|
||||
if (!string.IsNullOrWhiteSpace(loginform) && loginform == "Login_ZJ.aspx")
|
||||
{//判断是否是重机客户,如果是重定向页面
|
||||
Response.Redirect("MillionsMonthlyReportZJ.aspx");
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
//}
|
||||
//if (type != "submit")
|
||||
//{
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
newReport.QualityWorkSummaryReportId = this.QualityWorkSummaryReportId;
|
||||
newReport.UnitId = this.ddlUnitId.SelectedValue;
|
||||
newReport.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
|
||||
|
||||
|
||||
newReport.Performance = report.Performance;
|
||||
newReport.AccidentSituation = report.AccidentSituation;
|
||||
newReport.Awards = report.Awards;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
@@ -23,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
ViewState["QuarterlyProjectQualityId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -54,7 +53,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
lbCompileMan.Text = string.Empty;
|
||||
this.lbTel.Text = string.Empty;
|
||||
this.lbCompileDate.Text = string.Empty;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取记录值
|
||||
@@ -175,7 +174,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString() + "-" + report.Quarter.ToString(),
|
||||
report.QuarterlyProjectQualityId, BLL.Const.QuarterlyProjectQualityMenuId, BLL.Const.BtnDelete);
|
||||
BLL.QuarterlyProjectQualityService.DeleteQuarterlyProjectQualityById(report.QuarterlyProjectQualityId);
|
||||
BLL.QuarterlyProjectQualityService.DeleteQuarterlyProjectQualityById(report.QuarterlyProjectQualityId);
|
||||
|
||||
SetEmpty();
|
||||
this.btnNew.Hidden = false;
|
||||
|
||||
@@ -48,9 +48,9 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
ddlQuarter.DataValueField = "ConstValue";
|
||||
ddlQuarter.DataSource = BLL.ConstValue.drpConstItemList(ConstValue.Group_0011);
|
||||
ddlQuarter.DataBind();
|
||||
|
||||
|
||||
this.ddlUnitId.Readonly = true;
|
||||
string unitId = Request.Params["UnitId"];
|
||||
string unitId = Request.Params["UnitId"];
|
||||
string year = Request.QueryString["Year"];
|
||||
string quarter = Request.QueryString["Quarter"];
|
||||
this.QuarterlyProjectQualityId = Request.Params["QuarterlyProjectQualityId"];
|
||||
@@ -69,8 +69,8 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
if (!string.IsNullOrEmpty(quarterlyProjectQuality.UnitId))
|
||||
{
|
||||
this.ddlUnitId.SelectedValue = quarterlyProjectQuality.UnitId;
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlResponsiblePerson, this.ddlUnitId.SelectedValue,"", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlCompileMan, this.ddlUnitId.SelectedValue,"", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlResponsiblePerson, this.ddlUnitId.SelectedValue, "", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlCompileMan, this.ddlUnitId.SelectedValue, "", true);
|
||||
|
||||
}
|
||||
if (quarterlyProjectQuality.Year.HasValue)
|
||||
@@ -129,8 +129,8 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
this.btnCopy.Hidden = false;
|
||||
this.ddlUnitId.SelectedValue = unitId;
|
||||
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlResponsiblePerson, this.ddlUnitId.SelectedValue,"", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlCompileMan, this.ddlUnitId.SelectedValue,"", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlResponsiblePerson, this.ddlUnitId.SelectedValue, "", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.ddlCompileMan, this.ddlUnitId.SelectedValue, "", true);
|
||||
|
||||
this.ddlYearId.SelectedValue = year;
|
||||
this.ddlQuarter.SelectedValue = quarter;
|
||||
@@ -272,7 +272,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
YearDirectEconomicLoss = Funs.GetNewInt(this.txtYearDirectEconomicLoss.Text.Trim()),
|
||||
Tel = this.txtTel.Text.Trim()
|
||||
};
|
||||
if (this.ddlUnitId.SelectedValue!=BLL.Const._Null)
|
||||
if (this.ddlUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
quarterlyProjectQuality.UnitId = this.ddlUnitId.SelectedValue;
|
||||
}
|
||||
@@ -297,7 +297,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
|
||||
if (string.IsNullOrEmpty(this.QuarterlyProjectQualityId))
|
||||
{
|
||||
var s = BLL.QuarterlyProjectQualityService.GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(this.ddlUnitId.SelectedValue, Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue),Funs.GetNewIntOrZero(this.ddlQuarter.SelectedValue));
|
||||
var s = BLL.QuarterlyProjectQualityService.GetQuarterlyProjectQualityByUnitIdAndYearAndQuarter(this.ddlUnitId.SelectedValue, Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue), Funs.GetNewIntOrZero(this.ddlQuarter.SelectedValue));
|
||||
if (s != null)
|
||||
{
|
||||
ShowNotify("该单位的该季度工程项目质量信息表已经存在,不能重复编制!", MessageBoxIcon.Warning);
|
||||
@@ -351,12 +351,12 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.ddlUnitId.SelectedValue==BLL.Const._Null)
|
||||
if (this.ddlUnitId.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择单位", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.ddlYearId.SelectedValue==BLL.Const._Null)
|
||||
if (this.ddlYearId.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择年度", MessageBoxIcon.Warning);
|
||||
return;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = "select * from View_ProjectData_FlowOperate where DataId=@DataId order by SortIndex desc";
|
||||
SqlParameter[] parameter = new SqlParameter[]
|
||||
SqlParameter[] parameter = new SqlParameter[]
|
||||
{
|
||||
new SqlParameter("@DataId",Request.Params["Id"]),
|
||||
};
|
||||
@@ -39,7 +39,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
this.Type = Request.Params["Type"];
|
||||
this.Id = Request.Params["Id"];
|
||||
this.BindGrid();
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -106,7 +106,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
string handleStates = (this.cbNext.SelectedValue == "0") ? BLL.Const.HandleState_4 : BLL.Const.HandleState_3;
|
||||
if (!string.IsNullOrEmpty(handleMan) && handleMan != Const._Null)
|
||||
{
|
||||
|
||||
|
||||
#region 企业安全数据统计月报
|
||||
if (Type == "MillionsMonthlyReport")//企业安全数据统计月报
|
||||
{
|
||||
@@ -248,7 +248,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
/// </summary>
|
||||
/// <param name="MenuId"></param>
|
||||
/// <param name="dataId"></param>
|
||||
private void SetFlowData(string menuId, string dataId,string handleMan)
|
||||
private void SetFlowData(string menuId, string dataId, string handleMan)
|
||||
{
|
||||
var getIsExitOperate = Funs.DB.ProjectData_FlowOperate.FirstOrDefault(x => x.DataId == this.Id);
|
||||
if (getIsExitOperate == null) //首次生成审批记录
|
||||
@@ -276,7 +276,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
BLL.ProjectDataFlowSetService.UpdateFlowOperateOpinion(updateUnFlowOperate);
|
||||
}
|
||||
|
||||
string states = (this.cbNext.SelectedValue == "0") ? BLL.Const.State_2: BLL.Const.State_1;
|
||||
string states = (this.cbNext.SelectedValue == "0") ? BLL.Const.State_2 : BLL.Const.State_1;
|
||||
////增加 下一步办理信息
|
||||
Model.ProjectData_FlowOperate newdateUnFlowOperate = new Model.ProjectData_FlowOperate
|
||||
{
|
||||
@@ -288,7 +288,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
};
|
||||
BLL.ProjectDataFlowSetService.AddProjectData_FlowOperate(newdateUnFlowOperate);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BLL;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
@@ -217,7 +214,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 单位下拉选择事件
|
||||
/// <summary>
|
||||
/// 单位下拉框联动事件
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
drpUnit.DataSource = BLL.UnitService.GetThisUnitDropDownList();
|
||||
drpUnit.DataBind();
|
||||
this.drpUnit.Readonly = true;
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.drpCompileMan, this.drpUnit.SelectedValue,"", true);
|
||||
BLL.Person_PersonsService.InitFlowOperateControlUserDropDownList(this.drpCompileMan, this.drpUnit.SelectedValue, "", true);
|
||||
string unitId = Request.QueryString["UnitId"];
|
||||
string year = Request.QueryString["Year"];
|
||||
string months = Request.QueryString["Months"];
|
||||
@@ -167,20 +167,20 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
Auditor = this.txtAuditor.Text.Trim(),
|
||||
Approver = this.txtApprover.Text.Trim(),
|
||||
MainWork = this.txtMainWork.Text,
|
||||
HazardRecording=this.txtHazardRecording.Text,
|
||||
SafetyAccident=this.txtSafetyAccident.Text,
|
||||
EPAccident=this.txtEPAccident.Text,
|
||||
OHAccident=this.txtOHAccident.Text,
|
||||
WorkPermitNum=this.txtWorkPermitNum.Text,
|
||||
HiddenDangerDetection =this.txtHiddenDangerDetection.Text,
|
||||
RectificationSituation=this.txtRectificationSituation.Text,
|
||||
CheckProblemsRectification=this.txtCheckProblemsRectification.Text,
|
||||
PendingProject=this.txtPendingProject.Text,
|
||||
ContractorManagement=this.txtContractorManagement.Text,
|
||||
EnvironmentalEmissions=this.txtEnvironmentalEmissions.Text,
|
||||
NextMonthWorkPlan=this.txtNextMonthWorkPlan.Text
|
||||
HazardRecording = this.txtHazardRecording.Text,
|
||||
SafetyAccident = this.txtSafetyAccident.Text,
|
||||
EPAccident = this.txtEPAccident.Text,
|
||||
OHAccident = this.txtOHAccident.Text,
|
||||
WorkPermitNum = this.txtWorkPermitNum.Text,
|
||||
HiddenDangerDetection = this.txtHiddenDangerDetection.Text,
|
||||
RectificationSituation = this.txtRectificationSituation.Text,
|
||||
CheckProblemsRectification = this.txtCheckProblemsRectification.Text,
|
||||
PendingProject = this.txtPendingProject.Text,
|
||||
ContractorManagement = this.txtContractorManagement.Text,
|
||||
EnvironmentalEmissions = this.txtEnvironmentalEmissions.Text,
|
||||
NextMonthWorkPlan = this.txtNextMonthWorkPlan.Text
|
||||
};
|
||||
if (this.drpCompileMan.SelectedValue!=BLL.Const._Null)
|
||||
if (this.drpCompileMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
report.CompileMan = this.drpCompileMan.SelectedValue;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
BLL.SafetyBriefingService.UpdateSafetyBriefing(report);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, report.YearId.ToString() + "-" + report.Month.ToString(), report.SafetyBriefingId, BLL.Const.SafetyBriefingMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
|
||||
|
||||
if (type == "updata") //数据同步
|
||||
{
|
||||
if (report.UpState == BLL.Const.UpState_2)
|
||||
@@ -316,7 +316,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
newReport.NextMonthWorkPlan = report.NextMonthWorkPlan;
|
||||
newReport.UpState = BLL.Const.UpState_2;
|
||||
BLL.SafetyBriefingService.AddSafetyBriefing(newReport);
|
||||
|
||||
|
||||
GetValues(newReport.SafetyBriefingId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,6 @@ using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
|
||||
@@ -424,7 +424,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
this.btnImport.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnPrint))
|
||||
{
|
||||
{
|
||||
this.btnPrint.Hidden = false;
|
||||
}
|
||||
int year = Funs.GetNewIntOrZero(drpYear.SelectedValue);
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
@@ -986,7 +985,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
Save("submit");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region 上传附件
|
||||
/// <summary>
|
||||
/// 上传安全专职人员名单附件
|
||||
|
||||
@@ -326,7 +326,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
/// <param name="e"></param>
|
||||
protected void BtnBulletLeft_Click(object sender, EventArgs e)
|
||||
{
|
||||
int y = Convert.ToInt32(drpYear.SelectedValue)- 1;
|
||||
int y = Convert.ToInt32(drpYear.SelectedValue) - 1;
|
||||
drpYear.SelectedValue = y.ToString();
|
||||
GetValue();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
ddlYearId.DataSource = BLL.ConstValue.drpConstItemList(ConstValue.Group_0008);
|
||||
ddlYearId.DataBind();
|
||||
|
||||
this.ddlUnitId.Readonly = true;
|
||||
this.ddlUnitId.Readonly = true;
|
||||
string unitId = Request.Params["UnitId"];
|
||||
string year = Request.QueryString["Year"];
|
||||
this.WorkSummaryReportId = Request.Params["WorkSummaryReportId"];
|
||||
|
||||
Reference in New Issue
Block a user