增加数据穿透界面
This commit is contained in:
@@ -17,12 +17,10 @@
|
||||
<Items>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="检查项" ID="drpRegisterTypes" >
|
||||
</f:DropDownList>
|
||||
<f:RadioButtonList ID="ckType" runat="server" Label="巡检周期"
|
||||
Width="330px" Hidden="true">
|
||||
<f:RadioItem Value="D" Selected="True" Text="日检" />
|
||||
<f:RadioItem Value="W" Text="周检" />
|
||||
<f:RadioItem Value="M" Text="月检" />
|
||||
</f:RadioButtonList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" Label="级别" ID="dpRiskLevel" >
|
||||
<f:ListItem Text="一般" Value="一般"/>
|
||||
<f:ListItem Text="重大" Value="重大"/>
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
@@ -81,6 +79,12 @@
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:RadioButtonList ID="ckType" runat="server" Label="巡检周期"
|
||||
Width="330px" Hidden="true">
|
||||
<f:RadioItem Value="D" Selected="True" Text="日检" />
|
||||
<f:RadioItem Value="W" Text="周检" />
|
||||
<f:RadioItem Value="M" Text="月检" />
|
||||
</f:RadioButtonList>
|
||||
<f:HiddenField ID="hdCheckManId" runat="server"></f:HiddenField>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
|
||||
@@ -112,6 +112,10 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
{
|
||||
this.ckType.SelectedValue = registration.CheckCycle;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(registration.Risk_Level))
|
||||
{
|
||||
this.dpRiskLevel.SelectedValue = registration.Risk_Level;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(registration.ResponsibleMan))
|
||||
{
|
||||
this.drpResponsibleMan.SelectedValue = registration.ResponsibleMan;
|
||||
@@ -214,6 +218,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
register.ProblemTypes = "1"; //安全隐患问题
|
||||
register.RegisterTypesId = this.drpRegisterTypes.SelectedValue;
|
||||
register.CheckCycle = this.ckType.SelectedValue;
|
||||
register.Risk_Level = this.dpRiskLevel.SelectedText;
|
||||
register.IsEffective = "1";
|
||||
if (this.drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
+11
-2
@@ -49,13 +49,13 @@ namespace FineUIPro.Web.HSSE.HiddenInspection {
|
||||
protected global::FineUIPro.DropDownList drpRegisterTypes;
|
||||
|
||||
/// <summary>
|
||||
/// ckType 控件。
|
||||
/// dpRiskLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList ckType;
|
||||
protected global::FineUIPro.DropDownList dpRiskLevel;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
@@ -174,6 +174,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// ckType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList ckType;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckManId 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -60,6 +60,11 @@
|
||||
<f:DropDownList ID="drpStates" runat="server" Label="状态" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
LabelWidth="70px" LabelAlign="Right" Width="170px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList runat="server" EnableSimulateTree="True" LabelAlign="Right" Label="级别" ID="dpRiskLevel" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
<f:ListItem Text="-请选择-" Value=""/>
|
||||
<f:ListItem Text="一般" Value="一般"/>
|
||||
<f:ListItem Text="重大" Value="重大"/>
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:HiddenField runat="server" ID="hdRemark">
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
this.drpStates.DataValueField = "Id";
|
||||
this.drpStates.DataTextField = "Name";
|
||||
this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList(); ;
|
||||
this.drpStates.DataSource = BLL.HSSE_Hazard_HazardRegisterService.GetStatesList();
|
||||
this.drpStates.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpStates);
|
||||
// 绑定表格
|
||||
@@ -79,6 +79,11 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
strSql += " AND WorkAreaName LIKE @WorkAreaName";
|
||||
listStr.Add(new SqlParameter("@WorkAreaName", "%" + this.txtWorkAreaName.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.dpRiskLevel.SelectedValue.Trim()))
|
||||
{
|
||||
strSql += " AND Risk_Level = @Risk_Level";
|
||||
listStr.Add(new SqlParameter("@Risk_Level", this.dpRiskLevel.SelectedText));
|
||||
}
|
||||
//if (this.ckType.SelectedValue != "0")
|
||||
//{
|
||||
// strSql += " AND CheckCycle=@CheckCycle";
|
||||
|
||||
+9
@@ -165,6 +165,15 @@ namespace FineUIPro.Web.HSSE.HiddenInspection {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpStates;
|
||||
|
||||
/// <summary>
|
||||
/// dpRiskLevel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList dpRiskLevel;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user