20241201 承包商及供应商质量事件报告

This commit is contained in:
毕文静 2024-12-01 23:34:47 +08:00
parent 584319b655
commit 767bfb9e14
26 changed files with 3362 additions and 1255 deletions

View File

@ -216,6 +216,7 @@
<Compile Include="SES\OneTimeContractManagementService.cs" />
<Compile Include="SES\OneTimeContractsService.cs" />
<Compile Include="SES\OneTimeSignedContractsService.cs" />
<Compile Include="SES\PunishmentAuditService.cs" />
<Compile Include="SES\PunishmentService.cs" />
<Compile Include="SES\SESRelatedDataService.cs" />
<Compile Include="SES\SESReportService.cs" />

View File

@ -126,5 +126,32 @@ namespace BLL
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取中文承包商列表下拉项
/// </summary>
/// <param name="dropName"></param>
/// <param name="isShowPlease"></param>
public static void InitCNDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "ContractorId";
dropName.DataTextField = "ContractorCN";
dropName.DataSource = GetContractorCNList();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取承包商列表
/// </summary>
/// <returns></returns>
public static List<Model.Base_Contractor> GetContractorCNList()
{
return (from x in Funs.DB.Base_Contractor orderby x.ContractorCN select x).ToList();
}
}
}

View File

@ -177,5 +177,15 @@ namespace BLL
{
return (from x in Funs.DB.Base_Depart where x.DepartCode.Contains("/") || x.DepartCode == "NA" || x.DepartCode.ToLower() == "none" orderby x.DepartCode select x).ToList();
}
/// <summary>
/// 根据部门领导获取部门信息
/// </summary>
/// <param name="departLeader"></param>
/// <returns></returns>
public static Model.Base_Depart GetDepartByLeader(string departLeader)
{
return Funs.DB.Base_Depart.FirstOrDefault(e => e.DepartLeader == departLeader);
}
}
}

View File

@ -189,6 +189,8 @@ namespace BLL
public const string BtnTARSignedView = "TARSignedView";
public const string BtnTARManageView = "TARManageView";
public const string BtnViewAll = "ViewAll";
#endregion
#endregion

View File

@ -0,0 +1,74 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 审批意见
/// </summary>
public class PunishmentAuditService
{
/// <summary>
/// 添加
/// </summary>
/// <param name="audit"></param>
public static void AddPunishmentAudit(Model.EMC_PunishmentAudit audit)
{
Model.EMC_PunishmentAudit newAudit = new Model.EMC_PunishmentAudit
{
AuditId = audit.AuditId,
PunishmentId = audit.PunishmentId,
AuditMan = audit.AuditMan,
AuditDate = audit.AuditDate,
IsPass = audit.IsPass,
AuditResult = audit.AuditResult
};
Funs.DB.EMC_PunishmentAudit.InsertOnSubmit(newAudit);
Funs.DB.SubmitChanges();
}
/// <summary>
/// 修改
/// </summary>
/// <param name="audit"></param>
public static void UpdatePunishmentAudit(Model.EMC_PunishmentAudit audit)
{
Model.EMC_PunishmentAudit newAudit = Funs.DB.EMC_PunishmentAudit.FirstOrDefault(e => e.AuditId == audit.AuditId);
if (newAudit != null)
{
newAudit.AuditMan = audit.AuditMan;
newAudit.AuditDate = audit.AuditDate;
newAudit.IsPass = audit.IsPass;
newAudit.AuditResult = audit.AuditResult;
Funs.DB.SubmitChanges();
}
}
/// <summary>
/// 删除
/// </summary>
/// <param name="punishmentId"></param>
public static void DeletePunishmentAuditByPunishmentId(string punishmentId)
{
var q = (from x in Funs.DB.EMC_PunishmentAudit where x.PunishmentId == punishmentId select x).ToList();
if (q != null)
{
Funs.DB.EMC_PunishmentAudit.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
}
}
public static Model.EMC_PunishmentAudit GetAuditBypunishmentIdAndAuditMan(string punishmentId, string auditMan)
{
return Funs.DB.EMC_PunishmentAudit.FirstOrDefault(e => e.PunishmentId == punishmentId && e.AuditMan == auditMan);
}
public static Model.EMC_PunishmentAudit GetAuditByAuditMan(string punishmentId, string auditMan)
{
return Funs.DB.EMC_PunishmentAudit.FirstOrDefault(e => e.PunishmentId == punishmentId && e.AuditMan == auditMan && e.AuditDate == null);
}
}
}

View File

@ -1,4 +1,5 @@
using System;
using NPOI.POIFS.Storage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -65,6 +66,10 @@ namespace BLL
newPunishment.Requisitioner=punishment.Requisitioner;
newPunishment.AttachUrl = punishment.AttachUrl;
newPunishment.States = punishment.States;
newPunishment.MIContractor = punishment.MIContractor;
newPunishment.SeType = punishment.SeType;
newPunishment.PVTRequester = punishment.PVTRequester;
newPunishment.IndividualSESReason = punishment.IndividualSESReason;
Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment);
Funs.DB.SubmitChanges();
@ -107,6 +112,10 @@ namespace BLL
newPunishment.ContractAdmin = punishment.ContractAdmin;
newPunishment.IndividualPerson = punishment.IndividualPerson;
newPunishment.UserDep = punishment.UserDep;
newPunishment.MIContractor = punishment.MIContractor;
newPunishment.SeType = punishment.SeType;
newPunishment.PVTRequester = punishment.PVTRequester;
newPunishment.IndividualSESReason = punishment.IndividualSESReason;
Funs.DB.SubmitChanges();
}

View File

