)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Table (Ia.Ftn.Wa.Models.Maintenance)

Public general use code classes and xml files that we've compiled and used over the years:

    1: using Microsoft.AspNetCore.Mvc.Rendering;
    2: using MimeKit.Cryptography;
    3: using System.Text;
    4:  
    5: namespace Ia.Ftn.Wa.Models.Maintenance
    6: {
    7:     ////////////////////////////////////////////////////////////////////////////
    8:  
    9:     /// <summary publish="true">
   10:     ///
   11:     /// </summary>
   12:     /// 
   13:     /// <remarks> 
   14:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   15:     /// </remarks> 
   16:     public static class Table
   17:     {
   18:         ////////////////////////////////////////////////////////////////////////////
   19:  
   20:         /// <summary>
   21:         ///
   22:         /// </summary>
   23:         public static void ViewModel(ref Ia.Ftn.Wa.Models.Maintenance.TableViewModel tableViewModel)
   24:         {
   25:             // statisticallyObtainOntIdFromServiceRequestAddress
   26:             var list1 = (from s in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.SiteList
   27:                          where s.AreaSymbolList.Count > 0
   28:                          select s).ToList();
   29:             tableViewModel.SelectList1 = new SelectList(list1, "Id", "NameArabicName");
   30:  
   31:             // accessNameListInAreaBlock
   32:             var list2 = Ia.Ftn.Cl.Models.Data.Access.DistinctAccessKuwaitFtnAreaIdAndBlockDictionary.OrderBy(u => u.Value);
   33:             tableViewModel.SelectList2 = new SelectList(list2, "Key", "Value");
   34:  
   35:             // servicesWithinSiteWithAccessName
   36:             var list3 = (from s in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.SiteList where s.AreaSymbolList.Count > 0 select s).ToList();
   37:             tableViewModel.SelectList3 = new SelectList(list3, "Id", "NameArabicName");
   38:  
   39:             // servicesWithinAreaWithAccessName
   40:             var list4 = Ia.Ftn.Cl.Models.Data.Access.DistinctAccessKuwaitFtnAreaIdToNameArabicNameDictionary.OrderBy(u => u.Value);
   41:             tableViewModel.SelectList4 = new SelectList(list4, "Key", "Value");
   42:  
   43:             // servicesWithinDomainWithAccessName
   44:             var domainList = Ia.Ftn.Cl.Models.Data.Service.DomainList;
   45:             var list5 = domainList.ConvertAll(delegate (int i) { return i.ToString(); });
   46:  
   47:             list5.Sort();
   48:  
   49:             tableViewModel.SelectList5 = new SelectList(list5);
   50:  
   51:             // accessNamesWithinAreaWithoutServices
   52:             var list6 = Ia.Ftn.Cl.Models.Data.Access.DistinctAccessKuwaitFtnAreaIdToNameArabicNameDictionary.OrderBy(u => u.Value);
   53:             tableViewModel.SelectList6 = new SelectList(list6, "Key", "Value");
   54:  
   55:             // accessListInArea
   56:             var list7 = Ia.Ftn.Cl.Models.Data.Access.DistinctAccessKuwaitFtnAreaIdToNameArabicNameDictionary.OrderBy(u => u.Value); ;
   57:             tableViewModel.SelectList7 = new SelectList(list7, "Key", "Value");
   58:  
   59:             // servicesWithinOltWithAccessName
   60:             var list8 = Ia.Ftn.Cl.Models.Data.Access.DistinctAccessKuwaitFtnAreaIdToNameArabicNameDictionary.OrderBy(u => u.Value); ;
   61:             tableViewModel.SelectList8 = new SelectList(list8, "Key", "Value");
   62:  
   63:             // msanServiceDistribution
   64:             var dictionary9 = Ia.Ftn.Cl.Models.Data.Huawei.Default.MsanSiteToServiceCountDictionary();
   65:             var list9 = (from d in dictionary9 select new { d.Key.Id, d.Key.NameArabicName });
   66:             tableViewModel.SelectList9 = new SelectList(list9, "Id", "NameArabicName");
   67:  
   68:             // msanLicServiceDistribution
   69:             var dictionary10 = Ia.Ftn.Cl.Models.Data.Huawei.Default.MsanSiteToServiceCountDictionary();
   70:             var list10 = (from d in dictionary10 select new { d.Key.Id, d.Key.NameArabicName });
   71:             tableViewModel.SelectList10 = new SelectList(list10, "Id", "NameArabicName");
   72:  
   73:             // provisioningStateOfServicesWithinPstnSite
   74:             // note SiteDropDownList_DataBound
   75:             var list11 = (from s in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.PstnList select new { Id = s.Id, NameArabicName = s.Name + " (" + s.ArabicName + ")" }).ToList();
   76:             tableViewModel.SelectList11 = new SelectList(list11, "Id", "NameArabicName");
   77:  
   78:             // serviceRequestServiceServicesWithinOltWithAccessName
   79:             var list12 = (from ponGroup in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.PonGroupList select new { Value = ponGroup.Olt.Id, Text = ponGroup.Olt.EmsName }).ToList();
   80:             tableViewModel.SelectList12 = new SelectList(list12, "Value", "Text");
   81:         }
   82:  
   83:         ////////////////////////////////////////////////////////////////////////////
   84:  
   85:         /// <summary>
   86:         ///
   87:         /// </summary>
   88:         public static void Post(ref Ia.Ftn.Wa.Models.Maintenance.TableViewModel tableViewModel, string commandName)
   89:         {
   90:             StringBuilder stringBuilder;
   91:  
   92:             if (commandName == "statisticallyObtainOntIdFromServiceRequestAddress") // 1
   93:             {
   94:                 if (!string.IsNullOrEmpty(tableViewModel.SelectedValue1))
   95:                 {
   96:                     var siteId = int.Parse(tableViewModel.SelectedValue1);
   97:  
   98:                     var list = Ia.Ftn.Cl.Models.Data.Default.DifferentOntNameAndStatisticalOntNameList(siteId);
   99:  
  100:                     list = list.OrderBy(o => o.AccessName).ToList();
  101:  
  102:                     if (list.Count > 0)
  103:                     {
  104:                         stringBuilder = new StringBuilder(list.Count * 256);
  105:  
  106:                         var s = @"Service | CustomerAddress | AccessName | OntAddress | StatisticalAddress | Note";
  107:                         stringBuilder.AppendLine(s + "<br/>\r");
  108:  
  109:                         foreach (var statistic in list)
  110:                         {
  111:                             s = @"<a href=""find?input=" + statistic.Service + @""">" + statistic.Service + "</a>" + " | " + statistic.CustomerAddress + " | " + statistic.AccessName + " | " + statistic.OntAddress + " | " + statistic.StatisticalAddress + " | " + statistic.Note;
  112:  
  113:                             stringBuilder.AppendLine(s + "<br/>\r");
  114:                         }
  115:  
  116:                         tableViewModel.ListLiteral1 = stringBuilder.ToString().Trim();
  117:  
  118:                         tableViewModel.CountLabel1 = "List count: " + list.Count;
  119:                     }
  120:                     else tableViewModel.CountLabel1 = "List count is zero.";
  121:                 }
  122:                 else
  123:                 {
  124:  
  125:                 }
  126:             }
  127:             else if (commandName == "accessNameListInAreaBlock") // 2
  128:             {
  129:                 if (!string.IsNullOrEmpty(tableViewModel.SelectedValue2))
  130:                 {
  131:                     int kuwaitFtnAreaId;
  132:                     string areaBlockId, areaIdString, blockString;
  133:  
  134:                     areaBlockId = tableViewModel.SelectedValue2;
  135:  
  136:                     areaIdString = areaBlockId.Split(',')[0].ToString();
  137:                     blockString = areaBlockId.Split(',')[1].ToString();
  138:  
  139:                     if (int.TryParse(areaIdString, out kuwaitFtnAreaId) && !string.IsNullOrEmpty(blockString))
  140:                     {
  141:                         AAAAAAAA(ref tableViewModel, kuwaitFtnAreaId, blockString);
  142:                     }
  143:                     else
  144:                     {
  145:                     }
  146:                 }
  147:                 else
  148:                 {
  149:                 }
  150:             }
  151:             else if (commandName == "servicesWithinSiteWithAccessName") // 3
  152:             {
  153:                 if (!string.IsNullOrEmpty(tableViewModel.SelectedValue3))
  154:                 {
  155:                     var siteId = int.Parse(tableViewModel.SelectedValue3);
  156:  
  157:                     var list = Ia.Ftn.Cl.Models.Data.Service2.ServiceOntBySiteIdList(siteId);
  158:                     list = list.OrderBy(s0 => s0.AccessId).ToList();
  159:  
  160:                     if (list.Count > 0)
  161:                     {
  162:                         stringBuilder = new StringBuilder(list.Count);
  163:  
  164:                         stringBuilder.Append("\r\n");
  165:  
  166:                         var dictionary = new Dictionary<string, List<string>>();
  167:  
  168:                         dictionary["MSAN"] = new List<string>();
  169:                         dictionary["Unknown"] = new List<string>();
  170:  
  171:                         foreach (var serviceOnt in list)
  172:                         {
  173:                             if (!string.IsNullOrEmpty(serviceOnt.AccessId))
  174:                             {
  175:                                 if (serviceOnt.Ont.Access.Name != null)
  176:                                 {
  177:                                     var accessName = serviceOnt.Ont.Access.Name;
  178:  
  179:                                     if (!dictionary.ContainsKey(accessName)) dictionary[accessName] = new List<string>();
  180:  
  181:                                     if (dictionary[accessName] == null) dictionary[accessName] = new List<string>();
  182:  
  183:                                     dictionary[accessName].Add(serviceOnt.Service);
  184:                                 }
  185:                                 else
  186:                                 {
  187:                                     dictionary["Unknown"].Add(serviceOnt.Service);
  188:                                 }
  189:                             }
  190:                             else
  191:                             {
  192:                                 dictionary["MSAN"].Add(serviceOnt.Service);
  193:                             }
  194:                         }
  195:  
  196:                         foreach (var kvp in dictionary.OrderBy(u => u.Key == "Unknown" || u.Key == "MSAN").ThenBy(u => u.Key))
  197:                         {
  198:                             var s = @"<a href=""find.aspx?input=" + kvp.Key + @""">" + kvp.Key + "</a>: " + string.Join(", ", kvp.Value);
  199:  
  200:                             stringBuilder.Append(s + "\r\n<br/>");
  201:                         }
  202:  
  203:                         tableViewModel.ListLiteral3 = stringBuilder.ToString().Trim();
  204:  
  205:                         tableViewModel.CountLabel3 = "List count: " + list.Count;
  206:                     }
  207:                     else tableViewModel.CountLabel3 = "List count is zero.";
  208:                 }
  209:                 else if (commandName == "servicesWithinAreaWithAccessName") // 4
  210:                 {
  211:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue4))
  212:                     {
  213:                         var areaId = int.Parse(tableViewModel.SelectedValue4);
  214:  
  215:                         var list = Ia.Ftn.Cl.Models.Data.Service2.ServiceOntByAreaIdList(areaId);
  216:                         list = list.OrderBy(s0 => s0.AccessId).ToList();
  217:  
  218:                         if (list.Count > 0)
  219:                         {
  220:                             stringBuilder = new StringBuilder(list.Count);
  221:  
  222:                             stringBuilder.Append("\r\n");
  223:  
  224:                             var dictionary = new Dictionary<string, List<string>>();
  225:  
  226:                             dictionary["Unknown"] = new List<string>();
  227:  
  228:                             foreach (var serviceOnt in list)
  229:                             {
  230:                                 if (serviceOnt.Ont != null)
  231:                                 {
  232:                                     if (serviceOnt.Ont.Access.Name != null)
  233:                                     {
  234:                                         var accessName = serviceOnt.Ont.Access.Name;
  235:  
  236:                                         if (!dictionary.ContainsKey(accessName)) dictionary[accessName] = new List<string>();
  237:  
  238:                                         if (dictionary[accessName] == null) dictionary[accessName] = new List<string>();
  239:  
  240:                                         dictionary[accessName].Add(serviceOnt.Service);
  241:                                     }
  242:                                     else
  243:                                     {
  244:                                         dictionary["Unknown"].Add(serviceOnt.Service);
  245:                                     }
  246:                                 }
  247:                                 else
  248:                                 {
  249:                                 }
  250:                             }
  251:  
  252:                             foreach (var kvp in dictionary.OrderBy(u => u.Key == "Unknown").ThenBy(u => u.Key))
  253:                             {
  254:                                 var s = @"<a href=""find.aspx?input=" + kvp.Key + @""">" + kvp.Key + "</a>: " + string.Join(", ", kvp.Value);
  255:  
  256:                                 stringBuilder.Append(s + "\r\n<br/>");
  257:                             }
  258:  
  259:                             tableViewModel.ListLiteral4 = stringBuilder.ToString().Trim();
  260:  
  261:                             tableViewModel.CountLabel4 = "List count: " + list.Count;
  262:                         }
  263:                         else tableViewModel.CountLabel4 = "List count is zero.";
  264:                     }
  265:                     else
  266:                     {
  267:  
  268:                     }
  269:                 }
  270:                 else if (commandName == "servicesWithinDomainWithAccessName") // 5
  271:                 {
  272:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue5))
  273:                     {
  274:                         var domain = tableViewModel.SelectedValue5;
  275:  
  276:                         var list = Ia.Ftn.Cl.Models.Data.Service2.ServiceOntByDomainList(domain);
  277:                         list = list.OrderBy(s0 => s0.AccessId).ToList();
  278:  
  279:                         if (list.Count > 0)
  280:                         {
  281:                             stringBuilder = new StringBuilder(list.Count);
  282:  
  283:                             stringBuilder.Append("\r\n");
  284:  
  285:                             var dictionary = new Dictionary<string, List<string>>();
  286:  
  287:                             dictionary["Unknown"] = new List<string>();
  288:  
  289:                             foreach (var serviceOnt in list)
  290:                             {
  291:                                 if (serviceOnt.Ont != null)
  292:                                 {
  293:                                     if (serviceOnt.Ont.Access.Name != null)
  294:                                     {
  295:                                         var accessName = serviceOnt.Ont.Access.Name;
  296:  
  297:                                         if (!dictionary.ContainsKey(accessName)) dictionary[accessName] = new List<string>();
  298:  
  299:                                         if (dictionary[accessName] == null) dictionary[accessName] = new List<string>();
  300:  
  301:                                         dictionary[accessName].Add(serviceOnt.Service);
  302:                                     }
  303:                                     else
  304:                                     {
  305:                                         dictionary["Unknown"].Add(serviceOnt.Service);
  306:                                     }
  307:                                 }
  308:                                 else
  309:                                 {
  310:                                 }
  311:                             }
  312:  
  313:                             foreach (var kvp in dictionary.OrderBy(u => u.Key == "Unknown").ThenBy(u => u.Key))
  314:                             {
  315:                                 var s = @"<a href=""find.aspx?input=" + kvp.Key + @""">" + kvp.Key + "</a>: " + string.Join(", ", kvp.Value);
  316:  
  317:                                 stringBuilder.Append(s + "\r\n<br/>");
  318:                             }
  319:  
  320:                             tableViewModel.ListLiteral5 = stringBuilder.ToString().Trim();
  321:  
  322:                             tableViewModel.CountLabel5 = "List count: " + list.Count;
  323:                         }
  324:                         else tableViewModel.CountLabel5 = "List count is zero.";
  325:                     }
  326:                     else
  327:                     {
  328:  
  329:                     }
  330:                 }
  331:                 else if (commandName == "accessNamesWithinAreaWithoutServices") // 6
  332:                 {
  333:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue6))
  334:                     {
  335:                         var areaId = int.Parse(tableViewModel.SelectedValue6);
  336:  
  337:                         stringBuilder = new StringBuilder();
  338:                         stringBuilder.Append("\r\n");
  339:  
  340:                         var list = Ia.Ftn.Cl.Models.Data.Access.AccessNamesWithoutServicesByKuwaitFtnAreaId(areaId);
  341:  
  342:                         if (list.Count > 0)
  343:                         {
  344:                             foreach (var u in list)
  345:                             {
  346:                                 var s = @"<a href=""find.aspx?input=" + u + @""">" + u + "</a> ";
  347:  
  348:                                 stringBuilder.Append(s);
  349:                             }
  350:  
  351:                             tableViewModel.ListLiteral6 = stringBuilder.ToString().Trim();
  352:  
  353:                             tableViewModel.CountLabel6 = "List count: " + list.Count;
  354:                         }
  355:                         else tableViewModel.CountLabel6 = "List count is zero.";
  356:                     }
  357:                     else
  358:                     {
  359:  
  360:                     }
  361:                 }
  362:                 else if (commandName == "accessListInArea") // 7
  363:                 {
  364:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue7))
  365:                     {
  366:                         var kuwaitFtnAreaId = int.Parse(tableViewModel.SelectedValue7);
  367:  
  368:                         var list = Ia.Ftn.Cl.Models.Data.Access.NameListByKuwaitFtnAreaId(kuwaitFtnAreaId);
  369:  
  370:                         if (list.Count > 0)
  371:                         {
  372:                             stringBuilder = new StringBuilder(list.Count * 32);
  373:  
  374:                             foreach (var accessName in list)
  375:                             {
  376:                                 var s = @"<a href=""find.aspx?input=" + accessName + @""">" + accessName + "</a>";
  377:  
  378:                                 stringBuilder.AppendLine(s + " ");
  379:                             }
  380:  
  381:                             tableViewModel.ListLiteral7 = stringBuilder.ToString().Trim();
  382:  
  383:                             tableViewModel.CountLabel7 = "List count: " + list.Count;
  384:                         }
  385:                         else tableViewModel.CountLabel7 = "List count is zero.";
  386:                     }
  387:                 }
  388:                 else if (commandName == "servicesWithinOltWithAccessName") // 8
  389:                 {
  390:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue8))
  391:                     {
  392:                     }
  393:                 }
  394:                 else if (commandName == "msanServiceDistribution") // 9
  395:                 {
  396:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue9))
  397:                     {
  398:                         var siteId = int.Parse(tableViewModel.SelectedValue9);
  399:  
  400:                         var list = Ia.Ftn.Cl.Models.Data.Huawei.Default.MsanServiceListBySiteId(siteId);
  401:  
  402:                         if (list.Count > 0)
  403:                         {
  404:                             stringBuilder = new StringBuilder(list.Count);
  405:  
  406:                             stringBuilder.Append("\r\n");
  407:  
  408:                             foreach (var l in list)
  409:                             {
  410:                                 var u = @"<a href=""find.aspx?input=" + l + @""">" + l + "</a>\t";
  411:  
  412:                                 stringBuilder.Append(u + "\r\n");
  413:                             }
  414:  
  415:                             stringBuilder.Remove(stringBuilder.Length - 2, 2);
  416:  
  417:                             tableViewModel.ListLiteral9 = stringBuilder.ToString();
  418:                         }
  419:                         else tableViewModel.ListLiteral9 = "Count is zero.";
  420:                     }
  421:                     else
  422:                     {
  423:  
  424:                     }
  425:                 }
  426:                 else if (commandName == "msanLicServiceDistribution") // 10
  427:                 {
  428:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue10))
  429:                     {
  430:                         var siteId = int.Parse(tableViewModel.SelectedValue10);
  431:  
  432:                         var site = (from s in Ia.Ftn.Cl.Models.Data.NetworkDesignDocument.SiteList where s.Id == siteId select s).Single();
  433:  
  434:                         var msan = site.Msans.First();
  435:  
  436:                         var dic = Ia.Ftn.Cl.Models.Data.Huawei.Default.MsanDevLicCabinetFrameSnPnTextStringToServiceByMsanDictionary(msan);
  437:  
  438:                         if (dic.Count > 0)
  439:                         {
  440:                             stringBuilder = new StringBuilder(dic.Count * 64);
  441:  
  442:                             foreach (var kvp in dic)
  443:                             {
  444:                                 var u = kvp.Key + ": " + @"<a href=""find.aspx?input=" + kvp.Value + @""">" + kvp.Value + "</a>";
  445:  
  446:                                 stringBuilder.Append(u + "<br/>");
  447:                             }
  448:  
  449:                             tableViewModel.ListLiteral10 = stringBuilder.ToString();
  450:                         }
  451:                         else tableViewModel.ListLiteral10 = "Count is zero.";
  452:                     }
  453:                     else
  454:                     {
  455:  
  456:                     }
  457:                 }
  458:                 else if (commandName == "provisioningStateOfServicesWithinPstnSite") // 11
  459:                 {
  460:                     if (!string.IsNullOrEmpty(tableViewModel.SelectedValue11))
  461:                     {
  462:                         var siteId = int.Parse(tableViewModel.SelectedValue11);
  463:  
  464:                         Ia.Ftn.Cl.Models.Data.Service2.ProvisioningStateOfServicesWithinPstnSite(siteId, out List<string> provisionedServiceList, out List<string> unprovisionedServiceList);
  465:  
  466:                         if (provisionedServiceList.Count > 0 && unprovisionedServiceList.Count > 0)
  467:                         {
  468:                             stringBuilder = new StringBuilder(provisionedServiceList.Count);
  469:  
  470:                             stringBuilder.Append("\r\n");
  471:                             stringBuilder.Append("Provisioned service list تعمل (" + provisionedServiceList.Count + "):<br/>\r\n");
  472:                             stringBuilder.Append("\r\n");
  473:  
  474:                             foreach (var service in provisionedServiceList)
  475:                             {
  476:                                 var s = @"<a href=""find.aspx?input=" + service + @""">" + service + "</a>";
  477:  
  478:                                 stringBuilder.AppendLine(s);
  479:                             }
  480:  
  481:                             stringBuilder.Append("<br/><br/>\r\n");
  482:  
  483:                             stringBuilder.Append("\r\n");
  484:                             stringBuilder.Append("Unprovisioned service list مرفوعة (" + unprovisionedServiceList.Count + "):<br/>\r\n");
  485:                             stringBuilder.Append("\r\n");
  486:  
  487:                             foreach (var service in unprovisionedServiceList)
  488:                             {
  489:                                 var s = @"<a href=""find.aspx?input=" + service + @""">" + service + "</a>";
  490:  
  491:                                 stringBuilder.AppendLine(s);
  492:                             }
  493:  
  494:                             tableViewModel.ListLiteral11 = stringBuilder.ToString().Trim();
  495:  
  496:                             tableViewModel.CountLabel11 = "Total count: " + (provisionedServiceList.Count + unprovisionedServiceList.Count);
  497:                         }
  498:                         else tableViewModel.CountLabel11 = "List count is zero.";
  499:                     }
  500:                     else if (commandName == "serviceRequestServiceServicesWithinOltWithAccessName") // 12
  501:                     {
  502:                         if (!string.IsNullOrEmpty(tableViewModel.SelectedValue12))
  503:                         {
  504:                             var oltId = int.Parse(tableViewModel.SelectedValue12);
  505:  
  506:                             List<Ia.Ftn.Cl.Models.ServiceRequestService> list;
  507:  
  508:                             list = Ia.Ftn.Cl.Models.Data.ServiceRequestService.WithinOltList(oltId).OrderBy(srs => srs.Service).ToList();
  509:  
  510:                             if (list.Count > 0)
  511:                             {
  512:                                 stringBuilder = new StringBuilder(list.Count);
  513:  
  514:                                 foreach (var l in list)
  515:                                 {
  516:                                     var u = @"<a href=""find.aspx?input=" + l.Service + @""">" + l.Service + "</a> ";
  517:  
  518:                                     if (l.Access != null) u += @"<a href=""find.aspx?input=" + l.Access.Name + @""">" + l.Access.Name + "</a>";
  519:  
  520:                                     stringBuilder.Append(u + "<br/>");
  521:                                 }
  522:  
  523:                                 tableViewModel.ListLiteral12 = stringBuilder.ToString();
  524:                             }
  525:                             else tableViewModel.ListLiteral12 = "Count is zero.";
  526:                         }
  527:                         else tableViewModel.ListLiteral12 = "Count is zero.";
  528:                     }
  529:                     else
  530:                     {
  531:  
  532:                     }
  533:                 }
  534:                 else
  535:                 {
  536:                 }
  537:             }
  538:         }
  539:  
  540:         ////////////////////////////////////////////////////////////////////////////
  541:  
  542:         /// <summary>
  543:         ///
  544:         /// </summary>
  545:         private static void AAAAAAAA(ref Ia.Ftn.Wa.Models.Maintenance.TableViewModel tableViewModel, int kuwaitFtnAreaId, string block)
  546:         {
  547:             string s;
  548:             StringBuilder stringBuilder;
  549:             List<string> list;
  550:  
  551:             list = Ia.Ftn.Cl.Models.Data.Access.ReadAccessNameListByKuwaitFtnAreaIdAndBlock(kuwaitFtnAreaId, block);
  552:  
  553:             if (list.Count > 0)
  554:             {
  555:                 stringBuilder = new StringBuilder(list.Count * 32);
  556:  
  557:                 foreach (var accessName in list)
  558:                 {
  559:                     s = @"<a href=""find.aspx?input=" + accessName + @""">" + accessName + "</a>";
  560:  
  561:                     stringBuilder.AppendLine(s + " ");
  562:                 }
  563:  
  564:                 tableViewModel.ListLiteral2 = stringBuilder.ToString().Trim();
  565:  
  566:                 tableViewModel.CountLabel2 = "List count: " + list.Count;
  567:             }
  568:             else tableViewModel.CountLabel2 = "List count is zero.";
  569:         }
  570:  
  571:         ////////////////////////////////////////////////////////////////////////////
  572:         ////////////////////////////////////////////////////////////////////////////
  573:  
  574:  
  575:  
  576:  
  577:  
  578:  
  579:         ////////////////////////////////////////////////////////////////////////////
  580:         ////////////////////////////////////////////////////////////////////////////
  581:     }
  582:  
  583:     ////////////////////////////////////////////////////////////////////////////
  584:     ////////////////////////////////////////////////////////////////////////////
  585: }