Пример #1
0
 public string gridFilterWord_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     switch (sender.FieldName)
     {
     case "Action":
         return(string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteRow(event);""></span>",
                              Language.GetString("Delete")));
     }
     return(Helper.GetString(e.CurrentRow[sender.FieldName]));
 }
Пример #2
0
        public string gridUserAccesses_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "AccessTitle":
                return(Language.GetString(((Business.Permissions)Helper.GetInt(e.CurrentRow["ReferencePermissionsKey"])).ToString()));
            }

            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
        public string gridUserPrivateNumbers_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            string action      = string.Empty;
            bool   activeShare = true;

            switch (sender.FieldName)
            {
            case "Action":

                if (Helper.GetInt(e.CurrentRow["UseForm"]) == (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.RangeNumber &&
                    e.CurrentRow["Number"].ToString() == string.Empty)
                {
                    activeShare = false;
                }

                if (Helper.GetBool(e.CurrentRow["IsExpired"]))
                {
                    action = string.Format(@"<a href=""/PageLoader.aspx?c={0}&Guid={1}""><span class='ui-icon fa fa-check green' title=""{2}""></span></a>",
                                           Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_PrivateNumbers_ExtendedNumber, Session),
                                           e.CurrentRow["Guid"],
                                           Language.GetString("ExtentionNumber"));
                }

                action += string.Format(@"<a href=""/PageLoader.aspx?c={0}&Guid={1}""><span class='ui-icon fa fa-share' title=""{2}""></span></a>",
                                        Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_PrivateNumbers_SetTrafficRelay, Session),
                                        e.CurrentRow["Guid"],
                                        Language.GetString("TrafficRelay"));
                action += string.Format(@"<span class='ui-icon fa fa-share-alt orange' title=""{0}"" onclick=""{1}"" style=""{2}""></span>",
                                        Language.GetString("Public"),
                                        activeShare ? "setPublic(event);" : string.Empty,
                                        activeShare ? string.Empty : "opacity: 0.5;filter: Alpha(Opacity=20);");

                return(action);

            case "Number":
                switch (Helper.GetInt(e.CurrentRow["UseForm"]))
                {
                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.Mask:
                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.OneNumber:
                    return(e.CurrentRow["Number"].ToString());

                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.RangeNumber:
                    return(string.Format("{0}", e.CurrentRow["Range"]));

                default:
                    return(string.Empty);
                }

            case "Type":
                return(Helper.GetString((Business.TypePrivateNumberAccesses)Helper.GetInt(e.CurrentRow["Type"])));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #4
