01.code/LanweiUI/src/BasePage.cs

(开头部分) 13KB

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

using System;
using System.Data;
using System.Configuration;
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;
using Lanwei.Weixin.DAL;
using Lanwei.Weixin.Common;
using Lanwei.Weixin.Model;
using Lanwei.Weixin.DBUtility;

using LanweiBLL;

namespace Lanwei.Weixin.UI.src
{
    public class BasePage :Page //VersionContorl //Page
    {


        private string errmessagecode = "";

        public UserDAL powerDAL = new UserDAL();
        public SystemSetDAL setDAL = new SystemSetDAL();

        public Users LoginUser
        {
            get { return Session["userInfo"] as Users; }
        }


      
        public SystemSetModel SysInfo
        {
            get {

                SystemSetModel sys = new SystemSetModel();

                string isWhere = " shopId='"+LoginUser.ShopId+"' ";
                DataSet ds = setDAL.GetList(isWhere);


                if (ds.Tables[0].Rows.Count > 0)
                {
                    sys.Company = ds.Tables[0].Rows[0]["Company"].ToString();

                    sys.Address = ds.Tables[0].Rows[0]["address"].ToString();
                    sys.Tel = ds.Tables[0].Rows[0]["Tel"].ToString();
                    sys.Fax = ds.Tables[0].Rows[0]["Fax"].ToString();
                    sys.PostCode = ds.Tables[0].Rows[0]["PostCode"].ToString();

                    sys.Bwb = ds.Tables[0].Rows[0]["address"].ToString();

                    sys.Num = ConvertTo.ConvertInt(ds.Tables[0].Rows[0]["Num"].ToString());
                    sys.Price = ConvertTo.ConvertInt(ds.Tables[0].Rows[0]["Price"].ToString());
                    sys.PriceType = ConvertTo.ConvertInt(ds.Tables[0].Rows[0]["PriceType"].ToString());
后面还有 351 行代码,购买后查看完整代码

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

AI 解读 AI

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

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