Admin/M_EditBusinessPoint.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace NetworkFeeSystem.Admin
{
    public partial class M_EditBusinessPoint : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DAL.Function.CheckState();
            if (!IsPostBack)
            {
                if (Request["pointId"] != null)
                {
                    LoadData();
                }
            }
        }
        /*如果是需要对记录进行编辑需要在界面初始化显示数据*/
        private void LoadData()
        {
            if (!string.IsNullOrEmpty(Common.GetMes.GetRequestQuery(Request, "pointId")))
            {
                ENTITY.BusinessPoint businessPoint = BLL.bllBusinessPoint.getSomeBusinessPoint(Convert.ToInt32(Common.GetMes.GetRequestQuery(Request, "pointId")));
                pointName.Value = businessPoint.pointName;
                connectPerson.Value = businessPoint.connectPerson;
                telephone.Value = businessPoint.telephone;
                address.Value = businessPoint.address;
            }
        }

        protected void BtnBusinessPointSave_Click(object sender, EventArgs e)
        {
            ENTITY.BusinessPoint businessPoint = new ENTITY.BusinessPoint();
            businessPoint.pointName = pointName.Value;
            businessPoint.connectPerson = connectPerson.Value;
            businessPoint.telephone = telephone.Value;
            businessPoint.address = address.Value;
            if (!string.IsNullOrEmpty(Common.GetMes.GetRequestQuery(Request, "pointId")))
            {
                businessPoint.pointId = int.Parse(Request["pointId"]);
                if (BLL.bllBusinessPoint.EditBusinessPoint(businessPoint))
                {
                    Common.ShowMessage.myScriptMes(Page, "Suess", "if(confirm(\"信息修改成功,是否继续修改?否则返回信息列表。\")) {location.href=\"M_EditBusinessPoint.aspx?pointId=" + Request["pointId"] + "\"} else  {location.href=\"M_BusinessPointList.aspx\"} ");
                }
                else
                {
                    Common.ShowMessage.Show(Page, "error", "信息修改失败,请重试或联系管理人员..");
                }
            }
后面还有 20 行代码,购买后查看完整代码

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

AI 解读 AI

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

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