@ -88,8 +88,8 @@
owner: '<%= ParamStr%>'
},
// 单个文件大小限制单位byte这里限制为 10M
fileSingleSizeLimit: 100 * 1024 * 1024
// 单个文件大小限制单位byte这里限制为 20M
fileSingleSizeLimit: 20 * 1024 * 1024
});

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>承包商质量事件调查</title>
<title>承包商及供应商质量事件报告</title>
</head>
<body>
<form id="form1" runat="server">
@ -13,7 +13,7 @@
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="Region" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="承包商质量事件调查" EnableCollapse="true"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="承包商及供应商质量事件报告" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="PunishmentId" DataIDField="PunishmentId" EnableColumnLines="true"
ClicksToEdit="2" AllowSorting="true" SortField="PunishDate" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
@ -22,115 +22,47 @@
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:HiddenField ID="hdID" runat="server"></f:HiddenField>
<f:TextBox ID="txtFO_NO" runat="server" Label="合同号" EmptyText="输入查询条件" Width="260px" LabelAlign="Right" NextFocusControl="btnSearch"></f:TextBox>
<%--<f:DropDownList ID="drpContractAdmin" runat="server" Label="Contract Admin" LabelWidth="140px" Width="270px" LabelAlign="Right" NextFocusControl="btnSearch"></f:DropDownList>--%>
<f:DatePicker ID="txtPunishDate" runat="server" Label="Date" DateFormatString="yyyy-MM" DisplayType="Month" LabelWidth="80px" Width="180px" LabelAlign="Right"></f:DatePicker>
<f:Button ID="btnSearch" Text="Search" Icon="SystemSearch" runat="server" Size="Medium" CssClass="marginr" OnClick="btnSearch_Click" />
<f:RadioButtonList ID="rblState" runat="server" Width="400px" AutoPostBack="true" OnSelectedIndexChanged="rblState_SelectedIndexChanged">
<f:RadioItem Value="1" Text="我的待办" Selected="true"/>
<f:RadioItem Value="2" Text="我的已办"/>
<f:RadioItem Value="3" Text="我的申请"/>
</f:RadioButtonList>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="增加" Text="增加" Icon="Add" EnablePostBack="false" runat="server" Hidden="true">
</f:Button>
<f:Button ID="btnEdit" ToolTip="编辑" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click" Hidden="true">
<f:Button ID="btnEdit" ToolTip="编辑" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<%--<f:Button ID="btnAudit" ToolTip="Audit" Text="Audit" Icon="Pencil" runat="server" OnClick="btnAudit_Click" >
</f:Button>--%>
<f:Button ID="btnDelete" ToolTip="Delete" Text="删除" Icon="Delete" ConfirmText="确定删除当前选中行?" OnClick="btnDelete_Click"
runat="server" Hidden="true">
</f:Button>
<%--<f:Button ID="btnExport" OnClick="btnExport_Click" runat="server" Text="Export" ToolTip="Export" Hidden="true"
Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>--%>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" TextAlign="Center" Locked="true" ColumnID="tfNumber" HeaderText="No" HeaderTextAlign="Center">
<f:TemplateField Width="50px" TextAlign="Center" Locked="true" ColumnID="tfNumber" HeaderText="编号" HeaderTextAlign="Center">
<ItemTemplate>
<asp:Label ID="lblNumber" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:GroupField ColumnID="GroupField1" runat="server" HeaderText="申报人填写" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="100px" ColumnID="PunishDate" DataField="PunishDate"
FieldType="Date" Renderer="Date" HeaderText="发生日期" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Location" DataField="Location"
FieldType="String" HeaderText="位置" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="180px" ColumnID="Description" DataField="Description"
HeaderText="质量事件描述" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="Contractor" DataField="Contractor"
HeaderText="涉及承包商" HeaderTextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField ColumnID="GroupField2" runat="server" HeaderText="SSR管理员填写" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="120px" ColumnID="FO_NO" DataField="FO_NO"
FieldType="String" HeaderText="合同号" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="MainCoordinatorName" DataField="MainCoordinatorName"
HeaderText="主协调员" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MCDepName" DataField="MCDepName"
HeaderText="主协调员所在部门" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ContractRequesterName" DataField="ContractRequesterName"
HeaderText="合同需求人" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ContractRequesterDep" DataField="ContractRequesterDep"
HeaderText="需求合同部门" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="UserRepresentativeName" DataField="UserRepresentativeName"
HeaderText="用户代表" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ContractAdminName" DataField="ContractAdminName"
HeaderText="合同管理员" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ItemNo" DataField="ItemNo"
HeaderText="序号" HeaderTextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField ColumnID="GroupField3" runat="server" HeaderText="主协调员填写" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="120px" ColumnID="ClauseDef" DataField="ClauseDef"
FieldType="String" HeaderText="违章条款" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ViolationDegree" DataField="ViolationDegree"
FieldType="String" HeaderText="违章等级" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Company" DataField="Company"
FieldType="String" HeaderText="违章扣款(公司)" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="IndividualPerson" DataField="IndividualPerson"
FieldType="String" HeaderText="违章人员" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Individual" DataField="Individual"
FieldType="String" HeaderText="违章扣款(个人)" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="UserDepName" DataField="UserDepName"
FieldType="String" HeaderText="用户部门" HeaderTextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField ColumnID="GroupField4" runat="server" HeaderText="用户部门填写" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="120px" ColumnID="ViolationRelatedSes" DataField="ViolationRelatedSes"
FieldType="String" HeaderText="违章相关SES" HeaderTextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:GroupField ColumnID="GroupField5" runat="server" HeaderText="合同管理员填写" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="120px" ColumnID="SES_No" DataField="SES_No"
FieldType="String" HeaderText="扣款SES" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="CompletionDate" DataField="CompletionDate"
FieldType="String" HeaderText="扣款完成时间" HeaderTextAlign="Center">
</f:RenderField>
</Columns>
</f:GroupField>
<f:RenderField Width="120px" ColumnID="PunishDate" DataField="PunishDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="发现日期" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="CreateName" DataField="CreateName"
FieldType="String" HeaderText="创建人" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="Description" DataField="Description"
FieldType="String" HeaderText="质量事件名称" HeaderTextAlign="Center" ExpandUnusedSpace="true">
</f:RenderField>
<f:TemplateField HeaderText="审批人" HeaderTextAlign="Center" TextAlign="Center" Width="150px">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# ConvertAudit(Eval("PunishmentId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField HeaderText="当前状态" HeaderTextAlign="Center" TextAlign="Center" Width="150px">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# ConvertState(Eval("PunishmentId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@ -150,14 +82,13 @@
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="承包商质量事件调查" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<f:Window ID="Window1" Title="承包商及供应商质量事件报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1080px" Height="800px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
Icon="BulletEdit" runat="server" Text="编辑" Hidden="true">
Icon="BulletEdit" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Icon="Delete" ConfirmText="确定删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Hidden="true">

View File

