diff --git a/DataBase/版本日志/SGGLDB_V2026-09-12-lpf( 新增防腐等级定义菜单).sql b/DataBase/版本日志/SGGLDB_V2026-09-12-lpf( 新增防腐等级定义菜单).sql
new file mode 100644
index 00000000..a5b704e4
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2026-09-12-lpf( 新增防腐等级定义菜单).sql
@@ -0,0 +1,102 @@
+SET XACT_ABORT ON;
+BEGIN TRANSACTION;
+
+DECLARE @MenuId NVARCHAR(50) = N'44F69908-89DF-4B96-86F8-6ACC0019FBE7';
+DECLARE @MaterialMenuId NVARCHAR(50) = N'8IDKGJE2-09B1-4607-BC6D-865CE48F0013';
+DECLARE @SuperMenu NVARCHAR(50);
+DECLARE @MenuType NVARCHAR(50);
+DECLARE @SortIndex INT;
+DECLARE @IsOffice BIT;
+
+SELECT
+ @SuperMenu = SuperMenu,
+ @MenuType = MenuType,
+ @SortIndex = SortIndex,
+ @IsOffice = IsOffice
+FROM dbo.Sys_Menu
+WHERE MenuId = @MaterialMenuId;
+
+IF @SuperMenu IS NULL
+BEGIN
+ RAISERROR(N'未找到“管道材质定义”菜单,无法确定防腐等级定义菜单位置。', 16, 1);
+ ROLLBACK TRANSACTION;
+ RETURN;
+END;
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_Menu WHERE MenuId = @MenuId)
+BEGIN
+ UPDATE dbo.Sys_Menu
+ SET SortIndex = ISNULL(SortIndex, 0) + 1
+ WHERE SuperMenu = @SuperMenu
+ AND ISNULL(SortIndex, 0) >= ISNULL(@SortIndex, 0);
+
+ INSERT INTO dbo.Sys_Menu
+ (MenuId, MenuName, Icon, Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
+ VALUES
+ (@MenuId, N'防腐等级定义', NULL, N'HJGL/BaseInfo/PaintCodeDict.aspx',
+ @SortIndex, @SuperMenu, @MenuType, @IsOffice, 1, 1);
+END
+ELSE
+BEGIN
+ UPDATE dbo.Sys_Menu
+ SET MenuName = N'防腐等级定义',
+ Url = N'HJGL/BaseInfo/PaintCodeDict.aspx',
+ SuperMenu = @SuperMenu,
+ MenuType = @MenuType,
+ IsEnd = 1,
+ IsUsed = 1
+ WHERE MenuId = @MenuId;
+END;
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_ButtonToMenu WHERE MenuId = @MenuId AND ButtonName = N'增加')
+ INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex)
+ VALUES (N'D9437722-E216-408D-84DB-BBCBBF2763DF', @MenuId, N'增加', 1);
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_ButtonToMenu WHERE MenuId = @MenuId AND ButtonName = N'修改')
+ INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex)
+ VALUES (N'0752CB84-0E82-4B3D-B7C4-8A563C65F340', @MenuId, N'修改', 2);
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_ButtonToMenu WHERE MenuId = @MenuId AND ButtonName = N'删除')
+ INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex)
+ VALUES (N'3D4C0A40-C1F5-4431-A464-EA92CCA7C4D7', @MenuId, N'删除', 3);
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_ButtonToMenu WHERE MenuId = @MenuId AND ButtonName = N'保存')
+ INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex)
+ VALUES (N'CFA71E37-08DE-4F49-8740-0F13B341331D', @MenuId, N'保存', 4);
+
+IF NOT EXISTS (SELECT 1 FROM dbo.Sys_ButtonToMenu WHERE MenuId = @MenuId AND ButtonName = N'查看')
+ INSERT INTO dbo.Sys_ButtonToMenu (ButtonToMenuId, MenuId, ButtonName, SortIndex)
+ VALUES (N'8EA926AF-CDF1-4F63-AF94-B91B3569D266', @MenuId, N'查看', 5);
+
+INSERT INTO dbo.Sys_RolePower (RolePowerId, RoleId, MenuId, MenuType, IsOffice)
+SELECT CONVERT(NVARCHAR(50), NEWID()), source.RoleId, @MenuId, @MenuType, source.IsOffice
+FROM dbo.Sys_RolePower source
+WHERE source.MenuId = @MaterialMenuId
+ AND NOT EXISTS
+ (
+ SELECT 1
+ FROM dbo.Sys_RolePower target
+ WHERE target.RoleId = source.RoleId
+ AND target.MenuId = @MenuId
+ );
+
+INSERT INTO dbo.Sys_ButtonPower (ButtonPowerID, RoleId, MenuId, ButtonToMenuId)
+SELECT CONVERT(NVARCHAR(50), NEWID()), sourcePower.RoleId, @MenuId, targetButton.ButtonToMenuId
+FROM dbo.Sys_ButtonPower sourcePower
+INNER JOIN dbo.Sys_ButtonToMenu sourceButton
+ ON sourceButton.ButtonToMenuId = sourcePower.ButtonToMenuId
+ AND sourceButton.MenuId = @MaterialMenuId
+INNER JOIN dbo.Sys_ButtonToMenu targetButton
+ ON targetButton.MenuId = @MenuId
+ AND targetButton.ButtonName = sourceButton.ButtonName
+WHERE sourcePower.MenuId = @MaterialMenuId
+ AND NOT EXISTS
+ (
+ SELECT 1
+ FROM dbo.Sys_ButtonPower targetPower
+ WHERE targetPower.RoleId = sourcePower.RoleId
+ AND targetPower.MenuId = @MenuId
+ AND targetPower.ButtonToMenuId = targetButton.ButtonToMenuId
+ );
+
+COMMIT TRANSACTION;
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index d1747f31..2f2a424d 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -407,6 +407,7 @@
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 00e9501a..a4768d31 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -2844,6 +2844,11 @@ namespace BLL
///
public const string HJGL_MaterialMenuId = "8IDKGJE2-09B1-4607-BC6D-865CE48F0013";
+ ///
+ /// 防腐等级定义
+ ///
+ public const string HJGL_PaintCodeDictMenuId = "44F69908-89DF-4B96-86F8-6ACC0019FBE7";
+
///
/// 介质定义
///
diff --git a/SGGL/BLL/HJGL/BaseInfo/PaintCodeDictService.cs b/SGGL/BLL/HJGL/BaseInfo/PaintCodeDictService.cs
new file mode 100644
index 00000000..3dac0dc8
--- /dev/null
+++ b/SGGL/BLL/HJGL/BaseInfo/PaintCodeDictService.cs
@@ -0,0 +1,76 @@
+using Model;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ public static class PaintCodeDictService
+ {
+ public static List GetList(string paintCode)
+ {
+ var query = Funs.DB.Tw_PaintCodeDict.AsQueryable();
+ if (!string.IsNullOrEmpty(paintCode))
+ {
+ query = query.Where(x => x.PaintCode.Contains(paintCode));
+ }
+
+ return query.OrderBy(x => x.SortIndex).ThenBy(x => x.PaintCode).ToList();
+ }
+
+ public static Tw_PaintCodeDict GetById(string id)
+ {
+ return Funs.DB.Tw_PaintCodeDict.FirstOrDefault(x => x.Id == id);
+ }
+
+ public static bool PaintCodeExists(string paintCode, string excludeId)
+ {
+ if (string.IsNullOrEmpty(excludeId))
+ {
+ return Funs.DB.Tw_PaintCodeDict.Any(x => x.PaintCode == paintCode);
+ }
+
+ return Funs.DB.Tw_PaintCodeDict.Any(x => x.PaintCode == paintCode && x.Id != excludeId);
+ }
+
+ public static void Add(Tw_PaintCodeDict paintCodeDict)
+ {
+ Funs.DB.Tw_PaintCodeDict.InsertOnSubmit(paintCodeDict);
+ Funs.DB.SubmitChanges();
+ }
+
+ public static void Update(Tw_PaintCodeDict paintCodeDict)
+ {
+ var model = Funs.DB.Tw_PaintCodeDict.First(x => x.Id == paintCodeDict.Id);
+ model.PaintCode = paintCodeDict.PaintCode;
+ model.Primer = paintCodeDict.Primer;
+ model.IntermediatePaint = paintCodeDict.IntermediatePaint;
+ model.Topcoat = paintCodeDict.Topcoat;
+ model.ColorCode = paintCodeDict.ColorCode;
+ model.SortIndex = paintCodeDict.SortIndex;
+ model.IsUsed = paintCodeDict.IsUsed;
+ Funs.DB.SubmitChanges();
+ }
+
+ public static string GetDeleteRestriction(string id)
+ {
+ if (Funs.DB.HJGL_Pipeline.Any(x => x.PaintId == id))
+ {
+ return "已在【管线信息】中使用,不能删除!";
+ }
+
+ if (Funs.DB.HJGL_AntiCorrosionCheckRecord.Any(x => x.PaintId == id))
+ {
+ return "已在【防腐检查记录】中使用,不能删除!";
+ }
+
+ return string.Empty;
+ }
+
+ public static void Delete(string id)
+ {
+ var model = Funs.DB.Tw_PaintCodeDict.First(x => x.Id == id);
+ Funs.DB.Tw_PaintCodeDict.DeleteOnSubmit(model);
+ Funs.DB.SubmitChanges();
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index e10ba9b4..00bb4242 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1541,6 +1541,9 @@
+
+
+
@@ -10338,6 +10341,27 @@
MaterialView.aspx
+
+ PaintCodeDict.aspx
+ ASPXCodeBehind
+
+
+ PaintCodeDict.aspx
+
+
+ PaintCodeDictEdit.aspx
+ ASPXCodeBehind
+
+
+ PaintCodeDictEdit.aspx
+
+
+ PaintCodeDictView.aspx
+ ASPXCodeBehind
+
+
+ PaintCodeDictView.aspx
+
Medium.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx
new file mode 100644
index 00000000..1b243e7f
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx
@@ -0,0 +1,78 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaintCodeDict.aspx.cs" Inherits="FineUIPro.Web.HJGL.BaseInfo.PaintCodeDict" %>
+
+
+
+
+ 防腐等级定义
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.cs
new file mode 100644
index 00000000..42be38bf
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.cs
@@ -0,0 +1,170 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDict : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BindGrid();
+ }
+ }
+
+ private void BindGrid()
+ {
+ var list = PaintCodeDictService.GetList(txtPaintCode.Text.Trim());
+ Grid1.RecordCount = list.Count;
+ Grid1.DataSource = GetPagedDataTable(Grid1, list);
+ Grid1.DataBind();
+ }
+
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ Grid1.PageIndex = e.NewPageIndex;
+ BindGrid();
+ }
+
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ Grid1.SortField = e.SortField;
+ Grid1.SortDirection = e.SortDirection;
+ BindGrid();
+ }
+
+ protected void btnQuery_Click(object sender, EventArgs e)
+ {
+ Grid1.PageIndex = 0;
+ BindGrid();
+ }
+
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ if (!GetButtonPower(Const.BtnAdd))
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ PageContext.RegisterStartupScript(Window1.GetShowReference("PaintCodeDictEdit.aspx"));
+ }
+
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ EditData();
+ }
+
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
+ return;
+ }
+
+ if (GetButtonPower(Const.BtnModify))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(
+ string.Format("PaintCodeDictEdit.aspx?Id={0}", Grid1.SelectedRowID)));
+ }
+ else if (GetButtonPower(Const.BtnSee))
+ {
+ ShowView();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (!GetButtonPower(Const.BtnDelete))
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
+ return;
+ }
+
+ string warning = string.Empty;
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string id = Grid1.DataKeys[rowIndex][0].ToString();
+ var model = PaintCodeDictService.GetById(id);
+ string restriction = PaintCodeDictService.GetDeleteRestriction(id);
+ if (string.IsNullOrEmpty(restriction))
+ {
+ PaintCodeDictService.Delete(id);
+ }
+ else
+ {
+ warning += "防腐等级:" + model.PaintCode + restriction;
+ }
+ }
+
+ BindGrid();
+ if (string.IsNullOrEmpty(warning))
+ {
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ Alert.ShowInTop(warning, MessageBoxIcon.Warning);
+ }
+ }
+
+ protected void btnView_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
+ return;
+ }
+
+ if (!GetButtonPower(Const.BtnSee))
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ ShowView();
+ }
+
+ private void ShowView()
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(
+ string.Format("PaintCodeDictView.aspx?Id={0}", Grid1.SelectedRowID)));
+ }
+
+ protected void Window1_Close(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ private bool GetButtonPower(string button)
+ {
+ return CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, CurrUser.PersonId,
+ Const.HJGL_PaintCodeDictMenuId, button);
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.designer.cs
new file mode 100644
index 00000000..7fe582e2
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDict.aspx.designer.cs
@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+//
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDict
+ {
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ protected global::FineUIPro.PageManager PageManager1;
+ protected global::FineUIPro.Panel Panel1;
+ protected global::FineUIPro.Grid Grid1;
+ protected global::FineUIPro.Toolbar Toolbar1;
+ protected global::FineUIPro.TextBox txtPaintCode;
+ protected global::FineUIPro.Button btnQuery;
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+ protected global::FineUIPro.Button btnNew;
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ protected global::FineUIPro.Window Window1;
+ protected global::FineUIPro.Menu Menu1;
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ protected global::FineUIPro.MenuButton btnView;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx
new file mode 100644
index 00000000..bdd6676a
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx
@@ -0,0 +1,58 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaintCodeDictEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.BaseInfo.PaintCodeDictEdit" %>
+
+
+
+
+ 编辑防腐等级
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.cs
new file mode 100644
index 00000000..261fe1b7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.cs
@@ -0,0 +1,74 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDictEdit : PageBase
+ {
+ private string PaintCodeDictId
+ {
+ get { return (string)ViewState["PaintCodeDictId"]; }
+ set { ViewState["PaintCodeDictId"] = value; }
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ PaintCodeDictId = Request.Params["Id"];
+ if (!string.IsNullOrEmpty(PaintCodeDictId))
+ {
+ BindForm();
+ }
+ }
+ }
+
+ private void BindForm()
+ {
+ var model = PaintCodeDictService.GetById(PaintCodeDictId);
+ txtPaintCode.Text = model.PaintCode;
+ txtPrimer.Text = model.Primer;
+ txtIntermediatePaint.Text = model.IntermediatePaint;
+ txtTopcoat.Text = model.Topcoat;
+ txtColorCode.Text = model.ColorCode;
+ txtSortIndex.Text = model.SortIndex.HasValue ? model.SortIndex.Value.ToString() : string.Empty;
+ chkIsUsed.Checked = model.IsUsed;
+ }
+
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ string paintCode = txtPaintCode.Text.Trim();
+ if (PaintCodeDictService.PaintCodeExists(paintCode, PaintCodeDictId))
+ {
+ Alert.ShowInTop("此防腐等级已存在", MessageBoxIcon.Warning);
+ return;
+ }
+
+ var model = new Model.Tw_PaintCodeDict
+ {
+ Id = PaintCodeDictId,
+ PaintCode = paintCode,
+ Primer = txtPrimer.Text.Trim(),
+ IntermediatePaint = txtIntermediatePaint.Text.Trim(),
+ Topcoat = txtTopcoat.Text.Trim(),
+ ColorCode = txtColorCode.Text.Trim(),
+ SortIndex = string.IsNullOrEmpty(txtSortIndex.Text) ? (int?)null : Convert.ToInt32(txtSortIndex.Text),
+ IsUsed = chkIsUsed.Checked
+ };
+
+ if (string.IsNullOrEmpty(PaintCodeDictId))
+ {
+ model.Id = SQLHelper.GetNewID();
+ PaintCodeDictService.Add(model);
+ }
+ else
+ {
+ PaintCodeDictService.Update(model);
+ }
+
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.designer.cs
new file mode 100644
index 00000000..bb456514
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictEdit.aspx.designer.cs
@@ -0,0 +1,25 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+//
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDictEdit
+ {
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ protected global::FineUIPro.PageManager PageManager1;
+ protected global::FineUIPro.Form SimpleForm1;
+ protected global::FineUIPro.TextBox txtPaintCode;
+ protected global::FineUIPro.TextBox txtColorCode;
+ protected global::FineUIPro.TextArea txtPrimer;
+ protected global::FineUIPro.TextArea txtIntermediatePaint;
+ protected global::FineUIPro.TextArea txtTopcoat;
+ protected global::FineUIPro.NumberBox txtSortIndex;
+ protected global::FineUIPro.CheckBox chkIsUsed;
+ protected global::FineUIPro.Toolbar Toolbar1;
+ protected global::FineUIPro.Button btnSave;
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx
new file mode 100644
index 00000000..28e80139
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx
@@ -0,0 +1,42 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PaintCodeDictView.aspx.cs" Inherits="FineUIPro.Web.HJGL.BaseInfo.PaintCodeDictView" %>
+
+
+
+
+ 查看防腐等级
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.cs
new file mode 100644
index 00000000..352374b7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.cs
@@ -0,0 +1,24 @@
+using BLL;
+using System;
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDictView : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ var model = PaintCodeDictService.GetById(Request.Params["Id"]);
+ txtPaintCode.Text = model.PaintCode;
+ txtPrimer.Text = model.Primer;
+ txtIntermediatePaint.Text = model.IntermediatePaint;
+ txtTopcoat.Text = model.Topcoat;
+ txtColorCode.Text = model.ColorCode;
+ txtSortIndex.Text = model.SortIndex.HasValue ? model.SortIndex.Value.ToString() : string.Empty;
+ chkIsUsed.Checked = model.IsUsed;
+ }
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.designer.cs
new file mode 100644
index 00000000..d4fd6af3
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HJGL/BaseInfo/PaintCodeDictView.aspx.designer.cs
@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+//
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.BaseInfo
+{
+ public partial class PaintCodeDictView
+ {
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+ protected global::FineUIPro.PageManager PageManager1;
+ protected global::FineUIPro.Form SimpleForm1;
+ protected global::FineUIPro.TextBox txtPaintCode;
+ protected global::FineUIPro.TextBox txtColorCode;
+ protected global::FineUIPro.TextArea txtPrimer;
+ protected global::FineUIPro.TextArea txtIntermediatePaint;
+ protected global::FineUIPro.TextArea txtTopcoat;
+ protected global::FineUIPro.TextBox txtSortIndex;
+ protected global::FineUIPro.CheckBox chkIsUsed;
+ protected global::FineUIPro.Toolbar Toolbar1;
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml
index b8eddc42..322f7b24 100644
--- a/SGGL/FineUIPro.Web/common/Menu_HJGL.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_HJGL.xml
@@ -6,7 +6,8 @@
-
+
+