温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net2.0自动排班系统源码
当前文件:
AutoDutySystem/App_Code/Common/UtilCommon.cs[961B,2009-6-12 11:33:11],打开代码结构图
AutoDutySystem/App_Code/Common/UtilCommon.cs[961B,2009-6-12 11:33:11],打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Web; 5
using System.Web.Security; 6
using System.Web.UI; 7
using System.Web.UI.WebControls; 8
using System.Web.UI.WebControls.WebParts; 9
using System.Web.UI.HtmlControls; 10
11
/// <summary> 12
/// UtilCommon 的摘要说明 13
/// </summary> 14
public class UtilCommon 15
{ 16
public UtilCommon() 17
{ 18
// 19
// TODO: 在此处添加构造函数逻辑 20
// 21
} 22
23
public static bool isValiddDataSet(DataSet ds) 24
{ 25
26
if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) 27
return false; 28
return true; 29
} 30
31
public static bool isNumber(string temp) 32
{ 33
try 34
{ 35
int integer = Int32.Parse(temp); 36
} 37
catch 38
{ 39
return false; 40
} 41
return true; 42
} 43
44
public static int stringToInt(string temp) 45
{ 46
return Int32.Parse(temp); 47
} 48
} 49