@ -10,6 +10,9 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using static System.Windows.Forms.AxHost;
using System.Windows.Forms;
using Microsoft.ReportingServices.ReportProcessing.ReportObjectModel;
namespace FineUIPro.Web.ContractorQuality
{
@ -25,16 +28,6 @@ namespace FineUIPro.Web.ContractorQuality
btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请选择一条记录!");
btnDelete.ConfirmText = String.Format("Are you sure you want to delete the selected &nbsp;<b><script>{0}</script></b>&nbsp;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();
@ -44,25 +37,65 @@ namespace FineUIPro.Web.ContractorQuality
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' ";
strSql = @"select p.PunishmentId,
p.PunishDate,
p.Description,
p.Violation_Inspector,
p.CreateDate,
p.Flag,
p.States,
u.UserName as CreateName,
d.DepartLeader
from EMC_Punishment p
left join Sys_User as u on u.UserId = p.Violation_Inspector
left join Base_Depart as d on d.DepartId = u.DepartId
left join Sys_User as du on du.UserId = d.DepartLeader
where Flag='2' ";
List<SqlParameter> listStr = new List<SqlParameter>();
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));
var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId);
var departleader = BLL.DepartService.GetDepartByLeader(this.CurrUser.UserId);
strSql += " AND PunishDate < @EndDate";
listStr.Add(new SqlParameter("@EndDate", endDate));
if (this.CurrUser.UserId == BLL.Const.GlyId || role.RoleName.Contains("Contractor_Leader") || role.RoleName.Contains("CTE/D Manager"))
{
this.rblState.Hidden = true;
}
else if (departleader != null)
{
this.rblState.Hidden = true;
strSql += " and d.DepartLeader='" + this.CurrUser.UserId + "'";
}
else
{
if (rblState.SelectedValue == "1")
{
if (role != null)
{
if (role.RoleName == "SSRC")
{
strSql += " and p.PunishmentId in (select PunishmentId from EMC_PunishmentAudit where AuditMan='SSR' and AuditDate is null)";
}
else
{
var user = BLL.Sys_UserService.GetUsersByUserId(this.CurrUser.UserId);
if (user != null)
{
strSql += " and p.PunishmentId in (select PunishmentId from EMC_PunishmentAudit where (AuditMan='" + user.DepartId + "' or AuditMan='" + this.CurrUser.UserId + "') and AuditDate is null)";
}
}
}
}
else if (rblState.SelectedValue == "2")
{
strSql += " and p.PunishmentId in (select PunishmentId from EMC_PunishmentAudit where AuditMan=@userid and AuditDate is not null)";
listStr.Add(new SqlParameter("@userid", this.CurrUser.UserId));
}
else if (rblState.SelectedValue == "3")
{
strSql += " AND p.Violation_Inspector=@userid";
listStr.Add(new SqlParameter("@userid", this.CurrUser.UserId));
}
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@ -100,190 +133,132 @@ namespace FineUIPro.Web.ContractorQuality
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")//当前用户等于发起人
if (this.CurrUser.UserId == BLL.Const.GlyId)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else if (pun.States == "1")
{
if (role != null && role.RoleName.Trim() == "SSRC")
if (pun.States == "6")
{
ShowAlert("流程已结束,不能操作!", MessageBoxIcon.Warning);
}
else if (pun.States == "7")
{
ShowAlert("已拒绝,不能操作!", MessageBoxIcon.Warning);
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("对不起您不是SSR不能操作", MessageBoxIcon.Warning);
}
}
else if (pun.States == "2")
else
{
if (pun.IsFrame == true)//合同框架
var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId);
if (this.CurrUser.UserId == pun.Violation_Inspector && pun.States == "0")//当前用户等于发起人
{
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);
}
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
else if (pun.States == "1")
{
if (this.CurrUser.UserId == pun.ContractRequester)//非合同框架,当前用户等于合同需求人
if (role != null && role.RoleName.Trim() == "SSRC")
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("对不起,您不是合同需求人,不能操作!", MessageBoxIcon.Warning);
ShowAlert("您不是SSR不能操作", MessageBoxIcon.Warning);
}
}
}
else if (pun.States == "3")//用户部门
{
if (pun.IsFrame == true && this.CurrUser.UserId == pun.UserDep)
else if (pun.States == "2")
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
if (pun.SeType == "1")//服务
{
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("您不是" + BLL.Sys_UserService.GetUserNameByUserId(fc.Main_Coordinator) + ",不能操作!", MessageBoxIcon.Warning);
}
}
}
else
{
if (this.CurrUser.UserId == pun.ContractRequester)//非合同框架,当前用户等于合同需求人
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("您不是" + BLL.Sys_UserService.GetUserNameByUserId(pun.ContractRequester) + ",不能操作!", MessageBoxIcon.Warning);
}
}
}
else //物资
{
if (this.CurrUser.UserId == pun.PVTRequester)//物资当前用户等于PVT小组组长/请购员
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("您不是" + BLL.Sys_UserService.GetUserNameByUserId(pun.PVTRequester) + ",不能操作!", MessageBoxIcon.Warning);
}
}
}
else
else if (pun.States == "3")//用户部门
{
ShowAlert("对不起,您不是用户部门,不能操作!", MessageBoxIcon.Warning);
var user = BLL.Sys_UserService.GetUsersByUserId(this.CurrUser.UserId);
if (user != null)
{
if (pun.IsFrame == true && user.DepartId == pun.UserDep)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
var depart = BLL.DepartService.GetDepartNameById(pun.UserDep);
ShowAlert("您不是" + depart + "部门用户,不能操作!", MessageBoxIcon.Warning);
}
}
}
}
else if (pun.States == "4")//合同管理员
{
if (pun.IsFrame == true && this.CurrUser.UserId == pun.ContractAdmin)
else if (pun.States == "4")//合同管理员
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
if (pun.IsFrame == true && this.CurrUser.UserId == pun.ContractAdmin)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("您不是" + BLL.Sys_UserService.GetUserNameByUserId(pun.ContractAdmin) + ",不能操作!", MessageBoxIcon.Warning);
}
}
else
else if (pun.States == "5")
{
ShowAlert("对不起,您不是合同管理员,不能操作!", MessageBoxIcon.Warning);
if (((pun.SeType == "1" && pun.IsFrame == false) || pun.SeType == "2") && this.CurrUser.UserId == pun.Buyer)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("IncidentInvestigationEdit.aspx?punishmentId={0}", rowID, "编辑 - ")));
}
else
{
ShowAlert("您不是" + BLL.Sys_UserService.GetUserNameByUserId(pun.Buyer) + ",不能操作!", MessageBoxIcon.Warning);
}
}
else if (pun.States == "6")
{
ShowAlert("流程已结束,不能操作!", MessageBoxIcon.Warning);
}
else if (pun.States == "7")
{
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);
// }
// }
//}
/// <summary>
/// 右键编辑事件
/// </summary>
@ -339,81 +314,10 @@ namespace FineUIPro.Web.ContractorQuality
{
if (judgementDelete(rowID, false))
{
BLL.PunishmentAuditService.DeletePunishmentAuditByPunishmentId(rowID);
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("删除成功!");
@ -427,10 +331,10 @@ namespace FineUIPro.Web.ContractorQuality
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
//protected void btnSearch_Click(object sender, EventArgs e)
//{
// BindGrid();
//}
#endregion
#region
@ -479,17 +383,6 @@ namespace FineUIPro.Web.ContractorQuality
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
@ -706,30 +599,126 @@ namespace FineUIPro.Web.ContractorQuality
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnEdit.Hidden = false;
this.btnMenuEdit.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))
//if (buttonList.Contains(BLL.Const.BtnModify))
//{
// this.btnExport.Hidden = false;
// this.Grid1.EnableRowDoubleClickEvent = true;
//}
//else
//{
// this.Grid1.EnableRowDoubleClickEvent = false;
//}
if (buttonList.Contains(BLL.Const.BtnSave))
{
this.Grid1.EnableRowDoubleClickEvent = true;
}
else
{
this.Grid1.EnableRowDoubleClickEvent = false;
}
}
}
#endregion
/// <summary>
/// 审批人
/// </summary>
/// <param name="punishmentId"></param>
/// <returns></returns>
protected string ConvertAudit(object punishmentId)
{
string name = string.Empty;
if (!string.IsNullOrEmpty(punishmentId.ToString()))
{
var pun = BLL.PunishmentService.GetPunishmentById(punishmentId.ToString());
if (pun != null)
{
if (pun.States == "1")
{
name = "SSR";
}
else if (pun.States == "2")
{
if (pun.SeType == "1")//服务
{
if (pun.IsFrame == true)//合同框架
{
Model.FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO);
if (fc != null)
{
name = BLL.Sys_UserService.GetUserNameByUserId(fc.Main_Coordinator);
}
}
else
{
name = BLL.Sys_UserService.GetUserNameByUserId(pun.ContractRequester);
}
}
else//物资
{
name = BLL.Sys_UserService.GetUserNameByUserId(pun.PVTRequester);
}
}
else if (pun.States == "3" && pun.IsFrame == true)
{
name = BLL.DepartService.GetDepartNameById(pun.UserDep);
}
else if (pun.States == "4" && pun.IsFrame == true)
{
name = BLL.Sys_UserService.GetUserNameByUserId(pun.ContractAdmin);
}
else if (pun.States == "5")
{
name = BLL.Sys_UserService.GetUserNameByUserId(pun.Buyer);
}
}
}
return name;
}
/// <summary>
/// 当期状态
/// </summary>
/// <param name="punishmentId"></param>
/// <returns></returns>
protected string ConvertState(object punishmentId)
{
string s = string.Empty;
if (!string.IsNullOrEmpty(punishmentId.ToString()))
{
var pun = BLL.PunishmentService.GetPunishmentById(punishmentId.ToString());
if (pun != null)
{
if (pun.States == "0")
{
s = "发起";
}
else if (pun.States == "6")
{
s = "已审批";
}
else if (pun.States == "7")
{
s = "已拒绝";
}
else
{
s = "进行中";
}
}
}
return s;
}
/// <summary>
/// 筛选
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void rblState_SelectedIndexChanged(object sender, EventArgs e)
{
BindGrid();
}
}
}

