@{ ViewBag.Title = "Broadcast"; Layout = "~/Views/Shared/_LayoutAdmin.cshtml"; } @using ReportWeb.Models; @model List @functions { private void MsgTypeToText(string msgType) { if (msgType == "0") { SMS Text } else if (msgType == "1") { SMS Flash } else if (msgType == "200") { USSD Push } else if (msgType == "201") { USSD Flash } } private void StatusBroadcast(int status) { if (status == 0) { Inactive } else if (status == 1) { Running } else if (status == 2) { Finished } else if (status == 3) { Cancelled } else if (status == 4) { Paused } } }

Search

  • @*
  • *@
  • @*
  • *@
@Html.AntiForgeryToken()
@**@

Report

@if (Model != null) { for (int i = 0; i < Model.Count; i++) { Broadcast broadcast = Model[@i]; if (broadcast != null) { } } }
# Action Broacast Name Channel Message Type Message Count subs Schedule time Finish time Status
@(i + 1) @if (broadcast.status == 0) { } @if (broadcast.status <= 1 || broadcast.status == 4) { } @if (broadcast.status == 0 || broadcast.status == 4) { Run } else if (broadcast.status == 1) { Pause } @broadcast.broadcast_name @broadcast.channel_adv @{MsgTypeToText(broadcast.message_type);} @broadcast.msg_adv @(broadcast.progress_sub + "/" + broadcast.count_sub) @broadcast.schedule_time @broadcast.finish_time @{StatusBroadcast(broadcast.status);}
@**@ @**@ @**@ @section Scripts { }