• 大小: 3.1M
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-09-19
  • 语言: 其他
  • 标签: 其他  

资源简介

ERP管理源码MingRiERP.zip

资源截图

代码片段和文件信息

using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MRErp.ServerControl
{
    public class GridView : System.Web.UI.WebControls.GridView
    {
        [Category(“Appearance“)]
        [DefaultValue(true)]
        [Description(“数据源为空时是否呈现表头“)]
        [TypeConverter(typeof (BooleanConverter))]
        public bool EnableEmptyContentRender
        {
            get
            {
                if (ViewState[“EnableEmptyContentRender“] == null)
                {
                    return true;
                }
                return Convert.ToBoolean(ViewState[“EnableEmptyContentRender“]);
            }

            set { ViewState[“EnableEmptyContentRender“] = value; }
        }

        [Category(“Appearance“)]
        [DefaultValue(““)]
        [Description(“数据源为空时表格样式类“)]
        public string EmptyDataTableCssClass
        {
            get
            {
                if (ViewState[“EmptyDataTableCssClass“] == null)
                {
                    return ““;
                }
                return ViewState[“EmptyDataTableCssClass“].ToString();
            }
            set { ViewState[“EmptyDataTableCssClass“] = value; }
        }

        [Category(“Appearance“)]
        [DefaultValue(““)]
        [Description(“数据源为空时标题行样式类“)]
        public string EmptyDatatitleRowCssClass
        {
            get
            {
                if (ViewState[“EmptyDatatitleRowCssClass“] == null)
                {
                    return ““;
                }
                return ViewState[“EmptyDatatitleRowCssClass“].ToString();
            }
            set { ViewState[“EmptyDatatitleRowCssClass“] = value; }
        }

        [Category(“Appearance“)]
        [DefaultValue(““)]
        [Description(“数据源为空时内容行样式类“)]
        public string EmptyDataContentRowCssClass
        {
            get
            {
                if (ViewState[“EmptyDataContentRowCssClass“] == null)
                {
                    return ““;
                }
                return ViewState[“EmptyDataContentRowCssClass“].ToString();
            }
            set { ViewState[“EmptyDataContentRowCssClass“] = value; }
        }

        /// 
        ///   GridView数据为空时呈现的样式
        /// 

        ///  
        protected virtual void RenderEmptyContent(HtmlTextWriter writer)
        {
            Table t = new Table(); //创建一个HTML的Table
            t.GridLines = GridLines; //设置Table的线型与GridView相同
            t.Borderstyle = Borderstyle; //设置边界风格与GridView相同
            t.BorderWidth = 0; //??
            t.CellPadding = 1;
            t.CellSpacing = 1;
            t.HorizontalAlign = HorizontalAlign; //设置水平对齐风格与GridView相同
            t.Width = Width; //设置Table宽度与GridView相同
            t.CopybaseAttributes(this);
            t.BorderColor = BorderColor; //设置边界颜色与GridView相同
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         903  2018-08-28 11:08  源码必读.txt
     文件     3080192  2012-08-22 08:55  DB_51aspx\MRErp_Data.MDF
     文件     1048576  2012-08-22 08:55  DB_51aspx\MRErp_Log.LDF
     文件      116722  2012-08-22 08:55  DB_51aspx\数据库脚本.sql
     文件         256  2012-08-22 08:55  IntraDisk.vssscc
     文件       18432  2012-08-22 08:55  MRErp.ServerControl\bin\Debug\MRErp.ServerControl.dll
     文件       36352  2012-08-22 08:55  MRErp.ServerControl\bin\Debug\MRErp.ServerControl.pdb
     文件        5983  2012-08-22 08:55  MRErp.ServerControl\GridView.cs
     文件        4307  2012-08-22 08:55  MRErp.ServerControl\MRErp.ServerControl.csproj
     文件         452  2012-08-22 08:55  MRErp.ServerControl\MRErp.ServerControl.csproj.user
     文件        6042  2012-08-22 08:55  MRErp.ServerControl\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件        2213  2012-08-22 08:55  MRErp.ServerControl\obj\Debug\MRErp.ServerControl.csproj.FileListAbsolute.txt
     文件       18432  2012-08-22 08:55  MRErp.ServerControl\obj\Debug\MRErp.ServerControl.dll
     文件       36352  2012-08-22 08:55  MRErp.ServerControl\obj\Debug\MRErp.ServerControl.pdb
     文件        7168  2012-08-22 08:55  MRErp.ServerControl\obj\Debug\Refactor\MRErp.ServerControl.dll
     文件       27753  2012-08-22 08:55  MRErp.ServerControl\OurPager.cs
     文件        1336  2012-08-22 08:55  MRErp.ServerControl\Properties\AssemblyInfo.cs
     文件      202240  2012-08-22 08:55  MRErp.ServiceProvider\bin\Debug\MRErp.ServiceProvider.dll
     文件      513536  2012-08-22 08:55  MRErp.ServiceProvider\bin\Debug\MRErp.ServiceProvider.pdb
     文件        5170  2012-08-22 08:55  MRErp.ServiceProvider\Dao\AdjustDao.cs
     文件        3610  2012-08-22 08:55  MRErp.ServiceProvider\Dao\ClientInfoDao.cs
     文件        2369  2012-08-22 08:55  MRErp.ServiceProvider\Dao\Common\BatchEvaluate.cs
     文件         299  2012-08-22 08:55  MRErp.ServiceProvider\Dao\Common\ConnectionManager.cs
     文件       28118  2012-08-22 08:55  MRErp.ServiceProvider\Dao\Common\MRErp.dbml
     文件       12703  2012-08-22 08:55  MRErp.ServiceProvider\Dao\Common\MRErp.dbml.layout
     文件      180535  2012-08-22 08:55  MRErp.ServiceProvider\Dao\Common\MRErp.designer.cs
     文件        2676  2012-08-22 08:55  MRErp.ServiceProvider\Dao\DictionaryInfoDao.cs
     文件        3753  2012-08-22 08:55  MRErp.ServiceProvider\Dao\EmployeeInfoDao.cs
     文件        6295  2012-08-22 08:55  MRErp.ServiceProvider\Dao\ProductInfoDao.cs
     文件        8394  2012-08-22 08:55  MRErp.ServiceProvider\Dao\PurchaseDao.cs
     文件        5486  2012-08-22 08:55  MRErp.ServiceProvider\Dao\PurchaseIndentDao.cs
............此处省略382个文件信息

评论

共有 条评论