This commit is contained in:
geh
2026-09-14 15:58:12 +08:00
parent a815e09879
commit 77f61d7e06
128 changed files with 25181 additions and 960 deletions
@@ -248,7 +248,7 @@ namespace FineUIPro.Web.HSSE.Check
Requirement = requirement,
LimitTime = Funs.GetNewDateTime(limitTime),
};
var rectify = rectifyList.FirstOrDefault(x => x.RectifyName == rectifyId);
var rectify = rectifyList.FirstOrDefault(x => x.RectifyName == rectifyId || x.RectifyId == rectifyId);
if (rectify != null)
{
item.RectifyId = rectify.RectifyId;
@@ -194,6 +194,14 @@ namespace FineUIPro.Web.HSSE.Check
Funs.DB.SubmitChanges();
ShowNotify("提交成功!", MessageBoxIcon.Success);
//更新三库隐患记录
string message = string.Empty;
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
if (string.IsNullOrEmpty(Request.Params["Main"]))
{
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
@@ -1197,6 +1197,14 @@ namespace FineUIPro.Web.HSSE.Check
}
ShowNotify("提交成功!", MessageBoxIcon.Success);
//更新三库隐患记录
string message = string.Empty;
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion
@@ -298,6 +298,14 @@ namespace FineUIPro.Web.HSSE.Check
// Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.HiddenDangerTroubleshooting);
// Project_HSSEData_HiddenDangerDetailService.StatisticalData(this.CurrUser.LoginProjectId);
ShowNotify(saveType + "成功!", MessageBoxIcon.Success);
//更新三库隐患记录
string message = string.Empty;
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
if (string.IsNullOrEmpty(Request.Params["Main"]))
{
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
@@ -266,6 +266,14 @@ namespace FineUIPro.Web.HSSE.Check
}
ShowNotify(saveType + "成功!", MessageBoxIcon.Success);
//更新三库隐患记录
string message = string.Empty;
SanKuDataSummaryReportService.UpdateHazardRecord(this.RectifyNoticesId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
if (string.IsNullOrEmpty(Request.Params["Main"]))
{
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
@@ -36,6 +36,13 @@
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList runat="server" EnableSimulateTree="True" Label="违章级别" ID="drpLevel" AutoPostBack="true"
OnSelectedIndexChanged="TextBox_TextChanged">
<f:ListItem Text="-请选择-" Selected="true"></f:ListItem>
<f:ListItem Text="一般违章" Value="一般违章" />
<f:ListItem Text="严重违章" Value="严重违章" />
<f:ListItem Text="红线违章" Value="红线违章" />
</f:DropDownList>
<f:TextBox runat="server" Label="编号" ID="txtViolationPersonCode" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelAlign="right">
</f:TextBox>
@@ -80,7 +87,10 @@
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="违章日期"
HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ViolationLevel" DataField="ViolationLevel"
FieldType="String" HeaderText="违章级别" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="tfViolationType" HeaderText="违章类型" Width="100px" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:Label ID="lblViolationType" runat="server" Text='<%#ConvertViolationType(Eval("ViolationType")) %>'
@@ -103,6 +103,7 @@ namespace FineUIPro.Web.Check
+ @"ViolationPerson.HandleStep,"
+ @"Unit.UnitName,"
+ @"Person.CardNo,"
+ @"ViolationPerson.ViolationLevel,"
+ @"Person.PersonName,"
+ @"WorkPost.WorkPostName,"
+ @"(CASE WHEN ViolationPerson.States = " + BLL.Const.State_0 + " OR ViolationPerson.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN ViolationPerson.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
@@ -143,6 +144,12 @@ namespace FineUIPro.Web.Check
strSql += " AND PersonName LIKE @PersonName";
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%"));
}
string level = this.drpLevel.SelectedValue.Trim();
if (!string.IsNullOrWhiteSpace(level))
{
strSql += " AND ViolationPerson.ViolationLevel = @level";
listStr.Add(new SqlParameter("@level", level));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
// <auto-generated>
// This code was generated by a tool.
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Check
@@ -15,218 +15,227 @@ namespace FineUIPro.Web.Check
{
/// <summary>
/// form1 控件。
/// form1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// PageManager1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// Panel1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion 控件。
/// panelLeftRegion control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// ContentPanel1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// ucTree control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// panelCenterRegion control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Grid1 控件。
/// Grid1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// Toolbar2 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtViolationPersonCode 控件。
/// drpLevel control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpLevel;
/// <summary>
/// txtViolationPersonCode control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationPersonCode;
/// <summary>
/// txtPersonName 控件。
/// txtPersonName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtPersonName;
/// <summary>
/// ToolbarFill1 控件。
/// ToolbarFill1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnNew 控件。
/// btnNew control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnOut 控件。
/// btnOut control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblNumber 控件。
/// lblNumber control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// lblViolationType 控件。
/// lblViolationType control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblViolationType;
/// <summary>
/// lblHandleStep 控件。
/// lblHandleStep control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblHandleStep;
/// <summary>
/// ToolbarSeparator1 控件。
/// ToolbarSeparator1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// ToolbarText1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// ddlPageSize control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// Window1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Menu1 控件。
/// Menu1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// btnMenuEdit control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// btnMenuDelete control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
}
@@ -17,47 +17,47 @@
<f:FormRow>
<Items>
<f:TextBox ID="txtViolationPersonCode" runat="server" Label="编号" LabelAlign="Right"
MaxLength="50">
MaxLength="50">
</f:TextBox>
<f:DropDownBox runat="server" ID="drpPersonId" Label="人员姓名" EmptyText="请从下拉表格中选择"
MatchFieldWidth="false" LabelAlign="Right" AutoPostBack="true" OnTextChanged="drpPersonId_TextChanged"
EnableMultiSelect="false" Required="true" ShowRedStar="true" LabelWidth="120px">
MatchFieldWidth="false" LabelAlign="Right" AutoPostBack="true" OnTextChanged="drpPersonId_TextChanged"
EnableMultiSelect="false" Required="true" ShowRedStar="true">
<PopPanel>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" DataIDField="PersonId"
DataTextField="PersonName" DataKeyNames="PersonId" AllowSorting="true" SortField="UnitName,CardNo"
SortDirection="ASC" EnableColumnLines="true" Hidden="true" Width="800px" OnSort="Grid1_Sort"
Height="350px" EnableMultiSelect="false" PageSize="10000">
DataTextField="PersonName" DataKeyNames="PersonId" AllowSorting="true" SortField="UnitName,CardNo"
SortDirection="ASC" EnableColumnLines="true" Hidden="true" Width="800px" OnSort="Grid1_Sort"
Height="350px" EnableMultiSelect="false" PageSize="10000">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:TextBox runat="server" Label="单位" ID="txtSelectUnitName" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
</f:TextBox>
<f:TextBox runat="server" Label="卡号" ID="txtCardNo" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
</f:TextBox>
<f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
OnTextChanged="TextBox_TextChanged" Width="210px" LabelWidth="60px" LabelAlign="Right">
</f:TextBox>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="所在单位" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
TextAlign="Center"/>
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="所在单位" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="CardNo" DataField="CardNo" SortField="CardNo"
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left"
ExpandUnusedSpace="true">
FieldType="String" HeaderText="卡号" HeaderTextAlign="Center" TextAlign="Left"
ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" EnableFilter="true"
SortField="PersonName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
TextAlign="Left">
SortField="PersonName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="WorkPostName" DataField="WorkPostName" SortField="WorkPostName"
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
FieldType="String" HeaderText="岗位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
</Columns>
</f:Grid>
@@ -69,8 +69,7 @@
<Items>
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true"
LabelWidth="120px">
<f:TextBox ID="txtWorkPostName" runat="server" Label="岗位" LabelAlign="Right" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
@@ -84,29 +83,53 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtViolationDate" runat="server" Label="违规日期">
</f:DatePicker>
<f:DropDownList ID="drpViolationName" runat="server" Label="违章名称" EnableEdit="true"
LabelWidth="120px" AutoPostBack="true" OnSelectedIndexChanged="drpViolationName_SelectedIndexChanged">
AutoPostBack="true" OnSelectedIndexChanged="drpViolationName_SelectedIndexChanged">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpViolationType" runat="server" Label="违章类型" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpHandleStep" runat="server" Label="处理措施" EnableEdit="true"
ShowRedStar="true" Required="true" LabelWidth="120px">
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList runat="server" EnableSimulateTree="True" Label="违章级别" ID="drpViolationLevel" AutoSelectFirstItem="true">
<f:ListItem Text="一般违章" Value="一般违章"/>
<f:ListItem Text="严重违章" Value="严重违章"/>
<f:ListItem Text="红线违章" Value="红线违章"/>
</f:DropDownList>
<f:DropDownList runat="server" EnableSimulateTree="True" Label="整改状态" ID="drpRectificationStatus">
<f:ListItem Text="未整改" Value="未整改"/>
<f:ListItem Text="整改中" Value="整改中"/>
<f:ListItem Text="已整改" Value="已整改" Selected="true"/>
<f:ListItem Text="已验收" Value="已验收"/>
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtViolationDef" runat="server" Height="60px" Label="违章描述">
<f:DropDownList ID="drpHandleStep" runat="server" Label="处理措施" EnableEdit="true"
ShowRedStar="true" Required="true">
</f:DropDownList>
<f:DatePicker ID="txtViolationDate" runat="server" Label="违章日期">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtViolationDef" runat="server" Height="80px" Label="违章描述" EmptyText="违章行为详细描述">
</f:TextArea>
</Items>
</f:FormRow>
<%-- <f:FormRow> --%>
<%-- <Items> --%>
<%-- <f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" --%>
<%-- BodyPadding="0px"> --%>
<%-- <uc1:FlowOperateControl ID="ctlAuditFlow" runat="server" /> --%>
<%-- </f:ContentPanel> --%>
<%-- </Items> --%>
<%-- </f:FormRow> --%>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
@@ -123,6 +123,9 @@ namespace FineUIPro.Web.Check
this.drpHandleStep.SelectedValue = violationPerson.HandleStep;
}
this.txtViolationDef.Text = violationPerson.ViolationDef;
this.drpRectificationStatus.SelectedValue = violationPerson.RectificationStatus;
this.drpViolationLevel.SelectedValue = violationPerson.ViolationLevel;
}
}
else
@@ -292,6 +295,9 @@ namespace FineUIPro.Web.Check
violationPerson.CompileMan = this.CurrUser.UserId;
violationPerson.CompileDate = DateTime.Now;
violationPerson.States = BLL.Const.State_2;
violationPerson.RectificationStatus = this.drpRectificationStatus.SelectedValue.Trim();
violationPerson.ViolationLevel = this.drpViolationLevel.SelectedValue.Trim();
if (!string.IsNullOrEmpty(this.ViolationPersonId))
{
violationPerson.ViolationPersonId = this.ViolationPersonId;
@@ -314,7 +320,13 @@ namespace FineUIPro.Web.Check
SitePersonPerson.OutResult = drpHandleStep.SelectedText;
Funs.DB.SubmitChanges();
}
//更新三库违章作业
string message = string.Empty;
SanKuDataSummaryReportService.UpdateViolationRecord(this.ViolationPersonId, ref message);
if (!string.IsNullOrWhiteSpace(message))
{
ShowNotify(message, MessageBoxIcon.Warning);
}
}
#endregion
@@ -1,221 +1,241 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
// <auto-generated>
// This code was generated by a tool.
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Check {
public partial class ViolationPersonEdit {
namespace FineUIPro.Web.Check
{
public partial class ViolationPersonEdit
{
/// <summary>
/// form1 控件。
/// form1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// PageManager1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// SimpleForm1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtViolationPersonCode 控件。
/// txtViolationPersonCode control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationPersonCode;
/// <summary>
/// drpPersonId 控件。
/// drpPersonId control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownBox drpPersonId;
/// <summary>
/// Grid1 控件。
/// Grid1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// Toolbar2 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtSelectUnitName 控件。
/// txtSelectUnitName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtSelectUnitName;
/// <summary>
/// txtCardNo 控件。
/// txtCardNo control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtCardNo;
/// <summary>
/// txtPersonName 控件。
/// txtPersonName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtPersonName;
/// <summary>
/// txtUnitName 控件。
/// txtUnitName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtUnitName;
/// <summary>
/// txtWorkPostName 控件。
/// txtWorkPostName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPostName;
/// <summary>
/// hdUnitId 控件。
/// hdUnitId control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.HiddenField hdUnitId;
/// <summary>
/// hdWorkPostId 控件。
/// hdWorkPostId control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.HiddenField hdWorkPostId;
/// <summary>
/// txtViolationDate 控件。
/// drpViolationName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtViolationDate;
/// <summary>
/// drpViolationName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpViolationName;
/// <summary>
/// drpViolationType 控件。
/// drpViolationType control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpViolationType;
/// <summary>
/// drpHandleStep 控件。
/// drpViolationLevel control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpViolationLevel;
/// <summary>
/// drpRectificationStatus control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpRectificationStatus;
/// <summary>
/// drpHandleStep control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DropDownList drpHandleStep;
/// <summary>
/// txtViolationDef 控件。
/// txtViolationDate control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.DatePicker txtViolationDate;
/// <summary>
/// txtViolationDef control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextArea txtViolationDef;
/// <summary>
/// Toolbar1 控件。
/// Toolbar1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// ToolbarFill1 控件。
/// ToolbarFill1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// btnSave control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// btnClose control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Button btnClose;
}
@@ -24,6 +24,14 @@
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRectificationStatus" runat="server" Label="违章级别" LabelAlign="Right" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtViolationLevel" runat="server" Label="整改状态" LabelAlign="Right" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" LabelAlign="Right" Readonly="true">
@@ -102,6 +102,9 @@ namespace FineUIPro.Web.Check
}
}
this.txtViolationDef.Text = violationPerson.ViolationDef;
this.txtViolationLevel.Text = violationPerson.ViolationLevel;
this.txtRectificationStatus.Text = violationPerson.RectificationStatus;
}
}
}
@@ -1,149 +1,169 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
// <auto-generated>
// This code was generated by a tool.
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.Check {
public partial class ViolationPersonView {
namespace FineUIPro.Web.Check
{
public partial class ViolationPersonView
{
/// <summary>
/// form1 控件。
/// form1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// PageManager1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// SimpleForm1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtViolationPersonCode 控件。
/// txtViolationPersonCode control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationPersonCode;
/// <summary>
/// txtPersonName 控件。
/// txtPersonName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtPersonName;
/// <summary>
/// txtUnitName 控件。
/// txtRectificationStatus control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtRectificationStatus;
/// <summary>
/// txtViolationLevel control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationLevel;
/// <summary>
/// txtUnitName control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtUnitName;
/// <summary>
/// txtWorkPostName 控件。
/// txtWorkPostName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtWorkPostName;
/// <summary>
/// txtViolationDate 控件。
/// txtViolationDate control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationDate;
/// <summary>
/// txtViolationName 控件。
/// txtViolationName control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationName;
/// <summary>
/// txtViolationType 控件。
/// txtViolationType control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtViolationType;
/// <summary>
/// txtHandleStep 控件。
/// txtHandleStep control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextBox txtHandleStep;
/// <summary>
/// txtViolationDef 控件。
/// txtViolationDef control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.TextArea txtViolationDef;
/// <summary>
/// Toolbar1 控件。
/// Toolbar1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// ToolbarFill1 控件。
/// ToolbarFill1 control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnClose 控件。
/// btnClose control.
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::FineUIPro.Button btnClose;
}