using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
namespace basic
|
|
{
|
|
/// <summary>
|
|
/// QZCheck 的摘要说明
|
|
/// </summary>
|
|
public class QZCheck
|
|
{
|
|
/// <summary>
|
|
/// 检测附件地址
|
|
/// </summary>
|
|
/// <param name="Fujian"></param>
|
|
public static string CheckFujian(string Fujian)
|
|
{
|
|
string strResult = "";
|
|
if (Fujian.ToLower().Contains("http://"))
|
|
{
|
|
strResult = Fujian;
|
|
}
|
|
else
|
|
{
|
|
strResult = "../" + Fujian;
|
|
}
|
|
return strResult;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 检测图片是否为空
|
|
/// </summary>
|
|
/// <param name="Fujian"></param>
|
|
public static string CheckPathNull(string Path)
|
|
{
|
|
string strResult = "";
|
|
if (Path == null || Path == "")
|
|
{
|
|
strResult = "upload/default.jpg";
|
|
}
|
|
else
|
|
{
|
|
strResult = Path;
|
|
}
|
|
return strResult;
|
|
}
|
|
}
|
|
}
|