CY_ZZJY.Web/admin/checker/add_edit.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY_ZZJY.Model.Sys;
using CY_ZZJY.Model.Bus;
using CY_ZZJY.Service.Bus;
using CY_ZZJY.Service.Sys;
using CY_ZZJY.EasyUI;
using System.Data;

namespace CY_ZZJY.Web.admin.checker
{
    public partial class add_edit : System.Web.UI.Page
    {
        public string id = string.Empty;
        #region 变量
        private Mdl_T_CHECKER _Mdl_T_CHECKER = null;
        private T_CHECKER_Service _T_CHECKER_Service = new T_CHECKER_Service();
        private SYS_DICTIONARIES_Service _SYS_DICTIONARIES_Service = new SYS_DICTIONARIES_Service();
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["id"] != null && !string.IsNullOrEmpty(Request.QueryString["id"].ToString()))
                this.id = Request.QueryString["id"].ToString().Trim();
            if (!IsPostBack)
                this.InitControl();
        }
        /// <summary>
        /// 初始化窗体控件
        /// </summary>
        private void InitControl()
        {
            this._Mdl_T_CHECKER = new Mdl_T_CHECKER();
            if (!string.IsNullOrEmpty(this.id))
            {
                this._Mdl_T_CHECKER = this._T_CHECKER_Service.GetEntity(this.id);
                this.AGE.Text = this._Mdl_T_CHECKER.AGE;
                this.NAME.Text = this._Mdl_T_CHECKER.NAME;
                this.Sel_SEX.SelectedValue = this._Mdl_T_CHECKER.SEX;
                this.Sel_TYPE.SelectedValue = this._Mdl_T_CHECKER.TYPE;
                this.CODE.Text = this._Mdl_T_CHECKER.CODE;
                this.TELEPHONE.Text = this._Mdl_T_CHECKER.TELEPHONE;
                this.ADDRESS.Text = this._Mdl_T_CHECKER.ADDRESS;
                this.IS_ENABLED.Checked = this._Mdl_T_CHECKER.IS_ENABLED == "Y" ? true : false;
            }
            this.InitType(this._Mdl_T_CHECKER.TYPE);
        }
        #region 加载控件
        /// <summary>
        /// 企业性质
        /// </summary>
        private void InitType(string curValue)
        {
            this.Sel_TYPE.Items.Clear();
            DataTable dt = this._SYS_DICTIONARIES_Service.QueryToDataTable("批准类别");
            this.Sel_TYPE.DataSource = dt.DefaultView;
            this.Sel_TYPE.DataTextField = "VALUE";
后面还有 66 行代码,购买后查看完整代码

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

AI 解读 AI

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

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