本文整理汇总了C#中SocioBoard.Model.UserRepository.UnPaidUserCountByMonth方法的典型用法代码示例。如果您正苦于以下问题:C# UserRepository.UnPaidUserCountByMonth方法的具体用法?C# UserRepository.UnPaidUserCountByMonth怎么用?C# UserRepository.UnPaidUserCountByMonth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocioBoard.Model.UserRepository
的用法示例。
在下文中一共展示了UserRepository.UnPaidUserCountByMonth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
//.........这里部分代码省略.........
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] == ',')
{
strPaidMonth = strPaidMonth.Substring(0, strPaidMonth.Length - 1);
}
strPaidUser = strPaidUser.Substring(0, strPaidUser.Length - 1);
}
catch (Exception Err)
{
logger.Error(Err.Message);
Console.Write(Err.StackTrace);
}
#endregion
#region Unpaid User
try
{
UserRepository objUserRepo = new UserRepository();
ArrayList lstUser = objUserRepo.UnPaidUserCountByMonth();
foreach (var item in lstUser)
{
Array temp = (Array)item;
strUnPaidUser = strUnPaidUser + temp.GetValue(1).ToString() + ",";
if (temp.GetValue(0).ToString() == "1")
strUnPaidMonth = strUnPaidMonth + "'Jan',";
else if (temp.GetValue(0).ToString() == "2")
strUnPaidMonth = strUnPaidMonth + "'Feb',";
else if (temp.GetValue(0).ToString() == "3")
strUnPaidMonth = strUnPaidMonth + "'March',";
else if (temp.GetValue(0).ToString() == "4")
strUnPaidMonth = strUnPaidMonth + "'April',";
else if (temp.GetValue(0).ToString() == "5")
strUnPaidMonth = strUnPaidMonth + "'May',";
else if (temp.GetValue(0).ToString() == "6")
strUnPaidMonth = strUnPaidMonth + "'June',";
else if (temp.GetValue(0).ToString() == "7")
strUnPaidMonth = strUnPaidMonth + "'July',";
else if (temp.GetValue(0).ToString() == "8")
strUnPaidMonth = strUnPaidMonth + "'Aug',";
else if (temp.GetValue(0).ToString() == "9")
strUnPaidMonth = strUnPaidMonth + "'Sep',";
else if (temp.GetValue(0).ToString() == "10")
strUnPaidMonth = strUnPaidMonth + "'Oct',";
else if (temp.GetValue(0).ToString() == "11")
strUnPaidMonth = strUnPaidMonth + "'Nov',";
else if (temp.GetValue(0).ToString() == "12")
strUnPaidMonth = strUnPaidMonth + "'Dec'";
}
if (strUnPaidMonth[strUnPaidMonth.Length - 1] == ',')
{
strUnPaidMonth = strUnPaidMonth.Substring(0, strUnPaidMonth.Length - 1);
}
strUnPaidUser = strUnPaidUser.Substring(0, strUnPaidUser.Length - 1);
}
catch (Exception Err)
{
logger.Error(Err.Message);
Console.Write(Err.StackTrace);
}
#endregion
}
}