摘要: public string isExists(string str) { return Regex.Match(str, @"[+-]?\d+(.\d{2})?").Value; } 阅读全文
posted @ 2012-06-30 15:51 放哨De老鼠 阅读(179) 评论(0) 推荐(0)
摘要: //判断某字符是否包含在字符数组中function IsStringInArray(p_Array, p_str) { for (var i = 0; i < p_Array.length; i++) { if (p_Array[i] == p_str) { return true; } } return false;}//非空验证function IsNotEmpty(str) { if (str.replace(/(^[\s]*)|([\s]*$)/g, "") == "" || str.replace(/(^[\s]*)|([\s]*$)/g 阅读全文
posted @ 2012-06-30 15:49 放哨De老鼠 阅读(218) 评论(0) 推荐(0)
摘要: static System.Data.DataTable dt = new System.Data.DataTable();/// <summary> /// 读取数据源 /// </summary> /// <param name="sExcelFile"></param> /// <param name="dgBom"></param> public void ReadExcel(string sExcelFile) { try { dt.Clear(); dt_date.Cle 阅读全文
posted @ 2012-06-30 15:46 放哨De老鼠 阅读(359) 评论(0) 推荐(0)
摘要: public string ConvertString(string p_str) { if (p_str.Length > 0) { p_str = p_str.Replace("'", "'+char(39)+'"); p_str = p_str.Replace("-", "'+char(45)+'"); p_str = p_str.Replace(",", "'+char(44)+'"); p_str = p 阅读全文
posted @ 2012-06-30 15:46 放哨De老鼠 阅读(308) 评论(0) 推荐(0)