CY_ZZJY.Web/admin/organization/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.Service.Sys;
using CY_ZZJY.EasyUI;

namespace CY_ZZJY.Web.admin.organization
{
    public partial class add_edit : System.Web.UI.Page
    {
        public string parentId = "00000000-0000-0000-0000-000000000000";
        public string orgId = string.Empty;
        #region 变量
        private Mdl_SYS_ORGANIZATION _Mdl_SYS_ORGANIZATION = null;
        private SYS_ORGANIZATION_Service _SYS_ORGANIZATION_Service = new SYS_ORGANIZATION_Service();
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["parentId"] != null && !string.IsNullOrEmpty(Request.QueryString["parentId"].ToString()))
                this.parentId = Request.QueryString["parentId"].ToString().Trim();
            if (Request["orgId"] != null && !string.IsNullOrEmpty(Request.QueryString["orgId"].ToString()))
                this.orgId = Request.QueryString["orgId"].ToString().Trim();
            if (!IsPostBack)
                this.InitControl();
        }
        /// <summary>
        /// 初始化窗体控件
        /// </summary>
        private void InitControl()
        {
            this._Mdl_SYS_ORGANIZATION = new Mdl_SYS_ORGANIZATION();
            if (!string.IsNullOrEmpty(this.parentId))
            {
                this._Mdl_SYS_ORGANIZATION = (Mdl_SYS_ORGANIZATION)this._SYS_ORGANIZATION_Service.GetEntity(this.parentId);
                this.PARENT_NAME.Text = this._Mdl_SYS_ORGANIZATION.NAME;
            }
            if (!string.IsNullOrEmpty(this.orgId))
            {
                this._Mdl_SYS_ORGANIZATION = (Mdl_SYS_ORGANIZATION)this._SYS_ORGANIZATION_Service.GetEntity(this.orgId);
                this.NAME.Text = this._Mdl_SYS_ORGANIZATION.NAME.Trim();
                this.SHORT_NAME.Text = this._Mdl_SYS_ORGANIZATION.SHORT_NAME.Trim();
                this.ORG_BH.Text = this._Mdl_SYS_ORGANIZATION.ORG_BH.Trim();
                this.REORDER_LEVEL.Text = this._Mdl_SYS_ORGANIZATION.REORDER_LEVEL.ToString();
                this.IS_ENABLED.Checked = this._Mdl_SYS_ORGANIZATION.IS_ENABLED == "Y" ? true : false;
                this.REMARK.Text = this._Mdl_SYS_ORGANIZATION.REMARK.Trim();
                this.ADDRESS.Text = this._Mdl_SYS_ORGANIZATION.ADDRESS;
                this.CONTACT.Text = this._Mdl_SYS_ORGANIZATION.CONTACT;
                this.FAX.Text = this._Mdl_SYS_ORGANIZATION.FAX;
            }
        }
        /// <summary>
        /// 保存按钮事件
        /// </summary>
        protected void btn_save_Click(object sender, EventArgs e)
        {
            this._Mdl_SYS_ORGANIZATION = (Mdl_SYS_ORGANIZATION)this._SYS_ORGANIZATION_Service.GetEntity(this.parentId);
后面还有 52 行代码,购买后查看完整代码

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

AI 解读 AI

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

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