Hl.WebMain/AdmPage/BaseBizManage/ServiceInfoEdit-ItemPartVirtual-SelectItem.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Hl.Code;
using Hl.WebMain.Common;

namespace Hl.WebMain.AdmPage.BaseBizManage
{
    public partial class ServiceInfoEdit_ItemPartVirtual_SelectItem : System.Web.UI.Page
    {
        #region "全局变量"
        
        public string CreatePath = SystemHelper.GetCurrentPagePath() + "ServiceInfoEdit-ItemPartQuotation-SelectItem.aspx?op=Create";//新增选中-路径

        #endregion

        #region "页面加载"

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Bind_Data();
                Test_Perm();
                Form_Test();
                Bind_Info();
            }
        }

        #endregion

        #region "数据绑定"

        /// <summary>
        /// 表单验证
        /// </summary>
        protected bool Form_Test(int testStyle = 0)
        {
            bool isValidate = true;
            #region "开始处理"
            TestTool testTool = new TestTool(new List<TestItem>(){
                    new TestItem("", htmlCode.Value,new List<TestRole>(){ new TestRole(TestType.为空) },htmlCode,tipsCode),
                    new TestItem("", htmlName.Value,new List<TestRole>(){ new TestRole(TestType.为空) },htmlName,tipsName),
                    new TestItem("", htmlItemTypeId.SelectedValue,new List<TestRole>(){ new TestRole(TestType.为空) },htmlItemTypeId,tipsItemTypeId),
                    new TestItem("", htmlStandardMoney.Value,new List<TestRole>(){ new TestRole(TestType.为空),new TestRole(TestType.浮点,"1"),new TestRole(TestType.大小最小值,"0") },htmlStandardMoney,tipsStandardMoney),
                    new TestItem("", htmlStandardHours.Value,new List<TestRole>(){ new TestRole(TestType.为空),new TestRole(TestType.浮点,"1"),new TestRole(TestType.大小最小值,"0") },htmlStandardHours,tipsStandardHours)
            }, testStyle);
            isValidate = testTool.TestReult;
            #endregion
            return isValidate;
        }

        protected void Bind_Info()
        {
            WebDataHelper.BindSelectByTree(lookItemClassId, "BizServiceItemClass");
            WebDataHelper.BindSelectByEnum<Enum.BizRepairJobs>(htmlItemTypeId);
后面还有 21 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。