0
 public string gridRoutes_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     switch (sender.FieldName)
     {
     case "Action":
         return(string.Format(@"<a href=""/PageLoader.aspx?c={0}&ActionType=edit&RouteGuid={1}&SmsAgentGuid={2}""><span class='ui-icon fa fa-pencil-square-o blue' title=""{3}""></span></a>",
                              Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_SmsSenderAgents_SaveRoute, Session),
                              e.CurrentRow["Guid"],
                              AgentGuid,
                              Language.GetString("Edit")));
     }
     return(Helper.GetString(e.CurrentRow[sender.FieldName]));
 }
        public string gridPhoneBookRegularContent_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Type":
                return(Language.GetString(((RegularContentType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));

            case "Action":
                return(string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onclick=""deleteRegularContent(event);""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #6
0
        public string gridPhoneBookFields_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format(@"<span class='ui-icon fa fa-pencil-square-o blue' onclick=""editField(event);"" title=""{0}""></span>",
                                     Language.GetString("Edit")) +

                       string.Format(@"<span class='ui-icon fa fa-trash-o red' onClick=""deleteField(event);"" title=""{0}""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #7
0
        public string gridUserMessage_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format(@"<img src=""{0}"" onclick=""editRow(event);"" class=""gridImageButton"" title=""{1}"" />
																 <img src=""{2}"" onclick=""deleteRow(event);"" class=""gridImageButton"" title=""{3}"" />"                                                                ,
                                     "/pic/edit.png",
                                     Language.GetString("Edit"),
                                     "/pic/REJECTED.png",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #8
0
        public string gridRegularContent_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Type":
                return(Language.GetString(((RegularContentType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));

            case "Period":
                string periodType = ((SmsSentPeriodType)Helper.GetInt(e.CurrentRow["PeriodType"])).ToString();
                return(string.Format("{0} {1} {2} {3}", Language.GetString("Every"), e.CurrentRow[sender.FieldName], Language.GetString("Per" + periodType), Language.GetString("Once")));

            case "WarningType":
                switch (Helper.GetInt(e.CurrentRow[sender.FieldName]))
                {
                case (int)WarningType.Email:
                case (int)WarningType.Sms:
                    return(Language.GetString("WarningType") + " " + Language.GetString(((WarningType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));

                default:
                    return("----------");
                }

            case "Action":
                string contentIcon = "<a href='{0}'><span class='ui-icon fa fa-plus green' title='{1}' style='{2}'></span></a>";
                switch (Helper.GetInt(e.CurrentRow["Type"]))
                {
                case (int)RegularContentType.File:
                    contentIcon = string.Format(contentIcon,
                                                string.Format("/PageLoader.aspx?c={0}&RegularContentGuid={1}", Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_RegularContents_Content, Session), e.CurrentRow["Guid"]),
                                                Language.GetString("ManageContent"),
                                                string.Empty);
                    break;

                default:
                    contentIcon = string.Format(contentIcon, "#", Language.GetString("ManageContent"), "opacity: 0.5;filter: Alpha(Opacity=20);");
                    break;
                }
                return(contentIcon +

                       string.Format(@"<a href=""/PageLoader.aspx?c={0}&ActionType=edit&Guid={1}""><span class='ui-icon fa fa-pencil-square-o blue' title=""{2}""></span></a>",
                                     Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_RegularContents_SaveRegularContent, Session),
                                     e.CurrentRow["Guid"],
                                     Language.GetString("Edit")) +

                       string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onclick=""deleteRegularContent(event);""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #9
0
        public string gridSmsTemplate_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format(@"<a href=""/PageLoader.aspx?c={0}&ActionType=edit&Guid={1}""><span class='ui-icon fa fa-pencil-square-o blue' title=""{2}""></span></a>",
                                     Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_SmsTemplates_SaveSmsTemplate, Session),
                                     e.CurrentRow["Guid"],
                                     Language.GetString("Edit")) +

                       string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteRow(event);""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #10
0
        public string gridGroupPrice_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format("<a href='{0}' class='btn btn-warning gridImageButton' title={1}>{1}</a>",
                                     string.Format("/PageLoader.aspx?c={0}&ActionType=edit&Guid={1}",
                                                   Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_GroupPrices_SaveGroupPrice, Session),
                                                   e.CurrentRow["Guid"]),
                                     Language.GetString("Edit")) +

                       string.Format("<a href='#' class='btn btn-danger gridImageButton' onclick='deleteRow(event);' title={0}>{0}</a>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
 public string gridAllNumbers_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     switch (sender.FieldName)
     {
     case "Sex":
         if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == 0)
         {
             return(string.Empty);
         }
         else
         {
             return(Language.GetString(Helper.GetString((Business.Gender)Helper.GetInt(e.CurrentRow[sender.FieldName]))));
         }
     }
     return(Helper.GetString(e.CurrentRow[sender.FieldName]));
 }
Пример #12
0
 public string gridSentBox_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     switch (sender.FieldName)
     {
     case "DeliveryStatus":
         if (e.CurrentRowGenerateType == RowGenerateType.Normal)
         {
             return(string.Format(@"<img src=""/pic/status{0}.png""  title=""{1}"" />",
                                  e.CurrentRow[sender.FieldName],
                                  Language.GetString(((DeliveryStatus)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString())));
         }
         else
         {
             return(Language.GetString(((DeliveryStatus)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));
         }
     }
     return(Helper.GetString(e.CurrentRow[sender.FieldName]));
 }
Пример #13
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        public TaskIchiranView() : base()
        {
            this.columnInfoMap = new Dictionary <int, DataGridColumnInfo>();

            var index = 0;
            var item1 = new DataGridColumnInfo(index, DataGridColumnType.Button, DataGridViewContentAlignment.MiddleCenter, 50, string.Empty, "完了");

            this.columnInfoMap.Add(index, item1);

            index++;
            var item2 = new DataGridColumnInfo(index, DataGridColumnType.Label, DataGridViewContentAlignment.MiddleLeft, 100, "グループ", string.Empty);

            this.columnInfoMap.Add(index, item2);

            index++;
            var item3 = new DataGridColumnInfo(index, DataGridColumnType.Label, DataGridViewContentAlignment.MiddleLeft, 100, "タイトル", string.Empty);

            this.columnInfoMap.Add(index, item3);

            index++;
            var item4 = new DataGridColumnInfo(index, DataGridColumnType.Label, DataGridViewContentAlignment.MiddleLeft, 80, "期限", string.Empty);

            this.columnInfoMap.Add(index, item4);

            index++;
            var item5 = new DataGridColumnInfo(index, DataGridColumnType.Label, DataGridViewContentAlignment.MiddleLeft, 400, "メモ", string.Empty);

            this.columnInfoMap.Add(index, item5);

            index++;
            var item6 = new DataGridColumnInfo(index, DataGridColumnType.Button, DataGridViewContentAlignment.MiddleCenter, 50, string.Empty, "編集");

            this.columnInfoMap.Add(index, item6);

            index++;
            var item7 = new DataGridColumnInfo(index, DataGridColumnType.Button, DataGridViewContentAlignment.MiddleCenter, 50, string.Empty, "削除");

            this.columnInfoMap.Add(index, item7);

            index++;
            var item8 = new DataGridColumnInfo(index, DataGridColumnType.Button, DataGridViewContentAlignment.MiddleCenter, 50, string.Empty, "複製");

            this.columnInfoMap.Add(index, item8);
        }
Пример #14
0
        public string gridAccountInformations_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Bank":
                return(Language.GetString(Helper.GetString((Banks)Helper.GetInt(e.CurrentRow[sender.FieldName]))));

            case "Action":
                return(string.Format("<a href='{0}' class='btn btn-warning gridImageButton'>{1}</a>",
                                     string.Format("/PageLoader.aspx?c={0}&Guid={1}&Actiontype=edit",
                                                   GeneralLibrary.Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_AccountInformations_SaveAccount, Session),
                                                   Helper.GetString(e.CurrentRow["Guid"])),
                                     Language.GetString("Edit")) +

                       string.Format("<a href='#' class='btn btn-danger gridImageButton' onclick='deleteRow(event);'>{0}</a>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #15
0
        public string gridUserTransaction_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "TypeCreditChange":
                return(Language.GetString(((TypeCreditChanges)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));

            case "TypeTransaction":
                if (e.CurrentRowGenerateType == RowGenerateType.Normal)
                {
                    if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)TypeTransactions.Increase)
                    {
                        return(string.Format(@"<span class='ui-icon fa fa-arrow-up green' title=""{0}""></span>", Language.GetString("Increase")));
                    }
                    else if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)Arad.SMS.Gateway.Business.TypeTransactions.Decrease)
                    {
                        return(string.Format(@"<span class='ui-icon fa fa-arrow-down red' title=""{0}""></span>", Language.GetString("Decrease")));
                    }
                }
                else
                {
                    return((Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)TypeTransactions.Increase) ? Language.GetString("Increase") : Language.GetString("Decrease"));
                }
                break;

            case "Action":
                string pattern = @"<a href=""/PageLoader.aspx?c={0}&ReferenceGuid={1}""><span class='{2}' title='{3}'></span></a>";
                switch (Helper.GetInt(e.CurrentRow["TypeCreditChange"]))
                {
                case (int)TypeCreditChanges.SendSms:
                case (int)TypeCreditChanges.GiveBackCostOfUnsuccessfulSent:
                    return(string.Format(pattern,
                                         Helper.Encrypt((int)UserControls.UI_SmsReports_OutBox, Session),
                                         Helper.Encrypt(e.CurrentRow["ReferenceGuid"], Session),
                                         "ui-icon fa fa-2x fa-external-link blue",
                                         Language.GetString("Details")));

                default:
                    return(string.Empty);
                }
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #16
0
        public string gridAccesses_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format(@"
																 <img src=""{0}"" onClick=""editRow(event);"" class=""gridImageButton"" title=""{1}""/>
																 <img src=""{2}"" onclick=""deleteRow(event);"" class=""gridImageButton"" title=""{3}""/>"                                                                ,
                                     "../Images/edit.png",
                                     Language.GetString("Edit"),
                                     "../Images/REJECTED.png",
                                     Language.GetString("Delete")
                                     ));

            case "ReferencePermissionsKey":
                return(Language.GetString(((Business.Permissions)e.CurrentRow[sender.FieldName]).ToString()));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #17
0
        public string gridInbox_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            string imgTagPattern = @"<a href=""/PageLoader.aspx?c={0}&ReferenceGuid={1}&MasterPage=inbox""><span class='{2}' title='{3}' style='margin:0 5px 0 0;'></span></a>";

            switch (sender.FieldName)
            {
            case "Action":
                return(string.Format(@"<span class='ui-icon fa fa-list' title=""{0}"" onClick=""sendToCategory(event);""></span>",
                                     Language.GetString("SendToCategory")) +

                       string.Format(imgTagPattern,
                                     Helper.Encrypt((int)UserControls.UI_SmsSends_SendSms, Session),
                                     Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                     "ui-icon fa fa-2x fa-share purple",
                                     Language.GetString("SendToOther")) +

                       string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteRow(event);""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #18
0
        public string gridNumbers_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Sex":
                if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == 0)
                {
                    return(string.Empty);
                }
                else
                {
                    return(Language.GetString(Helper.GetString((Gender)Helper.GetInt(e.CurrentRow[sender.FieldName]))));
                }

            case "Action":
                if (Type == (int)PhoneBookGroupType.Normal || (IsSuperAdmin && Type == (int)PhoneBookGroupType.Vas))
                {
                    return(string.Format(@"<a href=""/PageLoader.aspx?c={0}&ActionType=edit&PhoneNumberGuid={1}&PhoneBookGuid={2}&Type={3}"">
																	<span class='ui-icon fa fa-pencil-square-o blue' title=""{4}""></span>
																 </a>"                                                                ,
                                         Helper.Encrypt((int)UserControls.UI_PhoneBooks_SaveSingleNumber, Session),
                                         e.CurrentRow["Guid"],
                                         PhoneBookGuid,
                                         Type,
                                         Language.GetString("Edit")) +

                           string.Format(@"<span class='ui-icon fa fa-arrow-left blue' title=""{0}"" onClick=""transferNumber(event);""></span>",
                                         Language.GetString("Transfer")) +

                           string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteNumber(event);""></span>",
                                         Language.GetString("Delete")));
                }
                else
                {
                    return(string.Empty);
                }
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #19
0
        public string gridAgents_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "SmsSenderAgentReference":
                return(Language.GetString(((SmsSenderAgentReference)Helper.GetInt(e.CurrentRow["SmsSenderAgentReference"])).ToString()));

            case "Action":
                return(string.Format(@"<a href=""/PageLoader.aspx?c={0}&ActionType=edit&AgentGuid={1}""><span class='ui-icon fa fa-pencil-square-o blue' title=""{2}""></span></a>",
                                     Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_SmsSenderAgents_SaveSmsSenderAgent, Session),
                                     e.CurrentRow["Guid"],
                                     Language.GetString("Edit")) +
                       string.Format(@"<a href=""/PageLoader.aspx?c={0}&AgentGuid={1}""><span class='ui-icon fa fa-usd red' title=""{2}""></span></a>",
                                     Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_SmsSenderAgents_SmsSenderAgentRatio, Session),
                                     e.CurrentRow["Guid"],
                                     Language.GetString("Ratio")) +
                       string.Format(@"<a href=""/PageLoader.aspx?c={0}&AgentGuid={1}""><span class='ui-icon fa fa-arrows-alt purple' title=""{2}""></span></a>",
                                     Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_SmsSenderAgents_MessageRoute, Session),
                                     e.CurrentRow["Guid"],
                                     Language.GetString("Route")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #20
0
        public string gridActualUserDocument_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Action":
                if (Helper.GetInt(e.CurrentRow["Status"]) != (int)UserDocumentStatus.Confirmed)
                {
                    return(string.Format("<span class='ui-icon fa fa-trash-o red' title='{0}' onclick='deleteUserDocument(event);'></span>", Language.GetString("Delete")));
                }
                else
                {
                    return(string.Empty);
                }

            case "Document":
                return(string.Format("<a href='/userdocument/{0}' target='_blank'>{1}</a>",
                                     e.CurrentRow["Path"],
                                     Language.GetString(((UserDocumentType)Helper.GetInt(e.CurrentRow["DocumentId"])).ToString())));

            case "Status":
                switch (Helper.GetInt(e.CurrentRow["Status"]))
                {
                case (int)UserDocumentStatus.Confirmed:
                    return(string.Format("<span class='ui-icon fa fa-check green' title='{0}'></span>", Language.GetString("Confirmed")));

                case (int)UserDocumentStatus.Rejected:
                    return(string.Format("<span class='ui-icon fa fa-times red' title='{0}'></span>", Language.GetString("Rejected")));

                case (int)UserDocumentStatus.Checking:
                    return(string.Format("<img src='/pic/arrowsloader.gif' title='{0}'></span>", Language.GetString("Checking")));

                default:
                    return(string.Empty);
                }
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #21
0
        public string gridUserPrivateNumbers_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Number":
                switch (Helper.GetInt(e.CurrentRow["UseForm"]))
                {
                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.Mask:
                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.OneNumber:
                    return(e.CurrentRow["Number"].ToString());

                case (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.RangeNumber:
                    return(string.Format("{0}", e.CurrentRow["Range"]));

                default:
                    return(string.Empty);
                }

            case "Action":
                bool activeShare = true;
                if (Helper.GetInt(e.CurrentRow["UseForm"]) == (int)Arad.SMS.Gateway.Business.PrivateNumberUseForm.RangeNumber &&
                    e.CurrentRow["Number"].ToString() == string.Empty)
                {
                    activeShare = false;
                }

                return(string.Format(@"<span class='ui-icon fa fa-share-alt orange' title=""{0}"" onclick=""{1}"" style=""{2}""></span>",
                                     Language.GetString("Public"),
                                     activeShare ? "setPublic(event);" : string.Empty,
                                     activeShare ? string.Empty : "opacity: 0.5;filter: Alpha(Opacity=20);") +

                       string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteRow(event);""></span>",
                                     Language.GetString("Delete")));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #22
0
 public string gridAgentRatio_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     return(Helper.GetString(e.CurrentRow[sender.FieldName]));
 }
