Backup/WebApp/Admin/Adm_Client.aspx.cs

(开头部分) 5KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using RM.Common;

namespace RM.WebApp.Admin
{
    public partial class Adm_Client : AdminBasic
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.IsAuthority(1);
            }
        }
        private void AreaBind()
        {
            ddlArea.Items.Clear();
            ddlArea.DataSource = new RM.BLL.Client().GetArea();
            ddlArea.DataTextField = "Area";
            ddlArea.DataBind();
        }
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            RM.BLL.Client clientBll = new RM.BLL.Client();
            RM.Entity.Client myClient;
            if (hfID.Value == "0")
            {
                myClient = new RM.Entity.Client();
            }
            else
            {
                myClient = clientBll.GetEntity(Convert.ToInt32(hfID.Value));
            }
            myClient.Name = txtName.Text.Trim();
            myClient.Area = ddlArea.SelectedItem.Text;
            if (hfID.Value == "0")
            {
                if (clientBll.Add(myClient))
                {
                    RM.BLL.WebLog.WriteMasterOperate("[新增]", "新增[" + myClient.Name + "]服务的客户");
                    this.WriteJs(JS.Alert("添加成功") + JS.Reload());
                }
                else
                {
                    this.WriteJs(JS.Alert("添加失败"));
                }
            }
            else
            {
                myClient.ModifyTime = DateTime.Now;
                if (clientBll.Update(myClient))
后面还有 113 行代码,购买后查看完整代码

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

AI 解读 AI

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

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