91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.24MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-30
  • 語(yǔ)言: C#
  • 標(biāo)簽: 圖書借閱??

資源簡(jiǎn)介

本系統(tǒng)應(yīng)實(shí)現(xiàn)圖書分類管理功能、圖書基本信息管理功能、圖書入庫(kù)管理功能、圖書盤點(diǎn)管理功能、借閱證件類型管理功能、借閱證件管理功能、圖書借閱管理功能、用戶管理功能等。

資源截圖

代碼片段和文件信息

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;
using?System.Text.Regularexpressions;
using?System.Text;
///?
///?Common?的摘要說(shuō)明
///?

public?class?Common
{
public?Common()
{
//
//?TODO:?在此處添加構(gòu)造函數(shù)邏輯
//
}

????#region?SHA1加密函數(shù)
????public?static?string?SHA1(string?source)???
????{???
????????return?FormsAuthentication.HashPasswordForStoringInConfigFile(source?“SHA1“);???
????}?
????#endregion

????#region?SQL防蛀函數(shù)
????public?static?string?UrnHtml(string?strHtml)
????{
????????strHtml?=?strHtml.Replace(“‘“?“'“).Replace(“.“?“.“).Replace(“%“?“%“).Replace(“-“?“-“).Replace(“<“?“?“);
????????return?strHtml;
????}
????#endregion

????#region?過(guò)濾字符串中所有的html標(biāo)簽
????public?static?string?checkStr(string?text)
????{
????????text?=?text.Trim();
????????if?(string.IsNullOrEmpty(text))
????????????return?string.Empty;
????????text?=?Regex.Replace(text?“[\\s]{2}“?“?“);?//兩個(gè)或多個(gè)空格替換為一個(gè)
????????text?=?Regex.Replace(text?“(<[b|B][r|R]/*>)+|(<[p|P](.|\\n)*?>)“?“\n“);?//

????????text?=?Regex.Replace(text?“(\\s*&[n|N][b|B][s|S][p|P];\\s*)+“?“?“);?// 
????????text?=?Regex.Replace(text?“<(.|\\n)*?>“?string.Empty);?//其它任何標(biāo)記
????????text?=?text.Replace(“‘“?“‘‘“);
????????return?text;
????}//過(guò)濾字符串中所有的標(biāo)簽代碼,如?


????#endregion

????#region?字符串截取函數(shù)
????public?static?string?subString(string?str?int?length)
????{
????????string?tmpStr?=?str;
????????int?strLength?=?length;
????????if?(str.Length?>?strLength)
????????{
????????????tmpStr?=?str.Substring(0?strLength);

????????}
????????return?tmpStr;
????}//截取從字符串開(kāi)始位置到指定位置的字符
????#endregion

????#region?截取字符串函數(shù)

????#region?截取字符串函數(shù)
????///?
????///?截取字符串函數(shù)
????///?

????///?所要截取的字符串
????///?截取字符串的長(zhǎng)度(0則不判斷)
????///?
????public?static?string?GetSubString(object?str?int?num)
????{
????????return?GetSubString(str.ToString()?num);
????}
????#endregion

????///?
????///?截取字符串函數(shù)
????///?

????///?所要截取的字符串
????///?截取字符串的長(zhǎng)度(0則不判斷)
????///?后綴字符(如:..)
????///?
????public?static?string?GetSubString(string?str?int?num?string?laststr)
????{
????????//if?(num?>?0)
????????//{
????????//????return?(RemoveHTML(str).Length?>?num)???(RemoveHTML(str).Substring(0?num))?:?str;
????????//}
????????//else
????????//{
????????//????return?str;
????????//}

????????if?(Encoding.UTF8.GetByteCount(str)?<=?num?*?2)
????????{
????????????return?str;
????????}
????????ASCIIEncoding?ascii?=?new?ASCIIEncoding();
????????int?tempLen?=?0;
????????string?tempString?=?““;
????????byte[]?s?=?ascii.GetBytes(

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件?????989950??2012-04-24?18:47??揚(yáng)州職業(yè)大學(xué)圖書借閱管理系統(tǒng)錄像.exe

-----------?---------??----------?-----??----

???????????????989950????????????????????1


評(píng)論

共有 條評(píng)論