Пример #23
0
        public string gridUserScheduledSms_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            string imgTagPattern  = @"<a href=""/PageLoader.aspx?c={0}&ReferenceGuid={1}&UsersOutbox=0&MasterPage=usersqueue""><span class='{2}' title='{3}'></span></a>";
            bool   resendIsActive = true;

            switch (sender.FieldName)
            {
            case "Status":
                switch (Helper.GetInt(e.CurrentRow[sender.FieldName]))
                {
                case (int)ScheduledSmsStatus.Stored:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-floppy-o blue' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.Stored.ToString()))
                                                                                 : Language.GetString(SendStatus.Stored.ToString()));

                case (int)ScheduledSmsStatus.FailedExtract:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-times orange' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.FailedExtract.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.FailedExtract.ToString()));

                case (int)ScheduledSmsStatus.Extracted:
                case (int)ScheduledSmsStatus.Ready:
                case (int)ScheduledSmsStatus.Extracting:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<img onclick='#' src='{0}' title='{1}'/>", "/pic/arrowsloader.gif", Language.GetString(ScheduledSmsStatus.Ready.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.Ready.ToString()));

                case (int)ScheduledSmsStatus.Failed:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-times red' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.Failed.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.Failed.ToString()));

                case (int)ScheduledSmsStatus.WatingForConfirm:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-clock-o orange' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.WatingForConfirm.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.WatingForConfirm.ToString()));

                case (int)ScheduledSmsStatus.Confirmed:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-thumbs-o-up green' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.Confirmed.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.Confirmed.ToString()));

                case (int)ScheduledSmsStatus.Rejected:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                 ? string.Format(@"<span class='ui-icon fa fa-times red' title=""{0}""></span>", Language.GetString(ScheduledSmsStatus.Rejected.ToString()))
                                                                                 : Language.GetString(ScheduledSmsStatus.Rejected.ToString()));

                default:
                    return(Helper.GetString(e.CurrentRow[sender.FieldName]));
                }

            case "Action":
                string     actions = string.Empty;
                List <int> lstInvalidFailedTypeForResend = new List <int>()
                {
                    (int)SmsSendFailedType.None,
                    (int)SmsSendFailedType.SendError,
                    (int)SmsSendFailedType.SystemIsOutOfService,
                    (int)SmsSendFailedType.SmsTextIsFilter
                };

                if (lstInvalidFailedTypeForResend.Contains(Helper.GetInt(e.CurrentRow["SmsSendFaildType"])))
                {
                    resendIsActive = false;
                }


                if (Helper.GetInt(e.CurrentRow["Status"]) == (int)ScheduledSmsStatus.WatingForConfirm ||
                    Helper.GetInt(e.CurrentRow["Status"]) == (int)ScheduledSmsStatus.Rejected)
                {
                    actions += string.Format(@"<span class='ui-icon fa fa-thumbs-o-up green' title=""{0}"" onClick=""confirmBulk(event);""></span>",
                                             Language.GetString("Confirm"));

                    actions += string.Format(@"<span class='ui-icon fa fa-thumbs-o-down red' title=""{0}"" onClick=""rejectBulk(event);""></span>",
                                             Language.GetString("Reject"));
                }

                if (resendIsActive)
                {
                    actions += string.Format(@"<span class='ui-icon fa fa-arrow-circle-up red' title=""{0}"" onClick='resend(event);'></span>",
                                             Language.GetString("Resend"));
                }

                actions += string.Format(imgTagPattern,
                                         Helper.Encrypt((int)UserControls.UI_SmsSends_SendDetails, Session),
                                         Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                         "ui-icon fa fa-list-alt orange",
                                         Language.GetString("Details"));

                actions += string.Format(@"<span class='ui-icon fa fa-trash-o red' title=""{0}"" onClick=""deleteRow(event);""></span>",
                                         Language.GetString("Delete"));

                return(actions);

            case "TypeSend":
                return(Language.GetString(((SmsSendType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));

            case "SmsSendFaildType":
                return(Language.GetString(((SmsSendFailedType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #24
0
        public string gridUserFishes_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            switch (sender.FieldName)
            {
            case "Status":
                if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)FishStatus.Checking)
                {
                    return(string.Format(@"<img src=""{0}"" title=""{1}"" />", "/pic/indicator.gif", Language.GetString("Checking")));
                }
                else if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)FishStatus.Confirmed)
                {
                    return(string.Format(@"<img src=""{0}"" title=""{1}"" />", "/pic/FINISHED.png", Language.GetString("Confirmed")));
                }
                else if (Helper.GetInt(e.CurrentRow[sender.FieldName]) == (int)FishStatus.Rejected)
                {
                    return(string.Format(@"<img src=""{0}"" title=""{1}"" />", "/pic/REJECTED.png", Language.GetString("Rejected")));
                }
                else
                {
                    return(Helper.GetString(e.CurrentRow[sender.FieldName]));
                }

            case "Bank":
                if (Helper.GetInt(e.CurrentRow[sender.FieldName]) != 0)
                {
                    return(string.Format(@"<img src='/pic/{0}.png' alt=''/>", (Banks)Helper.GetInt(e.CurrentRow[sender.FieldName])));
                }
                else
                {
                    return(string.Empty);
                }

            case "Type":
                return(Language.GetString(Helper.GetString((TypeFish)Helper.GetInt(e.CurrentRow[sender.FieldName]))));

            case "Account":
                Business.Banks bank = (Banks)Enum.Parse(typeof(Banks), e.CurrentRow["Bank"].ToString());
                return(string.Format("{0}{1}{2}{1}{3}{1}{4}{1}{5}{1}{6}{1}{7}",
                                     Language.GetString("Bank"),
                                     Environment.NewLine,
                                     Language.GetString(bank.ToString()),
                                     Language.GetString("Account"),
                                     e.CurrentRow["AccountNo"],
                                     Language.GetString("CardNo"),
                                     e.CurrentRow["CardNo"],
                                     e.CurrentRow["Owner"]));

            case "Action":
                string imgTagPattern         = "<span onclick='{0}' class='{1}' title='{2}' style='{3}'/>";
                string notActiveElementStyle = "opacity: .20;filter: Alpha(Opacity=20);float:right;";
                int    status = Helper.GetInt(e.CurrentRow["Status"]);

                return(string.Format(imgTagPattern, ((status != (int)FishStatus.Checking || Helper.GetInt(e.CurrentRow["Type"]) == (int)TypeFish.OnLine) ? string.Empty : "confirmFish(event);"),
                                     "ui-icon fa fa-check green",
                                     Language.GetString("Confirm"),
                                     (status != (int)FishStatus.Checking || Helper.GetInt(e.CurrentRow["Type"]) == (int)TypeFish.OnLine) ? notActiveElementStyle : "float:right;") +
                       string.Format(imgTagPattern, ((status != (int)FishStatus.Checking || Helper.GetInt(e.CurrentRow["Type"]) == (int)TypeFish.OnLine) ? string.Empty : "rejectFish(event);"),
                                     "ui-icon fa fa-times red",
                                     Language.GetString("Reject"),
                                     (status != (int)FishStatus.Checking || Helper.GetInt(e.CurrentRow["Type"]) == (int)TypeFish.OnLine) ? notActiveElementStyle : "float:right;"));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #25
0
        public string gridUsers_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            string actions       = string.Empty;
            string imgTagPattern = "<span class='ui-icon {0}' onclick='{1}' title='{2}' style='{3}'></span>";

            switch (sender.FieldName)
            {
            case "UserType":
                if (e.CurrentRowGenerateType == RowGenerateType.Normal)
                {
                    return(string.Format(imgTagPattern,
                                         e.CurrentRow["UserType"].ToString().ToLower() == "agent" ? "fa fa-users green" : "fa fa-user red",
                                         string.Empty, Language.GetString(e.CurrentRow[sender.FieldName].ToString()), string.Empty));
                }

                else
                {
                    return(Language.GetString(e.CurrentRow[sender.FieldName].ToString()));
                }

            case "UserName":
                if (e.CurrentRowGenerateType == RowGenerateType.Normal)
                {
                    return(string.Format("<a href='#' onclick=\"goToUsersPanel('{0}', '{1}')\">{2}</a>", Helper.Encrypt(e.CurrentRow["Guid"], Session), Helper.Encrypt(e.CurrentRow["DomainGuid"], Session), Helper.GetString(e.CurrentRow["UserName"])));
                }
                else
                {
                    return(Language.GetString(e.CurrentRow[sender.FieldName].ToString()));
                }

            case "Action":
                string icon = "<a href='{0}'><span class='ui-icon {1}' title='{2}' style='{3}'></span></a>";

                string activeLink = "/PageLoader.aspx?c=";

                string notActiveElementStyle = "opacity: 0.5;filter: Alpha(Opacity=20);";
                bool   isAdmin      = Helper.GetBool(e.CurrentRow["IsAdmin"]);
                bool   isMainAdmin  = Helper.GetBool(e.CurrentRow["IsMainAdmin"]);
                bool   isSuperAdmin = Helper.GetBool(e.CurrentRow["IsSuperAdmin"]);
                Guid   parentGuid   = Helper.GetGuid(e.CurrentRow["ParentGuid"]);
                int    maximumUser  = Helper.GetInt(e.CurrentRow["MaximumUser"]);

                actions +=
                    string.Format(icon,
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ViewUserTransaction) ? activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_Users_ViewUserTransaction, Session) + "&UserGuid=" + e.CurrentRow["Guid"] : "#",
                                  "fa fa-credit-card green",
                                  Language.GetString("TransactionList"),
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ViewUserTransaction) ? string.Empty : notActiveElementStyle) +

                    string.Format(icon,
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ViewUserEditProfile) ? activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_Users_EditProfile, Session) + "&UserGuid=" + e.CurrentRow["Guid"] + "&EditUser=1" : "#",
                                  "fa fa-pencil blue",
                                  Language.GetString("Edit"),
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ViewUserEditProfile) ? string.Empty : notActiveElementStyle);

                if (Helper.GetGuid(e.CurrentRow["Guid"]) != UserGuid || isSuperAdmin)
                {
                    actions += string.Format(icon,
                                             SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.AdvancedEditUser) ? activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_Users_AdvanceEdit, Session) + "&UserGuid=" + e.CurrentRow["Guid"] + "&ParentGuid=" + e.CurrentRow["ParentGuid"] : "#",
                                             "fa fa-edit orange",
                                             Language.GetString("AdvanceEdit"),
                                             SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.AdvancedEditUser) ? string.Empty : notActiveElementStyle);
                }
                if (isMainAdmin && !isSuperAdmin)
                {
                    actions +=
                        string.Format(icon,
                                      SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.DefineUserGroupPrice) ? activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_Users_DetermineGroupPrice, Session) + "&UserGuid=" + e.CurrentRow["Guid"] + "&ParentGuid=" + e.CurrentRow["ParentGuid"] : "#",
                                      "fa fa-usd green",
                                      Language.GetString("GroupPrice"),
                                      SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.DefineUserGroupPrice) ? string.Empty : notActiveElementStyle);
                }
                actions +=
                    string.Format(icon,
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ConfirmUserDocument) ? activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_Users_ConfirmDocument, Session) + "&UserGuid=" + e.CurrentRow["Guid"] : "#",
                                  "fa fa-floppy-o purple",
                                  Language.GetString("UserDocument"),
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ConfirmUserDocument) ? string.Empty : notActiveElementStyle) +

                    string.Format(icon,
                                  (!(isMainAdmin && parentGuid == Guid.Empty) && SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.AssignPrivateNumberToUser) ?
                                   activeLink + Helper.Encrypt((int)Arad.SMS.Gateway.Business.UserControls.UI_PrivateNumbers_AssignPrivateNumberToUsers, Session) + "&UserGuid=" + e.CurrentRow["Guid"] + "&ParentGuid=" + e.CurrentRow["ParentGuid"] : "#"),
                                  "fa fa-sort-numeric-asc dark",
                                  Language.GetString("AssignNumberToUsers"),
                                  (!(isMainAdmin && parentGuid == Guid.Empty) && SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.AssignPrivateNumberToUser)) ? string.Empty : notActiveElementStyle) +

                    string.Format(imgTagPattern,
                                  "fa fa-trash-o red",
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ManageUser) ? "deleteUser(event);" : string.Empty,
                                  Language.GetString("Delete"),
                                  SecurityManager.HasServicePermission(UserGuid, (int)Arad.SMS.Gateway.Business.Services.ManageUser) ? string.Empty : notActiveElementStyle);

                return(actions);
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }
Пример #26
0
 public string gridRecipient_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
 {
     return(string.Empty);
 }
