#pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(54, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"

            ViewBag.Title = "SanPham";
            Layout        = "~/Views/Layout/ProductLayout.cshtml";

#line default
#line hidden
            BeginContext(186, 70, true);
            WriteLiteral("\r\n<div class=\"col-md-9 product1\">\r\n    <div class=\" bottom-product\">\r\n");
            EndContext();
#line 12 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(305, 189, true);
                WriteLiteral("            <div style=\"margin-bottom:2em\" class=\"col-md-4 bottom-cd simpleCart_shelfItem\">\r\n\r\n                <script>\r\n            $(document).ready(function (c) {\r\n\r\n                $(\'#");
                EndContext();
                BeginContext(495, 9, false);
#line 19 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                Write(item.MaSP);

#line default
#line hidden
                EndContext();
                BeginContext(504, 146, true);
                WriteLiteral("\').on(\'click\', function (c) {\r\n                    $.ajax({\r\n                            type: \'POST\',\r\n                            data: { MaSP: ");
                EndContext();
                BeginContext(651, 9, false);
#line 22 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                Write(item.MaSP);

#line default
#line hidden
                EndContext();
                BeginContext(660, 39, true);
                WriteLiteral(" },\r\n                            url: \'");
                EndContext();
                BeginContext(700, 35, false);
#line 23 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                Write(Url.Action("ThemGioHang", "GioHang"));

#line default
#line hidden
                EndContext();
                BeginContext(735, 373, true);
                WriteLiteral(@"',
                            success: function (ketqua) {

                                $('#GioHang').html(ketqua);
                                location.reload();
                            }
                        });
                });


            });
                </script>

                <div class=""product-at "">
                    <a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 1108, "\"", 1177, 1);
#line 37 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                WriteAttributeValue("", 1115, Url.Action("ChiTietSanPham", "SanPham", new { id = item.MaSP }), 1115, 62, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1178, 88, true);
                WriteLiteral(">\r\n                        <img style=\"width:250px; height:200px\" class=\"img-responsive\"");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 1266, "\"", 1321, 1);
#line 38 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                WriteAttributeValue("", 1272, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 1272, 49, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1322, 279, true);
                WriteLiteral(@" alt="""">
                        <div class=""pro-grid"">
                            <span class=""buy-in"">Xem chi tiết</span>
                        </div>
                    </a>
                </div>
                <p class=""tun""></p>
                <a type=""submit""");
                EndContext();
                BeginWriteAttribute("id", " id=\"", 1601, "\"", 1616, 1);
#line 45 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                WriteAttributeValue("", 1606, item.MaSP, 1606, 10, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1617, 64, true);
                WriteLiteral(" href=\"#\" class=\"item_add\"><p class=\"number item_price\"><i> </i>");
                EndContext();
                BeginContext(1682, 34, false);
#line 45 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                Write(item.DonGia.Value.ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(1716, 59, true);
                WriteLiteral(" VNĐ</p></a>\r\n                <p></p>\r\n            </div>\r\n");
                EndContext();
#line 48 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
            }

#line default
#line hidden
            BeginContext(1786, 161, true);
            WriteLiteral("\r\n\r\n        <div class=\"clearfix\"> </div>\r\n    </div>\r\n\r\n\r\n</div>\r\n<div class=\"clearfix\"> </div>\r\n<nav class=\"in\">\r\n    <ul class=\"pagination\">\r\n\r\n        Trang ");
            EndContext();
            BeginContext(1949, 57, false);
#line 60 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(2007, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(2009, 15, false);
#line 60 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(2024, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(2035, 103, false);
#line 61 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("SanPhamByLSP", new { page = page, @LSP = ViewBag.LSP })));

#line default
#line hidden
            EndContext();
            BeginContext(2138, 33, true);
            WriteLiteral("\r\n\r\n    </ul>\r\n</nav>\r\n\t\t</div>\r\n");
            EndContext();
#line 66 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"


            ThanhVienTB tv     = Session["TaiKhoan"] as ThanhVienTB;
            int         status = 0;
            if (tv != null)
            {
                status = 1;
            }

