Line 1: #pragma checksum "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "CA166405AAEDFC8BCD7F13C5CB148300441A4749"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Optimization;
Line 27: using System.Web.Routing;
Line 28: using Calabonga.Mvc.PagedListExt;
Line 29:
Line 30: #line 7 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 31: using PagedList.Mvc;
Line 32:
Line 33: #line default
Line 34: #line hidden
Line 35:
Line 36: #line 8 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 37: using PagedList;
Line 38:
Line 39: #line default
Line 40: #line hidden
Line 41:
Line 42:
Line 43: public class _Page_Views_UserSupport_Index_cshtml : System.Web.Mvc.WebViewPage<IEnumerable<MandAsoftMVC.Models.vwUserSupport>> {
Line 44:
Line 45: #line hidden
Line 46:
Line 47: public _Page_Views_UserSupport_Index_cshtml() {
Line 48: }
Line 49:
Line 50: protected ASP.global_asax ApplicationInstance {
Line 51: get {
Line 52: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 53: }
Line 54: }
Line 55:
Line 56: public override void Execute() {
Line 57:
Line 58: #line 3 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 59:
Line 60: ViewBag.Title = "My Support Cases";
Line 61:
Line 62:
Line 63: #line default
Line 64: #line hidden
Line 65: WriteLiteral("\r\n\r\n");
Line 66:
Line 67: WriteLiteral("\r\n\r\n");
Line 68:
Line 69: DefineSection("CSS", () => {
Line 70:
Line 71: WriteLiteral("\r\n<style");
Line 72:
Line 73: WriteLiteral(" type=\"text/css\"");
Line 74:
Line 75: WriteLiteral(@">
Line 76: #grdHistory {table-layout:fixed; word-wrap:break-word; width: 100%; }
Line 77: #grdHistory th { background-color:#AAC3E0; }
Line 78: #grdHistory td { text-align:center; height:26px; border: 1px solid white; margin:2px; padding:2px;}
Line 79: tr.alternate { background-color:#EEE8DE; }
Line 80: .actionCol { width: 100px; }
Line 81: .narrowCol { width: 50px; }
Line 82: .medCol { width: 75px; }
Line 83:
Line 84: .pagina ul { list-style: none; }
Line 85: .pagina li { float: left; margin-right:5px; }
Line 86: .pagina li.active { background-image:none; }
Line 87: .pagina li.active a {color: #c60;}
Line 88: .pagina li.active a:link {color: #c60;}
Line 89: .pagina li.active a:visited {color: #c60;}
Line 90: </style>
Line 91: ");
Line 92:
Line 93: });
Line 94:
Line 95: WriteLiteral("\r\n<h2>");
Line 96:
Line 97:
Line 98: #line 31 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 99: Write(ViewBag.Title);
Line 100:
Line 101:
Line 102: #line default
Line 103: #line hidden
Line 104: WriteLiteral("</h2>\r\n\r\n<p>\r\n");
Line 105:
Line 106: WriteLiteral(" ");
Line 107:
Line 108:
Line 109: #line 34 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 110: Write(Html.ActionLink("Create New Suppport Case", "Create"));
Line 111:
Line 112:
Line 113: #line default
Line 114: #line hidden
Line 115: WriteLiteral("\r\n</p>\r\n\r\n<table");
Line 116:
Line 117: WriteLiteral(" ID=\"grdHistory\"");
Line 118:
Line 119: WriteLiteral(">\r\n <tr>\r\n");
Line 120:
Line 121:
Line 122: #line 39 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 123:
Line 124:
Line 125: #line default
Line 126: #line hidden
Line 127:
Line 128: #line 39 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 129: if (ViewBag.userData.IsAdmin)
Line 130: {
Line 131:
Line 132:
Line 133: #line default
Line 134: #line hidden
Line 135: WriteLiteral(" <th>\r\n");
Line 136:
Line 137: WriteLiteral(" ");
Line 138:
Line 139:
Line 140: #line 42 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 141: Write(Html.DisplayNameFor(model => model.EmailAddress));
Line 142:
Line 143:
Line 144: #line default
Line 145: #line hidden
Line 146: WriteLiteral("\r\n </th>\r\n");
Line 147:
Line 148:
Line 149: #line 44 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 150: }
Line 151:
Line 152:
Line 153: #line default
Line 154: #line hidden
Line 155: WriteLiteral(" <th");
Line 156:
Line 157: WriteLiteral(" class=\"narrowCol\"");
Line 158:
Line 159: WriteLiteral(">\r\n");
Line 160:
Line 161: WriteLiteral(" ");
Line 162:
Line 163:
Line 164: #line 46 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 165: Write(Html.DisplayNameFor(model => model.Critical));
Line 166:
Line 167:
Line 168: #line default
Line 169: #line hidden
Line 170: WriteLiteral("\r\n </th>\r\n <th>\r\n");
Line 171:
Line 172: WriteLiteral(" ");
Line 173:
Line 174:
Line 175: #line 49 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 176: Write(Html.DisplayNameFor(model => model.Subject));
Line 177:
Line 178:
Line 179: #line default
Line 180: #line hidden
Line 181: WriteLiteral("\r\n </th>\r\n <th");
Line 182:
Line 183: WriteLiteral(" class=\"medCol\"");
Line 184:
Line 185: WriteLiteral(">\r\n");
Line 186:
Line 187: WriteLiteral(" ");
Line 188:
Line 189:
Line 190: #line 52 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 191: Write(Html.DisplayNameFor(model => model.DateCreated));
Line 192:
Line 193:
Line 194: #line default
Line 195: #line hidden
Line 196: WriteLiteral("\r\n </th>\r\n <th");
Line 197:
Line 198: WriteLiteral(" class=\"narrowCol\"");
Line 199:
Line 200: WriteLiteral(">\r\n");
Line 201:
Line 202: WriteLiteral(" ");
Line 203:
Line 204:
Line 205: #line 55 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 206: Write(Html.DisplayNameFor(model => model.SupportStatus));
Line 207:
Line 208:
Line 209: #line default
Line 210: #line hidden
Line 211: WriteLiteral("\r\n </th>\r\n <th");
Line 212:
Line 213: WriteLiteral(" class=\"medCol\"");
Line 214:
Line 215: WriteLiteral(">\r\n");
Line 216:
Line 217: WriteLiteral(" ");
Line 218:
Line 219:
Line 220: #line 58 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 221: Write(Html.DisplayNameFor(model => model.LastStatusDate));
Line 222:
Line 223:
Line 224: #line default
Line 225: #line hidden
Line 226: WriteLiteral("\r\n </th>\r\n <th>\r\n");
Line 227:
Line 228: WriteLiteral(" ");
Line 229:
Line 230:
Line 231: #line 61 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 232: Write(Html.DisplayNameFor(model => model.SupportType));
Line 233:
Line 234:
Line 235: #line default
Line 236: #line hidden
Line 237: WriteLiteral("\r\n </th>\r\n");
Line 238:
Line 239:
Line 240: #line 63 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 241:
Line 242:
Line 243: #line default
Line 244: #line hidden
Line 245:
Line 246: #line 63 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 247: if (ViewBag.userData.IsAdmin)
Line 248: {
Line 249:
Line 250:
Line 251: #line default
Line 252: #line hidden
Line 253: WriteLiteral(" <th");
Line 254:
Line 255: WriteLiteral(" class=\"narrowCol\"");
Line 256:
Line 257: WriteLiteral(">\r\n");
Line 258:
Line 259: WriteLiteral(" ");
Line 260:
Line 261:
Line 262: #line 66 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 263: Write(Html.DisplayNameFor(model => model.Deleted));
Line 264:
Line 265:
Line 266: #line default
Line 267: #line hidden
Line 268: WriteLiteral("\r\n </th>\r\n");
Line 269:
Line 270:
Line 271: #line 68 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 272: }
Line 273:
Line 274:
Line 275: #line default
Line 276: #line hidden
Line 277: WriteLiteral(" <th");
Line 278:
Line 279: WriteLiteral(" class=\"actionCol\"");
Line 280:
Line 281: WriteLiteral("></th>\r\n </tr>\r\n\r\n");
Line 282:
Line 283:
Line 284: #line 72 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 285: foreach (var item in Model)
Line 286: {
Line 287: PagedList.PagedList<MandAsoftMVC.Models.vwUserSupport> test = (PagedList.PagedList<MandAsoftMVC.Models.vwUserSupport>)Model;
Line 288: IList<MandAsoftMVC.Models.vwUserSupport> lst = test.ToList<MandAsoftMVC.Models.vwUserSupport>();
Line 289:
Line 290: int index = lst.IndexOf(item);
Line 291: string sRowClass = (index % 2 == 0 ? "" : "alternate");
Line 292:
Line 293:
Line 294: #line default
Line 295: #line hidden
Line 296: WriteLiteral(" <tr");
Line 297:
Line 298: WriteAttribute("class", Tuple.Create(" class=\"", 2315), Tuple.Create("\"", 2333)
Line 299:
Line 300: #line 79 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 301: , Tuple.Create(Tuple.Create("", 2323), Tuple.Create<System.Object, System.Int32>(sRowClass
Line 302:
Line 303: #line default
Line 304: #line hidden
Line 305: , 2323), false)
Line 306: );
Line 307:
Line 308: WriteLiteral(">\r\n");
Line 309:
Line 310:
Line 311: #line 80 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 312:
Line 313:
Line 314: #line default
Line 315: #line hidden
Line 316:
Line 317: #line 80 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 318: if (ViewBag.userData.IsAdmin)
Line 319: {
Line 320:
Line 321:
Line 322: #line default
Line 323: #line hidden
Line 324: WriteLiteral(" <td>\r\n");
Line 325:
Line 326: WriteLiteral(" ");
Line 327:
Line 328:
Line 329: #line 83 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 330: Write(Html.DisplayFor(modelItem => item.EmailAddress));
Line 331:
Line 332:
Line 333: #line default
Line 334: #line hidden
Line 335: WriteLiteral("\r\n </td>\r\n");
Line 336:
Line 337:
Line 338: #line 85 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 339: }
Line 340:
Line 341:
Line 342: #line default
Line 343: #line hidden
Line 344: WriteLiteral(" <td>\r\n");
Line 345:
Line 346: WriteLiteral(" ");
Line 347:
Line 348:
Line 349: #line 87 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 350: Write(Html.DisplayFor(modelItem => item.Critical));
Line 351:
Line 352:
Line 353: #line default
Line 354: #line hidden
Line 355: WriteLiteral("\r\n </td>\r\n <td>\r\n");
Line 356:
Line 357: WriteLiteral(" ");
Line 358:
Line 359:
Line 360: #line 90 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 361: Write(Html.DisplayFor(modelItem => item.Subject));
Line 362:
Line 363:
Line 364: #line default
Line 365: #line hidden
Line 366: WriteLiteral("\r\n </td>\r\n <td>\r\n");
Line 367:
Line 368: WriteLiteral(" ");
Line 369:
Line 370:
Line 371: #line 93 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 372: Write(String.Format("{0:d}", item.DateCreated));
Line 373:
Line 374:
Line 375: #line default
Line 376: #line hidden
Line 377: WriteLiteral("\r\n </td>\r\n <td>\r\n");
Line 378:
Line 379: WriteLiteral(" ");
Line 380:
Line 381:
Line 382: #line 96 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 383: Write(Html.DisplayFor(modelItem => item.SupportStatus));
Line 384:
Line 385:
Line 386: #line default
Line 387: #line hidden
Line 388: WriteLiteral("\r\n </td>\r\n <td>\r\n");
Line 389:
Line 390: WriteLiteral(" ");
Line 391:
Line 392:
Line 393: #line 99 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 394: Write(String.Format("{0:d}", item.LastStatusDate));
Line 395:
Line 396:
Line 397: #line default
Line 398: #line hidden
Line 399: WriteLiteral("\r\n </td>\r\n <td>\r\n");
Line 400:
Line 401: WriteLiteral(" ");
Line 402:
Line 403:
Line 404: #line 102 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 405: Write(Html.DisplayFor(modelItem => item.SupportType));
Line 406:
Line 407:
Line 408: #line default
Line 409: #line hidden
Line 410: WriteLiteral("\r\n </td>\r\n");
Line 411:
Line 412:
Line 413: #line 104 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 414:
Line 415:
Line 416: #line default
Line 417: #line hidden
Line 418:
Line 419: #line 104 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 420: if (ViewBag.userData.IsAdmin)
Line 421: {
Line 422:
Line 423:
Line 424: #line default
Line 425: #line hidden
Line 426: WriteLiteral(" <td>\r\n");
Line 427:
Line 428: WriteLiteral(" ");
Line 429:
Line 430:
Line 431: #line 107 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 432: Write(Html.DisplayFor(modelItem => item.Deleted));
Line 433:
Line 434:
Line 435: #line default
Line 436: #line hidden
Line 437: WriteLiteral("\r\n </td>\r\n");
Line 438:
Line 439:
Line 440: #line 109 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 441: }
Line 442:
Line 443:
Line 444: #line default
Line 445: #line hidden
Line 446: WriteLiteral(" <td");
Line 447:
Line 448: WriteLiteral(" class=\"actionCol\"");
Line 449:
Line 450: WriteLiteral(">\r\n");
Line 451:
Line 452: WriteLiteral(" ");
Line 453:
Line 454:
Line 455: #line 111 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 456: Write(Html.ActionLink("Edit", "Edit", new { id=item.SupportID }));
Line 457:
Line 458:
Line 459: #line default
Line 460: #line hidden
Line 461: WriteLiteral(" |\r\n");
Line 462:
Line 463: WriteLiteral(" ");
Line 464:
Line 465:
Line 466: #line 112 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 467: Write(Html.ActionLink("Details", "Details", new { id=item.SupportID }));
Line 468:
Line 469:
Line 470: #line default
Line 471: #line hidden
Line 472: WriteLiteral(" |\r\n");
Line 473:
Line 474: WriteLiteral(" ");
Line 475:
Line 476:
Line 477: #line 113 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 478: Write(Html.ActionLink("Delete", "Delete", new { id=item.SupportID }));
Line 479:
Line 480:
Line 481: #line default
Line 482: #line hidden
Line 483: WriteLiteral("\r\n </td>\r\n </tr>\r\n");
Line 484:
Line 485:
Line 486: #line 116 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 487: }
Line 488:
Line 489:
Line 490: #line default
Line 491: #line hidden
Line 492: WriteLiteral("\r\n</table>\r\n<div");
Line 493:
Line 494: WriteLiteral(" class=\"pagina\"");
Line 495:
Line 496: WriteLiteral(">\r\n");
Line 497:
Line 498:
Line 499: #line 120 "E:\Inetpub\mandasoft\Views\UserSupport\Index.cshtml"
Line 500: Write(Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page = page }), new PagedListRenderOptions { DelimiterBetweenPageNumbers = "|" }));
Line 501:
Line 502:
Line 503: #line default
Line 504: #line hidden
Line 505: WriteLiteral("\r\n</div>\r\n");
Line 506:
Line 507: }
Line 508: }
Line 509: }
Line 510:
|