Пример #27
0
        public string gridUsersOutbox_OnDataRender(DataGridColumnInfo sender, CellValueRenderEventArgs e)
        {
            string imgTagPattern  = @"<a href=""/PageLoader.aspx?c={0}&ReferenceGuid={1}&UsersOutbox=1&MasterPage=usersoutbox""><span class='{2}' title='{3}'></span></a>";
            string rawPattern     = string.Empty;
            string exportData     = string.Empty;
            string exportTxt      = string.Empty;
            string confirmRequest = string.Empty;
            string actions        = string.Empty;

            switch ((ExportDataStatus)Helper.GetInt(e.CurrentRow["ExportDataStatus"]))
            {
            case ExportDataStatus.None:
                rawPattern = @"<span onclick='exportData(event)' class='{0}' title='{1}'></span>";
                exportData = string.Format(rawPattern,
                                           "ui-icon fa fa-2x fa-file-excel-o green",
                                           Language.GetString("ExportToExcel"));
                break;

            case ExportDataStatus.Get:
                rawPattern = @"<img onclick='#' src='{0}' title='{1}' style='cursor:pointer;'/>";
                exportData = string.Format(rawPattern,
                                           "/pic/arrowsloader.gif",
                                           Language.GetString("ExportToExcel"));
                break;

            case ExportDataStatus.Archived:
            case ExportDataStatus.Complete:
                rawPattern = @"<a href=""/Archives/{0}/{0}.xlsx""><span class='{1}' title='{2}'></span></a>";
                exportData = string.Format(rawPattern,
                                           e.CurrentRow["ID"],
                                           "ui-icon fa fa-2x fa-download dark",
                                           Language.GetString("Download"));
                break;
            }

            switch ((ExportDataStatus)Helper.GetInt(e.CurrentRow["ExportTxtStatus"]))
            {
            case ExportDataStatus.None:
                rawPattern = @"<span onclick='exportTxt(event)' class='{0}' title='{1}'></span>";
                exportTxt  = string.Format(rawPattern,
                                           "ui-icon fa fa-2x fa-file-text-o blue",
                                           Language.GetString("ExportToText"));
                break;

            case ExportDataStatus.Get:
                rawPattern = @"<img onclick='#' src='{0}' title='{1}' style='cursor:pointer;'/>";
                exportTxt  = string.Format(rawPattern,
                                           "/pic/arrowsloader.gif",
                                           Language.GetString("ExportToText"));
                break;

            case ExportDataStatus.Archived:
            case ExportDataStatus.Complete:
                rawPattern = @"<a href=""/Archives/{0}/{0}.{1}""><span class='{2}' title='{3}'></span></a>";
                exportTxt  = string.Format(rawPattern,
                                           e.CurrentRow["ID"],
                                           "txt",
                                           "ui-icon fa fa-2x fa-download dark",
                                           Language.GetString("Download"));
                break;
            }

            switch (sender.FieldName)
            {
            case "SendStatus":
                switch (Helper.GetInt(e.CurrentRow[sender.FieldName]))
                {
                case (int)SendStatus.Stored:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-floppy-o blue' title=""{0}""></span>", Language.GetString(SendStatus.Stored.ToString()))
                                                                                                         : Language.GetString(SendStatus.Stored.ToString()));

                case (int)SendStatus.WatingForSend:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-clock-o orange' title=""{0}""></span>", Language.GetString(SendStatus.WatingForSend.ToString()))
                                                                                                         : Language.GetString(SendStatus.WatingForSend.ToString()));

                case (int)SendStatus.WatingForConfirm:
                case (int)SendStatus.IsBeingSent:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<img onclick='#' src='{0}' title='{1}'/>", "/pic/arrowsloader.gif", Language.GetString(SendStatus.IsBeingSent.ToString()))
                                                                                                         : Language.GetString(SendStatus.IsBeingSent.ToString()));

                case (int)SendStatus.Sent:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-check green' title=""{0}""></span>", Language.GetString(SendStatus.Sent.ToString()))
                                                                                                         : Language.GetString(SendStatus.Sent.ToString()));

                case (int)SendStatus.SentAndGiveBackCredit:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-check-square green' title=""{0}""></span>", Language.GetString(SendStatus.SentAndGiveBackCredit.ToString()))
                                                                                                         : Language.GetString(SendStatus.SentAndGiveBackCredit.ToString()));

                case (int)SendStatus.Archived:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-archive purple' title=""{0}""></span>", Language.GetString(SendStatus.Archived.ToString()))
                                                                                                         : Language.GetString(SendStatus.Archived.ToString()));

                case (int)SendStatus.Archiving:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-archive purple' style='opacity: 0.5;' title=""{0}""></span>", Language.GetString(SendStatus.Archived.ToString()))
                                                                                                         : Language.GetString(SendStatus.Archiving.ToString()));

                case (int)SendStatus.ErrorInSending:
                    return(e.CurrentRowGenerateType == RowGenerateType.Normal
                                                                                                         ? string.Format(@"<span class='ui-icon fa fa-times red' title=""{0}""></span>", Language.GetString(SendStatus.ErrorInSending.ToString()))
                                                                                                         : Language.GetString(SendStatus.ErrorInSending.ToString()));

                default:
                    return(Helper.GetString(e.CurrentRow[sender.FieldName]));
                }

            case "Action":

                if (Helper.GetInt(e.CurrentRow["SendStatus"]) != (int)SendStatus.Archived)
                {
                    actions += string.Format(imgTagPattern,
                                             Helper.Encrypt((int)UserControls.UI_SmsReports_SentBox, Session),
                                             Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                             "ui-icon fa fa-2x fa-mobile blue",
                                             Language.GetString("Recipients"));
                }

                if (Helper.GetInt(e.CurrentRow["SendStatus"]) == (int)SendStatus.WatingForConfirm)
                {
                    actions += string.Format(@"<span class='ui-icon fa fa-thumbs-o-up green' title=""{0}"" onClick=""confirmOutboxBulk(event);""></span>",
                                             Language.GetString("Confirm"));
                }
                actions += exportData +

                           string.Format(imgTagPattern,
                                         Helper.Encrypt((int)UserControls.UI_Home, Session),
                                         Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                         "ui-icon fa fa-2x fa-line-chart orange",
                                         Language.GetString("ReportSend")) +

                           string.Format(imgTagPattern,
                                         Helper.Encrypt((int)UserControls.UI_Users_Transaction, Session),
                                         Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                         "ui-icon fa fa-2x fa-usd green",
                                         Language.GetString("Transaction")) +

                           string.Format(imgTagPattern,
                                         Helper.Encrypt((int)UserControls.UI_SmsSends_SendDetails, Session),
                                         Helper.Encrypt(e.CurrentRow["Guid"], Session),
                                         "ui-icon fa fa-list-alt orange",
                                         Language.GetString("Details"));                                                                                                                                                        //+

                //string.Format(imgTagPattern,
                //						 Helper.Encrypt((int)UserControls.UI_SmsReports_UpdateDeliveryStatus, Session),
                //						 Helper.Encrypt(e.CurrentRow["Guid"], Session),
                //						 "ui-icon fa fa-upload purple",
                //						 Language.GetString("UpdateDeliveryStatus")) +

                //string.Format(imgTagPattern,
                //						 Helper.Encrypt((int)UserControls.UI_SmsSends_SendSms, Session),
                //						 Helper.Encrypt(e.CurrentRow["Guid"], Session),
                //						 "ui-icon fa fa-2x fa-share red",
                //						 Language.GetString("SendToOther"));

                //exportTxt;

                return(actions);

            case "SmsSendType":
                return(Language.GetString(((SmsSendType)Helper.GetInt(e.CurrentRow[sender.FieldName])).ToString()));
            }
            return(Helper.GetString(e.CurrentRow[sender.FieldName]));
        }