Line 1: #pragma checksum "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "31A1EBDC812AF2CBCABFCAF7882271E81DF25A91EF82DCA1943FD9C50809BB03"
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 Cokhithanhdat;
Line 29: using Helpers;
Line 30:
Line 31: #line 1 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 32: using Cokhithanhdat.Models;
Line 33:
Line 34: #line default
Line 35: #line hidden
Line 36:
Line 37: #line 2 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 38: using PagedList.Mvc;
Line 39:
Line 40: #line default
Line 41: #line hidden
Line 42:
Line 43:
Line 44: public class _Page_Views_Home_AllProducts_cshtml : System.Web.Mvc.WebViewPage<PagedList.IPagedList<Cokhithanhdat.Models.Product>> {
Line 45:
Line 46: #line hidden
Line 47:
Line 48: public _Page_Views_Home_AllProducts_cshtml() {
Line 49: }
Line 50:
Line 51: protected ASP.global_asax ApplicationInstance {
Line 52: get {
Line 53: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 54: }
Line 55: }
Line 56:
Line 57: public override void Execute() {
Line 58:
Line 59: #line 4 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 60:
Line 61: var config = (ConfigSite)HttpContext.Current.Application["ConfigSite"];
Line 62: var catname = "";
Line 63: var desc = "";
Line 64: switch (ViewBag.GroupId)
Line 65: {
Line 66: case 1:
Line 67: catname = "Sản phẩm Sản Xuất";
Line 68: desc = config.ProductSanxuat;
Line 69: break;
Line 70: case 2:
Line 71: catname = "Sản phẩm Nhập Khẩu";
Line 72: desc = config.ProductImport;
Line 73: break;
Line 74: }
Line 75:
Line 76: ViewBag.Title = "Sản phẩm sản xuất";
Line 77: ViewBag.Description = desc;
Line 78:
Line 79: ViewBag.Canonical =Request.Url?.GetLeftPart(UriPartial.Authority) + Url.Action("AllProducts");
Line 80:
Line 81:
Line 82: #line default
Line 83: #line hidden
Line 84: WriteLiteral("\r\n\r\n<div");
Line 85:
Line 86: WriteLiteral(" class=\"container\"");
Line 87:
Line 88: WriteLiteral(">\r\n <ul");
Line 89:
Line 90: WriteLiteral(" class=\"breadcrumb\"");
Line 91:
Line 92: WriteLiteral(">\r\n <li");
Line 93:
Line 94: WriteLiteral(" class=\"breadcrumb-item\"");
Line 95:
Line 96: WriteLiteral("><a");
Line 97:
Line 98: WriteLiteral(" href=\"/\"");
Line 99:
Line 100: WriteLiteral(">Trang chủ</a></li>\r\n <li");
Line 101:
Line 102: WriteLiteral(" class=\"breadcrumb-item\"");
Line 103:
Line 104: WriteLiteral("><a");
Line 105:
Line 106: WriteAttribute("href", Tuple.Create(" href=\"", 870), Tuple.Create("\"", 935)
Line 107:
Line 108: #line 29 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 109: , Tuple.Create(Tuple.Create("", 877), Tuple.Create<System.Object, System.Int32>(Url.Action("AllProducts", new{ groupId= ViewBag.GroupId})
Line 110:
Line 111: #line default
Line 112: #line hidden
Line 113: , 877), false)
Line 114: );
Line 115:
Line 116: WriteLiteral(">");
Line 117:
Line 118:
Line 119: #line 29 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 120: Write(catname);
Line 121:
Line 122:
Line 123: #line default
Line 124: #line hidden
Line 125: WriteLiteral("</a></li>\r\n </ul>\r\n <div");
Line 126:
Line 127: WriteLiteral(" class=\"row\"");
Line 128:
Line 129: WriteLiteral(">\r\n <div");
Line 130:
Line 131: WriteLiteral(" class=\"col-lg-3 col-12 d-none d-sm-inline\"");
Line 132:
Line 133: WriteLiteral(">\r\n");
Line 134:
Line 135: WriteLiteral(" ");
Line 136:
Line 137:
Line 138: #line 33 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 139: Write(Html.Action("RightProduct"));
Line 140:
Line 141:
Line 142: #line default
Line 143: #line hidden
Line 144: WriteLiteral("\r\n </div>\r\n <div");
Line 145:
Line 146: WriteLiteral(" class=\"col-lg-9 col-12\"");
Line 147:
Line 148: WriteLiteral(">\r\n <div");
Line 149:
Line 150: WriteLiteral(" class=\"box-title mb-4\"");
Line 151:
Line 152: WriteLiteral(">\r\n <h1>");
Line 153:
Line 154:
Line 155: #line 37 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 156: Write(catname);
Line 157:
Line 158:
Line 159: #line default
Line 160: #line hidden
Line 161: WriteLiteral("</h1>\r\n </div>\r\n\r\n");
Line 162:
Line 163:
Line 164: #line 40 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 165:
Line 166:
Line 167: #line default
Line 168: #line hidden
Line 169:
Line 170: #line 40 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 171: if (Model.Any())
Line 172: {
Line 173:
Line 174:
Line 175: #line default
Line 176: #line hidden
Line 177: WriteLiteral(" <div");
Line 178:
Line 179: WriteLiteral(" class=\"row gutters-5\"");
Line 180:
Line 181: WriteLiteral(">\r\n");
Line 182:
Line 183:
Line 184: #line 43 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 185:
Line 186:
Line 187: #line default
Line 188: #line hidden
Line 189:
Line 190: #line 43 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 191: foreach (var product in Model)
Line 192: {
Line 193:
Line 194:
Line 195: #line default
Line 196: #line hidden
Line 197: WriteLiteral(" <div");
Line 198:
Line 199: WriteLiteral(" class=\"col-lg-3 col-6 mb-4\"");
Line 200:
Line 201: WriteLiteral(">\r\n <figure");
Line 202:
Line 203: WriteLiteral(" class=\"item-product-grid\"");
Line 204:
Line 205: WriteLiteral(">\r\n");
Line 206:
Line 207:
Line 208: #line 47 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 209:
Line 210:
Line 211: #line default
Line 212: #line hidden
Line 213:
Line 214: #line 47 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 215: if (product.Image != null)
Line 216: {
Line 217:
Line 218:
Line 219: #line default
Line 220: #line hidden
Line 221: WriteLiteral(" <a");
Line 222:
Line 223: WriteAttribute("href", Tuple.Create(" href=\"", 1668), Tuple.Create("\"", 1722)
Line 224:
Line 225: #line 49 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 226: , Tuple.Create(Tuple.Create("", 1675), Tuple.Create<System.Object, System.Int32>(Url.Action("Product", new {url = product.Url})
Line 227:
Line 228: #line default
Line 229: #line hidden
Line 230: , 1675), false)
Line 231: );
Line 232:
Line 233: WriteLiteral(" class=\"hover-img\"");
Line 234:
Line 235: WriteLiteral(">\r\n <img");
Line 236:
Line 237: WriteAttribute("src", Tuple.Create(" src=\"", 1788), Tuple.Create("\"", 1879)
Line 238:
Line 239: #line 50 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 240: , Tuple.Create(Tuple.Create("", 1794), Tuple.Create<System.Object, System.Int32>(Path.Combine("/images/products/", product.Image.Split(',')[0])
Line 241:
Line 242: #line default
Line 243: #line hidden
Line 244: , 1794), false)
Line 245: , Tuple.Create(Tuple.Create("", 1857), Tuple.Create("?w=300&h=350&mode=crop", 1857), true)
Line 246: );
Line 247:
Line 248: WriteLiteral(" class=\"img-fluid\"");
Line 249:
Line 250: WriteAttribute("alt", Tuple.Create(" alt=\"", 1898), Tuple.Create("\"", 1917)
Line 251:
Line 252: #line 50 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 253: , Tuple.Create(Tuple.Create("", 1904), Tuple.Create<System.Object, System.Int32>(product.Name
Line 254:
Line 255: #line default
Line 256: #line hidden
Line 257: , 1904), false)
Line 258: );
Line 259:
Line 260: WriteLiteral(" />\r\n </a>\r\n");
Line 261:
Line 262:
Line 263: #line 52 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 264: }
Line 265:
Line 266:
Line 267: #line default
Line 268: #line hidden
Line 269: WriteLiteral(" ");
Line 270:
Line 271:
Line 272: #line 53 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 273: if (product.Icon == 1)
Line 274: {
Line 275:
Line 276:
Line 277: #line default
Line 278: #line hidden
Line 279: WriteLiteral(" <div");
Line 280:
Line 281: WriteLiteral(" class=\"new-icon\"");
Line 282:
Line 283: WriteLiteral(">NEW</div>\r\n");
Line 284:
Line 285:
Line 286: #line 56 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 287: }
Line 288: else if (product.Icon == 2)
Line 289: {
Line 290:
Line 291:
Line 292: #line default
Line 293: #line hidden
Line 294: WriteLiteral(" <div");
Line 295:
Line 296: WriteLiteral(" class=\"hot-icon\"");
Line 297:
Line 298: WriteLiteral(">HOT</div>\r\n");
Line 299:
Line 300:
Line 301: #line 60 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 302: }
Line 303:
Line 304:
Line 305: #line default
Line 306: #line hidden
Line 307: WriteLiteral(" <figcaption>\r\n " +
Line 308: " <h3><a");
Line 309:
Line 310: WriteAttribute("href", Tuple.Create(" href=\"", 2484), Tuple.Create("\"", 2538)
Line 311:
Line 312: #line 62 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 313: , Tuple.Create(Tuple.Create("", 2491), Tuple.Create<System.Object, System.Int32>(Url.Action("Product", new {url = product.Url})
Line 314:
Line 315: #line default
Line 316: #line hidden
Line 317: , 2491), false)
Line 318: );
Line 319:
Line 320: WriteLiteral(">");
Line 321:
Line 322:
Line 323: #line 62 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 324: Write(product.Name);
Line 325:
Line 326:
Line 327: #line default
Line 328: #line hidden
Line 329: WriteLiteral("</a></h3>\r\n <p");
Line 330:
Line 331: WriteLiteral(" class=\"price\"");
Line 332:
Line 333: WriteLiteral(">\r\n");
Line 334:
Line 335:
Line 336: #line 64 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 337:
Line 338:
Line 339: #line default
Line 340: #line hidden
Line 341:
Line 342: #line 64 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 343: if (product.SaleOff != null)
Line 344: {
Line 345:
Line 346:
Line 347: #line default
Line 348: #line hidden
Line 349:
Line 350: #line 66 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 351: Write(Html.DisplayFor(a => product.SaleOff));
Line 352:
Line 353:
Line 354: #line default
Line 355: #line hidden
Line 356:
Line 357: #line 66 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 358:
Line 359:
Line 360:
Line 361: #line default
Line 362: #line hidden
Line 363: WriteLiteral(" <sup>đ</sup>\r\n");
Line 364:
Line 365:
Line 366: #line 68 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 367: }
Line 368: else if (product.Price != null)
Line 369: {
Line 370:
Line 371:
Line 372: #line default
Line 373: #line hidden
Line 374:
Line 375: #line 71 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 376: Write(Html.DisplayFor(a => product.Price));
Line 377:
Line 378:
Line 379: #line default
Line 380: #line hidden
Line 381:
Line 382: #line 71 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 383:
Line 384:
Line 385:
Line 386: #line default
Line 387: #line hidden
Line 388: WriteLiteral(" <sup>đ</sup>\r\n");
Line 389:
Line 390:
Line 391: #line 73 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 392: }
Line 393: else
Line 394: {
Line 395:
Line 396:
Line 397: #line default
Line 398: #line hidden
Line 399: WriteLiteral(" ");
Line 400:
Line 401: WriteLiteral("Liên hệ\r\n");
Line 402:
Line 403:
Line 404: #line 77 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 405: }
Line 406:
Line 407:
Line 408: #line default
Line 409: #line hidden
Line 410: WriteLiteral(" </p>\r\n <a");
Line 411:
Line 412: WriteAttribute("href", Tuple.Create(" href=\"", 3484), Tuple.Create("\"", 3538)
Line 413:
Line 414: #line 79 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 415: , Tuple.Create(Tuple.Create("", 3491), Tuple.Create<System.Object, System.Int32>(Url.Action("Product", new {url = product.Url})
Line 416:
Line 417: #line default
Line 418: #line hidden
Line 419: , 3491), false)
Line 420: );
Line 421:
Line 422: WriteLiteral(" class=\"btn btn-sm btn-primary mt-3 mb-3\"");
Line 423:
Line 424: WriteLiteral(">Xem chi tiết</a>\r\n </figcaption>\r\n " +
Line 425: " </figure>\r\n </div>\r\n");
Line 426:
Line 427:
Line 428: #line 83 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 429: }
Line 430:
Line 431:
Line 432: #line default
Line 433: #line hidden
Line 434: WriteLiteral(" </div>\r\n");
Line 435:
Line 436:
Line 437: #line 85 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 438: if (Model.PageCount > 1)
Line 439: {
Line 440:
Line 441:
Line 442: #line default
Line 443: #line hidden
Line 444: WriteLiteral(" <div");
Line 445:
Line 446: WriteLiteral(" class=\"text-center\"");
Line 447:
Line 448: WriteLiteral(">");
Line 449:
Line 450:
Line 451: #line 87 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 452: Write(Html.PagedListPager(Model, page => Url.Action("AllProducts", new { groupId = ViewBag.GroupId, page })));
Line 453:
Line 454:
Line 455: #line default
Line 456: #line hidden
Line 457: WriteLiteral("</div>\r\n");
Line 458:
Line 459:
Line 460: #line 88 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 461: }
Line 462: }
Line 463: else
Line 464: {
Line 465:
Line 466:
Line 467: #line default
Line 468: #line hidden
Line 469: WriteLiteral(" <p");
Line 470:
Line 471: WriteLiteral(" class=\"alert alert-info\"");
Line 472:
Line 473: WriteLiteral(">Sản phẩm đang được cập nhật. Bạn vui lòng quay lại sau.</p>\r\n");
Line 474:
Line 475:
Line 476: #line 93 "C:\Inetpub\vhosts\sltamgcd.winhost-0111.000web.xyz\cokhithanhdat.com.vn\Views\Home\AllProducts.cshtml"
Line 477: }
Line 478:
Line 479:
Line 480: #line default
Line 481: #line hidden
Line 482: WriteLiteral(" </div>\r\n </div>\r\n</div>");
Line 483:
Line 484: }
Line 485: }
Line 486: }
Line 487:
|