本文整理匯總了C#中SocioBoard.Model.UserRepository.PaidUserCountByMonth方法的典型用法代碼示例。如果您正苦於以下問題:C# UserRepository.PaidUserCountByMonth方法的具體用法?C# UserRepository.PaidUserCountByMonth怎麽用?C# UserRepository.PaidUserCountByMonth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SocioBoard.Model.UserRepository
的用法示例。
在下文中一共展示了UserRepository.PaidUserCountByMonth方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Page_Load
//.........這裏部分代碼省略.........
else if (temp.GetValue(0).ToString() == "11")
strAccMonth = strAccMonth + "'Nov',";
else if (temp.GetValue(0).ToString() == "12")
strAccMonth = strAccMonth + "'Dec'";
if (temp.GetValue(3) != null)
{
if (temp.GetValue(3).ToString() == "INDIVIDUAL")
strStandard = strStandard + temp.GetValue(1).ToString() + ",";
else if (temp.GetValue(3).ToString() == "SMALL BUSINESS")
strDelux = strDelux + temp.GetValue(1).ToString() + ",";
else if (temp.GetValue(3).ToString() == "CORPORATION")
strPremium = strPremium + temp.GetValue(1).ToString() + ",";
}
}
if (strAccMonth[strAccMonth.Length - 1] == ',')
{
strAccMonth = strAccMonth.Substring(0, strAccMonth.Length - 1);
}
strStandard = strStandard.Substring(0, strStandard.Length - 1);
strDelux = strDelux.Substring(0, strDelux.Length - 1);
strPremium = strPremium.Substring(0, strPremium.Length - 1);
}
catch (Exception Err)
{
logger.Error(Err.Message);
Console.Write(Err.StackTrace);
}
#endregion
#region paid User
try
{
UserRepository objUserRepo = new UserRepository();
ArrayList lstUser = objUserRepo.PaidUserCountByMonth();
foreach (var item in lstUser)
{
Array temp = (Array)item;
strPaidUser = strPaidUser + temp.GetValue(1).ToString() + ",";
if (temp.GetValue(0).ToString() == "1")
strPaidMonth = strPaidMonth + "'Jan',";
else if (temp.GetValue(0).ToString() == "2")
strPaidMonth = strPaidMonth + "'Feb',";
else if (temp.GetValue(0).ToString() == "3")
strPaidMonth = strPaidMonth + "'March',";
else if (temp.GetValue(0).ToString() == "4")
strPaidMonth = strPaidMonth + "'April',";
else if (temp.GetValue(0).ToString() == "5")
strPaidMonth = strPaidMonth + "'May',";
else if (temp.GetValue(0).ToString() == "6")
strPaidMonth = strPaidMonth + "'June',";
else if (temp.GetValue(0).ToString() == "7")
strPaidMonth = strPaidMonth + "'July',";
else if (temp.GetValue(0).ToString() == "8")
strPaidMonth = strPaidMonth + "'Aug',";
else if (temp.GetValue(0).ToString() == "9")
strPaidMonth = strPaidMonth + "'Sep',";
else if (temp.GetValue(0).ToString() == "10")
strPaidMonth = strPaidMonth + "'Oct',";
else if (temp.GetValue(0).ToString() == "11")
strPaidMonth = strPaidMonth + "'Nov',";
else if (temp.GetValue(0).ToString() == "12")
strPaidMonth = strPaidMonth + "'Dec'";
}
if (strPaidMonth[strPaidMonth.Length - 1] == ',')