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

(开头部分) 6KB

这里只显示每个文件的开头 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.Bus;
using CY_ZZJY.Service.Bus;
using CY_ZZJY.Service.Sys;
using System.Data;
using CY_ZZJY.EasyUI;

namespace CY_ZZJY.Web.admin.company
{
    public partial class add_edit : System.Web.UI.Page
    {
        public string id = string.Empty;
        #region 变量
        private Mdl_T_COMPANY _Mdl_T_COMPANY = null;
        private T_COMPANY_Service _T_COMPANY_Service = new T_COMPANY_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_COMPANY = new Mdl_T_COMPANY();
            if (!string.IsNullOrEmpty(this.id))
            {
                this._Mdl_T_COMPANY = this._T_COMPANY_Service.GetEntity(this.id);
                this.SHORT_NAME.Text = this._Mdl_T_COMPANY.SHORT_NAME;
                this.NAME.Text = this._Mdl_T_COMPANY.NAME;
                this.CODE.Text = this._Mdl_T_COMPANY.CODE;
                this.CONNACT.Text = this._Mdl_T_COMPANY.CONNACT;
                this.TELEPHONE.Text = this._Mdl_T_COMPANY.TELEPHONE;
                this.BUSINESS_ENTITY.Text = this._Mdl_T_COMPANY.BUSINESS_ENTITY;
                this.DUTY_PARAGRAPH.Text = this._Mdl_T_COMPANY.DUTY_PARAGRAPH;
                this.E_MAIL.Text = this._Mdl_T_COMPANY.E_MAIL;
                this.ADDRESS.Text = this._Mdl_T_COMPANY.ADDRESS;
                this.FZJG.Text = this._Mdl_T_COMPANY.FZJG;
                this.FZSJ.Text = this._Mdl_T_COMPANY.FZSJ.ToString();
                this.IS_ENABLED.Checked = this._Mdl_T_COMPANY.IS_ENABLED == "Y" ? true : false;
            }
            this.InitType(this._Mdl_T_COMPANY.COMPANY_TYPE);
        }
        #region 加载控件
        /// <summary>
        /// 企业性质
        /// </summary>
        private void InitType(string curValue)
        {
            this.Sel_COMPANY_TYPE.Items.Clear();
后面还有 78 行代码,购买后查看完整代码

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

AI 解读 AI

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

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