#line default
#line hidden
            DefineSection("scripts", async() => {
                BeginContext(2333, 182, true);
                WriteLiteral("\r\n    \r\n    <!--Script references. -->\r\n    <!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->\r\n    <!--Reference the SignalR library. -->\r\n\r\n    ");
                EndContext();
                BeginContext(2515, 61, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3497d8cefc804ceb94347a3544ea2ef3", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2576, 67, true);
                WriteLiteral("\r\n    <!--Reference the autogenerated SignalR hub script. -->\r\n    ");
                EndContext();
                BeginContext(2643, 38, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7c20c5a7af0745e2a626e00dd9634ad0", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2681, 101, true);
                WriteLiteral("\r\n    <!--SignalR script to update the chat page and send messages.-->\r\n    <script>\r\n        var kt=");
                EndContext();
                BeginContext(2783, 6, false);
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\SanPham\SanPhamByLSP.cshtml"
                Write(status);

#line default
#line hidden
                EndContext();
                BeginContext(2789, 1299, true);
                WriteLiteral(@";
        $(function () {

            // Reference the auto-generated proxy for the hub.
            var chat = $.connection.chatHub;
            // Create a function that the hub can call back to display messages.
            chat.client.addNewMessageToPage = function (name, message) {
                // Add the message to the page.


                window.location.href = name;

            };
            // Get the user name and store it to prepend to messages.
            // $('#displayname').val(prompt('Enter your name:', ''));
            // Set initial focus to message input box.

            // Start the connection.
            $.connection.hub.start().done(function () {


                // Call the Send method on the hub.
                if (kt) {

                    $('#XemGioHang').click(function () {
                        
                        chat.server.send('/GioHang/XemGioHang', '');
                    });

                }
                

          ");
                WriteLiteral(@"  });


        });

        // This optional function html-encodes messages for display in the page.
        function htmlEncode(value) {
            var encodedValue = $('<div />').text(value).html();
            return encodedValue;
        }


    </script>
");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 4 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"

            /**/

            ViewBag.Title = "Index";
            Layout        = "~/Views/Layout/AdminLayout.cshtml";

#line default
#line hidden
            BeginContext(195, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 11 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"

            QuanLyBanHangEntities db    = new QuanLyBanHangEntities();
            ThanhVienTB           check = Session["TaiKhoan"] as ThanhVienTB;
            int checkmail = 0;
            if (Session["SendMail"] != null)
            {
                string t = Session["SendMail"] as string;
                checkmail           = int.Parse(t);
                Session["SendMail"] = null;
            }
            int maddh = 0;
            if (Session["MaDDH"] != null)
            {
                string t = Session["MaDDH"] as string;
                maddh            = int.Parse(t);
                Session["MaDDH"] = null;
            }

#line default
#line hidden
            BeginContext(707, 1319, true);
            WriteLiteral(@"<!-- /inner_content_w3_agile_info-->
<!-- breadcrumbs -->
<div class=""w3l_agileits_breadcrumbs"">
    <div class=""w3l_agileits_breadcrumbs_inner"">
        <ul>
            <li><a href=""main-page.html"">Home</a><span>«</span></li>

            <li>Đơn đặt hàng</li>
        </ul>
    </div>
</div>
<!-- //breadcrumbs -->

<div class=""inner_content_w3_agile_info two_in"">
    <h2 class=""w3_inner_tittle"">Đơn đặt hàng</h2>
    <!-- tables -->

    <div class=""agile-tables"">
        <div class=""w3l-table-info agile_info_shadow"">
            <h3 class=""w3_inner_tittle two"">Thống kê</h3>
            <table id=""table"">
                <thead>
                    <tr>
                        <th>Mã DDH</th>
                        <th>Tên khách hàng</th>
                        <th>Loại khách hàng</th>
                        <th>Ngày đặt</th>
                        <th>Trình trạng giao</th>
                        <th>Ngày giao</th>

                        <th>Đã thanh toán</th>
          ");
            WriteLiteral(@"              <th>Trạng thái</th>
                        <th>Giá trị DH</th>
                        <th>KM(%)</th>
                        <th>Tổng tiền (VNĐ)</th>
                        <th>Thao tác</th>

                    </tr>
                </thead>
                <tbody>

");
            EndContext();
#line 70 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            foreach (var item in Model)
            {
                var kh     = db.KhachHangs.SingleOrDefault(s => s.MaKH == item.MaKH);
                var tv     = db.ThanhVienTBs.SingleOrDefault(s => s.MaThanhVien == kh.MaThanhVien);
                int GiaTri = (int)db.ChiTietDonDatHangs.Where(w => w.MaDDH == item.MaDDH).Sum(s => s.SoLuong * s.DonGia);

                double TongTien = (double)(1 - item.UuDai * 1.0 / 100) * GiaTri;


#line default
#line hidden
                BeginContext(2522, 64, true);
                WriteLiteral("                        <tr>\r\n\r\n                            <td>");
                EndContext();
                BeginContext(2587, 10, false);
#line 81 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(item.MaDDH);

#line default
#line hidden
                EndContext();
                BeginContext(2597, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2637, 8, false);
#line 82 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(kh.TenKH);

#line default
#line hidden
                EndContext();
                BeginContext(2645, 45, true);
                WriteLiteral("\r\n                                <br />sđt: ");
                EndContext();
                BeginContext(2691, 14, false);
#line 83 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(kh.SoDienThoai);

#line default
#line hidden
                EndContext();
                BeginContext(2705, 39, true);
                WriteLiteral("\r\n                            </td>\r\n\r\n");
                EndContext();
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (tv == null)
                {
#line default
#line hidden
                    BeginContext(2821, 51, true);
                    WriteLiteral("                                <td>Vãng lai</td>\r\n");
                    EndContext();
#line 89 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(2968, 36, true);
                    WriteLiteral("                                <td>");
                    EndContext();
                    BeginContext(3005, 50, false);
#line 92 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    Write(Html.DisplayFor(model => tv.LoaiThanhVien.TenLoai));

#line default
#line hidden
                    EndContext();
                    BeginContext(3055, 7, true);
                    WriteLiteral("</td>\r\n");
                    EndContext();
#line 93 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(3093, 32, true);
                WriteLiteral("                            <td>");
                EndContext();
                BeginContext(3126, 12, false);
#line 94 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(item.NgayDat);

#line default
#line hidden
                EndContext();
                BeginContext(3138, 7, true);
                WriteLiteral("</td>\r\n");
                EndContext();
#line 95 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (item.TinhTrangGiaoHang == false)
                {
#line default
#line hidden
                    BeginContext(3243, 52, true);
                    WriteLiteral("                                <td>Chưa giao</td>\r\n");
                    EndContext();
#line 98 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3391, 50, true);
                    WriteLiteral("                                <td>Đã giao</td>\r\n");
                    EndContext();
#line 102 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(3472, 32, true);
                WriteLiteral("                            <td>");
                EndContext();
                BeginContext(3505, 13, false);
#line 103 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(item.NgayGiao);

#line default
#line hidden
                EndContext();
                BeginContext(3518, 7, true);
                WriteLiteral("</td>\r\n");
                EndContext();
#line 104 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (item.DaThanhToan == false)
                {
#line default
#line hidden
                    BeginContext(3617, 136, true);
                    WriteLiteral("                                <td>\r\n                                    <p>Chưa thanh toán</p>\r\n                                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3753, "\"", 3832, 1);
#line 108 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 3760, Url.Action("ThanhToanDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 3760, 72, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3833, 74, true);
                    WriteLiteral("><u>Kích hoạt thanh toán </u></a>\r\n                                </td>\r\n");
                    EndContext();
#line 110 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(4005, 134, true);
                    WriteLiteral("                                <td>\r\n                                    <p>Đã thanh toán</p>\r\n                                    <a");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 4139, "\"", 4221, 1);
#line 116 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 4146, Url.Action("HuyThanhToanDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 4146, 75, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(4222, 77, true);
                    WriteLiteral("><u>Hủy kích hoạt thanh toán</u></a>\r\n                                </td>\r\n");
                    EndContext();
#line 118 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(4330, 28, true);
                WriteLiteral("                            ");
                EndContext();
#line 119 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (item.DaHuy == false)
                {
#line default
#line hidden
                    BeginContext(4416, 52, true);
                    WriteLiteral("                                <td>Kích hoạt</td>\r\n");
                    EndContext();
#line 122 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(4564, 54, true);
                    WriteLiteral("                                <td>Vô hiệu hóa</td>\r\n");
                    EndContext();
#line 126 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(4649, 32, true);
                WriteLiteral("                            <td>");
                EndContext();
                BeginContext(4682, 23, false);
#line 127 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(GiaTri.ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(4705, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(4745, 10, false);
#line 128 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(item.UuDai);

#line default
#line hidden
                EndContext();
                BeginContext(4755, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(4795, 25, false);
#line 129 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                Write(TongTien.ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(4820, 41, true);
                WriteLiteral("</td>\r\n                            <td>\r\n");
                EndContext();
#line 131 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (check.MaLoaiTV == 1)
                {
#line default
#line hidden
                    BeginContext(4955, 81, true);
                    WriteLiteral("                                    <a title=\"Xoá vĩnh viễn\" onclick=\"Xoa(event)\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 5036, "\"", 5104, 1);
#line 133 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 5043, Url.Action("XoaDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 5043, 61, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(5105, 140, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-remove\" style=\"background-color:orangered\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 136 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(5280, 32, true);
                WriteLiteral("                                ");
                EndContext();
#line 137 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                if (item.DaHuy == false)
                {
#line default
#line hidden
                    BeginContext(5374, 58, true);
                    WriteLiteral("                                    <a title=\"Vô hiệu hóa\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 5432, "\"", 5511, 1);
#line 139 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 5439, Url.Action("VoHieuHoaDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 5439, 72, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(5512, 105, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-unlock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 142 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    if (item.TinhTrangGiaoHang == false)
                    {
#line default
#line hidden
                        BeginContext(5730, 65, true);
                        WriteLiteral("                                        <a title=\"Duyệt đơn hàng\"");
                        EndContext();
                        BeginWriteAttribute("href", "  href=\"", 5795, "\"", 5871, 1);
#line 144 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                        WriteAttributeValue("", 5803, Url.Action("DuyetDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 5803, 68, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(5872, 147, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-check-circle-o\" style=\"background-color:gold\">\r\n\r\n                                        </a>\r\n");
                        EndContext();
#line 147 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(6139, 69, true);
                        WriteLiteral("                                        <a title=\"Hủy duyệt đơn hàng\"");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 6208, "\"", 6286, 1);
#line 150 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                        WriteAttributeValue("", 6215, Url.Action("HuyDuyetDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 6215, 71, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(6287, 152, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-check-circle-o\" style=\"background-color:lawngreen\">\r\n\r\n                                        </a>\r\n");
                        EndContext();
#line 153 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(6478, 63, true);
                    WriteLiteral("                                    <a title=\"Xem chi tiết DH \"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 6541, "\"", 6618, 1);
#line 154 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 6548, Url.Action("ChiTietDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 6548, 70, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(6619, 99, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-book\">\r\n\r\n                                </a>\r\n");
                    EndContext();
#line 157 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(6826, 56, true);
                    WriteLiteral("                                    <a title=\"Kích hoạt\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 6882, "\"", 6960, 1);
#line 160 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                    WriteAttributeValue("", 6889, Url.Action("KichHoatDH", "QuanLyDonHang", new { @MaDDH = item.MaDDH }), 6889, 71, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(6961, 103, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-lock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 163 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(7099, 104, true);
                WriteLiteral("                                \r\n\r\n                            </td>\r\n\r\n                        </tr>\r\n");
                EndContext();
#line 169 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(7226, 159, true);
            WriteLiteral("\r\n                </tbody>\r\n            </table>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n\r\n    <div class=\"pagination col-md-9\" style=\"float:right\">\r\n        Trang ");
            EndContext();
            BeginContext(7387, 57, false);
#line 180 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(7445, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(7447, 15, false);
#line 180 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(7462, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(7473, 76, false);
#line 181 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("Index", new { page = page })));

#line default
#line hidden
            EndContext();
            BeginContext(7549, 163, true);
            WriteLiteral("\r\n    </div>\r\n    <div class=\"clearfix\"></div>\r\n</div>\r\n<!-- //inner_content_w3_agile_info-->\r\n<script type=\"text/javascript\">\r\n    var dem = 0;\r\n    var ktmail = ");
            EndContext();
            BeginContext(7713, 9, false);
#line 188 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            Write(checkmail);

#line default
#line hidden
            EndContext();
            BeginContext(7722, 44, true);
            WriteLiteral(";\r\n    \r\n    var thongbao = \'Mã đơn hàng: \'+");
            EndContext();
            BeginContext(7767, 5, false);
#line 190 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\Index.cshtml"
            Write(maddh);

#line default
#line hidden
            EndContext();
            BeginContext(7772, 395, true);
            WriteLiteral(@";
    if (ktmail == 1) {
        alert(thongbao + ' gửi mail đặt hàng thành công')
    }
    if (ktmail == -1) {
        alert(thongbao + ' gửi mail đặt hàng không thành công')
    }
    function Xoa(event) {
        if (confirm('Bạn chắc chắn xóa sản phẩm?') == false) {
            event.preventDefault();
            event.stopPropagation();
        }

    }
    
</script>

");
            EndContext();
        }
Пример #3
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(92, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"

            ViewBag.Title = "SanPhamHetHang";
            Layout        = "~/Views/Layout/AdminLayout.cshtml";

#line default
#line hidden
#line 9 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"

            ThanhVienTB check = ViewBag.tv as ThanhVienTB;
            string      kt    = Session["update"] as string;
            if (kt == "1")
            {
                Session["update"] = "0";
            }

#line default
#line hidden
            BeginContext(366, 468, true);
            WriteLiteral(@"<div class=""w3l_agileits_breadcrumbs"">
    <div class=""w3l_agileits_breadcrumbs_inner"">
        <ul>
            <li><a href=""main-page.html"">Home</a><span>«</span></li>

            <li>Quản lý sản phẩm</li>
        </ul>
    </div>
</div>
<div class=""inner_content_w3_agile_info two_in"">
    <h2 class=""w3_inner_tittle"">Quản lý sản phẩm</h2>
    <!-- tables -->

    <div class=""agile-tables"">

        <div class=""w3l-table-info agile_info_shadow"">
");
            EndContext();
#line 34 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            if (kt == "1")
            {
#line default
#line hidden
                BeginContext(878, 84, true);
                WriteLiteral("                <h3 class=\"w3_inner_tittle two\">Cập nhật sản phẩm thành công </h3>\r\n");
                EndContext();
#line 37 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(1010, 83, true);
                WriteLiteral("                <h3 class=\"w3_inner_tittle two\">Cập nhật thông tin sản phẩm </h3>\r\n");
                EndContext();
#line 41 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            }

#line default
#line hidden
            BeginContext(1108, 48, true);
            WriteLiteral("\r\n            <h3 class=\"w3_inner_tittle two\"><a");
            EndContext();
            BeginWriteAttribute("href", " href=\"", 1156, "\"", 1201, 1);
#line 43 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            WriteAttributeValue("", 1163, Url.Action("ThemMoi", "QuanLySanPham"), 1163, 38, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1202, 616, true);
            WriteLiteral(@"><u>Thêm sản phẩm mới</u></a> </h3>
            <table id=""table-no-resize"">
                <thead>
                    <tr>
                        <th>Mã SP</th>
                        <th>Tên sản phẩm</th>
                        <th>Hình ảnh</th>
                        <th>Loại sản phẩm</th>
                        <th>Nhà sản xuất</th>
                        <th>Nhà cung cấp </th>
                        <th>Số lượng tồn</th>
                        <th>Trạng thái</th>
                        <th>Thao tác</th>
                    </tr>
                </thead>
                <tbody>
");
            EndContext();
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(1891, 62, true);
                WriteLiteral("                        <tr>\r\n                            <td>");
                EndContext();
                BeginContext(1954, 9, false);
#line 62 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(item.MaSP);

#line default
#line hidden
                EndContext();
                BeginContext(1963, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2003, 10, false);
#line 63 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(item.TenSP);

#line default
#line hidden
                EndContext();
                BeginContext(2013, 43, true);
                WriteLiteral("</td>\r\n                            <td><img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 2056, "\"", 2111, 1);
#line 64 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                WriteAttributeValue("", 2062, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 2062, 49, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2112, 75, true);
                WriteLiteral(" style=\"width:100px;height:100px\" /></td>\r\n                            <td>");
                EndContext();
                BeginContext(2188, 54, false);
#line 65 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(Html.DisplayFor(modelitem => item.LoaiSanPham.TenLoai));

#line default
#line hidden
                EndContext();
                BeginContext(2242, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2282, 52, false);
#line 66 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(Html.DisplayFor(modelitem => item.NhaSanXuat.TenNSX));

#line default
#line hidden
                EndContext();
                BeginContext(2334, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2374, 52, false);
#line 67 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(Html.DisplayFor(modelitem => item.NhaCungCap.TenNCC));

#line default
#line hidden
                EndContext();
                BeginContext(2426, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2466, 15, false);
#line 68 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                Write(item.SoLuongTon);

#line default
#line hidden
                EndContext();
                BeginContext(2481, 9, true);
                WriteLiteral(" <br /><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2490, "\"", 2543, 1);
#line 68 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                WriteAttributeValue("", 2497, Url.Action("ThemPhieuNhap", "QuanLyPhieuNhap"), 2497, 46, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2544, 28, true);
                WriteLiteral("><u>Nhập hàng</u></a></td>\r\n");
                EndContext();
#line 69 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(2658, 55, true);
                    WriteLiteral("                                <td>Đã kích hoạt</td>\r\n");
                    EndContext();
#line 72 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(2809, 57, true);
                    WriteLiteral("                                <td>Chưa kích hoạt</td>\r\n");
                    EndContext();
#line 76 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                }

#line default
#line hidden
                BeginContext(2897, 34, true);
                WriteLiteral("                            <td>\r\n");
                EndContext();
#line 78 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                if (check.MaLoaiTV == 1)
                {
#line default
#line hidden
                    BeginContext(3025, 81, true);
                    WriteLiteral("                                    <a title=\"Xoá vĩnh viễn\" onclick=\"Xoa(event)\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3106, "\"", 3170, 1);
#line 80 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 3113, Url.Action("Xoa", "QuanLySanPham", new { @MaSP = item.MaSP }), 3113, 57, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3171, 140, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-remove\" style=\"background-color:orangered\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 83 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                }

#line default
#line hidden
                BeginContext(3346, 32, true);
                WriteLiteral("                                ");
                EndContext();
#line 84 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(3440, 58, true);
                    WriteLiteral("                                    <a title=\"Vô hiệu hóa\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3498, "\"", 3568, 1);
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 3505, Url.Action("VoHieuHoa", "QuanLySanPham", new { @MaSP = item.MaSP }), 3505, 63, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginWriteAttribute("id", " id=\"", 3569, "\"", 3584, 1);
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 3574, item.MaSP, 3574, 10, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3585, 155, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-unlock\">\r\n\r\n                                    </a>\r\n                                    <a title=\"Sửa\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3740, "\"", 3804, 1);
#line 89 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 3747, Url.Action("Sua", "QuanLySanPham", new { @MaSP = item.MaSP }), 3747, 57, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3805, 103, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-edit\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
                    BeginContext(3910, 55, true);
                    WriteLiteral("                                    <a title=\"Chi tiết\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3965, "\"", 4031, 1);
#line 93 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 3972, Url.Action("ChiTietSanPham", "SanPham", new { id = item.MaSP }), 3972, 59, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(4032, 127, true);
                    WriteLiteral(" target=\"_blank\" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-product-hunt\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 96 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(4267, 66, true);
                    WriteLiteral("                                    <a title=\"Kích hoạt tài khoản\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 4333, "\"", 4402, 1);
#line 99 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 4340, Url.Action("KichHoat", "QuanLySanPham", new { @MaSP = item.MaSP }), 4340, 62, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginWriteAttribute("id", " id=\"", 4403, "\"", 4418, 1);
#line 99 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                    WriteAttributeValue("", 4408, item.MaSP, 4408, 10, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(4419, 103, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-lock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 102 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
                }

#line default
#line hidden
                BeginContext(4557, 68, true);
                WriteLiteral("\r\n                            </td>\r\n                        </tr>\r\n");
                EndContext();
#line 106 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            }

#line default
#line hidden
            BeginContext(4648, 157, true);
            WriteLiteral("\r\n                </tbody>\r\n            </table>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n    <div class=\"pagination col-md-9\" style=\"float:right\">\r\n        Trang ");
            EndContext();
            BeginContext(4807, 57, false);
#line 116 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(4865, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(4867, 15, false);
#line 116 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(4882, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(4893, 76, false);
#line 117 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLySanPham\SanPhamHetHang.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("Index", new { page = page })));

#line default
#line hidden
            EndContext();
            BeginContext(4969, 370, true);
            WriteLiteral(@"
    </div>
    <div class=""clearfix""></div>

    <!-- //tables -->
    <!-- /social_media-->
    <!-- //social_media-->
</div>
<script type=""text/javascript"">
    function Xoa(event) {
        if (confirm('Bạn chắc chắn xóa sản phẩm?') == false) {
            event.preventDefault();
            event.stopPropagation();
        }

    }
</script>


");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(31, 431, true);
            WriteLiteral(@"

<div class=""header-top"">
    <div class=""container"">
        <div class=""search"">
            
            
                <input type=""text"" id=""tukhoa"" name=""tukhoa"" placeholder=""Nhập tên sản phẩm""  onfocus=""this.value = '';"" onblur=""if (this.value == '') {this.value = 'Search';}"">
                <input type=""submit"" value=""Tìm kiếm"" id=""btnSearch"">
           
        </div>
        <div class=""header-left"">
");
            EndContext();
#line 14 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            if (Session["TaiKhoan"] != null && Session["TaiKhoan"].ToString() != "")
            {
                ThanhVienTB tv = (ThanhVienTB)Session["TaiKhoan"];

#line default
#line hidden
                BeginContext(632, 95, true);
                WriteLiteral("                <ul>\r\n                    \r\n                    <li style=\"color:white\">Chào ! ");
                EndContext();
                BeginContext(728, 8, false);
#line 19 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
                Write(tv.HoTen);

#line default
#line hidden
                EndContext();
                BeginContext(736, 112, true);
                WriteLiteral("</li>\r\n                    <br />\r\n                    <li style=\"width:100%\" ><a style=\"color:red; float:right\"");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 848, "\"", 885, 1);
#line 21 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
                WriteAttributeValue("", 855, Url.Action("DangXuat", "Home"), 855, 30, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(886, 46, true);
                WriteLiteral(">Đăng xuất</a></li>\r\n\r\n                </ul>\r\n");
                EndContext();
#line 24 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(970, 121, true);
                WriteLiteral("                <ul>\r\n                    <li><a id=\"btnDangNhap\" href=\"#\">Đăng nhập</a></li>\r\n                    <li><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 1091, "\"", 1126, 1);
#line 29 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
                WriteAttributeValue("", 1098, Url.Action("DangKy", "Home"), 1098, 28, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(1127, 44, true);
                WriteLiteral(">Đăng ký</a></li>\r\n\r\n                </ul>\r\n");
                EndContext();
#line 32 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            }

#line default
#line hidden
            BeginContext(1186, 12, true);
            WriteLiteral("            ");
            EndContext();
            BeginContext(1199, 39, false);
#line 33 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            Write(Html.Action("GioHangPartial", "GioHang"));

#line default
#line hidden
            EndContext();
            BeginContext(1238, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(1804, 358, true);
            WriteLiteral(@"            <div class=""clearfix""> </div>
        </div>
        <div class=""clearfix""> </div>
    </div>
</div>

<div id=""popup-login"">
    <div class="" w3l-login-form"">
        <div style=""clear:both;text-align:right;margin-bottom:0"">
            <span id=""close-form"" class=""btn btn-danger"">X</span>
        </div>
        <h2>Login Here</h2>
");
            EndContext();
#line 58 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            using (Html.BeginForm("DangNhap", "Home"))
            {
#line default
#line hidden
                BeginContext(2228, 760, true);
                WriteLiteral(@"            <div class="" w3l-form-group"">
                <label>Tài khoản:</label>
                <div class=""group"">
                    <i class=""fas fa-user""></i>
                    <input id=""username"" type=""text"" class=""form-control"" placeholder=""Tài khoản"" required=""required"" name=""userName"">
                </div>
            </div>
            <div class="" w3l-form-group"">
                <label>Mật khẩu:</label>
                <div class=""group"">
                    <i class=""fas fa-unlock""></i>
                    <input id=""password"" type=""password"" class=""form-control"" placeholder=""Mật khẩu"" required=""required"" name=""passWord"">
                </div>
            </div>
            <div class=""forgot"">
                <a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2988, "\"", 3028, 1);
#line 76 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
                WriteAttributeValue("", 2995, Url.Action("QuenMatKhau", "Home"), 2995, 33, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(3029, 169, true);
                WriteLiteral(">Quên mật khẩu?</a>\r\n                <p><input type=\"checkbox\">Remember Me</p>\r\n            </div>\r\n            <button id=\"btnSubmit\" type=\"submit\">Đăng nhập</button>\r\n");
                EndContext();
#line 80 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            }

#line default
#line hidden
            BeginContext(3209, 56, true);
            WriteLiteral("        <p class=\" w3l-register-p\">Chưa có tài khoản ?<a");
            EndContext();
            BeginWriteAttribute("href", " href=\"", 3265, "\"", 3300, 1);
#line 81 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            WriteAttributeValue("", 3272, Url.Action("DangKy", "Home"), 3272, 28, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(3301, 1251, true);
            WriteLiteral(@" class=""register""> Đăng ký</a></p>
    </div>
</div>

<style>
    

    #close-form {
        color: white;
    }

    #popup-login {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,.5);
        z-index: 3;
        display: none;
    }
</style>

<script type=""text/javascript"">
    $(""#btnDangNhap"").click(function () {
        $(""#popup-login"").fadeIn(500);
    });

    //Bắt sựu kiện ẩn form
    $(""#close-form"").click(CloseForm);

    //Định nghĩa ẩn form
    function CloseForm() {
        $(""#popup-login"").hide();
    }
    //Lấy giá trị trong textbox
    $(""#btnSubmit"").click(function () {
        var username = $(""#username"").val();
        var password = $(""#password"").val();
        //alert(""Username : "" + username + ""\nPassWord : "" + password);
        if (username == """" || password == """") {
            alert(""error!"");
            return;
        }
    });

    $('#btn");
            WriteLiteral("Search\').on(\'click\', function (c) {\r\n        \r\n                    $.ajax({\r\n                            type: \'POST\',\r\n                            data: { tukhoa:$(\"#tukhoa\").val(),page:1 },\r\n                            url: \'");
            EndContext();
            BeginContext(4553, 38, false);
#line 132 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\Layout\HeaderTopPartial.cshtml"
            Write(Url.Action("TimKiemSanPham", "SanPham"));

#line default
#line hidden
            EndContext();
            BeginContext(4591, 207, true);
            WriteLiteral("\',\r\n                            success: function (ketqua) {\r\n\r\n                                $(\'#KQTimKiem\').html(ketqua);\r\n                            }\r\n                    });\r\n    });\r\n\r\n\r\n</script>\r\n");
            EndContext();
        }
Пример #5
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(57, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
#line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            if (Model == null || Model.Count() == 0)
            {
#line default
#line hidden
                BeginContext(107, 142, true);
                WriteLiteral("    <h2>giỏ hàng rỗng</h2>\r\n    <script>\r\n        $(\"#TongTien\").text(\"0 vnđ\");\r\n        $(\"#simpleCart_quantity\").text(\"0\");\r\n    </script>\r\n");
                EndContext();
#line 12 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(263, 25, true);
                WriteLiteral("    <h2>My Shopping Bag (");
                EndContext();
                BeginContext(289, 25, false);
#line 16 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                Write(Model.Sum(s => s.SoLuong));

#line default
#line hidden
                EndContext();
                BeginContext(314, 49, true);
                WriteLiteral(")</h2>\r\n    <div class=\"col-md-6 cart-items\">\r\n\r\n");
                EndContext();
#line 19 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                foreach (ItemGioHang item in Model)
                {
#line default
#line hidden
                    BeginContext(420, 106, true);
                    WriteLiteral("            <script>\r\n\r\n                    $(document).ready(function (c) {\r\n                        $(\'#");
                    EndContext();
                    BeginContext(527, 9, false);
#line 24 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.MaSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(536, 171, true);
                    WriteLiteral("\').on(\'click\', function (c) {\r\n\r\n                           $.ajax({\r\n                                    type: \'POST\',\r\n                                    data: { MaSP: ");
                    EndContext();
                    BeginContext(708, 9, false);
#line 28 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.MaSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(717, 47, true);
                    WriteLiteral(" },\r\n                                    url: \'");
                    EndContext();
                    BeginContext(765, 38, false);
#line 29 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(Url.Action("XoaItemGioHang", "GioHang"));

#line default
#line hidden
                    EndContext();
                    BeginContext(803, 381, true);
                    WriteLiteral(@"',
                                    success: function (ketqua) {

                                        $('.check').html(ketqua);
                                    }
                                });
                        });


                    });
            </script>
            <div class=""cart-header"" id=""abc"">

                <div class=""close1""");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 1184, "\"", 1199, 1);
#line 42 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    WriteAttributeValue("", 1189, item.MaSP, 1189, 10, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1200, 44, true);
                    WriteLiteral("> </div>\r\n\r\n                <a class=\"edit1\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 1244, "\"", 1312, 1);
#line 44 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    WriteAttributeValue("", 1251, Url.Action("SuaGioHang", "GioHang", new { @MaSP = item.MaSP }), 1251, 61, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1313, 146, true);
                    WriteLiteral("> </a>\r\n                <div class=\"cart-sec simpleCart_shelfItem\">\r\n                    <div class=\"cart-item cyc\">\r\n                        <img");
                    EndContext();
                    BeginWriteAttribute("src", " src=\"", 1459, "\"", 1516, 1);
#line 47 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    WriteAttributeValue("", 1465, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 1465, 51, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1517, 153, true);
                    WriteLiteral(" class=\"img-responsive\" alt=\"\" />\r\n                    </div>\r\n                    <div class=\"cart-item-info\">\r\n                        <h3><a href=\"#\">");
                    EndContext();
                    BeginContext(1671, 10, false);
#line 50 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.TenSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(1681, 53, true);
                    WriteLiteral("</a></h3>\r\n                        <ul class=\"qty\">\r\n");
                    EndContext();
                    BeginContext(1792, 46, true);
                    WriteLiteral("                            <li><p>Số lượng : ");
                    EndContext();
                    BeginContext(1839, 12, false);
#line 53 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.SoLuong);

#line default
#line hidden
                    EndContext();
                    BeginContext(1851, 132, true);
                    WriteLiteral("</p></li>\r\n                        </ul>\r\n\r\n                        <div class=\"delivery\">\r\n                            <p>Đơn giá :");
                    EndContext();
                    BeginContext(1984, 28, false);
#line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.DonGia.ToString("#,##"));

#line default
#line hidden
                    EndContext();
                    BeginContext(2012, 44, true);
                    WriteLiteral(" vnđ</p>\r\n                            <span>");
                    EndContext();
                    BeginContext(2057, 31, false);
#line 58 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                    Write(item.ThanhTien.ToString("#,##"));

#line default
#line hidden
                    EndContext();
                    BeginContext(2088, 227, true);
                    WriteLiteral(" vnđ</span>\r\n                            <div class=\"clearfix\"></div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"clearfix\"></div>\r\n\r\n                </div>\r\n            </div>\r\n");
                    EndContext();
#line 66 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                }

#line default
#line hidden
                BeginContext(2326, 12, true);
                WriteLiteral("    </div>\r\n");
                EndContext();
                BeginContext(2340, 66, true);
                WriteLiteral("    <div class=\"col-md-3 cart-total\">\r\n        <a class=\"continue\"");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2406, "\"", 2440, 1);
#line 70 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                WriteAttributeValue("", 2413, Url.Action("Index", "Home"), 2413, 27, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2441, 170, true);
                WriteLiteral(">Tiếp tục mua hàng</a>\r\n        <div class=\"price-details\">\r\n            <h3>Thông tin hóa đơn</h3>\r\n            <span>Tổng tiền</span>\r\n            <span class=\"total1\">");
                EndContext();
                BeginContext(2612, 44, false);
#line 74 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                Write(Model.Sum(s => s.ThanhTien).ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(2656, 421, true);
                WriteLiteral(@" vnđ</span>
            <span>Discount</span>
            <span class=""total1"">---</span>
            <span>Miễn phí ship tại TP.HCM</span>
            <hr />
            <span>Phí ship các tỉnh khác: 30.000 vnđ</span>

            <div class=""clearfix""></div>
        </div>
        <ul class=""total_price"">
            <li class=""last_price""> <h4>Tổng tiền</h4></li>
            <li class=""last_price""><span>");
                EndContext();
                BeginContext(3078, 44, false);
#line 85 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                Write(Model.Sum(s => s.ThanhTien).ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(3122, 240, true);
                WriteLiteral(" vnđ</span></li>\r\n            <li><span>( chưa cộng phí ship )</span></li>\r\n            <div class=\"clearfix\"> </div>\r\n        </ul>\r\n\r\n\r\n        <div class=\"clearfix\"></div>\r\n        <a class=\"order\" href=\"#\" id=\"btnDatHang\">Đặt hàng</a>\r\n");
                EndContext();
                BeginContext(3628, 12, true);
                WriteLiteral("    </div>\r\n");
                EndContext();
                BeginContext(3642, 35, true);
                WriteLiteral("    <div class=\"clearfix\"> </div>\r\n");
                EndContext();
#line 102 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            }

#line default
#line hidden
            BeginContext(3684, 43, true);
            WriteLiteral("<script>\r\n            $(\"#TongTien\").text(\"");
            EndContext();
            BeginContext(3728, 25, false);
#line 106 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            Write(Model.Sum(s => s.ThanhTien));

#line default
#line hidden
            EndContext();
            BeginContext(3753, 53, true);
            WriteLiteral(" vnđ\");\r\n            $(\"#simpleCart_quantity\").text(\"");
            EndContext();
            BeginContext(3807, 23, false);
#line 107 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            Write(Model.Sum(s => s.SoLuong));

#line default
#line hidden
            EndContext();
            BeginContext(3830, 296, true);
            WriteLiteral(@""");
</script>

<div id=""popup-order"">
    <div class="" w3l-login-form"">
        <div style=""clear:both;text-align:right;margin-bottom:0"">
            <span id=""close-form-order"" class=""btn btn-danger"">X</span>
        </div>
        <h3 style=""color:red;text-align:center"">Đặt hàng</h3>
");
            EndContext();
#line 116 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions {
                HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace
            }))
            {
#line default
#line hidden
                BeginContext(4298, 1408, true);
                WriteLiteral(@"            <div class="" w3l-form-group"">
                <label>Tài khoản:</label>
                <div class=""group"">
                    <i class=""fas fa-user""></i>
                    <input type=""text"" class=""form-control"" placeholder=""Họ tên"" required=""required"" name=""userName"">
                </div>
            </div>
            <div class="" w3l-form-group"">
                <label>Email:</label>
                <div class=""group"">
                    <i class=""fas fa-envelope""></i>
                    <input id=""email"" type=""email"" class=""form-control"" placeholder=""Email"" required=""required"" name=""Email"">
                </div>
            </div>
            <div class="" w3l-form-group"">
                <label>Số điện thoại:</label>
                <div class=""group"">
                    <i class=""fas fa-phone""></i>
                    <input id=""numberphone"" type=""number"" class=""form-control"" placeholder=""Số điện thoại"" required=""required"" name=""phoneNumber"">
                </div");
                WriteLiteral(@">
            </div>
            <div class="" w3l-form-group"">
                <label>Địa chỉ:</label>
                <div class=""group"">
                    <i class=""fas fa-home""></i>
                    <input style=""width:100%"" id=""dress"" type=""text"" class=""form-control"" placeholder=""Địa chỉ"" required=""required"" name=""Dress"">
                </div>
            </div>
");
                EndContext();
                BeginContext(5708, 77, true);
                WriteLiteral("            <button type=\"submit\" id=\"btnOrder\">Tiến hành đặt hàng</button>\r\n");
                EndContext();
#line 149 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            }

#line default
#line hidden
            BeginContext(5796, 284, true);
            WriteLiteral(@"
    </div>
</div>

<div id=""popup-order-tv"">
    <div class="" w3l-login-form"">
        <div style=""clear:both;text-align:right;margin-bottom:0"">
            <span id=""close-form-order-tv"" class=""btn btn-danger"">X</span>
        </div>
        <div style=""padding-top:10%"">
");
            EndContext();
#line 160 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions {
                HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace
            }))
            {
#line default
#line hidden
                BeginContext(6262, 84, true);
                WriteLiteral("                <button type=\"submit\" id=\"btnOrder-tv\">Tiến hành đặt hàng</button>\r\n");
                EndContext();
#line 165 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            }

#line default
#line hidden
            BeginContext(6361, 575, true);
            WriteLiteral(@"        </div>

    </div>
</div>

<style>


    #close-form-order {
        color: white;
    }

    #popup-order {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0);
        z-index: 3;
        display: none;
    }

    #popup-order-tv {
        position: absolute;
        top: 10%;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0);
        z-index: 3;
        display: none;
    }
</style>

");
            EndContext();
#line 201 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"


            ThanhVienTB tv     = Session["TaiKhoan"] as ThanhVienTB;
            int         status = 0;
            if (tv != null)
            {
                status = 1;
            }

#line default
#line hidden
            BeginContext(7080, 46, true);
            WriteLiteral("<script type=\"text/javascript\">\r\n    var kt = ");
            EndContext();
            BeginContext(7127, 6, false);
#line 211 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
            Write(status);

#line default
#line hidden
            EndContext();
            BeginContext(7133, 972, true);
            WriteLiteral(@";
    $(""#btnDatHang"").click(function () {


        if (kt) {
            $(""#popup-order-tv"").fadeIn(500);

        }
        else {
            $(""#popup-order"").fadeIn(500);
        }
    });

    //Bắt sựu kiện ẩn form
    $(""#close-form-order"").click(CloseForm);

    //Định nghĩa ẩn form
    function CloseForm() {
        $(""#popup-order"").hide();
    }
    $(""#close-form-order-tv"").click(CloseFormTV);

    //Định nghĩa ẩn form
    function CloseFormTV() {
        $(""#popup-order-tv"").hide();
    }
    $(""#btnOrder"").click(function () {

        alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này"");
        $(""#popup-order"").hide();
    });
    $(""#btnOrder-tv"").click(function () {

        alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này"");
        $(""#popup-order"").hide();
    });


</script>

");
            EndContext();
            DefineSection("scripts", async() => {
                BeginContext(8123, 178, true);
                WriteLiteral("\r\n\r\n    <!--Script references. -->\r\n    <!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->\r\n    <!--Reference the SignalR library. -->\r\n\r\n    ");
                EndContext();
                BeginContext(8301, 61, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "96e8c8d2d3da466d93ce3e4d0d1700a2", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(8362, 67, true);
                WriteLiteral("\r\n    <!--Reference the autogenerated SignalR hub script. -->\r\n    ");
                EndContext();
                BeginContext(8429, 38, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b18ee6b9cd6e40b5b356a2557e671d10", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(8467, 179, true);
                WriteLiteral("\r\n    <!--SignalR script to update the chat page and send messages.-->\r\n    <script>\r\n\r\n        $(function () {\r\n\r\n            var contentHtml = \'\';\r\n            var contenUrl = \'");
                EndContext();
                BeginContext(8647, 14, false);
#line 266 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\LoadViewGioHangAjax.cshtml"
                Write(Request.RawUrl);

#line default
#line hidden
                EndContext();
                BeginContext(8661, 1596, true);
                WriteLiteral(@"';

            // Reference the auto-generated proxy for the hub.
            var chat = $.connection.chatHub;
            // Create a function that the hub can call back to display messages.
            chat.client.addNewMessageToPage = function (name, message) {
                // Add the message to the page.

                $('#KQTimKiem').html(message);
                window.location.href = name;

            };
            // Get the user name and store it to prepend to messages.
            // $('#displayname').val(prompt('Enter your name:', ''));
            // Set initial focus to message input box.

            // Start the connection.
            $.connection.hub.start().done(function () {


                // Call the Send method on the hub.
                if (kt) {

                    for (var i = 0; i < listID.length; i++) {
                        $(listID[i]).click(function () {
                            listID.splice(i, 1);
                            chat.serv");
                WriteLiteral(@"er.send(contenUrl, $('#KQTimKiem').html());


                        });

                    }
                    $('#XemGioHang').click(function () {
                        chat.server.send(contenUrl, $('#KQTimKiem').html());
                    });

                }

            });


        });

        // This optional function html-encodes messages for display in the page.
        function htmlEncode(value) {
            var encodedValue = $('<div />').text(value).html();
            return encodedValue;
        }


    </script>
");
                EndContext();
            }
                          );
        }
Пример #6
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 3 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"

            ViewBag.Title = "XemGioHang";
            Layout        = "~/Views/Layout/ProductLayout.cshtml";

#line default
#line hidden
            BeginContext(152, 75, true);
            WriteLiteral("<script>\r\n      var listID = [];\r\n</script>\r\n<div id=\"ContentRealtime\">\r\n\r\n");
            EndContext();
#line 12 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            if (Model == null || Model.ToList().Count == 0)
            {
#line default
#line hidden
                BeginContext(288, 32, true);
                WriteLiteral("        <h2>giỏ hàng rỗng</h2>\r\n");
                EndContext();
#line 15 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(351, 74, true);
                WriteLiteral("        <div class=\"check\" id=\"ketqua\">\r\n            <h2>My Shopping Bag (");
                EndContext();
                BeginContext(426, 25, false);
#line 20 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                Write(Model.Sum(s => s.SoLuong));

#line default
#line hidden
                EndContext();
                BeginContext(451, 57, true);
                WriteLiteral(")</h2>\r\n            <div class=\"col-md-6 cart-items\">\r\n\r\n");
                EndContext();
#line 23 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                foreach (ItemGioHang item in Model)
                {
#line default
#line hidden
                    BeginContext(585, 130, true);
                    WriteLiteral("                    <script>\r\n                        $(document).ready(function (c) {\r\n                            listID.push(\'#");
                    EndContext();
                    BeginContext(716, 9, false);
#line 29 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.MaSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(725, 41, true);
                    WriteLiteral("\');\r\n                                $(\'#");
                    EndContext();
                    BeginContext(767, 9, false);
#line 30 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.MaSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(776, 231, true);
                    WriteLiteral("\').on(\'click\', function (c) {\r\n                                   \r\n                                    $.ajax({\r\n                                            type: \'POST\',\r\n                                            data: { MaSP: ");
                    EndContext();
                    BeginContext(1008, 9, false);
#line 34 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.MaSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(1017, 55, true);
                    WriteLiteral(" },\r\n                                            url: \'");
                    EndContext();
                    BeginContext(1073, 38, false);
#line 35 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(Url.Action("XoaItemGioHang", "GioHang"));

#line default
#line hidden
                    EndContext();
                    BeginContext(1111, 467, true);
                    WriteLiteral(@"',
                                            success: function (ketqua) {

                                                $('.check').html(ketqua);


                                            }
                                    });
                   

                                });


                            });
                    </script>
                    <div class=""cart-header"">

                        <div class=""close1""");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 1578, "\"", 1593, 1);
#line 52 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    WriteAttributeValue("", 1583, item.MaSP, 1583, 10, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1594, 52, true);
                    WriteLiteral("> </div>\r\n\r\n                        <a class=\"edit1\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 1646, "\"", 1714, 1);
#line 54 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    WriteAttributeValue("", 1653, Url.Action("SuaGioHang", "GioHang", new { @MaSP = item.MaSP }), 1653, 61, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1715, 170, true);
                    WriteLiteral("> </a>\r\n                        <div class=\"cart-sec simpleCart_shelfItem\">\r\n                            <div class=\"cart-item cyc\">\r\n                                <img");
                    EndContext();
                    BeginWriteAttribute("src", " src=\"", 1885, "\"", 1942, 1);
#line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    WriteAttributeValue("", 1891, Url.Content("~/Content/HinhAnhSP/" + item.HinhAnh), 1891, 51, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(1943, 177, true);
                    WriteLiteral(" class=\"img-responsive\" alt=\"\" />\r\n                            </div>\r\n                            <div class=\"cart-item-info\">\r\n                                <h3><a href=\"#\">");
                    EndContext();
                    BeginContext(2121, 10, false);
#line 60 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.TenSP);

#line default
#line hidden
                    EndContext();
                    BeginContext(2131, 61, true);
                    WriteLiteral("</a></h3>\r\n                                <ul class=\"qty\">\r\n");
                    EndContext();
                    BeginContext(2258, 54, true);
                    WriteLiteral("                                    <li><p>Số lượng : ");
                    EndContext();
                    BeginContext(2313, 12, false);
#line 63 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.SoLuong);

#line default
#line hidden
                    EndContext();
                    BeginContext(2325, 156, true);
                    WriteLiteral("</p></li>\r\n                                </ul>\r\n\r\n                                <div class=\"delivery\">\r\n                                    <p>Đơn giá :");
                    EndContext();
                    BeginContext(2482, 28, false);
#line 67 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.DonGia.ToString("#,##"));

#line default
#line hidden
                    EndContext();
                    BeginContext(2510, 52, true);
                    WriteLiteral(" vnđ</p>\r\n                                    <span>");
                    EndContext();
                    BeginContext(2563, 31, false);
#line 68 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                    Write(item.ThanhTien.ToString("#,##"));

#line default
#line hidden
                    EndContext();
                    BeginContext(2594, 275, true);
                    WriteLiteral(@" vnđ</span>
                                    <div class=""clearfix""></div>
                                </div>
                            </div>
                            <div class=""clearfix""></div>

                        </div>
                    </div>
");
                    EndContext();
#line 76 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                }

#line default
#line hidden
                BeginContext(2888, 104, true);
                WriteLiteral("            </div>\r\n\r\n            <div class=\"col-md-3 cart-total\">\r\n                <a class=\"continue\"");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2992, "\"", 3026, 1);
#line 80 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                WriteAttributeValue("", 2999, Url.Action("Index", "Home"), 2999, 27, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(3027, 202, true);
                WriteLiteral(">Tiếp tục mua hàng</a>\r\n                <div class=\"price-details\">\r\n                    <h3>Thông tin hóa đơn</h3>\r\n                    <span>Tổng tiền</span>\r\n                    <span class=\"total1\">");
                EndContext();
                BeginContext(3230, 44, false);
#line 84 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                Write(Model.Sum(s => s.ThanhTien).ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(3274, 501, true);
                WriteLiteral(@" vnđ</span>
                    <span>Discount</span>
                    <span class=""total1"">---</span>
                    <span>Miễn phí ship tại TP.HCM</span>
                    <hr />
                    <span>Phí ship các tỉnh khác: 30.000 vnđ</span>

                    <div class=""clearfix""></div>
                </div>
                <ul class=""total_price"">
                    <li class=""last_price""> <h4>Tổng tiền</h4></li>
                    <li class=""last_price""><span>");
                EndContext();
                BeginContext(3776, 44, false);
#line 95 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                Write(Model.Sum(s => s.ThanhTien).ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(3820, 363, true);
                WriteLiteral(@" vnđ</span></li>
                    <li><span>( chưa cộng phí ship )</span></li>
                    <div class=""clearfix""> </div>
                </ul>


                <div class=""clearfix""></div>
                <a class=""order"" id=""btnDatHang"" href=""#"">Đặt hàng</a>

            </div>

            <div class=""clearfix""> </div>
        </div>
");
                EndContext();
#line 108 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            }

#line default
#line hidden
            BeginContext(4190, 292, true);
            WriteLiteral(@"
</div>


<div id=""popup-order"">
    <div class="" w3l-login-form"">
        <div style=""clear:both;text-align:right;margin-bottom:0"">
            <span id=""close-form-order"" class=""btn btn-danger"">X</span>
        </div>
        <h3 style=""color:red;text-align:center"">Đặt hàng</h3>
");
            EndContext();
#line 119 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions {
                HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace
            }))
            {
#line default
#line hidden
                BeginContext(4654, 1408, true);
                WriteLiteral(@"            <div class="" w3l-form-group"">
                <label>Tài khoản:</label>
                <div class=""group"">
                    <i class=""fas fa-user""></i>
                    <input type=""text"" class=""form-control"" placeholder=""Họ tên"" required=""required"" name=""userName"">
                </div>
            </div>
            <div class="" w3l-form-group"">
                <label>Email:</label>
                <div class=""group"">
                    <i class=""fas fa-envelope""></i>
                    <input id=""email"" type=""email"" class=""form-control"" placeholder=""Email"" required=""required"" name=""Email"">
                </div>
            </div>
            <div class="" w3l-form-group"">
                <label>Số điện thoại:</label>
                <div class=""group"">
                    <i class=""fas fa-phone""></i>
                    <input id=""numberphone"" type=""number"" class=""form-control"" placeholder=""Số điện thoại"" required=""required"" name=""phoneNumber"">
                </div");
                WriteLiteral(@">
            </div>
            <div class="" w3l-form-group"">
                <label>Địa chỉ:</label>
                <div class=""group"">
                    <i class=""fas fa-home""></i>
                    <input style=""width:100%"" id=""dress"" type=""text"" class=""form-control"" placeholder=""Địa chỉ"" required=""required"" name=""Dress"">
                </div>
            </div>
");
                EndContext();
                BeginContext(6064, 77, true);
                WriteLiteral("            <button type=\"submit\" id=\"btnOrder\">Tiến hành đặt hàng</button>\r\n");
                EndContext();
#line 152 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            }

#line default
#line hidden
            BeginContext(6152, 284, true);
            WriteLiteral(@"
    </div>
</div>

<div id=""popup-order-tv"">
    <div class="" w3l-login-form"">
        <div style=""clear:both;text-align:right;margin-bottom:0"">
            <span id=""close-form-order-tv"" class=""btn btn-danger"">X</span>
        </div>
        <div style=""padding-top:10%"">
");
            EndContext();
#line 163 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            using (Ajax.BeginForm("DatHang", "Home", new AjaxOptions {
                HttpMethod = "Post", UpdateTargetId = "ketqua", InsertionMode = InsertionMode.Replace
            }))
            {
#line default
#line hidden
                BeginContext(6618, 84, true);
                WriteLiteral("                <button type=\"submit\" id=\"btnOrder-tv\">Tiến hành đặt hàng</button>\r\n");
                EndContext();
#line 168 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            }

#line default
#line hidden
            BeginContext(6717, 575, true);
            WriteLiteral(@"        </div>

    </div>
</div>

<style>


    #close-form-order {
        color: white;
    }

    #popup-order {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0);
        z-index: 3;
        display: none;
    }

    #popup-order-tv {
        position: absolute;
        top: 10%;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0);
        z-index: 3;
        display: none;
    }
</style>

");
            EndContext();
#line 204 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"


            ThanhVienTB tv     = Session["TaiKhoan"] as ThanhVienTB;
            int         status = 0;
            if (tv != null)
            {
                status = 1;
            }

#line default
#line hidden
            BeginContext(7436, 46, true);
            WriteLiteral("<script type=\"text/javascript\">\r\n    var kt = ");
            EndContext();
            BeginContext(7483, 6, false);
#line 214 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
            Write(status);

#line default
#line hidden
            EndContext();
            BeginContext(7489, 983, true);
            WriteLiteral(@";
    $(""#btnDatHang"").click(function () {

        
        if (kt) {
            $(""#popup-order-tv"").fadeIn(500);

        }
        else {
            $(""#popup-order"").fadeIn(500);
        }
    });

    //Bắt sựu kiện ẩn form
    $(""#close-form-order"").click(CloseForm);

    //Định nghĩa ẩn form
    function CloseForm() {
        $(""#popup-order"").hide();
    }
    $(""#close-form-order-tv"").click(CloseFormTV);

    //Định nghĩa ẩn form
    function CloseFormTV() {
        $(""#popup-order-tv"").hide();
    }
    $(""#btnOrder"").click(function () {

        alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này"");
        $(""#popup-order"").hide();
    });
    $(""#btnOrder-tv"").click(function () {

        alert(""Quý khách đã đặt hàng thành công ! Cảm ơn quý khách. Nhân viên tư vấn sẽ gọi lại xác nhận đơn hàng này"");
        $(""#popup-order-tv"").hide();
    });


</script>

");
            EndContext();
            DefineSection("scripts", async() => {
                BeginContext(8490, 179, true);
                WriteLiteral("\r\n \r\n    <!--Script references. -->\r\n    <!--The jQuery library is required and is referenced by default in _Layout.cshtml. -->\r\n    <!--Reference the SignalR library. -->\r\n\r\n    ");
                EndContext();
                BeginContext(8669, 61, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "b769f614532247a593e8fbf5dcdaf5be", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(8730, 67, true);
                WriteLiteral("\r\n    <!--Reference the autogenerated SignalR hub script. -->\r\n    ");
                EndContext();
                BeginContext(8797, 38, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "181f7609190742a788a6d0457bf8b4b3", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(8835, 197, true);
                WriteLiteral("\r\n    <!--SignalR script to update the chat page and send messages.-->\r\n    <script>\r\n      \r\n        $(function () {\r\n            \r\n            var contentHtml = \'\';\r\n            var contenUrl = \'");
                EndContext();
                BeginContext(9033, 14, false);
#line 269 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\GioHang\XemGioHang.cshtml"
                Write(Request.RawUrl);

#line default
#line hidden
                EndContext();
                BeginContext(9047, 1772, true);
                WriteLiteral(@"';
            
            // Reference the auto-generated proxy for the hub.
            var chat = $.connection.chatHub;
            // Create a function that the hub can call back to display messages.
            chat.client.addNewMessageToPage = function (name, message) {
                // Add the message to the page.

                $('#KQTimKiem').html(message);
                window.location.href = name;

            };
            // Get the user name and store it to prepend to messages.
            // $('#displayname').val(prompt('Enter your name:', ''));
            // Set initial focus to message input box.

            // Start the connection.
            $.connection.hub.start().done(function () {


                // Call the Send method on the hub.
                if (kt) {
                    
                    for (var i = 0; i < listID.length; i++) {
                        $(listID[i]).click(function () {
                            listID.splice(i, 1);
     ");
                WriteLiteral(@"                       chat.server.send(contenUrl, $('#KQTimKiem').html());
                             
                            
                        });
                       
                    }
                    $('#XemGioHang').click(function () {
                        chat.server.send(contenUrl, $('#KQTimKiem').html());
                    });
                    
                }
                 
            });
            

        });

        // This optional function html-encodes messages for display in the page.
        function htmlEncode(value) {
            var encodedValue = $('<div />').text(value).html();
            return encodedValue;
        }
       
        
    </script>
");
                EndContext();
            }
                          );
        }
Пример #7
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 4 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"

            ViewBag.Title = "ChiTietDH";
            Layout        = "~/Views/Layout/AdminLayout.cshtml";

#line default
#line hidden
            BeginContext(194, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 9 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"

            QuanLyBanHangEntities db    = new QuanLyBanHangEntities();
            ThanhVienTB           check = Session["TaiKhoan"] as ThanhVienTB;

            int        MaDDH      = int.Parse(ViewBag.MaDDH.ToString());
            double     TongTien   = (double)Model.Sum(s => s.DonGia * s.SoLuong);
            DonDatHang ddh        = db.DonDatHangs.SingleOrDefault(s => s.MaDDH == MaDDH);
            int        KM         = (int)ddh.UuDai;
            double     TongTienKM = (double)(1 - KM * 1.0 / 100) * TongTien;

#line default
#line hidden
            BeginContext(621, 449, true);
            WriteLiteral(@"<!-- /inner_content_w3_agile_info-->
<!-- breadcrumbs -->
<div class=""w3l_agileits_breadcrumbs"">
    <div class=""w3l_agileits_breadcrumbs_inner"">
        <ul>
            <li><a href=""main-page.html"">Home</a><span>«</span></li>

            <li>Đơn đặt hàng</li>
        </ul>
    </div>
</div>
<!-- //breadcrumbs -->

<div class=""inner_content_w3_agile_info two_in"">
    <h2 class=""w3_inner_tittle col-sm-10"">Đơn đặt hàng</h2>
    <a");
            EndContext();
            BeginWriteAttribute("href", " href=\"", 1070, "\"", 1139, 1);
#line 34 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            WriteAttributeValue("", 1077, Url.Action("XuatHDDH", "QuanLyDonHang", new { @MaDDH = MaDDH }), 1077, 62, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1140, 709, true);
            WriteLiteral(@" class=""btn btn-success col-sm-2"">Xem hóa đơn</a>
    <!-- tables -->

    <div class=""agile-tables"">
        <div class=""w3l-table-info agile_info_shadow"">
            
            <table id=""table"">
                <thead>
                    <tr>
                        <th>Mã chi tiết DDH</th>
                        <th>Tên sản phẩm</th>
                        <th>Hình ảnh</th>
                        <th>Số lượng</th>
                        <th>Đơn giá(VNĐ)</th>
                        <th>Thành tiền(VNĐ)</th>
                        <th>Trạng thái</th>
                        <th>Thao tác</th>

                    </tr>
                </thead>
                <tbody>

");
            EndContext();
#line 56 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            foreach (var item in Model)
            {
                double DG   = (double)item.DonGia;
                double Tong = (double)item.SoLuong * (double)item.DonGia;

#line default
#line hidden
                BeginContext(2063, 64, true);
                WriteLiteral("                        <tr>\r\n\r\n                            <td>");
                EndContext();
                BeginContext(2128, 17, false);
#line 62 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                Write(item.MaChiTietDDH);

#line default
#line hidden
                EndContext();
                BeginContext(2145, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2185, 44, false);
#line 63 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                Write(Html.DisplayFor(model => item.SanPham.TenSP));

#line default
#line hidden
                EndContext();
                BeginContext(2229, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2268, 88, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "7616429709264078876456cd460e6f95", async() => {
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
                BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "src", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                AddHtmlAttributeValue("", 2278, "~/Content/HinhAnhSP/", 2278, 20, true);
#line 64 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                AddHtmlAttributeValue("", 2298, item.SanPham.HinhAnh, 2298, 21, false);

#line default
#line hidden
                EndAddHtmlAttributeValues(__tagHelperExecutionContext);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2356, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2396, 12, false);
#line 65 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                Write(item.SoLuong);

#line default
#line hidden
                EndContext();
                BeginContext(2408, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2448, 19, false);
#line 66 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                Write(DG.ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(2467, 39, true);
                WriteLiteral("</td>\r\n                            <td>");
                EndContext();
                BeginContext(2507, 21, false);
#line 67 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                Write(Tong.ToString("#,##"));

#line default
#line hidden
                EndContext();
                BeginContext(2528, 7, true);
                WriteLiteral("</td>\r\n");
                EndContext();
#line 68 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(2621, 52, true);
                    WriteLiteral("                                <td>Kích hoạt</td>\r\n");
                    EndContext();
#line 71 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(2769, 57, true);
                    WriteLiteral("                                <td>Đã vô hiệu hóa</td>\r\n");
                    EndContext();
#line 75 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                }

#line default
#line hidden
                BeginContext(2857, 34, true);
                WriteLiteral("                            <td>\r\n");
                EndContext();
#line 83 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(3453, 58, true);
                    WriteLiteral("                                    <a title=\"Vô hiệu hóa\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3511, "\"", 3619, 1);
#line 85 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                    WriteAttributeValue("", 3518, Url.Action("VoHieuHoaCTDH", "QuanLyDonHang", new { @MaCTDH = item.MaChiTietDDH, @MaDDH = item.MaDDH }), 3518, 101, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3620, 105, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-unlock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 88 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3835, 56, true);
                    WriteLiteral("                                    <a title=\"Kích hoạt\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3891, "\"", 3998, 1);
#line 92 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                    WriteAttributeValue("", 3898, Url.Action("KichHoatCTDH", "QuanLyDonHang", new { @MaCTDH = item.MaChiTietDDH, @MaDDH = item.MaDDH }), 3898, 100, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3999, 103, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-lock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 95 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
                }

#line default
#line hidden
                BeginContext(4137, 104, true);
                WriteLiteral("                                \r\n\r\n                            </td>\r\n\r\n                        </tr>\r\n");
                EndContext();
#line 101 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            }

#line default
#line hidden
            BeginContext(4264, 363, true);
            WriteLiteral(@"
                </tbody>
                <tbody>
                    <tr>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th>Tổng tiền: ");
            EndContext();
            BeginContext(4628, 25, false);
#line 113 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(TongTien.ToString("#,##"));

#line default
#line hidden
            EndContext();
            BeginContext(4653, 349, true);
            WriteLiteral(@" VNĐ</th>
                    </tr>
                    <tr>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th>Khuyến Mãi: ");
            EndContext();
            BeginContext(5003, 2, false);
#line 123 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(KM);

#line default
#line hidden
            EndContext();
            BeginContext(5005, 365, true);
            WriteLiteral(@" % </th>
                    </tr>
                    <tr>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th></th>
                        <th>Tổng tiền thanh toán(Đã KM): ");
            EndContext();
            BeginContext(5371, 27, false);
#line 133 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(TongTienKM.ToString("#,##"));

#line default
#line hidden
            EndContext();
            BeginContext(5398, 195, true);
            WriteLiteral(" VNĐ</th>\r\n                    </tr>\r\n                </tbody>\r\n            </table>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n\r\n    <div class=\"pagination col-md-9\" style=\"float:right\">\r\n        Trang ");
            EndContext();
            BeginContext(5595, 57, false);
#line 144 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(5653, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(5655, 15, false);
#line 144 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(5670, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(5681, 96, false);
#line 145 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyDonHang\ChiTietDH.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("ChiTietDH", new { page = page, @MaDDH = MaDDH })));

#line default
#line hidden
            EndContext();
            BeginContext(5777, 347, true);
            WriteLiteral(@"
    </div>
    <div class=""clearfix""></div>
</div>
<!-- //inner_content_w3_agile_info-->
<script type=""text/javascript"">
    var dem = 0;
    function Xoa(event) {
        if (confirm('Bạn chắc chắn xóa đơn hàng?') == false) {
            event.preventDefault();
            event.stopPropagation();
        }

    }
</script>


");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(52, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"

            ViewBag.Title = "Index";
            Layout        = "~/Views/Layout/AdminLayout.cshtml";

#line default
#line hidden
            BeginContext(182, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 10 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"

            ThanhVienTB check = Session["TaiKhoan"] as ThanhVienTB;


#line default
#line hidden
            BeginContext(254, 604, true);
            WriteLiteral(@"<!-- /inner_content_w3_agile_info-->
<!-- breadcrumbs -->
<div class=""w3l_agileits_breadcrumbs"">
    <div class=""w3l_agileits_breadcrumbs_inner"">
        <ul>
            <li><a href=""main-page.html"">Home</a><span>«</span></li>

            <li>Thống kê phiếu nhập</li>
        </ul>
    </div>
</div>
<!-- //breadcrumbs -->

<div class=""inner_content_w3_agile_info two_in"">
    <h2 class=""w3_inner_tittle"">Thống kê phiếu nhập</h2>
    <!-- tables -->

    <div class=""agile-tables"">
        <div class=""w3l-table-info agile_info_shadow"">
            <h3 class=""w3_inner_tittle two""><a");
            EndContext();
            BeginWriteAttribute("href", " href=\"", 858, "\"", 911, 1);
#line 33 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
            WriteAttributeValue("", 865, Url.Action("ThemPhieuNhap", "QuanLyPhieuNhap"), 865, 46, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(912, 427, true);
            WriteLiteral(@"><u>Thêm phiếu nhập mới</u></a></h3>
            <table id=""table"">
                <thead>
                    <tr>
                        <th>Mã phếu nhập</th>
                        <th>Nhà cung cấp</th>
                        <th>Ngày nhập</th>
                        <th>Trạng thái</th>
                        <th>Thao tác</th>

                    </tr>
                </thead>
                <tbody>
");
            EndContext();
#line 46 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
            using (Html.BeginForm("Sua", "QuanLyPhieuNhap"))
            {
                foreach (var item in Model)
                {
                    string classDrop = "Drop" + item.MaPN;
                    string classTd   = "Td" + item.MaPN;
                    string idBtn     = "Btn" + item.MaPN;
                    string classSpan = "Span" + item.MaPN;
                    string idBtnHuy  = "BtnHuy" + item.MaPN;

#line default
#line hidden
                    BeginContext(1845, 66, true);
                    WriteLiteral("                            <tr>\r\n                                ");
                    EndContext();
                    BeginContext(1912, 76, false);
#line 56 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(Html.Hidden("Name", item.MaPN, new { @class = classTd, @value = item.MaPN }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1988, 38, true);
                    WriteLiteral("\r\n                                <td>");
                    EndContext();
                    BeginContext(2027, 9, false);
#line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(item.MaPN);

#line default
#line hidden
                    EndContext();
                    BeginContext(2036, 86, true);
                    WriteLiteral("</td>\r\n                                <td>\r\n                                    <span");
                    EndContext();
                    BeginWriteAttribute("class", " class=\"", 2122, "\"", 2149, 2);
                    WriteAttributeValue("", 2130, "col-sm-6", 2130, 8, true);
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    WriteAttributeValue(" ", 2138, classSpan, 2139, 10, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2150, 1, true);
                    WriteLiteral(">");
                    EndContext();
                    BeginContext(2152, 48, false);
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(Html.DisplayFor(model => item.NhaCungCap.TenNCC));

#line default
#line hidden
                    EndContext();
                    BeginContext(2200, 31, true);
                    WriteLiteral("</span> <span class=\"col-sm-6\">");
                    EndContext();
                    BeginContext(2232, 86, false);
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(Html.DropDownList("MaNCCA", null, new { @class = classDrop, @style = "display:none" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2318, 83, true);
                    WriteLiteral("</span> <button type=\"submit\" class=\"btn btn-info btn-flat btn-pri btn-sm col-sm-3\"");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 2401, "\"", 2412, 1);
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    WriteAttributeValue("", 2406, idBtn, 2406, 6, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2413, 89, true);
                    WriteLiteral(">Sửa</button> <button type=\"button\" class=\"btn btn-info btn-flat btn-pri btn-sm col-sm-2\"");
                    EndContext();
                    BeginWriteAttribute("id", " id=\"", 2502, "\"", 2516, 1);
#line 59 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    WriteAttributeValue("", 2507, idBtnHuy, 2507, 9, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2517, 171, true);
                    WriteLiteral(" style=\"background-color:red; display:none\">Hủy</button>\r\n                                </td>\r\n                                <td>\r\n                                    ");
                    EndContext();
                    BeginContext(2689, 13, false);
#line 62 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(item.NgayNhap);

#line default
#line hidden
                    EndContext();
                    BeginContext(2702, 113, true);
                    WriteLiteral("\r\n                                    <script type=\"text/javascript\">\r\n\r\n                                    $(\"#");
                    EndContext();
                    BeginContext(2816, 5, false);
#line 65 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtn);

#line default
#line hidden
                    EndContext();
                    BeginContext(2821, 280, true);
                    WriteLiteral(@""").click(function () {

                                        if (dem == 1) {

                                            dem = 0;
                                        }
                                        else {

                                            $("".");
                    EndContext();
                    BeginContext(3102, 9, false);
#line 73 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classSpan);

#line default
#line hidden
                    EndContext();
                    BeginContext(3111, 60, true);
                    WriteLiteral("\").hide();\r\n                                            $(\".");
                    EndContext();
                    BeginContext(3172, 9, false);
#line 74 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classDrop);

#line default
#line hidden
                    EndContext();
                    BeginContext(3181, 60, true);
                    WriteLiteral("\").show();\r\n                                            $(\".");
                    EndContext();
                    BeginContext(3242, 9, false);
#line 75 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classDrop);

#line default
#line hidden
                    EndContext();
                    BeginContext(3251, 75, true);
                    WriteLiteral("\").attr(\"name\", \"MaNCC\");\r\n                                            $(\".");
                    EndContext();
                    BeginContext(3327, 7, false);
#line 76 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classTd);

#line default
#line hidden
                    EndContext();
                    BeginContext(3334, 74, true);
                    WriteLiteral("\").attr(\"name\", \"MaPN\");\r\n                                            $(\"#");
                    EndContext();
                    BeginContext(3409, 8, false);
#line 77 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtnHuy);

#line default
#line hidden
                    EndContext();
                    BeginContext(3417, 60, true);
                    WriteLiteral("\").show();\r\n                                            $(\"#");
                    EndContext();
                    BeginContext(3478, 5, false);
#line 78 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtn);

#line default
#line hidden
                    EndContext();
                    BeginContext(3483, 267, true);
                    WriteLiteral(@""").text(""Cập nhật"");
                                            dem = dem + 1;
                                            return false;
                                        }

                                    });
                                    $(""#");
                    EndContext();
                    BeginContext(3751, 8, false);
#line 84 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtnHuy);

#line default
#line hidden
                    EndContext();
                    BeginContext(3759, 68, true);
                    WriteLiteral("\").click(function () {\r\n                                        $(\"#");
                    EndContext();
                    BeginContext(3828, 8, false);
#line 85 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtnHuy);

#line default
#line hidden
                    EndContext();
                    BeginContext(3836, 57, true);
                    WriteLiteral("\").hide();\r\n                                         $(\".");
                    EndContext();
                    BeginContext(3894, 9, false);
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classSpan);

#line default
#line hidden
                    EndContext();
                    BeginContext(3903, 56, true);
                    WriteLiteral("\").show();\r\n                                        $(\".");
                    EndContext();
                    BeginContext(3960, 9, false);
#line 87 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(classDrop);

#line default
#line hidden
                    EndContext();
                    BeginContext(3969, 56, true);
                    WriteLiteral("\").hide();\r\n                                        $(\"#");
                    EndContext();
                    BeginContext(4026, 5, false);
#line 88 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    Write(idBtn);

#line default
#line hidden
                    EndContext();
                    BeginContext(4031, 196, true);
                    WriteLiteral("\").text(\"Sửa\");\r\n                                        dem = 0;\r\n                                    });\r\n\r\n                                    </script>\r\n                                </td>\r\n");
                    EndContext();
#line 94 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    if (item.DaXoa == false)
                    {
#line default
#line hidden
                        BeginContext(4321, 59, true);
                        WriteLiteral("                                    <td>Đã kích hoạt</td>\r\n");
                        EndContext();
#line 97 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(4488, 58, true);
                        WriteLiteral("                                    <td>Vô hiệu hóa</td>\r\n");
                        EndContext();
#line 101 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(4581, 34, true);
                    WriteLiteral("                            <td>\r\n");
                    EndContext();
#line 103 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    if (check.MaLoaiTV == 1)
                    {
#line default
#line hidden
                        BeginContext(4709, 81, true);
                        WriteLiteral("                                    <a title=\"Xoá vĩnh viễn\" onclick=\"Xoa(event)\"");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 4790, "\"", 4856, 1);
#line 105 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                        WriteAttributeValue("", 4797, Url.Action("Xoa", "QuanLyPhieuNhap", new { @MaPN = item.MaPN }), 4797, 59, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(4857, 140, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-remove\" style=\"background-color:orangered\">\r\n\r\n                                    </a>\r\n");
                        EndContext();
#line 108 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(5032, 32, true);
                    WriteLiteral("                                ");
                    EndContext();
#line 109 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    if (item.DaXoa == false)
                    {
#line default
#line hidden
                        BeginContext(5126, 58, true);
                        WriteLiteral("                                    <a title=\"Vô hiệu hóa\"");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 5184, "\"", 5261, 1);
#line 111 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                        WriteAttributeValue("", 5191, Url.Action("VoHieuHoa", "QuanLyPhieuNhap", new { @MaPN = item.MaPN }), 5191, 70, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(5262, 175, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-unlock\">\r\n\r\n                                    </a>\r\n                                    <a title=\"Xem chi tiết phiếu nhập\"");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 5437, "\"", 5524, 1);
#line 114 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                        WriteAttributeValue("", 5444, Url.Action("XemChiTietPhieuNhap", "QuanLyPhieuNhap", new { @MaPN = item.MaPN }), 5444, 80, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(5525, 103, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-book\">\r\n\r\n                                    </a>\r\n");
                        EndContext();
#line 117 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    }
                    else
                    {
#line default
#line hidden
                        BeginContext(5736, 56, true);
                        WriteLiteral("                                    <a title=\"Kích hoạt\"");
                        EndContext();
                        BeginWriteAttribute("href", " href=\"", 5792, "\"", 5868, 1);
#line 120 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                        WriteAttributeValue("", 5799, Url.Action("kichHoat", "QuanLyPhieuNhap", new { @MaPN = item.MaPN }), 5799, 69, false);

#line default
#line hidden
                        EndWriteAttribute();
                        BeginContext(5869, 103, true);
                        WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-lock\">\r\n\r\n                                    </a>\r\n");
                        EndContext();
#line 123 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                    }

#line default
#line hidden
                    BeginContext(6007, 74, true);
                    WriteLiteral("\r\n                            </td>\r\n\r\n                            </tr>\r\n");
                    EndContext();
#line 128 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
                }
            }

#line default
#line hidden
            BeginContext(6131, 157, true);
            WriteLiteral("                </tbody>\r\n            </table>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n\r\n    <div class=\"pagination col-md-9\" style=\"float:right\">\r\n        Trang ");
            EndContext();
            BeginContext(6290, 57, false);
#line 139 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(6348, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(6350, 15, false);
#line 139 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(6365, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(6376, 76, false);
#line 140 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\Index.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("Index", new { page = page })));

#line default
#line hidden
            EndContext();
            BeginContext(6452, 343, true);
            WriteLiteral(@"
    </div>
    <div class=""clearfix""></div>
</div>
<!-- //inner_content_w3_agile_info-->
<script type=""text/javascript"">
    var dem = 0;
    function Xoa(event) {
        if (confirm('Bạn chắc chắn xóa sản phẩm?') == false) {
            event.preventDefault();
            event.stopPropagation();
        }

    }
</script>
");
            EndContext();
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(101, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"

            ViewBag.Title = "XemChiTietDonHang";
            Layout        = "~/Views/Layout/AdminLayout.cshtml";

#line default
#line hidden
            BeginContext(203, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 10 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"

            ThanhVienTB check = Session["TaiKhoan"] as ThanhVienTB;
            int         mapn  = int.Parse(ViewBag.MaPN.ToString());

#line default
#line hidden
            BeginContext(325, 445, true);
            WriteLiteral(@"<!-- /inner_content_w3_agile_info-->
<!-- breadcrumbs -->
<div class=""w3l_agileits_breadcrumbs"">
    <div class=""w3l_agileits_breadcrumbs_inner"">
        <ul>
            <li><a href=""main-page.html"">Home</a><span>«</span></li>

            <li>Chi tiết phiếu nhập</li>
        </ul>
    </div>
</div>
<!-- //breadcrumbs -->

<div class=""inner_content_w3_agile_info two_in"">
    <h2 class=""w3_inner_tittle"">Chi tiết mã phiếu nhập: ");
            EndContext();
            BeginContext(771, 4, false);
#line 28 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            Write(mapn);

#line default
#line hidden
            EndContext();
            BeginContext(775, 716, true);
            WriteLiteral(@"</h2>
    <!-- tables -->

    <div class=""agile-tables"">
        <div class=""w3l-table-info agile_info_shadow"">
            <h3 class=""w3_inner_tittle two"">Thống kê</h3>
            <table id=""table"">
                <thead>
                    <tr>
                        <th>Mã chi tiết phiếu nhập</th>
                        <th>Mã phiếu nhập(không được thay đổi)</th>
                        <th>Tên sản phẩm</th>
                        <th>Đơn giá nhập</th>
                        <th>Số lượng hàng</th>
                        <th>Trạng thái</th>
                        <th>Thao tác</th>
                    </tr>
                </thead>
                <tbody>
                    
");
            EndContext();
#line 48 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(1602, 103, true);
                WriteLiteral("                            <tr>\r\n                               \r\n                                <td>");
                EndContext();
                BeginContext(1706, 16, false);
#line 53 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                Write(item.MaChiTietPN);

#line default
#line hidden
                EndContext();
                BeginContext(1722, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(1766, 9, false);
#line 54 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                Write(item.MaPN);

#line default
#line hidden
                EndContext();
                BeginContext(1775, 78, true);
                WriteLiteral("</td>\r\n                                 \r\n                                <td>");
                EndContext();
                BeginContext(1854, 42, false);
#line 56 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                Write(Html.DisplayFor(model => item.SanPham.TenSP));

#line default
#line hidden
                EndContext();
                BeginContext(1896, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(1940, 15, false);
#line 57 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                Write(item.DonGiaNhap);

#line default
#line hidden
                EndContext();
                BeginContext(1955, 43, true);
                WriteLiteral("</td>\r\n                                <td>");
                EndContext();
                BeginContext(1999, 16, false);
#line 58 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                Write(item.SoLuongNhap);

#line default
#line hidden
                EndContext();
                BeginContext(2015, 41, true);
                WriteLiteral("</td>\r\n                                \r\n");
                EndContext();
#line 60 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(2150, 59, true);
                    WriteLiteral("                                    <td>Đã kích hoạt</td>\r\n");
                    EndContext();
#line 63 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(2317, 58, true);
                    WriteLiteral("                                    <td>Vô hiệu hóa</td>\r\n");
                    EndContext();
#line 67 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                }

#line default
#line hidden
                BeginContext(2410, 34, true);
                WriteLiteral("                            <td>\r\n");
                EndContext();
#line 69 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                if (check.MaLoaiTV == 1)
                {
#line default
#line hidden
                    BeginContext(2538, 81, true);
                    WriteLiteral("                                    <a title=\"Xoá vĩnh viễn\" onclick=\"Xoa(event)\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 2619, "\"", 2694, 1);
#line 71 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                    WriteAttributeValue("", 2626, Url.Action("XoaCT", "QuanLyPhieuNhap", new { @MaCT = item.MaChiTietPN }), 2626, 68, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(2695, 140, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-remove\" style=\"background-color:orangered\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 74 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                }

#line default
#line hidden
                BeginContext(2870, 32, true);
                WriteLiteral("                                ");
                EndContext();
#line 75 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                if (item.DaXoa == false)
                {
#line default
#line hidden
                    BeginContext(2964, 58, true);
                    WriteLiteral("                                    <a title=\"Vô hiệu hóa\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3022, "\"", 3108, 1);
#line 77 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                    WriteAttributeValue("", 3029, Url.Action("VoHieuHoaCT", "QuanLyPhieuNhap", new { @MaCT = item.MaChiTietPN }), 3029, 79, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3109, 105, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-unlock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 80 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                }
                else
                {
#line default
#line hidden
                    BeginContext(3322, 56, true);
                    WriteLiteral("                                    <a title=\"Kích hoạt\"");
                    EndContext();
                    BeginWriteAttribute("href", " href=\"", 3378, "\"", 3463, 1);
#line 83 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                    WriteAttributeValue("", 3385, Url.Action("kichHoatCT", "QuanLyPhieuNhap", new { @MaCT = item.MaChiTietPN }), 3385, 78, false);

#line default
#line hidden
                    EndWriteAttribute();
                    BeginContext(3464, 103, true);
                    WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-lock\">\r\n\r\n                                    </a>\r\n");
                    EndContext();
#line 86 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                }

#line default
#line hidden
                BeginContext(3602, 63, true);
                WriteLiteral("                                <a title=\"Chỉnh sửa thông tin \"");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 3665, "\"", 3749, 1);
#line 87 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
                WriteAttributeValue("", 3672, Url.Action("CapNhatCT", "QuanLyPhieuNhap", new { @MaCT = item.MaChiTietPN }), 3672, 77, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(3750, 173, true);
                WriteLiteral(" class=\"btn btn-info btn-flat btn-pri btn-sm fa fa-edit\">\r\n\r\n                                </a>\r\n\r\n                            </td>\r\n\r\n                            </tr>\r\n");
                EndContext();
#line 94 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            }

#line default
#line hidden
            BeginContext(3950, 179, true);
            WriteLiteral("                    \r\n                </tbody>\r\n            </table>\r\n\r\n\r\n        </div>\r\n\r\n    </div>\r\n\r\n    <div class=\"pagination col-md-9\" style=\"float:right\">\r\n        Trang ");
            EndContext();
            BeginContext(4131, 57, false);
#line 105 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            Write(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber);

#line default
#line hidden
            EndContext();
            BeginContext(4189, 1, true);
            WriteLiteral("/");
            EndContext();
            BeginContext(4191, 15, false);
#line 105 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            Write(Model.PageCount);

#line default
#line hidden
            EndContext();
            BeginContext(4206, 10, true);
            WriteLiteral("\r\n        ");
            EndContext();
            BeginContext(4217, 101, false);
#line 106 "C:\Users\Admin\Desktop\ASP.NET core\BanHangOnline\WebSiteBanHang\Views\QuanLyPhieuNhap\XemChiTietPhieuNhap.cshtml"
            Write(Html.PagedListPager(Model, page => Url.Action("XemChiTietPhieuNhap", new { page = page, @MaPN = mapn })));

#line default
#line hidden
            EndContext();
            BeginContext(4318, 347, true);
            WriteLiteral(@"
    </div>
    <div class=""clearfix""></div>
</div>
<!-- //inner_content_w3_agile_info-->
<script type=""text/javascript"">
    var dem = 0;
    function Xoa(event) {
        if (confirm('Bạn chắc chắn xóa sản phẩm?') == false) {
            event.preventDefault();
            event.stopPropagation();
        }

    }
</script>


");
            EndContext();
        }