/************************************************************************/ /* */ /************************************************************************/ public static void InitCacheSection() { //从数据库中读取出来 pPhoneSection.Clear(); DataSet ds = new PhoneSection().GetPhoneSection(); if (ds.Tables[0].Rows.Count > 0) { for (int i = 1; i < 4; i++) { string[] strMobileArray = ds.Tables[0].Rows[0][i].ToString().Split(','); foreach (string strHeader in strMobileArray) { pPhoneSection[strHeader] = i + 2; } } } }
/************************************************************************/ /* */ /************************************************************************/ public static void InitCacheSection() { //从数据库中读取出来 pPhoneSection.Clear(); DataSet ds = new PhoneSection().GetPhoneSection(); if (ds.Tables[0].Rows.Count > 0) { for (int i = 1; i < 4;i++ ) { string[] strMobileArray = ds.Tables[0].Rows[0][i].ToString().Split(','); foreach (string strHeader in strMobileArray) { pPhoneSection[strHeader] = i+2; } } } }