@{ ViewData["Title"] = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } @using SuperCms.Controllers; @using SuperCms.Models; @{ int pageNow = 1; if (Model.page != null) { pageNow = int.Parse(Model.page); } } @model ConfigViewModel
@*

Message configuration

*@

Toolbars

@*
*@
@* *@
@{ if (Model.tableType == UtilsController.Constant.BOTS) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.bots.data.Count; j++) { BotStructure bot = Model.bots.data[j]; } } } else if (Model.tableType == UtilsController.Constant.GROUPS) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.groups.data.Count; j++) { GroupStructure group = Model.groups.data[j]; } } } else if (Model.tableType == UtilsController.Constant.SCHEDULES) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.schedules.data.Count; j++) { ScheduleStructure schedule = Model.schedules.data[j]; GroupStructure group = Model.groups.data.Find(x => x.id == schedule.groupID); BotStructure bot = Model.bots.data.Find(x => x.id == schedule.botID); } } } else if (Model.tableType == UtilsController.Constant.CONFIGS) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.configs.data.Count; j++) { Config config = Model.configs.data[j]; } } } else if (Model.tableType == UtilsController.Constant.SENDMAIL) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.sendMails.data.Count; j++) { SendMail sendMail = Model.sendMails.data[j]; } } } else if (Model.tableType == UtilsController.Constant.SERVICE_CONFIG) { @{ // get the newest data folowing by each service for (int j = 0; j < Model.services.data.Count; j++) { ConnConfig connConfig = Model.services.data[j]; ConnCompany company = Model.companies.data.Find(x => x.id == connConfig.companyID); } } } }
No. Name Description Last Update Status Action
@(j + 1) @bot.name @bot.description @bot.updateDate @UtilsController.convertBotStatus(int.Parse(bot.status))
No. Code Name Last Update Status Action
@(j + 1) @group.name @group.description @group.updateDate @UtilsController.convertGroupStatus(int.Parse(group.status))
No. Name Description Last Update Status Action
@(j + 1) @schedule.name @schedule.description @schedule.updateDate @UtilsController.convertScheduleStatus(int.Parse(schedule.status))
No. Key Value Last Update Action
@(j + 1) @config.key @config.value @config.updateDate
No. Telco ID Company ID Service ID Time send Status Action
@(j + 1) @sendMail.telcoId @sendMail.companyId @sendMail.serviceId @sendMail.timeSend @sendMail.status
No. Telco Company Service Money Action
@(j + 1) @connConfig.telco @company.name @connConfig.serviceName @connConfig.money
@{ int totalPage = Model.totalPage != null ? int.Parse(Model.totalPage) : 1;
@{
  • ‹‹
  • @{ if (totalPage <= 4) { for (int k = 1; k <= totalPage; k++) {
  • @k
  • } } else if (pageNow <= totalPage - 4) { for (int k = pageNow; (k <= pageNow + 4 && k <= totalPage); k++) {
  • @k
  • } } else { for (int k = totalPage - 4; k <= totalPage; k++) {
  • @k
  • } } }
  • ››
}
}