View File

@ -69,31 +69,13 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.HiddenField hdID;
/// <summary>
/// txtFO_NO 控件。
/// rblState 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFO_NO;
/// <summary>
/// txtPunishDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtPunishDate;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
protected global::FineUIPro.RadioButtonList rblState;
/// <summary>
/// ToolbarFill1 控件。
@ -140,6 +122,24 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label2;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>

View File

@ -5,7 +5,13 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑承包商质量事件调查</title>
<title>编辑承包商及供应商质量事件报告</title>
<style>
.customlabel .f-field-label {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<form id="form1" runat="server">
@ -32,13 +38,22 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtContractor" runat="server" Label="涉及承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:Panel ID="Panel3" Width="500px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<f:TextBox ID="txtViolation_Inspector" runat="server" Label="发现人" LabelAlign="Right" LabelWidth="150px" Enabled="true" Hidden="true"></f:TextBox>
<f:TextBox ID="txtViolation_InspectorDep" runat="server" Label="发现人所在部门" LabelAlign="Right" LabelWidth="150px" Enabled="true" Hidden="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtMIContractor" runat="server" Label="可能涉及的承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:Panel ID="Panel3" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="lblAttach" runat="server" Label="相关附件上传" LabelAlign="Right" LabelWidth="150px">
<f:Label ID="Label4" runat="server" Width="32px"></f:Label>
<f:Label ID="Label3" runat="server" Text="*" CssClass="customlabel" Width="5px"></f:Label>
<f:Label ID="lblAttach" runat="server" Label="相关附件上传" LabelAlign="Right" LabelWidth="110px">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="上传" runat="server" OnClick="btnAttach_Click">
</f:Button>
<f:Label ID="lblTips" runat="server" Text="最大不超过20M" CssClass="customlabel"></f:Label>
</Items>
</f:Panel>
</Items>
@ -57,11 +72,22 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtContractor2" runat="server" Label="涉及承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:TextBox ID="txtFO_No" runat="server" Label="合同号" LabelAlign="Right" LabelWidth="150px" AutoPostBack="true" OnTextChanged="txtText_TextChanged"></f:TextBox>
<f:RadioButtonList ID="rblSeType" runat="server" Label="类型" LabelAlign="Right" LabelWidth="150px" Required="true" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="rblSeType_SelectedIndexChanged">
<f:RadioItem Value="1" Text="服务" Selected="true" />
<f:RadioItem Value="2" Text="物资" />
</f:RadioButtonList>
<f:Label ID="Label5" runat="server" Width="32px"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
</f:FormRow>
<f:FormRow ID="fr1" runat="server">
<Items>
<f:TextBox ID="txtFO_No" runat="server" Label="合同号" LabelAlign="Right" LabelWidth="150px" AutoPostBack="true" OnTextChanged="txtText_TextChanged"></f:TextBox>
<f:TextBox ID="txtContractor" runat="server" Label="涉及承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow ID="fr2" runat="server">
<Items>
<f:TextBox ID="txtMainCoordinator" runat="server" Label="主协调员" LabelAlign="Right" LabelWidth="150px">
</f:TextBox>
@ -69,25 +95,42 @@
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow ID="frNoRequester" Hidden="true">
<Items>
<f:DropDownList ID="drpContractRequester" runat="server" Label="合同需求人" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
<f:TextBox ID="txtContractRequesterDep" runat="server" Label="需求合同部门" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<f:FormRow ID="fr3" runat="server">
<Items>
<f:TextBox ID="txtUserRepresentative" runat="server" Label="用户代表" LabelAlign="Right" LabelWidth="150px">
</f:TextBox>
<f:DropDownList ID="drpContractAdmin" runat="server" Label="合同管理员" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<f:FormRow ID="fr4" runat="server">
<Items>
<f:TextBox ID="txtItemNo" runat="server" Label="序号" LabelWidth="150px" Readonly="true"></f:TextBox>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow ID="frNoFrame1" Hidden="true">
<Items>
<f:DropDownList ID="drpContractRequester" runat="server" Label="合同需求人" LabelAlign="Right" LabelWidth="150px" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpContractRequester_SelectedIndexChanged"></f:DropDownList>
<f:TextBox ID="txtContractRequesterDep" runat="server" Label="需求合同部门" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow ID="frNoFrame2" Hidden="true">
<Items>
<f:DropDownList ID="drpBuyer" runat="server" Label="采购员" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
<f:DropDownList ID="drpNoFrameContractAdmin" runat="server" Label="合同管理员" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ID="frWz" runat="server" Hidden="true">
<Items>
<f:TextBox ID="txtContractor2" runat="server" Label="涉及承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:DropDownList ID="drpPVTRequester" runat="server" Label="PVT小组组长/请购人" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ID="frRRSNoPass" runat="server" Hidden="true">
<Items>
<f:TextArea ID="txtRRSNoPassReson" runat="server" Label="拒绝理由" LabelAlign="Right" LabelWidth="150px"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
@ -132,10 +175,16 @@
</f:Label>
<f:Button ID="btnAttach2" Icon="TableCell" EnablePostBack="true" Text="上传" runat="server" OnClick="btnAttach2_Click">
</f:Button>
<f:Label ID="Label6" runat="server" Text="最大不超过20M" CssClass="customlabel"></f:Label>
</Items>
</f:Panel>
</Items>
</f:FormRow>
<f:FormRow ID="frMCNoPass" runat="server" Hidden="true">
<Items>
<f:TextArea ID="txtMCNoPassReason" runat="server" Label="拒绝理由" LabelAlign="Right" LabelWidth="150px"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
@ -153,6 +202,11 @@
<f:TextBox ID="txtIndividualSES" runat="server" Label="违章相关SES" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtIndividualSESReason" runat="server" Label="如不填写请描述原因" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
@ -171,6 +225,11 @@
<f:DatePicker ID="txtCompletionDate" runat="server" Label="扣款完成时间" LabelAlign="Right" LabelWidth="150px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSESReson" runat="server" Label="如不填写请描述原因" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
@ -179,22 +238,75 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GPAudit" Title="审核" Layout="Anchor" runat="server" Hidden="true">
<f:GroupPanel ID="GroupPanel7" Title="PVT组长或请购人填写" Layout="Anchor" runat="server">
<Items>
<f:Form ShowBorder="false" ShowHeader="false" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<%--<f:FormRow>
<Items>
<f:TextBox ID="txtContractor3" runat="server" Label="涉及承包商" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:DropDownList ID="drpPVTRequester2" runat="server" Label="PVT小组组长/请购人" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
</Items>
</f:FormRow>--%>
<f:FormRow>
<Items><f:DropDownList ID="drpBuyer2" runat="server" Label="采购员" LabelAlign="Right" LabelWidth="150px" EnableEdit="true"></f:DropDownList>
<f:DropDownList ID="drpViolationClause2" runat="server" Label="违章条款" EnableEdit="true" LabelAlign="Right" LabelWidth="150px" EnableGroup="true"
AutoPostBack="true" OnSelectedIndexChanged="drpViolationClause2_OnSelectedIndexChanged" ShowRedStar="true" Required="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpViolationDegree2" runat="server" Label="违章等级" LabelAlign="Right" LabelWidth="150px">
<f:ListItem Value="1" Text="一般违章" />
<f:ListItem Value="2" Text="严重违章" />
<f:ListItem Value="3" Text="零容忍违章" />
</f:DropDownList>
<f:NumberBox ID="txtCompany2" runat="server" Label="违章扣款(公司)" LabelAlign="Right" LabelWidth="150px" DecimalPrecision="2" ShowRedStar="true" Required="true"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtFo" runat="server" Label="合同号" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:Panel ID="Panel2" Width="500px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="Label7" runat="server" Label="质量调查相关附件" LabelAlign="Right" LabelWidth="150px">
</f:Label>
<f:Button ID="btnAttach3" Icon="TableCell" EnablePostBack="true" Text="上传" runat="server" OnClick="btnAttach2_Click">
</f:Button>
<f:Label ID="Label8" runat="server" Text="最大不超过20M" CssClass="customlabel"></f:Label>
</Items>
</f:Panel>
</Items>
</f:FormRow>
<f:FormRow ID="frPVTNoPass" runat="server" Hidden="true">
<Items>
<f:TextArea ID="txtPVTNoPassReason" runat="server" Label="拒绝理由" LabelAlign="Right" LabelWidth="150px"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:GroupPanel ID="GroupPanel6" Title="采购员填写" Layout="Anchor" runat="server">
<Items>
<f:Form ShowBorder="false" ShowHeader="false" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:RadioButtonList ID="rbIsPass" runat="server" Label="审核结果" LabelWidth="150px">
<f:RadioItem Value="1" Text="通过" Selected="true" />
<f:RadioItem Value="0" Text="拒绝" />
</f:RadioButtonList>
<f:Label runat="server"></f:Label>
<f:DatePicker ID="txtNoFrameCompletionDate" runat="server" Label="扣款完成时间" LabelAlign="Right" LabelWidth="150px"></f:DatePicker>
<f:Label ID="Label11" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtAuditResult" runat="server" Label="通过/拒绝描述" LabelWidth="150px"></f:TextBox>
<f:TextBox ID="txtBuyerReson" runat="server" Label="如不填写请描述原因" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
</Rows>
@ -208,19 +320,28 @@
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存(暂存)" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" Hidden="true">
<f:Button ID="btnReturn" Icon="ArrowRedo" runat="server" Text="退回到上一流程" ToolTip="退回到上一流程" OnClick="btnReturn_Click" Hidden="true">
</f:Button>
<f:Button ID="btnSbumit" Icon="DatabaseSave" runat="server" Text="提交" ToolTip="提交下一审核人" ValidateForms="SimpleForm1"
<f:Button ID="btnNoPass" Icon="BulletCross" runat="server" Text="拒绝" ToolTip="拒绝" OnClick="btnNoPass_Click" Hidden="true">
</f:Button>
<f:Button ID="btnClose" Icon="DatabaseSave" runat="server" Text="流程结束" ToolTip="流程结束" ValidateForms="SimpleForm1"
OnClick="btnClose_Click" Hidden="true">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存为草稿" ToolTip="保存为草稿" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSbumit" Icon="DatabaseSave" runat="server" Text="提交" ToolTip="提交" ValidateForms="SimpleForm1"
OnClick="btnSbumit_Click" Hidden="true">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" ToolTip="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
<f:Window ID="Window1" Title="拒绝理由" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px" OnClose="Window1_Close"
Height="300px">
</f:Window>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">

View File

@ -78,13 +78,31 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.TextArea txtDescription;
/// <summary>
/// txtContractor 控件。
/// txtViolation_Inspector 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractor;
protected global::FineUIPro.TextBox txtViolation_Inspector;
/// <summary>
/// txtViolation_InspectorDep 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtViolation_InspectorDep;
/// <summary>
/// txtMIContractor 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtMIContractor;
/// <summary>
/// Panel3 控件。
@ -95,6 +113,24 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.Panel Panel3;
/// <summary>
/// Label4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label4;
/// <summary>
/// Label3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label3;
/// <summary>
/// lblAttach 控件。
/// </summary>
@ -113,6 +149,15 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// lblTips 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lblTips;
/// <summary>
/// GroupPanel2 控件。
/// </summary>
@ -123,13 +168,31 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.GroupPanel GroupPanel2;
/// <summary>
/// txtContractor2 控件。
/// rblSeType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractor2;
protected global::FineUIPro.RadioButtonList rblSeType;
/// <summary>
/// Label5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label5;
/// <summary>
/// fr1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow fr1;
/// <summary>
/// txtFO_No 控件。
@ -140,6 +203,24 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.TextBox txtFO_No;
/// <summary>
/// txtContractor 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractor;
/// <summary>
/// fr2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow fr2;
/// <summary>
/// txtMainCoordinator 控件。
/// </summary>
@ -159,31 +240,13 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.TextBox txtMCDept;
/// <summary>
/// frNoRequester 控件。
/// fr3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frNoRequester;
/// <summary>
/// drpContractRequester 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpContractRequester;
/// <summary>
/// txtContractRequesterDep 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractRequesterDep;
protected global::FineUIPro.FormRow fr3;
/// <summary>
/// txtUserRepresentative 控件。
@ -203,6 +266,15 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.DropDownList drpContractAdmin;
/// <summary>
/// fr4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow fr4;
/// <summary>
/// txtItemNo 控件。
/// </summary>
@ -221,6 +293,105 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// frNoFrame1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frNoFrame1;
/// <summary>
/// drpContractRequester 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpContractRequester;
/// <summary>
/// txtContractRequesterDep 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractRequesterDep;
/// <summary>
/// frNoFrame2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frNoFrame2;
/// <summary>
/// drpBuyer 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpBuyer;
/// <summary>
/// drpNoFrameContractAdmin 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpNoFrameContractAdmin;
/// <summary>
/// frWz 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frWz;
/// <summary>
/// txtContractor2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractor2;
/// <summary>
/// drpPVTRequester 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpPVTRequester;
/// <summary>
/// frRRSNoPass 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frRRSNoPass;
/// <summary>
/// txtRRSNoPassReson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtRRSNoPassReson;
/// <summary>
/// GroupPanel3 控件。
/// </summary>
@ -311,6 +482,33 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.Button btnAttach2;
/// <summary>
/// Label6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label6;
/// <summary>
/// frMCNoPass 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frMCNoPass;
/// <summary>
/// txtMCNoPassReason 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtMCNoPassReason;
/// <summary>
/// GroupPanel4 控件。
/// </summary>
@ -329,6 +527,15 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.TextBox txtIndividualSES;
/// <summary>
/// txtIndividualSESReason 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtIndividualSESReason;
/// <summary>
/// GroupPanel5 控件。
/// </summary>
@ -357,31 +564,157 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.DatePicker txtCompletionDate;
/// <summary>
/// GPAudit 控件。
/// txtSESReson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GPAudit;
protected global::FineUIPro.TextBox txtSESReson;
/// <summary>
/// rbIsPass 控件。
/// GroupPanel7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList rbIsPass;
protected global::FineUIPro.GroupPanel GroupPanel7;
/// <summary>
/// txtAuditResult 控件。
/// drpBuyer2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAuditResult;
protected global::FineUIPro.DropDownList drpBuyer2;
/// <summary>
/// drpViolationClause2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpViolationClause2;
/// <summary>
/// drpViolationDegree2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpViolationDegree2;
/// <summary>
/// txtCompany2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtCompany2;
/// <summary>
/// txtFo 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFo;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// Label7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label7;
/// <summary>
/// btnAttach3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach3;
/// <summary>
/// Label8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label8;
/// <summary>
/// frPVTNoPass 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow frPVTNoPass;
/// <summary>
/// txtPVTNoPassReason 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtPVTNoPassReason;
/// <summary>
/// GroupPanel6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.GroupPanel GroupPanel6;
/// <summary>
/// txtNoFrameCompletionDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtNoFrameCompletionDate;
/// <summary>
/// Label11 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label11;
/// <summary>
/// txtBuyerReson 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBuyerReson;
/// <summary>
/// Toolbar1 控件。
@ -401,6 +734,33 @@ namespace FineUIPro.Web.ContractorQuality
/// </remarks>
protected global::FineUIPro.HiddenField hdId;
/// <summary>
/// btnReturn 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnReturn;
/// <summary>
/// btnNoPass 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNoPass;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
/// <summary>
/// btnSave 控件。
/// </summary>
@ -420,13 +780,13 @@ namespace FineUIPro.Web.ContractorQuality
protected global::FineUIPro.Button btnSbumit;
/// <summary>
/// btnClose 控件。
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
protected global::FineUIPro.Window Window1;
/// <summary>
/// WindowAtt 控件。

View File

@ -0,0 +1,34 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoPassEdit.aspx.cs" Inherits="FineUIPro.Web.ContractorQuality.NoPassEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>拒绝理由</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txtContents" runat="server" Label="拒绝理由" LabelAlign="Right" Required="true" ShowRedStar="true"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSure" Icon="SystemSave" runat="server" Text="确定" ToolTip="确定" ValidateForms="SimpleForm1"
OnClick="btnSure_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,211 @@
using BLL.Common;
using BLL;
using System;
using System.Collections.Specialized;
using System.Linq;
using FineUIPro.Web.SES;
namespace FineUIPro.Web.ContractorQuality
{
public partial class NoPassEdit : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void btnSure_Click(object sender, EventArgs e)
{
string id = Request.Params["punishmentId"];
var pun = BLL.PunishmentService.GetPunishmentById(id);
if (pun != null)
{
pun.IsPass = false;
pun.AuditMan = this.CurrUser.UserId;
pun.AuditResult = this.txtContents.Text.Trim();
pun.States = "7";//拒绝,流程结束
BLL.PunishmentService.UpdatePunishment(pun);
var audit = BLL.PunishmentAuditService.GetAuditByAuditMan(id, this.CurrUser.UserId);
if (audit != null)
{
//audit.AuditMan = this.CurrUser.UserId;
audit.AuditDate = DateTime.Now;
audit.IsPass = false;
audit.AuditResult = this.txtContents.Text.Trim();
BLL.PunishmentAuditService.UpdatePunishmentAudit(audit);
#region
Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId);
if (pops == null)
{
return;
}
string[] mailTo = null;
string[] mailCC = null;
string resultMessage = "";
var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("填写完成后拒绝通知"));
if (emailTemplate.Count() > 0)
{
string departLeader = string.Empty;
var u = BLL.Sys_UserService.GetUsersByUserId(pun.Violation_Inspector);
if (u != null)
{
if (!string.IsNullOrEmpty(u.DepartId))
{
var depart = BLL.DepartService.GetDepartById(u.DepartId);
if (depart != null)
{
departLeader = depart.DepartLeader;
}
}
}
if (!string.IsNullOrEmpty(departLeader))
{
var userTo = from x in Funs.DB.View_EMail_UserTo
where x.PunishmentId == id && x.AuditDate != null
|| x.ChineseName.Contains("王志高")
|| x.UserId.Contains(pun.Violation_Inspector)
|| x.UserId.Contains(departLeader)
&& x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).Distinct().ToArray();
}
}
else
{
var userTo = from x in Funs.DB.View_EMail_UserTo
where x.PunishmentId == id && x.AuditDate != null
|| x.ChineseName.Contains("王志高")
|| x.UserId.Contains(pun.Violation_Inspector)
&& x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).Distinct().ToArray();
}
}
if (mailTo.Length > 0)
{
NameValueCollection myPram = new NameValueCollection();
myPram.Add("发现日期", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : "");
myPram.Add("位置", pun.Location);
myPram.Add("质量事件描述", pun.Description);
myPram.Add("拒绝原因", pun.AuditResult);
MailHelper.SendPunishSesMail(pops, myPram, "填写完成后拒绝通知", mailTo, mailCC, out resultMessage);
}
}
#endregion
}
else
{
var ssrAudit = BLL.PunishmentAuditService.GetAuditByAuditMan(id, "SSR");
if (ssrAudit != null)
{
ssrAudit.AuditMan = this.CurrUser.UserId;
ssrAudit.AuditDate = DateTime.Now;
ssrAudit.IsPass = false;
ssrAudit.AuditResult = this.txtContents.Text.Trim();
BLL.PunishmentAuditService.UpdatePunishmentAudit(ssrAudit);
#region SSR拒绝邮件
Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId);
if (pops == null)
{
return;
}
string[] mailTo = null;
string[] mailCC = null;
string resultMessage = "";
var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("SSR管理员填写完成后拒绝通知"));
if (emailTemplate.Count() > 0)
{
if (pun.SeType == "1" && pun.IsFrame == true)//框架合同
{
//发送给:王志高、发起人、发起人部门经理
string departLeader = string.Empty;
var u = BLL.Sys_UserService.GetUsersByUserId(pun.Violation_Inspector);
if (u != null)
{
if (!string.IsNullOrEmpty(u.DepartId))
{
var depart = BLL.DepartService.GetDepartById(u.DepartId);
if (depart != null)
{
departLeader = depart.DepartLeader;
}
}
}
if (!string.IsNullOrEmpty(departLeader))
{
var userTo = from x in Funs.DB.Sys_User
where x.ChineseName.Contains("王志高") || x.UserId.Contains(pun.Violation_Inspector) || x.UserId.Contains(departLeader)
&& x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).ToArray();
}
}
else
{
var userTo = from x in Funs.DB.Sys_User
where x.ChineseName.Contains("王志高") || x.UserId.Contains(pun.Violation_Inspector)
&& x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).ToArray();
}
}
}
else//非框架合同
{
//发送对象:发起人,抄送:王志高
var userTo = from x in Funs.DB.Sys_User
where x.UserId.Contains(pun.Violation_Inspector)
&& x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).ToArray();
}
var userCC = from x in Funs.DB.Sys_User
where x.ChineseName.Contains("王志高")
&& x.Email != null && x.Email != ""
select x;
if (userCC != null)
{
mailCC = userCC.Select(x => x.Email).ToArray();
}
}
if (mailTo.Length > 0)
{
NameValueCollection myPram = new NameValueCollection();
myPram.Add("发现日期", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : "");
myPram.Add("位置", pun.Location);
myPram.Add("质量事件描述", pun.Description);
myPram.Add("拒绝原因", pun.AuditResult);
MailHelper.SendPunishSesMail(pops, myPram, "SSR管理员填写完成后拒绝通知", mailTo, mailCC, out resultMessage);
}
}
#endregion
}
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
}
}
}

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ContractorQuality
{
public partial class NoPassEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtContents 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtContents;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnSure 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSure;
}
}

