zoukankan      html  css  js  c++  java
  • 微网站页面的父类

    /**************************************
     * 
     * author:李朴
     * company:上海沐雪网络科技有限公司
     * website:http://uweixin.cn
     * createDate:2013-11-1
     * update:2014-12-30
     * remark:微网站页面的父类
     * 
     ***********************************/
    
    using MxWeiXinPF.Common;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Web;
    
    namespace MxWeiXinPF.Templates
    {
        public class TBasePage : System.Web.UI.Page
        {
            
            /// <summary>
            /// 模版的物理路径
            /// </summary>
            public string tPath { get; set; }
            
            /// <summary>
            /// 首页的模版文件名称
            /// </summary>
            public string templateIndexFileName { get; set; }
             
            /// <summary>
            /// 列表页面的模版文件名称
            /// </summary>
            public string templateListFileName { get; set; }
            
    
            /// <summary>
            /// 详情页面的模版文件名称
            /// </summary>
            public string templateDetailName { get; set; }
             
            /// <summary>
            /// 微帐号wid
            /// </summary>
            public int wid { get; set; }
             
            /// <summary>
            /// 初始化模版的错误信息
            /// </summary>
            public string errInitTemplates { get; set; }
    
            public TBasePage()
            {
                tPath = "";
                templateIndexFileName = "";
                templateListFileName = "";
                templateDetailName = "";
                errInitTemplates = "";
    
                 wid =  MyCommFun.RequestInt("wid");
                 BLL.wx_userweixin wuwBll = new BLL.wx_userweixin();
                 if (wid == 0)
                 {
                     errInitTemplates = "链接地址或者参数错误!";
                     return;
                 }
    
                 bool isExist = wuwBll.wxCodeLegal(wid);
                 if (!isExist)
                 {
                     errInitTemplates = "账号已过期或已被禁用!";
                     return;
                 
                 }
              
    
              
            }
        }
    }
  • 相关阅读:
    Linux学习笔记之Linux Centos关闭防火墙
    ELK学习笔记之Logstash详解
    ELK学习笔记之ElasticSearch的索引详解
    C语言拼接字符串 -- 使用strcat()函数
    linux 中的 open() read() write() close() 函数
    stderr 和stdout
    ubuntu14.04 放开串口权限
    ubuntu14.04 安装 openssh-server
    串口接线
    ubuntu + usb转RS232驱动
  • 原文地址:https://www.cnblogs.com/Jeely/p/11349794.html
Copyright © 2011-2022 走看看