SenBiTeSolution.UI/ManageWeb/AfterServices.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SenBiTeSolution.DAL;
using SenBiTeSolution.Common;

namespace SenBiTeSolution.UI.ManageWeb
{
    public partial class AfterServices : System.Web.UI.Page
    {
        protected string afterServices = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetData();
            }
        }

        protected void GetData()
        {
            tbl_CompanyDetail companyDetail = new tbl_CompanyDetail();

            afterServices = companyDetail.GetCompanyDetail("ShouHou");
        }

        protected void btn_Submit_Click(object sender, EventArgs e)
        {
            string content = Request.Form["textcontent"].Trim();

            if (string.IsNullOrEmpty(content))
            {
                MessageBox.Show(this.Page, "不允许为空!");
                return;
            }

            tbl_CompanyDetail companyDetail = new tbl_CompanyDetail();

            if (!companyDetail.Exists())
            {
                int rows = companyDetail.AddCompany("ShouHou", content);
                if (rows > 0)
                {
                    MessageBox.Show(this.Page, "操作成功!");
                    GetData();
                }
                else
                {
                    MessageBox.Show(this.Page, "操作失败!");
                }
            }
            else
            {
                int rows = companyDetail.UpdateCompany("ShouHou", content);
                if (rows > 0)
后面还有 13 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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