View File

@ -0,0 +1,34 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReturnReason.aspx.cs" Inherits="FineUIPro.Web.ContractorQuality.ReturnReason" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>退回理由</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextArea ID="txtContents" runat="server" Label="退回理由" LabelAlign="Right" Required="true" ShowRedStar="true"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSure" Icon="SystemSave" runat="server" Text="确定" ToolTip="确定" ValidateForms="SimpleForm1"
OnClick="btnSure_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>

View File

@ -0,0 +1,102 @@
using BLL;
using BLL.Common;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.ContractorQuality
{
public partial class ReturnReason : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void btnSure_Click(object sender, EventArgs e)
{
string id = Request.Params["punishmentId"];
if (!string.IsNullOrEmpty(id))
{
var pun = BLL.PunishmentService.GetPunishmentById(id);
if (pun != null)
{
if (pun.States == "2")
{
pun.States = "1";
var updateAudit = BLL.PunishmentAuditService.GetAuditByAuditMan(id, this.CurrUser.UserId);
if (updateAudit != null)
{
updateAudit.AuditDate = DateTime.Now;
updateAudit.IsPass = false;
updateAudit.AuditResult = this.txtContents.Text.Trim();
BLL.PunishmentAuditService.UpdatePunishmentAudit(updateAudit);
}
Model.EMC_PunishmentAudit audit = new Model.EMC_PunishmentAudit();
audit.AuditId = SQLHelper.GetNewID(typeof(Model.EMC_PunishmentAudit));
audit.PunishmentId = id;
audit.AuditMan = "SSR";
BLL.PunishmentAuditService.AddPunishmentAudit(audit);
//if (pun.SeType == "1")
//{
#region /PVT小组组长/退SSR管理员
Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId);
if (pops == null)
{
return;
}
string[] mailTo = null;
string[] mailCC = null;
string resultMessage = "";
var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("填写完成后退回上一流程通知"));
if (emailTemplate.Count() > 0)
{
var userTo = from x in Funs.DB.Sys_User
join y in Funs.DB.Sys_Role on x.RoleId equals y.RoleId
where y.RoleName.Contains("SSRC") && x.Email != null && x.Email != ""
select x;
if (userTo != null)
{
mailTo = userTo.Select(x => x.Email).ToArray();
}
var userCc = from x in Funs.DB.Sys_User
where (x.UserId.Contains(pun.Violation_Inspector))
&& x.Email != null && x.Email != ""
select x;
if (userCc != null)
{
mailCC = userCc.Select(x => x.Email).Distinct().ToArray();
}
if (mailTo.Length > 0)
{
NameValueCollection myPram = new NameValueCollection();
myPram.Add("发现日期", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : "");
myPram.Add("位置", pun.Location);
myPram.Add("质量事件描述", pun.Description);
myPram.Add("拒绝原因", this.txtContents.Text.Trim());
MailHelper.SendPunishSesMail(pops, myPram, "填写完成后退回上一流程通知", mailTo, mailCC, out resultMessage);
}
}
#endregion
//}
}
Funs.DB.SubmitChanges();
ShowNotify("操作成功!", MessageBoxIcon.Success);
}
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
}
}

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ContractorQuality
{
public partial class ReturnReason
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtContents 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtContents;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnSure 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSure;
}
}

