移动端检查修改

This commit is contained in:
geh
2025-09-16 10:56:03 +08:00
parent 19ea2f2363
commit bf9f9c44b5
10 changed files with 109 additions and 55 deletions
@@ -78,6 +78,11 @@
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="250px"
LabelWidth="80px">
</f:TextBox>
<f:DropDownList ID="drpProblemTypes" runat="server" Label="问题类别" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"
LabelWidth="80px" LabelAlign="Right" Width="170px">
<f:ListItem Text="安全" Value="1" Selected="True"/>
<f:ListItem Text="质量" Value="0"/>
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
@@ -160,12 +165,12 @@
</f:RenderField>
<f:TemplateField ColumnID="ProblemTypes" Width="120px" HeaderText="检查类型" HeaderTextAlign="Center"
TextAlign="Left">
<ItemTemplate>
<asp:Label ID="lbProblemTypes" runat="server" Text='<%# ConvertProblemTypes(Eval("ProblemTypes")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<%-- <f:TemplateField ColumnID="ProblemTypes" Width="120px" HeaderText="检查类型" HeaderTextAlign="Center" --%>
<%-- TextAlign="Left"> --%>
<%-- <ItemTemplate> --%>
<%-- <asp:Label ID="lbProblemTypes" runat="server" Text='<%# ConvertProblemTypes(Eval("ProblemTypes")) %>'></asp:Label> --%>
<%-- </ItemTemplate> --%>
<%-- </f:TemplateField> --%>
<%-- <f:TemplateField ColumnID="CheckCycle" Width="120px" HeaderText="检查周期" HeaderTextAlign="Center" Hidden="true"
TextAlign="Left">
<ItemTemplate>
@@ -114,8 +114,13 @@ namespace FineUIPro.Web.Customization.ZJ.HSSE.HiddenInspection
{
if (!string.IsNullOrEmpty(this.ProjectId) || !string.IsNullOrEmpty(this.UnintId))
{
string strSql = "SELECT * FROM View_Hazard_HazardRegister_Unit WHERE ProblemTypes ='1' ";
string strSql = "SELECT * FROM View_Hazard_HazardRegister_Unit WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (this.drpProblemTypes.SelectedValue != BLL.Const._Null)
{
strSql += " AND ProblemTypes = @ProblemTypes";
listStr.Add(new SqlParameter("@ProblemTypes", this.drpProblemTypes.SelectedValue));
}
if (!string.IsNullOrEmpty(ProjectId))
{
strSql += " AND ProjectId = @ProjectId";
@@ -131,6 +131,15 @@ namespace FineUIPro.Web.Customization.ZJ.HSSE.HiddenInspection
/// </remarks>
protected global::FineUIPro.TextBox txtResponsibilityUnitName;
/// <summary>
/// drpProblemTypes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProblemTypes;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -275,15 +284,6 @@ namespace FineUIPro.Web.Customization.ZJ.HSSE.HiddenInspection
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// lbProblemTypes 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lbProblemTypes;
/// <summary>
/// lbImageUrl1 控件。
/// </summary>
@@ -34,6 +34,19 @@ namespace FineUIPro.Web.HSSE.Check
{
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
// this.Grid1.Columns[0].Hidden = true;
}
BindGrid();
}
}
+5
View File
@@ -526,6 +526,11 @@
EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" ID="btnDigitalSite">
</f:Button>
</div>
<div :class="['nav', 'nav-r', navIdx==7?'nav-r-active':'']" @click="onSwitchMenu(7)">
<f:Button runat="server" CssClass="bgbtn" Text="数据管理" ID="btnServer" OnClick="btnServer_Click"
EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" OnClientClick="parent.removeActiveTab();">
</f:Button>
</div>
</div>
<div class="timer">
+8 -1
View File
@@ -673,6 +673,10 @@ namespace FineUIPro.Web
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_SJTB_P)
{
this.Tab1.IFrameUrl = "";
}
}
else
{
@@ -725,7 +729,10 @@ namespace FineUIPro.Web
{
this.MenuSwitchMethod(Const.Menu_Device_P);
}
protected void btnServer_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_SJTB_P);
}
protected void btnHSSE_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_HSSE_P);
+9
View File
@@ -122,6 +122,15 @@ namespace FineUIPro.Web
/// </remarks>
protected global::FineUIPro.Button btnDigitalSite;
/// <summary>
/// btnServer 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnServer;
/// <summary>
/// drpProject 控件。
/// </summary>