using System;
using System.Drawing;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace Blood.Com.WebControl
{
/// <summary>
/// 进度条WEB控件
/// </summary>
[DefaultProperty("Text"),
ToolboxData("<{0}:ProgressBar runat=server></{0}:ProgressBar>")]
public class ProgressBar : System.Web.UI.WebControls.WebControl
{
//声明变量
/// <summary>
/// 进度条百分比
/// </summary>
private int intPercentage = 0;
/// <summary>
/// 列数
/// </summary>
private int intCellCount = 20;
/// <summary>
/// 填充图片网址
/// </summary>
private string strFillImageUrl = "";
/// <summary>
/// 进度条图片网址
/// </summary>
private string strBarImageUrl = "";
/// <summary>
/// 图片发生器网址
/// </summary>
private string strImageGeneratorUrl = "";
/// <summary>
/// 构造函数
/// </summary>
public ProgressBar()
{
// 初始化进度条的背景颜色、字体颜色和边框颜色
BackColor = System.Drawing.Color.LightGray;
ForeColor = System.Drawing.Color.Blue;
BorderColor = Color.Empty;
//初始化进度条的宽度和高度
base.Width = Unit.Pixel(100);
base.Height = Unit.Pixel(16);
}
/// <summary>
/// 进度条百分比步幅
/// </summary>
public int PercentageStep
{
get{return 100 / intCellCount;}
&n