View File

@ -1,14 +0,0 @@
邮件发送步骤邮箱参照网易163免费邮箱
请登录163邮箱点击页面正上方的“设置”再点击左侧上“POP3/SMTP/IMAP”其中“开
启SMTP服务”是系统默认勾选开启的。您可勾选图中另两个选项点击确定即可开启成
功。不勾选图中两个选项,点击确定,可关闭成功。
[pic]
相关服务器信息:
[pic]
如下图进行设置采用的邮箱是163邮箱设置
[pic]

View File

@ -288,6 +288,8 @@
<Content Include="common\MainSearch.aspx" />
<Content Include="ContractorQuality\IncidentInvestigation.aspx" />
<Content Include="ContractorQuality\IncidentInvestigationEdit.aspx" />
<Content Include="ContractorQuality\NoPassEdit.aspx" />
<Content Include="ContractorQuality\ReturnReason.aspx" />
<Content Include="CPT\CPTReportList.aspx" />
<Content Include="CPT\SESReportToCPT.aspx" />
<Content Include="CPT\SESReportToCPTEdit.aspx" />
@ -2937,6 +2939,20 @@
<Compile Include="ContractorQuality\IncidentInvestigationEdit.aspx.designer.cs">
<DependentUpon>IncidentInvestigationEdit.aspx</DependentUpon>
</Compile>
<Compile Include="ContractorQuality\NoPassEdit.aspx.cs">
<DependentUpon>NoPassEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ContractorQuality\NoPassEdit.aspx.designer.cs">
<DependentUpon>NoPassEdit.aspx</DependentUpon>
</Compile>
<Compile Include="ContractorQuality\ReturnReason.aspx.cs">
<DependentUpon>ReturnReason.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ContractorQuality\ReturnReason.aspx.designer.cs">
<DependentUpon>ReturnReason.aspx</DependentUpon>
</Compile>
<Compile Include="CPT\CPTReportList.aspx.cs">
<DependentUpon>CPTReportList.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -2,7 +2,7 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress>
</Use64BitIISExpress>

View File

@ -55,7 +55,7 @@
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" validate="false"/>
</httpHandlers>
<compilation debug="false" targetFramework="4.6.1">
<compilation debug="true" targetFramework="4.6.1">
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
</buildProviders>

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>