From 584319b6558545731affb482444acad395a16805 Mon Sep 17 00:00:00 2001
From: wendy <408182087@qq.com>
Date: Mon, 18 Nov 2024 14:29:07 +0800
Subject: [PATCH] =?UTF-8?q?20241118=20=E6=89=BF=E5=8C=85=E5=95=86=E8=B4=A8?=
=?UTF-8?q?=E9=87=8F=E4=BA=8B=E4=BB=B6=E8=B0=83=E6=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
FCL/BLL/Common/Const.cs | 12 +
FCL/BLL/SES/PunishmentService.cs | 7 +-
.../IncidentInvestigation.aspx | 189 ++++
.../IncidentInvestigation.aspx.cs | 735 +++++++++++++++
.../IncidentInvestigation.aspx.designer.cs | 215 +++++
.../IncidentInvestigationEdit.aspx | 229 +++++
.../IncidentInvestigationEdit.aspx.cs | 700 +++++++++++++++
...IncidentInvestigationEdit.aspx.designer.cs | 440 +++++++++
FCL/FineUIPro.Web/FineUIPro.Web.csproj | 16 +
FCL/Model/Model.cs | 837 ++++++++++++++++--
10 files changed, 3296 insertions(+), 84 deletions(-)
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.cs
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.designer.cs
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.cs
create mode 100644 FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.designer.cs
diff --git a/FCL/BLL/Common/Const.cs b/FCL/BLL/Common/Const.cs
index 3c7b99b..e2b2ea2 100644
--- a/FCL/BLL/Common/Const.cs
+++ b/FCL/BLL/Common/Const.cs
@@ -100,6 +100,11 @@ namespace BLL
///
public const string BtnSave = "Save";
+ ///
+ /// 提交
+ ///
+ public const string BtnSubmit = "Submit";
+
///
/// 打印
///
@@ -450,6 +455,13 @@ namespace BLL
public const string EvaluationReportMenuId = "DD0202E2-0EBD-41A3-AA81-33684B8DE014";
#endregion
+
+ #region 承包商质量事件调查
+ ///
+ /// 承包商质量事件调查
+ ///
+ public const string IncidentInvestigationMenuId = "493D726E-FF86-4A76-A65B-CB14F02195D2";
+ #endregion
#endregion
#region 综合平台流程
diff --git a/FCL/BLL/SES/PunishmentService.cs b/FCL/BLL/SES/PunishmentService.cs
index 9ad9245..20a8c2b 100644
--- a/FCL/BLL/SES/PunishmentService.cs
+++ b/FCL/BLL/SES/PunishmentService.cs
@@ -64,6 +64,7 @@ namespace BLL
newPunishment.BYC_Person= punishment.BYC_Person;
newPunishment.Requisitioner=punishment.Requisitioner;
newPunishment.AttachUrl = punishment.AttachUrl;
+ newPunishment.States = punishment.States;
Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment);
Funs.DB.SubmitChanges();
@@ -88,7 +89,7 @@ namespace BLL
newPunishment.Individual = punishment.Individual;
newPunishment.ViolationDegree = punishment.ViolationDegree;
newPunishment.BYC_RU = punishment.BYC_RU;
- newPunishment.Violation_Inspector = punishment.Violation_Inspector;
+ //newPunishment.Violation_Inspector = punishment.Violation_Inspector;
newPunishment.CompletionDate = punishment.CompletionDate;
newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes;
newPunishment.SelectYesNo = punishment.SelectYesNo;
@@ -102,6 +103,10 @@ namespace BLL
newPunishment.BYC_Person = punishment.BYC_Person;
newPunishment.Requisitioner = punishment.Requisitioner;
newPunishment.AttachUrl = punishment.AttachUrl;
+ newPunishment.States = punishment.States;
+ newPunishment.ContractAdmin = punishment.ContractAdmin;
+ newPunishment.IndividualPerson = punishment.IndividualPerson;
+ newPunishment.UserDep = punishment.UserDep;
Funs.DB.SubmitChanges();
}
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx
new file mode 100644
index 0000000..adf331c
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx
@@ -0,0 +1,189 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IncidentInvestigation.aspx.cs" Inherits="FineUIPro.Web.ContractorQuality.IncidentInvestigation" %>
+
+
+
+
+
+
+ 承包商质量事件调查
+
+
+
+
+
+
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.cs b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.cs
new file mode 100644
index 0000000..de64b40
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.cs
@@ -0,0 +1,735 @@
+using BLL;
+using NPOI.SS.UserModel;
+using NPOI.XSSF.UserModel;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.IO;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.ContractorQuality
+{
+ public partial class IncidentInvestigation : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ GetButtonPower();//权限设置
+
+ btnNew.OnClientClick = Window1.GetShowReference("IncidentInvestigationEdit.aspx") + "return false;";
+ btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请选择一条记录!");
+ btnDelete.ConfirmText = String.Format("Are you sure you want to delete the selected rows?", Grid1.GetSelectedCountReference());
+
+ //var pun = from x in Funs.DB.View_EMC_Punishment
+ // where x.Flag == "2" && x.Contract_AdminId != null
+ // orderby x.Contract_Admin
+ // select new { x.Contract_AdminId, x.Contract_Admin };
+ //drpContractAdmin.DataValueField = "Contract_AdminId";
+ //drpContractAdmin.DataTextField = "Contract_Admin";
+ //drpContractAdmin.DataSource = pun.Distinct();
+ //drpContractAdmin.DataBind();
+ //Funs.FineUIPleaseSelect(drpContractAdmin);
+
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ // 绑定表格
+ BindGrid();
+ }
+ }
+
+ private void BindGrid()
+ {
+ string strSql = string.Empty;
+ //var user = BLL.Sys_ButtonPowerService.GetButtonPowerByUserId(this.CurrUser.UserId);
+ strSql = @"SELECT * FROM dbo.View_EMC_PunishmentNew WHERE Flag='2' ";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtFO_NO.Text.Trim()))
+ {
+ strSql += " AND FO_NO LIKE @FO_NO";
+ listStr.Add(new SqlParameter("@FO_NO", "%" + this.txtFO_NO.Text.Trim() + "%"));
+ }
+ if (!string.IsNullOrEmpty(txtPunishDate.Text))
+ {
+ DateTime startDate = Convert.ToDateTime(txtPunishDate.Text + "-01");
+ DateTime endDate = startDate.AddMonths(1);
+ strSql += " AND PunishDate >= @StartDate";
+ listStr.Add(new SqlParameter("@StartDate", startDate));
+
+ strSql += " AND PunishDate < @EndDate";
+ listStr.Add(new SqlParameter("@EndDate", endDate));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+
+ //for (int i = 0; i < Grid1.Rows.Count; i++)
+ //{
+ // System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(Grid1.Rows[i].FindControl("lbtnUrl")));
+ // string url = lbtnUrl.CommandArgument.ToString();
+ // if (!string.IsNullOrEmpty(url))
+ // {
+ // url = url.Replace('\\', '/');
+ // lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment("../", url);
+ // }
+ //}
+ }
+
+ #region 编辑
+ ///
+ /// 编辑
+ ///
+ ///
+ ///
+ protected void btnEdit_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInParent("Please select at least one record!");
+ return;
+ }
+ string rowID = Grid1.SelectedRowID;
+ var pun = BLL.PunishmentService.GetPunishmentById(rowID);
+ if (pun != null)
+ {
+ var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId);
+ if (this.CurrUser.UserId == pun.Violation_Inspector && pun.States == "0")//当前用户等于发起人
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else if (pun.States == "1")
+ {
+ if (role != null && role.RoleName.Trim() == "SSRC")
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else
+ {
+ ShowAlert("对不起,您不是SSR,不能操作!", MessageBoxIcon.Warning);
+ }
+ }
+ else if (pun.States == "2")
+ {
+ if (pun.IsFrame == true)//合同框架
+ {
+ Model.FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO);
+ if (fc != null)
+ {
+ if (this.CurrUser.UserId == fc.Main_Coordinator)//当前用户等于主协调员
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else
+ {
+ ShowAlert("对不起,您不是主协调员,不能操作!", MessageBoxIcon.Warning);
+ }
+ }
+ }
+ else
+ {
+ if (this.CurrUser.UserId == pun.ContractRequester)//非合同框架,当前用户等于合同需求人
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else
+ {
+ ShowAlert("对不起,您不是合同需求人,不能操作!", MessageBoxIcon.Warning);
+ }
+ }
+ }
+ else if (pun.States == "3")//用户部门
+ {
+ if (pun.IsFrame == true && this.CurrUser.UserId == pun.UserDep)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else
+ {
+ ShowAlert("对不起,您不是用户部门,不能操作!", MessageBoxIcon.Warning);
+ }
+ }
+ else if (pun.States == "4")//合同管理员
+ {
+ if (pun.IsFrame == true && this.CurrUser.UserId == pun.ContractAdmin)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
+ }
+ else
+ {
+ ShowAlert("对不起,您不是合同管理员,不能操作!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}&view=1", rowID, "编辑 - ")));
+ }
+ }
+ }
+
+ //protected void btnAudit_Click(object sender, EventArgs e)
+ //{
+ // if (Grid1.SelectedRowIndexArray.Length == 0)
+ // {
+ // Alert.ShowInParent("Please select at least one record!");
+ // return;
+ // }
+ // string rowID = Grid1.SelectedRowID;
+ // var pun = BLL.PunishmentService.GetPunishmentById(rowID);
+ // string auditMan = string.Empty;
+
+ // if (pun != null)
+ // {
+ // if (pun.IsFrame == true)
+ // {
+ // var fc = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO);
+ // string curUser = this.CurrUser.UserId; // 当前用户
+ // string violationInspector = pun.Violation_Inspector; // 发起人
+ // string leader = string.Empty; // 主协调员部门领导
+ // string mainCoordinator = fc.Main_Coordinator;
+
+ // var userInfo = BLL.Sys_UserService.GetUsersByUserId(fc.Main_Coordinator);
+ // if (userInfo != null)
+ // {
+ // var dep = BLL.DepartService.GetDepartById(userInfo.DepartId);
+ // if (dep != null)
+ // {
+ // leader = dep.DepartLeader;
+ // }
+ // }
+
+ // // 当前用户不是主调协员
+ // if (curUser != mainCoordinator)
+ // {
+ // // 当前用户是主调协员部门领导 不发邮件
+ // if (curUser == leader)
+ // {
+ // auditMan = leader;
+ // }
+ // else if (curUser == Const.GlyId)
+ // {
+ // auditMan = Const.GlyId;
+ // }
+ // else
+ // {
+ // ShowNotify("您没有审核权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // }
+ // else // 当前用户是主调协员
+ // {
+ // auditMan = mainCoordinator;
+ // // 发邮件给主调协员部门领导
+ // }
+ // }
+
+ // // 非框架合同
+ // else
+ // {
+ // string curUser = this.CurrUser.UserId; // 当前用户
+ // string violationInspector = pun.Violation_Inspector; // 发起人
+ // string leader = string.Empty; // 请购人部门领导
+ // string requisitioner = pun.Requisitioner; // 请购人
+
+ // var userInfo = BLL.Sys_UserService.GetUsersByUserId(pun.Requisitioner);
+ // if (userInfo != null)
+ // {
+ // var dep = BLL.DepartService.GetDepartById(userInfo.DepartId);
+ // if (dep != null)
+ // {
+ // leader = dep.DepartLeader;
+ // }
+ // }
+
+ // // 当前用户不是请购人
+ // if (curUser != requisitioner)
+ // {
+ // // 当前用户是请购人部门领导 不发邮件
+ // if (curUser == leader)
+ // {
+ // auditMan = leader;
+ // }
+ // else if (curUser == Const.GlyId)
+ // {
+ // auditMan = Const.GlyId;
+ // }
+ // else
+ // {
+ // ShowNotify("您没有审核权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ // }
+ // else // 当前用户是请购人
+ // {
+ // auditMan = requisitioner;
+ // // 发邮件给请购人部门领导
+ // }
+ // }
+ // if (auditMan != string.Empty)
+ // {
+ // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}&auditMan={1}&audit=audit", rowID, auditMan, "编辑 - ")));
+ // }
+ // else
+ // {
+ // ShowNotify("您没有审核权限,请与管理员联系!", MessageBoxIcon.Warning);
+ // }
+ // }
+
+ //}
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ btnEdit_Click(null, null);
+ }
+
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ btnEdit_Click(null, null);
+ }
+ #endregion
+
+ #region 删除数据
+ ///
+ /// 批量删除数据
+ ///
+ ///
+ ///
+ protected void btnDelete_Click(object sender, EventArgs e)
+ {
+ this.DeleteData();
+ }
+
+ ///
+ /// 右键删除事件
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ this.DeleteData();
+ }
+
+ ///
+ /// 删除方法
+ ///
+ private void DeleteData()
+ {
+ if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
+ {
+ string rowID = Grid1.SelectedRowID;
+ var pun = BLL.PunishmentService.GetPunishmentById(rowID);
+ if (pun != null)
+ {
+ if (judgementDelete(rowID, false))
+ {
+ BLL.PunishmentService.DeletePunishmentById(rowID);
+ }
+ //if (pun.IsFrame == true)
+ //{
+ //var datas = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO);
+ //if (pun.IsAudit == true) // 审核后只有批准人可删除
+ //{
+ // if (CurrUser.UserId == pun.AuditMan)
+ // {
+ // if (judgementDelete(rowID, false))
+ // {
+ // BLL.PunishmentService.DeletePunishmentById(rowID);
+ // }
+ // }
+ // else
+ // {
+ // ShowNotify("已批准!只有批准人有删除权限!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+ //else
+ //{
+ // if (CurrUser.UserId == datas.Main_Coordinator || CurrUser.UserId == pun.Violation_Inspector || CurrUser.UserId == Const.GlyId)
+ // {
+ // if (judgementDelete(rowID, false))
+ // {
+ // BLL.PunishmentService.DeletePunishmentById(rowID);
+ // }
+ // }
+ // else
+ // {
+ // ShowNotify("只有主协调员,发起人(违章检查人)有删除权限!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+
+
+ //}
+ //else
+ //{
+ //if (pun.IsAudit == true)
+ //{
+ // if (CurrUser.UserId == pun.AuditMan)
+ // {
+ // if (judgementDelete(rowID, false))
+ // {
+ // BLL.PunishmentService.DeletePunishmentById(rowID);
+ // }
+ // }
+ // else
+ // {
+ // ShowNotify("已批准!只有批准人有删除权限!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+
+ //else
+ //{
+ // if (CurrUser.UserId == pun.Requisitioner || CurrUser.UserId == pun.Violation_Inspector || CurrUser.UserId == Const.GlyId)
+ // {
+ // if (judgementDelete(rowID, false))
+ // {
+ // BLL.PunishmentService.DeletePunishmentById(rowID);
+ // }
+ // }
+ // else
+ // {
+ // ShowNotify("只有合同请购人,发起人(违章检查人)有删除权限!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+
+ //}
+ }
+
+ BindGrid();
+ BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除承包商质量事件调查");
+ ShowNotify("删除成功!");
+ }
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void btnSearch_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+ #endregion
+
+ #region 查看
+ protected void btnMenuView_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInParent("请选择一行记录!");
+ return;
+ }
+ string Id = Grid1.SelectedRowID;
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}&view=1", Id, "查看 - ")));
+ }
+ #endregion
+
+ #region 判断是否可删除
+ ///
+ /// 判断是否可以删除
+ ///
+ ///
+ private bool judgementDelete(string id, bool isShow)
+ {
+ string content = string.Empty;
+
+ if (string.IsNullOrEmpty(content))
+ {
+ return true;
+ }
+ else
+ {
+ if (isShow)
+ {
+ Alert.ShowInTop(content);
+ }
+ return false;
+ }
+ }
+ #endregion
+
+ #region 关闭弹出窗口
+ ///
+ /// 关闭窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, EventArgs e)
+ {
+ BindGrid();
+
+ //drpContractAdmin.Items.Clear();
+ //var pun = from x in Funs.DB.View_EMC_Punishment
+ // where x.Flag == "2" && x.Contract_AdminId != null
+ // orderby x.Contract_Admin
+ // select new { x.Contract_AdminId, x.Contract_Admin };
+ //drpContractAdmin.DataValueField = "Contract_AdminId";
+ //drpContractAdmin.DataTextField = "Contract_Admin";
+ //drpContractAdmin.DataSource = pun.Distinct();
+ //drpContractAdmin.DataBind();
+ //Funs.FineUIPleaseSelect(drpContractAdmin);
+ }
+ #endregion
+
+ #region 分页、排序
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ Grid1.PageIndex = e.NewPageIndex;
+ BindGrid();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ Grid1.SortDirection = e.SortDirection;
+ Grid1.SortField = e.SortField;
+ BindGrid();
+ }
+ #endregion
+
+ #region 导出
+ ///
+ /// 导出按钮
+ ///
+ ///
+ ///
+ //protected void btnExport_Click(object sender, EventArgs e)
+ //{
+ // string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
+ // //模板文件
+ // string TempletFileName = rootPath + "Punishment.xlsx";
+ // //导出文件
+ // string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
+ // if (!Directory.Exists(filePath))
+ // {
+ // Directory.CreateDirectory(filePath);
+ // }
+ // string ReportFileName = filePath + "out.xlsx";
+
+ // FileStream file = new FileStream(TempletFileName, FileMode.Open, FileAccess.Read);
+ // XSSFWorkbook hssfworkbook = new XSSFWorkbook(file);
+
+ // #region FC_List
+ // XSSFSheet reportModel = (XSSFSheet)hssfworkbook.GetSheet("Sheet1");
+
+ // IDataFormat dataformat = hssfworkbook.CreateDataFormat();
+ // ICellStyle styleQfw = hssfworkbook.CreateCellStyle();
+ // styleQfw.DataFormat = dataformat.GetFormat("#,##0.00");
+
+ // ICellStyle styleDate = hssfworkbook.CreateCellStyle();
+ // styleDate.DataFormat = dataformat.GetFormat("yyyy/m/d");
+
+ // ICellStyle styleTime = hssfworkbook.CreateCellStyle();
+ // styleTime.DataFormat = dataformat.GetFormat("yyyy/m/d HH:mm:ss");
+
+ // XSSFFont cs_content_Font = (XSSFFont)hssfworkbook.CreateFont(); //创建字体
+ // cs_content_Font.FontName = "等线";//字体
+ // cs_content_Font.FontHeightInPoints = 10; //字体大小
+
+ // Grid1.PageSize = 1000000;
+ // BindGrid();
+
+ // if (Grid1.Rows.Count() > 0)
+ // {
+ // for (int i = 1; i <= Grid1.Rows.Count(); i++)
+ // {
+ // if (reportModel.GetRow(i) == null) reportModel.CreateRow(i);
+
+ // #region 列赋值
+ // //Date
+ // if (reportModel.GetRow(i).GetCell(0) == null) reportModel.GetRow(i).CreateCell(0);
+ // if (Grid1.Rows[i - 1].Values[1] != null && Grid1.Rows[i - 1].Values[1].ToString() != "")
+ // {
+ // DateTime date = Convert.ToDateTime(Grid1.Rows[i - 1].Values[1]);
+ // reportModel.GetRow(i).GetCell(0).SetCellValue(date.ToString("yyyy/MM/dd"));
+ // // reportModel.GetRow(i).GetCell(0).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式
+ // }
+
+ // //Time
+ // if (reportModel.GetRow(i).GetCell(1) == null) reportModel.GetRow(i).CreateCell(1);
+ // reportModel.GetRow(i).GetCell(1).SetCellValue(Grid1.Rows[i - 1].Values[2].ToString());
+ // // Contract No.
+ // if (reportModel.GetRow(i).GetCell(2) == null) reportModel.GetRow(i).CreateCell(2);
+ // reportModel.GetRow(i).GetCell(2).SetCellValue(Grid1.Rows[i - 1].Values[3].ToString());
+ // //是否框架合格
+ // if (reportModel.GetRow(i).GetCell(3) == null) reportModel.GetRow(i).CreateCell(3);
+ // reportModel.GetRow(i).GetCell(3).SetCellValue(Grid1.Rows[i - 1].Values[4].ToString() == "True" ? "是" : "否");
+
+ // // Discipline
+ // if (reportModel.GetRow(i).GetCell(4) == null) reportModel.GetRow(i).CreateCell(4);
+ // reportModel.GetRow(i).GetCell(4).SetCellValue(Grid1.Rows[i - 1].Values[5].ToString());
+ // // Contractor
+ // if (reportModel.GetRow(i).GetCell(5) == null) reportModel.GetRow(i).CreateCell(5);
+ // reportModel.GetRow(i).GetCell(5).SetCellValue(Grid1.Rows[i - 1].Values[6].ToString());
+ // // Location
+ // if (reportModel.GetRow(i).GetCell(6) == null) reportModel.GetRow(i).CreateCell(6);
+ // reportModel.GetRow(i).GetCell(6).SetCellValue(Grid1.Rows[i - 1].Values[7].ToString());
+ // //Violation Person
+ // if (reportModel.GetRow(i).GetCell(7) == null) reportModel.GetRow(i).CreateCell(7);
+ // reportModel.GetRow(i).GetCell(7).SetCellValue(Grid1.Rows[i - 1].Values[8].ToString());
+ // // Violation Description
+ // if (reportModel.GetRow(i).GetCell(8) == null) reportModel.GetRow(i).CreateCell(8);
+ // reportModel.GetRow(i).GetCell(8).SetCellValue(Grid1.Rows[i - 1].Values[9].ToString());
+ // //Violation Clause
+ // if (reportModel.GetRow(i).GetCell(9) == null) reportModel.GetRow(i).CreateCell(9);
+ // reportModel.GetRow(i).GetCell(9).SetCellValue(Grid1.Rows[i - 1].Values[10].ToString());
+
+ // // Company(RMB)
+ // if (reportModel.GetRow(i).GetCell(10) == null) reportModel.GetRow(i).CreateCell(10);
+ // reportModel.GetRow(i).GetCell(10).SetCellValue(Grid1.Rows[i - 1].Values[11].ToString());
+ // // Individual(RMB)
+ // if (reportModel.GetRow(i).GetCell(11) == null) reportModel.GetRow(i).CreateCell(11);
+ // reportModel.GetRow(i).GetCell(11).SetCellValue(Grid1.Rows[i - 1].Values[12].ToString());
+ // // Backcharge(RMB)
+ // if (reportModel.GetRow(i).GetCell(12) == null) reportModel.GetRow(i).CreateCell(12);
+ // reportModel.GetRow(i).GetCell(12).SetCellValue(Grid1.Rows[i - 1].Values[13].ToString());
+
+ // // Violation Degree
+ // if (reportModel.GetRow(i).GetCell(13) == null) reportModel.GetRow(i).CreateCell(13);
+ // reportModel.GetRow(i).GetCell(13).SetCellValue(Grid1.Rows[i - 1].Values[14].ToString());
+ // // Contract Admin
+ // if (reportModel.GetRow(i).GetCell(14) == null) reportModel.GetRow(i).CreateCell(14);
+ // reportModel.GetRow(i).GetCell(14).SetCellValue(Grid1.Rows[i - 1].Values[15].ToString());
+ // // Main Coordinator
+ // if (reportModel.GetRow(i).GetCell(15) == null) reportModel.GetRow(i).CreateCell(15);
+ // reportModel.GetRow(i).GetCell(15).SetCellValue(Grid1.Rows[i - 1].Values[16].ToString());
+ // // M.C.Dept
+ // if (reportModel.GetRow(i).GetCell(16) == null) reportModel.GetRow(i).CreateCell(16);
+ // reportModel.GetRow(i).GetCell(16).SetCellValue(Grid1.Rows[i - 1].Values[17].ToString());
+ // // User Representative
+ // if (reportModel.GetRow(i).GetCell(17) == null) reportModel.GetRow(i).CreateCell(17);
+ // reportModel.GetRow(i).GetCell(17).SetCellValue(Grid1.Rows[i - 1].Values[18].ToString());
+ // // BYC RU
+ // if (reportModel.GetRow(i).GetCell(18) == null) reportModel.GetRow(i).CreateCell(18);
+ // reportModel.GetRow(i).GetCell(18).SetCellValue(Grid1.Rows[i - 1].Values[19].ToString());
+ // // Violation Inspector
+ // if (reportModel.GetRow(i).GetCell(19) == null) reportModel.GetRow(i).CreateCell(19);
+ // reportModel.GetRow(i).GetCell(19).SetCellValue(Grid1.Rows[i - 1].Values[20].ToString());
+ // // Inspection Department
+ // if (reportModel.GetRow(i).GetCell(20) == null) reportModel.GetRow(i).CreateCell(20);
+ // reportModel.GetRow(i).GetCell(20).SetCellValue(Grid1.Rows[i - 1].Values[21].ToString());
+ // //Requistioner
+ // if (reportModel.GetRow(i).GetCell(21) == null) reportModel.GetRow(i).CreateCell(21);
+ // reportModel.GetRow(i).GetCell(21).SetCellValue(Grid1.Rows[i - 1].Values[22].ToString());
+
+ // // Backcharge SES No.
+ // if (reportModel.GetRow(i).GetCell(22) == null) reportModel.GetRow(i).CreateCell(22);
+ // reportModel.GetRow(i).GetCell(22).SetCellValue(Grid1.Rows[i - 1].Values[23].ToString());
+ // // Backcharge Completion Date
+ // if (reportModel.GetRow(i).GetCell(23) == null) reportModel.GetRow(i).CreateCell(23);
+ // if (Grid1.Rows[i - 1].Values[24] != null && Grid1.Rows[i - 1].Values[24].ToString() != "")
+ // {
+ // DateTime date = Convert.ToDateTime(Grid1.Rows[i - 1].Values[24]);
+ // reportModel.GetRow(i).GetCell(23).SetCellValue(date.ToString("yyyy/MM/dd"));
+ // // reportModel.GetRow(i).GetCell(0).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式
+ // }
+ // #endregion
+ // }
+ // }
+ // #endregion
+ // reportModel.ForceFormulaRecalculation = true;
+
+ // using (FileStream filess = File.OpenWrite(ReportFileName))
+ // {
+ // hssfworkbook.Write(filess);
+ // }
+ // FileInfo filet = new FileInfo(ReportFileName);
+ // Response.Clear();
+ // Response.Charset = "GB2312";
+ // Response.ContentEncoding = System.Text.Encoding.UTF8;
+ // // 添加头信息,为"文件下载/另存为"对话框指定默认文件名
+ // Response.AddHeader("Content-Disposition", "attachment; filename=CQuality_Punishment_" + Server.UrlEncode(DateTime.Now.ToString("yyyyMMddhhmmss") + ".xlsx"));
+ // // 添加头信息,指定文件大小,让浏览器能够显示下载进度
+ // Response.AddHeader("Content-Length", filet.Length.ToString());
+ // // 指定返回的是一个不能被客户端读取的流,必须被下载
+ // Response.ContentType = "application/ms-excel";
+ // // 把文件流发送到客户端
+ // Response.WriteFile(filet.FullName);
+ // // 停止页面的执行
+ // Response.End();
+
+ //}
+ #endregion
+
+ #region 权限设置
+ ///
+ /// 菜单按钮权限
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.IncidentInvestigationMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnEdit.Hidden = false;
+ this.btnMenuEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnDelete.Hidden = false;
+ this.btnMenuDelete.Hidden = false;
+ }
+ //if (buttonList.Contains(BLL.Const.BtnOut))
+ //{
+ // this.btnExport.Hidden = false;
+ //}
+ if (buttonList.Contains(BLL.Const.BtnSave))
+ {
+ this.Grid1.EnableRowDoubleClickEvent = true;
+ }
+ else
+ {
+ this.Grid1.EnableRowDoubleClickEvent = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.designer.cs b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.designer.cs
new file mode 100644
index 0000000..1e4b850
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigation.aspx.designer.cs
@@ -0,0 +1,215 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.ContractorQuality
+{
+
+
+ public partial class IncidentInvestigation
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// hdID 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdID;
+
+ ///
+ /// txtFO_NO 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtFO_NO;
+
+ ///
+ /// txtPunishDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtPunishDate;
+
+ ///
+ /// btnSearch 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSearch;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// btnEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnEdit;
+
+ ///
+ /// btnDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDelete;
+
+ ///
+ /// lblNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+
+ ///
+ /// btnMenuView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuView;
+ }
+}
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx
new file mode 100644
index 0000000..d163bdb
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx
@@ -0,0 +1,229 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IncidentInvestigationEdit.aspx.cs" Inherits="FineUIPro.Web.ContractorQuality.IncidentInvestigationEdit" %>
+
+
+
+
+
+
+ 编辑承包商质量事件调查
+
+
+
+
+
+
+
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.cs b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.cs
new file mode 100644
index 0000000..4904605
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.cs
@@ -0,0 +1,700 @@
+using BLL;
+using NPOI.OpenXml4Net.OPC.Internal.Unmarshallers;
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using System.Security.Cryptography.X509Certificates;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.ContractorQuality
+{
+ public partial class IncidentInvestigationEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ public string PunishmentId
+ {
+ get
+ {
+ return (string)ViewState["PunishmentId"];
+ }
+ set
+ {
+ ViewState["PunishmentId"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ GetButtonPower();//按钮权限
+ GroupPanel2.Hidden = true;
+ GroupPanel3.Hidden = true;
+ GroupPanel4.Hidden = true;
+ GroupPanel5.Hidden = true;
+ this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ BLL.ViolationClauseService.InitViolationClause(this.drpViolationClause, true);//违章条款
+ BLL.Sys_UserService.InitUserDropDownList(this.drpUserDep, true);//用户部门
+ BLL.Sys_UserService.InitUserDropDownList(this.drpContractAdmin, true);//合同管理员
+ BLL.Sys_UserService.InitUserDropDownList(this.drpContractRequester, true);//合同需求人
+
+ this.PunishmentId = Request.Params["punishmentId"];
+ if (!string.IsNullOrEmpty(this.PunishmentId))
+ {
+ Model.EMC_Punishment pun = BLL.PunishmentService.GetPunishmentById(this.PunishmentId);
+ if (pun != null)
+ {
+ string view = Request.Params["view"];
+ if (view == "1")
+ {
+ #region 查看显示
+ Model.FC_SESRelatedData fcdata = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO);
+ this.btnSave.Hidden = true;
+ this.btnSbumit.Hidden = true;
+ if (this.CurrUser.UserId == pun.Violation_Inspector)
+ {
+ this.GroupPanel1.Hidden = false;
+ this.GroupPanel2.Hidden = true;
+ this.GroupPanel3.Hidden = true;
+ this.GroupPanel4.Hidden = true;
+ this.GroupPanel5.Hidden = true;
+ }
+ else if ((fcdata != null && this.CurrUser.UserId == fcdata.Main_Coordinator) || this.CurrUser.UserId == pun.ContractRequester)
+ {
+ this.GroupPanel1.Hidden = false;
+ this.GroupPanel2.Hidden = false;
+ this.GroupPanel3.Hidden = false;
+ this.GroupPanel4.Hidden = true;
+ this.GroupPanel5.Hidden = true;
+ this.GPAudit.Hidden = false;
+ if (pun.IsFrame == true)
+ {
+ frNoRequester.Hidden = true;
+ txtUserRepresentative.Hidden = true;
+ txtMainCoordinator.Hidden = false;
+ txtMCDept.Hidden = false;
+ }
+ else
+ {
+ frNoRequester.Hidden = false;
+ txtUserRepresentative.Hidden = false;
+ txtMainCoordinator.Hidden = true;
+ txtMCDept.Hidden = true;
+ }
+ }
+ else if (this.CurrUser.UserId == pun.UserDep && pun.IsFrame == true)
+ {
+ this.GroupPanel1.Hidden = false;
+ this.GroupPanel2.Hidden = false;
+ this.GroupPanel3.Hidden = false;
+ this.GroupPanel4.Hidden = false;
+ this.GroupPanel5.Hidden = true;
+ }
+ else if (this.CurrUser.UserId == pun.ContractAdmin && pun.IsFrame == true)
+ {
+ this.GroupPanel1.Hidden = false;
+ this.GroupPanel2.Hidden = false;
+ this.GroupPanel3.Hidden = false;
+ this.GroupPanel4.Hidden = false;
+ this.GroupPanel5.Hidden = false;
+ }
+ else
+ {
+ var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId);
+ if (role != null)
+ {
+ if (role.RoleName.Trim() == "SSRC")//申请人已提交、SSR办理
+ {
+ this.GroupPanel1.Hidden = false;
+ this.GroupPanel2.Hidden = false;
+ this.GroupPanel3.Hidden = true;
+ this.GroupPanel4.Hidden = true;
+ this.GroupPanel5.Hidden = true;
+ if (pun.IsFrame == true)//框架合同
+ {
+ this.txtMainCoordinator.Hidden = false;
+ this.txtMainCoordinator.Required = true;
+ this.txtMainCoordinator.ShowRedStar = true;
+ this.txtMCDept.Hidden = false;
+ this.txtMCDept.Required = true;
+ this.txtMCDept.ShowRedStar = true;
+ this.txtUserRepresentative.Hidden = false;
+ this.txtUserRepresentative.Required = true;
+ this.txtUserRepresentative.ShowRedStar = true;
+ frNoRequester.Hidden = true;
+ this.txtItemNo.Hidden = false;
+
+ }
+ else //非框架合同
+ {
+ this.txtMainCoordinator.Hidden = true;
+ this.txtMCDept.Hidden = true;
+ this.txtUserRepresentative.Hidden = true;
+ frNoRequester.Hidden = false;
+ this.drpContractRequester.Required = true;
+ this.drpContractRequester.ShowRedStar = true;
+ this.txtContractRequesterDep.Required = true;
+ this.txtContractRequesterDep.ShowRedStar = true;
+ this.drpContractAdmin.Required = true;
+ this.drpContractAdmin.ShowRedStar = true;
+ this.txtItemNo.Hidden = true;
+ }
+ }
+ }
+ }
+ #endregion
+ }
+ else
+ {
+ #region 操作显示
+ if (pun.States == "1")
+ {
+ var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId);
+ if (role != null)
+ {
+ if (role.RoleName.Trim() == "SSRC")//申请人已提交、SSR办理
+ {
+ GroupPanel1.Enabled = false;
+ GroupPanel2.Hidden = false;
+ this.txtContractor.Hidden = true;
+ this.txtContractor2.Required = true;
+ this.txtContractor2.ShowRedStar = true;
+ this.txtFO_No.Required = true;
+ this.txtFO_No.ShowRedStar = true;
+ if (!string.IsNullOrEmpty(this.txtContractor.Text))
+ {
+ this.txtContractor2.Text = this.txtContractor.Text;
+ }
+ if (pun.IsFrame == true)//框架合同
+ {
+ this.txtMainCoordinator.Hidden = false;
+ this.txtMainCoordinator.Required = true;
+ this.txtMainCoordinator.ShowRedStar = true;
+ this.txtMCDept.Hidden = false;
+ this.txtMCDept.Required = true;
+ this.txtMCDept.ShowRedStar = true;
+ this.txtUserRepresentative.Hidden = false;
+ this.txtUserRepresentative.Required = true;
+ this.txtUserRepresentative.ShowRedStar = true;
+ frNoRequester.Hidden = true;
+ this.txtItemNo.Hidden = false;
+
+ }
+ else //非框架合同
+ {
+ this.txtMainCoordinator.Hidden = true;
+ this.txtMCDept.Hidden = true;
+ this.txtUserRepresentative.Hidden = true;
+ frNoRequester.Hidden = false;
+ this.drpContractRequester.Required = true;
+ this.drpContractRequester.ShowRedStar = true;
+ this.txtContractRequesterDep.Required = true;
+ this.txtContractRequesterDep.ShowRedStar = true;
+ this.drpContractAdmin.Required = true;
+ this.drpContractAdmin.ShowRedStar = true;
+ this.txtItemNo.Hidden = true;
+ }
+ }
+ }
+ }
+ else if (pun.States == "2") //框架合同:主协调员办理,非框架合同:需求人办理
+ {
+ GroupPanel1.Enabled = false;
+ GroupPanel2.Hidden = false;
+ GroupPanel2.Enabled = false;
+ GroupPanel3.Hidden = false;
+ this.GPAudit.Hidden = false;
+ this.drpViolationClause.Required = true;
+ this.drpViolationClause.ShowRedStar = true;
+ this.drpViolationDegree.Required = true;
+ this.drpViolationDegree.ShowRedStar = true;
+ this.txtCompany.Required = true;
+ this.txtCompany.ShowRedStar = true;
+ this.txtIndividual.Required = true;
+ this.txtIndividual.ShowRedStar = true;
+ if (pun.IsFrame == true)//框架合同
+ {
+ this.drpUserDep.Required = true;
+ this.drpUserDep.ShowRedStar = true;
+ GroupPanel3.Title = "主协调员填写";
+ //this.GPAudit.Hidden = false;
+ }
+ else //非框架合同
+ {
+ txtMainCoordinator.Hidden = true;
+ txtMCDept.Hidden = true;
+ this.txtItemNo.Hidden = true;
+ frNoRequester.Hidden = false;
+ txtUserRepresentative.Hidden = true;
+ this.drpUserDep.Required = false;
+ this.drpUserDep.ShowRedStar = false;
+ this.drpUserDep.Hidden = true;
+ GroupPanel3.Title = "合同需求人填写";
+ }
+ }
+ else if (pun.States == "3")//用户部门填写
+ {
+ GroupPanel1.Enabled = false;
+ GroupPanel2.Hidden = false;
+ GroupPanel2.Enabled = false;
+ GroupPanel3.Enabled = false;
+ GroupPanel3.Hidden = false;
+ GroupPanel4.Hidden = false;
+ }
+ else if (pun.States == "4")//合同管理员填写
+ {
+ GroupPanel1.Enabled = false;
+ GroupPanel2.Hidden = false;
+ GroupPanel2.Enabled = false;
+ GroupPanel3.Enabled = false;
+ GroupPanel3.Hidden = false;
+ GroupPanel4.Hidden = false;
+ GroupPanel4.Enabled = false;
+ GroupPanel5.Hidden = false;
+ }
+ #endregion
+ }
+
+ #region 赋值
+ this.hdId.Text = this.PunishmentId;
+ this.txtPunishDate.Text = pun.PunishDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pun.PunishDate) : "";
+ this.txtLocation.Text = pun.Location;
+ this.txtDescription.Text = pun.Description;
+ this.txtContractor.Text = pun.Contractor;
+ if (!string.IsNullOrEmpty(this.txtContractor.Text))
+ {
+ this.txtContractor2.Text = this.txtContractor.Text;
+ }
+ else
+ {
+ this.txtContractor2.Text = pun.Contractor;
+ }
+ this.txtFO_No.Text = pun.FO_NO;
+ Model.View_FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataViewByFO(pun.FO_NO);
+ if (fc != null)
+ {
+ txtMainCoordinator.Text = fc.Main_Coordinator;
+ txtMCDept.Text = fc.MCDept;
+ txtUserRepresentative.Text = fc.User_Representative;
+ //this.drpContractAdmin.SelectedValue = fc.Contract_Admin;
+ }
+ if (!string.IsNullOrEmpty(pun.ContractAdmin))
+ {
+ this.drpContractAdmin.SelectedValue = pun.ContractAdmin;
+ }
+ this.txtItemNo.Text = pun.ItemNo;
+ if (!string.IsNullOrEmpty(pun.ContractRequester))
+ {
+ this.drpContractRequester.SelectedValue = pun.ContractRequester;
+ }
+ this.txtContractRequesterDep.Text = pun.ContractRequesterDep;
+ if (!string.IsNullOrEmpty(pun.ViolationClauseId))
+ {
+ this.drpViolationClause.SelectedValue = pun.ViolationClauseId;
+ }
+ if (!string.IsNullOrEmpty(pun.ViolationDegree))
+ {
+ this.drpViolationDegree.SelectedValue = pun.ViolationDegree;
+ }
+ this.txtCompany.Text = pun.Company.HasValue ? pun.Company.ToString() : "";
+ this.txtIndividualPerson.Text = pun.IndividualPerson;
+ this.txtIndividual.Text = pun.Individual.HasValue ? pun.Individual.ToString() : "";
+ if (!string.IsNullOrEmpty(pun.UserDep))
+ {
+ this.drpUserDep.SelectedValue = pun.UserDep;
+ }
+ this.txtIndividualSES.Text = pun.ViolationRelatedSes;
+ this.txtSES_No.Text = pun.SES_No;
+ this.txtCompletionDate.Text = pun.CompletionDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pun.CompletionDate) : "";
+ this.rbIsPass.SelectedValue = pun.IsPass.HasValue && pun.IsPass == true ? "1" : "0";
+ this.txtAuditResult.Text = pun.AuditResult;
+ #endregion
+ }
+ }
+ else
+ {
+ this.txtPunishDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ }
+ }
+ }
+ #endregion
+
+ #region 保存、提交
+ ///
+ /// 保存
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ SaveMethod(BLL.Const.BtnSave);
+ }
+
+ ///
+ /// 提交
+ ///
+ ///
+ ///
+ protected void btnSbumit_Click(object sender, EventArgs e)
+ {
+ SaveMethod(BLL.Const.BtnSubmit);
+ }
+
+ private void SaveMethod(string type)
+ {
+ if (!string.IsNullOrEmpty(this.PunishmentId))
+ {
+ var pun = BLL.PunishmentService.GetPunishmentById(this.PunishmentId);
+ if (pun != null)
+ {
+ if (pun.States == "1")//SSR办理
+ {
+ pun.Contractor = this.txtContractor2.Text.Trim();
+ pun.FO_NO = this.txtFO_No.Text.Trim();
+ Model.View_FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataViewByFO(pun.FO_NO);
+ if (fc != null)
+ {
+ pun.ItemNo = this.txtItemNo.Text.Trim();
+ pun.IsFrame = true;
+ }
+ else
+ {
+ //非框架合同
+ pun.IsFrame = false;
+ if (this.drpContractRequester.SelectedValue != BLL.Const._Null)
+ {
+ pun.ContractRequester = this.drpContractRequester.SelectedValue;
+ }
+ pun.ContractRequesterDep = this.txtContractRequesterDep.Text.Trim();
+ }
+ if (this.drpContractAdmin.SelectedValue != BLL.Const._Null)
+ {
+ pun.ContractAdmin = this.drpContractAdmin.SelectedValue;
+ }
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "2";//SSR已提交
+ }
+ else
+ {
+ pun.States = "1";//SSR保存未提交
+ }
+ }
+ else if (pun.States == "2")
+ {
+ pun.ViolationClauseId = this.drpViolationClause.SelectedValue;
+ pun.ViolationDegree = this.drpViolationDegree.SelectedValue;
+ pun.Company = Funs.GetNewDecimal(this.txtCompany.Text.Trim());
+ pun.IndividualPerson = this.txtIndividualPerson.Text.Trim();
+ pun.Individual = Funs.GetNewDecimal(this.txtIndividual.Text.Trim());
+ if (rbIsPass.SelectedValue == "1")
+ {
+ pun.IsPass = true;
+ //pun.States = "3";//主协调员已通过并提交
+ }
+ else
+ {
+ pun.IsPass = false;
+ //pun.States = "0";//拒绝并打回 系统通知所有人
+ }
+ pun.AuditResult = txtAuditResult.Text.Trim();
+ if (pun.IsFrame == true)//框架合同
+ {
+ if (this.drpUserDep.SelectedValue != BLL.Const._Null)
+ {
+ pun.UserDep = this.drpUserDep.SelectedValue;
+ }
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "3";//主协调员提交
+ }
+ }
+ else //非框架合同
+ {
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "5";//合同需求人已提交
+ }
+ }
+ }
+ else if (pun.States == "3")//用户部门提交
+ {
+ pun.ViolationRelatedSes = this.txtIndividualSES.Text.Trim();
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "4";//用户部门提交
+ }
+ }
+ else if (pun.States == "4")//合同管理员
+ {
+ pun.SES_No = this.txtSES_No.Text.Trim();
+ pun.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text);
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "5";//合同管理员已提交
+ }
+ }
+ else
+ {
+ pun.PunishDate = Funs.GetNewDateTime(this.txtPunishDate.Text);
+ pun.Location = this.txtLocation.Text.Trim();
+ pun.Description = this.txtDescription.Text.Trim();
+ pun.Contractor = this.txtContractor.Text.Trim();
+ pun.Flag = "2";//质量
+ if (type == BLL.Const.BtnSubmit)
+ {
+ pun.States = "1";//申请人已提交
+ }
+ else
+ {
+ pun.States = "0";//申请人未提交
+ }
+ }
+ }
+ pun.PunishmentId = this.PunishmentId;
+ var att = from x in Funs.DB.AttachFile where x.ToKeyId == this.PunishmentId select x;
+ if (att.Count() > 0)
+ {
+ pun.AttachUrl = att.First().AttachUrl;
+ }
+ BLL.PunishmentService.UpdatePunishment(pun);
+ BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改承包商质量事件调查");
+ }
+ else
+ {
+ Model.EMC_Punishment punishment = new Model.EMC_Punishment();
+ punishment.PunishDate = Funs.GetNewDateTime(this.txtPunishDate.Text);
+ punishment.Location = this.txtLocation.Text.Trim();
+ punishment.Description = this.txtDescription.Text.Trim();
+ punishment.Contractor = this.txtContractor.Text.Trim();
+ punishment.Flag = "2";//质量
+ if (type == BLL.Const.BtnSubmit)
+ {
+ punishment.States = "1";//申请人已提交
+ }
+ else
+ {
+ punishment.States = "0";//申请人未提交
+ }
+ if (!string.IsNullOrEmpty(this.hdId.Text))
+ {
+ punishment.PunishmentId = this.hdId.Text.Trim();
+ }
+ else
+ {
+ punishment.PunishmentId = SQLHelper.GetNewID(typeof(Model.EMC_Punishment));
+ this.hdId.Text = punishment.PunishmentId;
+ }
+ var att = from x in Funs.DB.AttachFile where x.ToKeyId == punishment.PunishmentId select x;
+ if (att.Count() > 0)
+ {
+ punishment.AttachUrl = att.First().AttachUrl;
+ }
+ punishment.Violation_Inspector = this.CurrUser.UserId;//发起人
+ punishment.CreateDate = DateTime.Now;
+ BLL.PunishmentService.AddPunishment(punishment);
+ BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加承包商质量事件调查");
+ }
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ #endregion
+
+ #region 文本框、下拉框事件
+ ///
+ /// 合同号改变事件
+ ///
+ ///
+ ///
+ protected void txtText_TextChanged(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(txtFO_No.Text))
+ {
+ string foNO = txtFO_No.Text.Trim();
+ Model.View_FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataViewByFO(foNO);
+ if (fc != null)
+ {
+ this.drpContractAdmin.SelectedIndex = 0;
+ this.drpContractRequester.SelectedIndex = 0;
+ this.txtContractRequesterDep.Text = string.Empty;
+
+ this.drpContractRequester.Required = false;
+ this.drpContractRequester.ShowRedStar = false;
+ this.txtContractRequesterDep.Required = false;
+ this.txtContractRequesterDep.ShowRedStar = false;
+
+ this.frNoRequester.Hidden = true;
+
+ this.txtMainCoordinator.Hidden = false;
+ this.txtMCDept.Hidden = false;
+ this.txtUserRepresentative.Hidden = false;
+ this.txtItemNo.Hidden = false;
+
+ this.txtMainCoordinator.Required = true;
+ this.txtMainCoordinator.ShowRedStar = true;
+ this.txtMCDept.Required = true;
+ this.txtMCDept.ShowRedStar = true;
+ this.txtUserRepresentative.Required = true;
+ this.txtUserRepresentative.ShowRedStar = true;
+
+ if (string.IsNullOrEmpty(this.txtContractor.Text))
+ {
+ txtContractor2.Text = fc.Contractor;
+ }
+ txtMainCoordinator.Text = fc.Main_Coordinator;
+ txtMCDept.Text = fc.MCDept;
+ txtUserRepresentative.Text = fc.User_Representative;
+ this.drpContractAdmin.SelectedValue = fc.Contract_AdminId;
+
+ // 序号
+ var pun = from x in Funs.DB.EMC_Punishment where x.FO_NO == foNO && x.Flag == "2" select x;
+ if (pun.Count() == 0)
+ {
+ txtItemNo.Text = "001";
+ }
+ else
+ {
+ var max = pun.Max(x => x.ItemNo);
+ if (!string.IsNullOrEmpty(max))
+ {
+ int maxNo = Convert.ToInt32(max) + 1;
+ txtItemNo.Text = "00" + maxNo.ToString();
+ }
+ else
+ {
+ txtItemNo.Text = "001";
+ }
+
+ }
+ }
+ else
+ {
+ this.txtMainCoordinator.Text = string.Empty;
+ this.txtMCDept.Text = string.Empty;
+ this.txtUserRepresentative.Text = string.Empty;
+ this.drpContractAdmin.SelectedIndex = 0;
+ this.txtItemNo.Text = string.Empty;
+
+ this.txtMainCoordinator.Required = false;
+ this.txtMainCoordinator.ShowRedStar = false;
+ this.txtMCDept.Required = false;
+ this.txtMCDept.ShowRedStar = false;
+ this.txtUserRepresentative.Required = false;
+ this.txtUserRepresentative.ShowRedStar = false;
+ this.drpContractAdmin.Required = false;
+ this.drpContractAdmin.ShowRedStar = false;
+
+ txtMainCoordinator.Hidden = true;
+ txtMCDept.Hidden = true;
+ txtUserRepresentative.Hidden = true;
+ this.txtItemNo.Hidden = true;
+
+ frNoRequester.Hidden = false;
+
+ this.drpContractRequester.Required = true;
+ this.drpContractRequester.ShowRedStar = true;
+ this.txtContractRequesterDep.Required = true;
+ this.txtContractRequesterDep.ShowRedStar = true;
+ }
+ }
+ }
+
+ ///
+ /// 违章条款下拉选择事件
+ ///
+ ///
+ ///
+ protected void drpViolationClause_OnSelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (drpViolationClause.SelectedValue != Const._Null)
+ {
+ var vio = BLL.ViolationClauseService.GetViolationClause(drpViolationClause.SelectedValue);
+ if (vio.DeductionComPany1 != 0)
+ {
+ drpViolationDegree.SelectedValue = "1";
+ txtCompany.Text = vio.DeductionComPany1.ToString();
+ txtIndividual.Text = vio.DeductionIndividual1.ToString();
+ //txtBackcharge.Text = (vio.DeductionComPany1 + vio.DeductionIndividual1).ToString();
+ }
+ if (vio.DeductionComPany2 != 0)
+ {
+ drpViolationDegree.SelectedValue = "2";
+ txtCompany.Text = vio.DeductionComPany2.ToString();
+ txtIndividual.Text = vio.DeductionIndividual2.ToString();
+ ////txtBackcharge.Text = (vio.DeductionComPany2 + vio.DeductionIndividual2).ToString();
+ }
+ if (vio.DeductionComPany3 != 0)
+ {
+ drpViolationDegree.SelectedValue = "3";
+ txtCompany.Text = vio.DeductionComPany3.ToString();
+ txtIndividual.Text = vio.DeductionIndividual3.ToString();
+ //txtBackcharge.Text = (vio.DeductionComPany2 + vio.DeductionIndividual3).ToString();
+ }
+ }
+ }
+ #endregion
+
+ #region 附件上传
+ ///
+ /// 相关附件上传
+ ///
+ ///
+ ///
+ protected void btnAttach_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
+ {
+ this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment));
+ }
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId)));
+ }
+
+ ///
+ /// 质量调查相关附件
+ ///
+ ///
+ ///
+ protected void btnAttach2_Click(object sender, EventArgs e)
+ {
+ if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
+ {
+ this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment));
+ }
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}", this.hdId.Text, BLL.Const.IncidentInvestigationMenuId)));
+ }
+ #endregion
+
+ #region 权限设置
+ ///
+ /// 菜单按钮权限
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.IncidentInvestigationMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnSave))
+ {
+ this.btnSave.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnSubmit))
+ {
+ this.btnSbumit.Hidden = false;
+ }
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.designer.cs b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.designer.cs
new file mode 100644
index 0000000..fc8f717
--- /dev/null
+++ b/FCL/FineUIPro.Web/ContractorQuality/IncidentInvestigationEdit.aspx.designer.cs
@@ -0,0 +1,440 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.ContractorQuality
+{
+
+
+ public partial class IncidentInvestigationEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// GroupPanel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel1;
+
+ ///
+ /// txtPunishDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtPunishDate;
+
+ ///
+ /// txtLocation 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtLocation;
+
+ ///
+ /// txtDescription 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription;
+
+ ///
+ /// txtContractor 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContractor;
+
+ ///
+ /// Panel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel3;
+
+ ///
+ /// lblAttach 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label lblAttach;
+
+ ///
+ /// btnAttach 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnAttach;
+
+ ///
+ /// GroupPanel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel2;
+
+ ///
+ /// txtContractor2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContractor2;
+
+ ///
+ /// txtFO_No 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtFO_No;
+
+ ///
+ /// txtMainCoordinator 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMainCoordinator;
+
+ ///
+ /// txtMCDept 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMCDept;
+
+ ///
+ /// frNoRequester 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.FormRow frNoRequester;
+
+ ///
+ /// drpContractRequester 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpContractRequester;
+
+ ///
+ /// txtContractRequesterDep 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtContractRequesterDep;
+
+ ///
+ /// txtUserRepresentative 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtUserRepresentative;
+
+ ///
+ /// drpContractAdmin 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpContractAdmin;
+
+ ///
+ /// txtItemNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtItemNo;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label1;
+
+ ///
+ /// GroupPanel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel3;
+
+ ///
+ /// drpViolationClause 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpViolationClause;
+
+ ///
+ /// drpViolationDegree 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpViolationDegree;
+
+ ///
+ /// txtCompany 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtCompany;
+
+ ///
+ /// txtIndividualPerson 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIndividualPerson;
+
+ ///
+ /// txtIndividual 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.NumberBox txtIndividual;
+
+ ///
+ /// drpUserDep 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpUserDep;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label2;
+
+ ///
+ /// btnAttach2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnAttach2;
+
+ ///
+ /// GroupPanel4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel4;
+
+ ///
+ /// txtIndividualSES 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtIndividualSES;
+
+ ///
+ /// GroupPanel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GroupPanel5;
+
+ ///
+ /// txtSES_No 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSES_No;
+
+ ///
+ /// txtCompletionDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtCompletionDate;
+
+ ///
+ /// GPAudit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.GroupPanel GPAudit;
+
+ ///
+ /// rbIsPass 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.RadioButtonList rbIsPass;
+
+ ///
+ /// txtAuditResult 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtAuditResult;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// hdId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnSbumit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSbumit;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+ }
+}
diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj b/FCL/FineUIPro.Web/FineUIPro.Web.csproj
index 0ec5304..866e137 100644
--- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -286,6 +286,8 @@
+
+
@@ -2921,6 +2923,20 @@
ASPXCodeBehind
+
+ IncidentInvestigation.aspx
+ ASPXCodeBehind
+
+
+ IncidentInvestigation.aspx
+
+
+ IncidentInvestigationEdit.aspx
+ ASPXCodeBehind
+
+
+ IncidentInvestigationEdit.aspx
+
CPTReportList.aspx
ASPXCodeBehind
diff --git a/FCL/Model/Model.cs b/FCL/Model/Model.cs
index c16d363..a8e36d2 100644
--- a/FCL/Model/Model.cs
+++ b/FCL/Model/Model.cs
@@ -818,6 +818,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table View_EMC_PunishmentNew
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table View_EMC_Que_Punishment
{
get
@@ -9754,12 +9762,20 @@ namespace Model
private System.Nullable _CreateDate;
+ private System.Nullable _IsEvaluated;
+
private System.Nullable _IsUserEvaluated;
private System.Nullable _IsDepEvaluated;
+ private string _Contractor;
+
+ private string _Discipline;
+
private string _ViolationClauseId;
+ private string _ItemNo;
+
private System.Nullable _IsFrame;
private string _ViolationPerson;
@@ -9768,26 +9784,32 @@ namespace Model
private string _Requisitioner;
- private string _Contractor;
-
- private string _Discipline;
-
private System.Nullable _IsAudit;
private string _AuditMan;
- private System.Nullable _AuditEmailIsSend;
-
private System.Nullable _IsPass;
private string _AuditResult;
- private string _ItemNo;
+ private System.Nullable _AuditEmailIsSend;
private string _AttachUrl;
private System.Nullable _RelatedSesMailIsSend2;
+ private string _States;
+
+ private string _ContractAdmin;
+
+ private string _ContractRequester;
+
+ private string _ContractRequesterDep;
+
+ private string _IndividualPerson;
+
+ private string _UserDep;
+
private EntityRef _Base_Depart;
private EntityRef _Sys_User;
@@ -9836,12 +9858,20 @@ namespace Model
partial void OnRelatedSesMailIsSendChanged();
partial void OnCreateDateChanging(System.Nullable value);
partial void OnCreateDateChanged();
+ partial void OnIsEvaluatedChanging(System.Nullable value);
+ partial void OnIsEvaluatedChanged();
partial void OnIsUserEvaluatedChanging(System.Nullable value);
partial void OnIsUserEvaluatedChanged();
partial void OnIsDepEvaluatedChanging(System.Nullable value);
partial void OnIsDepEvaluatedChanged();
+ partial void OnContractorChanging(string value);
+ partial void OnContractorChanged();
+ partial void OnDisciplineChanging(string value);
+ partial void OnDisciplineChanged();
partial void OnViolationClauseIdChanging(string value);
partial void OnViolationClauseIdChanged();
+ partial void OnItemNoChanging(string value);
+ partial void OnItemNoChanged();
partial void OnIsFrameChanging(System.Nullable value);
partial void OnIsFrameChanged();
partial void OnViolationPersonChanging(string value);
@@ -9850,26 +9880,32 @@ namespace Model
partial void OnBYC_PersonChanged();
partial void OnRequisitionerChanging(string value);
partial void OnRequisitionerChanged();
- partial void OnContractorChanging(string value);
- partial void OnContractorChanged();
- partial void OnDisciplineChanging(string value);
- partial void OnDisciplineChanged();
partial void OnIsAuditChanging(System.Nullable value);
partial void OnIsAuditChanged();
partial void OnAuditManChanging(string value);
partial void OnAuditManChanged();
- partial void OnAuditEmailIsSendChanging(System.Nullable value);
- partial void OnAuditEmailIsSendChanged();
partial void OnIsPassChanging(System.Nullable value);
partial void OnIsPassChanged();
partial void OnAuditResultChanging(string value);
partial void OnAuditResultChanged();
- partial void OnItemNoChanging(string value);
- partial void OnItemNoChanged();
+ partial void OnAuditEmailIsSendChanging(System.Nullable value);
+ partial void OnAuditEmailIsSendChanged();
partial void OnAttachUrlChanging(string value);
partial void OnAttachUrlChanged();
partial void OnRelatedSesMailIsSend2Changing(System.Nullable value);
partial void OnRelatedSesMailIsSend2Changed();
+ partial void OnStatesChanging(string value);
+ partial void OnStatesChanged();
+ partial void OnContractAdminChanging(string value);
+ partial void OnContractAdminChanged();
+ partial void OnContractRequesterChanging(string value);
+ partial void OnContractRequesterChanged();
+ partial void OnContractRequesterDepChanging(string value);
+ partial void OnContractRequesterDepChanged();
+ partial void OnIndividualPersonChanging(string value);
+ partial void OnIndividualPersonChanged();
+ partial void OnUserDepChanging(string value);
+ partial void OnUserDepChanged();
#endregion
public EMC_Punishment()
@@ -10287,6 +10323,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEvaluated", DbType="Bit")]
+ public System.Nullable IsEvaluated
+ {
+ get
+ {
+ return this._IsEvaluated;
+ }
+ set
+ {
+ if ((this._IsEvaluated != value))
+ {
+ this.OnIsEvaluatedChanging(value);
+ this.SendPropertyChanging();
+ this._IsEvaluated = value;
+ this.SendPropertyChanged("IsEvaluated");
+ this.OnIsEvaluatedChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUserEvaluated", DbType="Bit")]
public System.Nullable IsUserEvaluated
{
@@ -10327,6 +10383,46 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(150)")]
+ public string Contractor
+ {
+ get
+ {
+ return this._Contractor;
+ }
+ set
+ {
+ if ((this._Contractor != value))
+ {
+ this.OnContractorChanging(value);
+ this.SendPropertyChanging();
+ this._Contractor = value;
+ this.SendPropertyChanged("Contractor");
+ this.OnContractorChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Discipline", DbType="NVarChar(150)")]
+ public string Discipline
+ {
+ get
+ {
+ return this._Discipline;
+ }
+ set
+ {
+ if ((this._Discipline != value))
+ {
+ this.OnDisciplineChanging(value);
+ this.SendPropertyChanging();
+ this._Discipline = value;
+ this.SendPropertyChanged("Discipline");
+ this.OnDisciplineChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationClauseId", DbType="NVarChar(50)")]
public string ViolationClauseId
{
@@ -10347,6 +10443,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ItemNo", DbType="NVarChar(10)")]
+ public string ItemNo
+ {
+ get
+ {
+ return this._ItemNo;
+ }
+ set
+ {
+ if ((this._ItemNo != value))
+ {
+ this.OnItemNoChanging(value);
+ this.SendPropertyChanging();
+ this._ItemNo = value;
+ this.SendPropertyChanged("ItemNo");
+ this.OnItemNoChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")]
public System.Nullable IsFrame
{
@@ -10427,46 +10543,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(150)")]
- public string Contractor
- {
- get
- {
- return this._Contractor;
- }
- set
- {
- if ((this._Contractor != value))
- {
- this.OnContractorChanging(value);
- this.SendPropertyChanging();
- this._Contractor = value;
- this.SendPropertyChanged("Contractor");
- this.OnContractorChanged();
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Discipline", DbType="NVarChar(150)")]
- public string Discipline
- {
- get
- {
- return this._Discipline;
- }
- set
- {
- if ((this._Discipline != value))
- {
- this.OnDisciplineChanging(value);
- this.SendPropertyChanging();
- this._Discipline = value;
- this.SendPropertyChanged("Discipline");
- this.OnDisciplineChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAudit", DbType="Bit")]
public System.Nullable IsAudit
{
@@ -10507,26 +10583,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditEmailIsSend", DbType="Bit")]
- public System.Nullable AuditEmailIsSend
- {
- get
- {
- return this._AuditEmailIsSend;
- }
- set
- {
- if ((this._AuditEmailIsSend != value))
- {
- this.OnAuditEmailIsSendChanging(value);
- this.SendPropertyChanging();
- this._AuditEmailIsSend = value;
- this.SendPropertyChanged("AuditEmailIsSend");
- this.OnAuditEmailIsSendChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPass", DbType="Bit")]
public System.Nullable IsPass
{
@@ -10567,22 +10623,22 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ItemNo", DbType="NVarChar(10)")]
- public string ItemNo
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditEmailIsSend", DbType="Bit")]
+ public System.Nullable AuditEmailIsSend
{
get
{
- return this._ItemNo;
+ return this._AuditEmailIsSend;
}
set
{
- if ((this._ItemNo != value))
+ if ((this._AuditEmailIsSend != value))
{
- this.OnItemNoChanging(value);
+ this.OnAuditEmailIsSendChanging(value);
this.SendPropertyChanging();
- this._ItemNo = value;
- this.SendPropertyChanged("ItemNo");
- this.OnItemNoChanged();
+ this._AuditEmailIsSend = value;
+ this.SendPropertyChanged("AuditEmailIsSend");
+ this.OnAuditEmailIsSendChanged();
}
}
}
@@ -10627,6 +10683,126 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
+ public string States
+ {
+ get
+ {
+ return this._States;
+ }
+ set
+ {
+ if ((this._States != value))
+ {
+ this.OnStatesChanging(value);
+ this.SendPropertyChanging();
+ this._States = value;
+ this.SendPropertyChanged("States");
+ this.OnStatesChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractAdmin", DbType="NVarChar(50)")]
+ public string ContractAdmin
+ {
+ get
+ {
+ return this._ContractAdmin;
+ }
+ set
+ {
+ if ((this._ContractAdmin != value))
+ {
+ this.OnContractAdminChanging(value);
+ this.SendPropertyChanging();
+ this._ContractAdmin = value;
+ this.SendPropertyChanged("ContractAdmin");
+ this.OnContractAdminChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequester", DbType="NVarChar(50)")]
+ public string ContractRequester
+ {
+ get
+ {
+ return this._ContractRequester;
+ }
+ set
+ {
+ if ((this._ContractRequester != value))
+ {
+ this.OnContractRequesterChanging(value);
+ this.SendPropertyChanging();
+ this._ContractRequester = value;
+ this.SendPropertyChanged("ContractRequester");
+ this.OnContractRequesterChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequesterDep", DbType="NVarChar(50)")]
+ public string ContractRequesterDep
+ {
+ get
+ {
+ return this._ContractRequesterDep;
+ }
+ set
+ {
+ if ((this._ContractRequesterDep != value))
+ {
+ this.OnContractRequesterDepChanging(value);
+ this.SendPropertyChanging();
+ this._ContractRequesterDep = value;
+ this.SendPropertyChanged("ContractRequesterDep");
+ this.OnContractRequesterDepChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndividualPerson", DbType="NVarChar(50)")]
+ public string IndividualPerson
+ {
+ get
+ {
+ return this._IndividualPerson;
+ }
+ set
+ {
+ if ((this._IndividualPerson != value))
+ {
+ this.OnIndividualPersonChanging(value);
+ this.SendPropertyChanging();
+ this._IndividualPerson = value;
+ this.SendPropertyChanged("IndividualPerson");
+ this.OnIndividualPersonChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserDep", DbType="NVarChar(50)")]
+ public string UserDep
+ {
+ get
+ {
+ return this._UserDep;
+ }
+ set
+ {
+ if ((this._UserDep != value))
+ {
+ this.OnUserDepChanging(value);
+ this.SendPropertyChanging();
+ this._UserDep = value;
+ this.SendPropertyChanged("UserDep");
+ this.OnUserDepChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EMC_Punishment_Base_Depart", Storage="_Base_Depart", ThisKey="BYC_RU", OtherKey="DepartId", IsForeignKey=true)]
public Base_Depart Base_Depart
{
@@ -29392,6 +29568,501 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EMC_PunishmentNew")]
+ public partial class View_EMC_PunishmentNew
+ {
+
+ private string _PunishmentId;
+
+ private System.Nullable _PunishDate;
+
+ private string _Location;
+
+ private string _Description;
+
+ private string _Contractor;
+
+ private string _FO_NO;
+
+ private string _Main_Coordinator;
+
+ private string _MainCoordinatorName;
+
+ private string _MCDepName;
+
+ private string _ContractRequester;
+
+ private string _ContractRequesterName;
+
+ private string _ContractRequesterDep;
+
+ private string _UserRepresentativeName;
+
+ private string _ContractAdminName;
+
+ private string _ItemNo;
+
+ private string _ViolationClauseId;
+
+ private string _ClauseDef;
+
+ private string _ViolationDegree;
+
+ private System.Nullable _Company;
+
+ private string _IndividualPerson;
+
+ private System.Nullable _Individual;
+
+ private string _UserDepName;
+
+ private string _ViolationRelatedSes;
+
+ private string _SES_No;
+
+ private System.Nullable _CompletionDate;
+
+ private System.Nullable _IsFrame;
+
+ private string _IsFrameName;
+
+ public View_EMC_PunishmentNew()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishmentId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string PunishmentId
+ {
+ get
+ {
+ return this._PunishmentId;
+ }
+ set
+ {
+ if ((this._PunishmentId != value))
+ {
+ this._PunishmentId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishDate", DbType="DateTime")]
+ public System.Nullable PunishDate
+ {
+ get
+ {
+ return this._PunishDate;
+ }
+ set
+ {
+ if ((this._PunishDate != value))
+ {
+ this._PunishDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Location", DbType="NVarChar(100)")]
+ public string Location
+ {
+ get
+ {
+ return this._Location;
+ }
+ set
+ {
+ if ((this._Location != value))
+ {
+ this._Location = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(500)")]
+ public string Description
+ {
+ get
+ {
+ return this._Description;
+ }
+ set
+ {
+ if ((this._Description != value))
+ {
+ this._Description = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(150)")]
+ public string Contractor
+ {
+ get
+ {
+ return this._Contractor;
+ }
+ set
+ {
+ if ((this._Contractor != value))
+ {
+ this._Contractor = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FO_NO", DbType="NVarChar(50)")]
+ public string FO_NO
+ {
+ get
+ {
+ return this._FO_NO;
+ }
+ set
+ {
+ if ((this._FO_NO != value))
+ {
+ this._FO_NO = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Main_Coordinator", DbType="NVarChar(50)")]
+ public string Main_Coordinator
+ {
+ get
+ {
+ return this._Main_Coordinator;
+ }
+ set
+ {
+ if ((this._Main_Coordinator != value))
+ {
+ this._Main_Coordinator = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainCoordinatorName", DbType="NVarChar(50)")]
+ public string MainCoordinatorName
+ {
+ get
+ {
+ return this._MainCoordinatorName;
+ }
+ set
+ {
+ if ((this._MainCoordinatorName != value))
+ {
+ this._MainCoordinatorName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MCDepName", DbType="NVarChar(50)")]
+ public string MCDepName
+ {
+ get
+ {
+ return this._MCDepName;
+ }
+ set
+ {
+ if ((this._MCDepName != value))
+ {
+ this._MCDepName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequester", DbType="NVarChar(50)")]
+ public string ContractRequester
+ {
+ get
+ {
+ return this._ContractRequester;
+ }
+ set
+ {
+ if ((this._ContractRequester != value))
+ {
+ this._ContractRequester = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequesterName", DbType="NVarChar(50)")]
+ public string ContractRequesterName
+ {
+ get
+ {
+ return this._ContractRequesterName;
+ }
+ set
+ {
+ if ((this._ContractRequesterName != value))
+ {
+ this._ContractRequesterName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractRequesterDep", DbType="NVarChar(50)")]
+ public string ContractRequesterDep
+ {
+ get
+ {
+ return this._ContractRequesterDep;
+ }
+ set
+ {
+ if ((this._ContractRequesterDep != value))
+ {
+ this._ContractRequesterDep = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserRepresentativeName", DbType="NVarChar(50)")]
+ public string UserRepresentativeName
+ {
+ get
+ {
+ return this._UserRepresentativeName;
+ }
+ set
+ {
+ if ((this._UserRepresentativeName != value))
+ {
+ this._UserRepresentativeName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractAdminName", DbType="NVarChar(50)")]
+ public string ContractAdminName
+ {
+ get
+ {
+ return this._ContractAdminName;
+ }
+ set
+ {
+ if ((this._ContractAdminName != value))
+ {
+ this._ContractAdminName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ItemNo", DbType="NVarChar(10)")]
+ public string ItemNo
+ {
+ get
+ {
+ return this._ItemNo;
+ }
+ set
+ {
+ if ((this._ItemNo != value))
+ {
+ this._ItemNo = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationClauseId", DbType="NVarChar(50)")]
+ public string ViolationClauseId
+ {
+ get
+ {
+ return this._ViolationClauseId;
+ }
+ set
+ {
+ if ((this._ViolationClauseId != value))
+ {
+ this._ViolationClauseId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClauseDef", DbType="NVarChar(500)")]
+ public string ClauseDef
+ {
+ get
+ {
+ return this._ClauseDef;
+ }
+ set
+ {
+ if ((this._ClauseDef != value))
+ {
+ this._ClauseDef = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationDegree", DbType="VarChar(10)")]
+ public string ViolationDegree
+ {
+ get
+ {
+ return this._ViolationDegree;
+ }
+ set
+ {
+ if ((this._ViolationDegree != value))
+ {
+ this._ViolationDegree = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Company", DbType="Money")]
+ public System.Nullable Company
+ {
+ get
+ {
+ return this._Company;
+ }
+ set
+ {
+ if ((this._Company != value))
+ {
+ this._Company = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IndividualPerson", DbType="NVarChar(50)")]
+ public string IndividualPerson
+ {
+ get
+ {
+ return this._IndividualPerson;
+ }
+ set
+ {
+ if ((this._IndividualPerson != value))
+ {
+ this._IndividualPerson = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Individual", DbType="Money")]
+ public System.Nullable Individual
+ {
+ get
+ {
+ return this._Individual;
+ }
+ set
+ {
+ if ((this._Individual != value))
+ {
+ this._Individual = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserDepName", DbType="NVarChar(50)")]
+ public string UserDepName
+ {
+ get
+ {
+ return this._UserDepName;
+ }
+ set
+ {
+ if ((this._UserDepName != value))
+ {
+ this._UserDepName = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationRelatedSes", DbType="NVarChar(50)")]
+ public string ViolationRelatedSes
+ {
+ get
+ {
+ return this._ViolationRelatedSes;
+ }
+ set
+ {
+ if ((this._ViolationRelatedSes != value))
+ {
+ this._ViolationRelatedSes = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SES_No", DbType="NVarChar(20)")]
+ public string SES_No
+ {
+ get
+ {
+ return this._SES_No;
+ }
+ set
+ {
+ if ((this._SES_No != value))
+ {
+ this._SES_No = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletionDate", DbType="DateTime")]
+ public System.Nullable CompletionDate
+ {
+ get
+ {
+ return this._CompletionDate;
+ }
+ set
+ {
+ if ((this._CompletionDate != value))
+ {
+ this._CompletionDate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")]
+ public System.Nullable IsFrame
+ {
+ get
+ {
+ return this._IsFrame;
+ }
+ set
+ {
+ if ((this._IsFrame != value))
+ {
+ this._IsFrame = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrameName", DbType="VarChar(2) NOT NULL", CanBeNull=false)]
+ public string IsFrameName
+ {
+ get
+ {
+ return this._IsFrameName;
+ }
+ set
+ {
+ if ((this._IsFrameName != value))
+ {
+ this._IsFrameName = value;
+ }
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EMC_Que_Punishment")]
public partial class View_EMC_Que_Punishment
{