public async Task <ActionResult> SearchForFrameworkProviders(string frameworkId, ProviderSearchResponseCodes?statusCode, string postcode, string keywords, string ukprn, string postcodeCountry, bool?isLevyPayingEmployer)
        {
            var query = new GetFrameworkProvidersQuery
            {
                FrameworkId = frameworkId,
                Postcode    = postcode,
                Keywords    = keywords
            };

            var response = await _mediator.Send(query);

            if (response.StatusCode.Equals(GetFrameworkProvidersResponse.ResponseCodes.NoFrameworkFound))
            {
                return(new HttpNotFoundResult());
            }

            var viewModel = _mappingService.Map <GetFrameworkProvidersResponse, ProviderSearchViewModel>(response);

            viewModel.PostUrl              = Url?.Action("FrameworkResults", "Provider");
            viewModel.HasError             = statusCode.HasValue && statusCode.Value != ProviderSearchResponseCodes.Success;
            viewModel.ErrorMessage         = ProviderSearchMapper.CreateErrorMessage(statusCode);
            viewModel.IsLevyPayingEmployer = isLevyPayingEmployer;
            viewModel.Ukprn = ukprn;

            return(View("SearchForProviders", viewModel));
        }
Пример #2
0
        public IActionResult ExternalLogin(string provider, string returnUrl = null)
        {
            var redirectUrl = Url?.Action(nameof(ExternalLoginCallback), "Account", new { returnUrl });
            var properties  = _accountRepository.ConfigureExternalAuthenticationProperties(provider, redirectUrl);

            return(Challenge(properties, provider));
        }
Пример #3
0
        public async Task <IActionResult> forgotpassword(ForgotPasswordViewModel model)
        {
            if (ModelState.IsValid)
            {
                var user = await _userManager.FindByEmailAsync(model.Email);

                if (user?.EmailConfirmed == true)
                {
                    // User exists and email is confirmed; generate a password reset link
                    var code = await _userManager.GeneratePasswordResetTokenAsync(user);

                    // Note that Url is null when we create the controller as part of a unit test
                    var link = Url?.Action(nameof(accountController.resetpassword), "account", new { user.UserName, code }, Request.Scheme);
                    await _emailGenerator.GenerateEmailAsync(user.Email, EmailType.PasswordReset, link);
                }

                // Even if user doesn't exist, show the confirmation page
                return(RedirectToAction(nameof(forgotpasswordconfirmation)));
            }

            // If we got this far, something failed, redisplay form
            return(View(model));
        }
Пример #4
0
        public JsonResult _NotifyApplicant(int id)
        {
            var guide = db.WelcomeGuides.Find(id);

            _messaging = new NotifyOnboardingEmail("*****@*****.**", guide.Name, guide.Position, Url.Action("Applicant", "Onboarding", new { guideurl = guide.previewurl }));
            _messaging.SendEmailToApplicant();
            return(Json(true, JsonRequestBehavior.AllowGet));
        }
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     return new ExternalLoginResult(provider, Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl }));
 }
Пример #6
0
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     // Request a redirect to the external login provider
     return(new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl })));
 }
Пример #7
0
 public ActionResult LinkLogin(string provider)
 {
     // Request a redirect to the external login provider to link a login for the current user
     return(new AccountController.ChallengeResult(provider, Url.Action("LinkLoginCallback", "Manage"), User.Identity.GetUserId()));
 }
Пример #8
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(0, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 2 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"

            ViewData["Title"] = "Department";
            Layout            = "~/Views/Shared/AdministratorLayout.cshtml";

#line default
#line hidden
            BeginContext(103, 32, true);
            WriteLiteral("\r\n<h4 id=\"classname\">Courses in ");
            EndContext();
            BeginContext(136, 19, false);
#line 7 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
            Write(ViewData["subject"]);

#line default
#line hidden
            EndContext();
            BeginContext(155, 1492, true);
            WriteLiteral(@"</h4>

<div id=""departmentDiv"" class=""col-md-12"">
  <div class=""panel panel-primary"">
    <div class=""panel-heading"">
      <h3 class=""panel-title""></h3>
    </div>
    <div class=""panel-body"">
      <table id=""tblCourses"" class=""table table-bordered table-striped table-responsive table-hover"">
        <thead>
          <tr>
            <th align=""left"" class=""productth"">Number</th>
            <th align=""left"" class=""productth"">Name</th>
          </tr>
        </thead>
        <tbody></tbody>
      </table>
    </div>
  </div>
</div>


<div class=""col-md-12"">
  <div class=""panel panel-primary"">
    <div class=""panel-heading"">
      <h3 class=""panel-title"">New Course</h3>
    </div>
    <div class=""panel-body"">
      <div class=""form-group col-md-5"">
        <label>Course Name</label>
        <input type=""text"" name=""CourseName"" id=""CourseName"" class=""form-control"" placeholder=""Enter course name"" required="""" />
      </div>
      <div class=""form-group col-md-5"">
        <lab");
            WriteLiteral(@"el>Course Number</label>
        <input type=""text"" name=""CourseNumber"" id=""CourseNumber"" class=""form-control"" placeholder=""Enter course number"" required="""" />
      </div>

      <div class=""form-group col-md-1"">
        <div style=""float: right; display:inline-block;"">
          <input class=""btn btn-primary"" name=""submitButton"" id=""btnSave"" value=""Add"" type=""button"" onclick=""AddCourse()"">
        </div>
      </div>
    </div>
  </div>
</div>



");
            EndContext();
            DefineSection("Scripts", async() => {
                BeginContext(1668, 242, true);
                WriteLiteral("\r\n  <script type=\"text/javascript\">\r\n\r\n    LoadData();\r\n\r\n    function AddCourse() {\r\n\r\n      var corName = $(\"#CourseName\").val();\r\n      var corNum = Number($(\"#CourseNumber\").val());\r\n\r\n      $.ajax({\r\n        type: \'POST\',\r\n        url: \'");
                EndContext();
                BeginContext(1911, 43, false);
#line 68 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
                Write(Url.Action("CreateCourse", "Administrator"));

#line default
#line hidden
                EndContext();
                BeginContext(1954, 68, true);
                WriteLiteral("\',\r\n        dataType: \'json\',\r\n        data: {\r\n          subject: \'");
                EndContext();
                BeginContext(2023, 19, false);
#line 71 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
                Write(ViewData["subject"]);

#line default
#line hidden
                EndContext();
                BeginContext(2042, 1134, true);
                WriteLiteral(@"',
          number: corNum,
          name: corName},
        success: function (data, status) {
          //alert(JSON.stringify(data));
          if (!data.success) {
            alert(""Unable to add course"");
          }
          LoadData();
        },
        error: function (ex) {
          var r = jQuery.parseJSON(response.responseText);
          alert(""Message: "" + r.Message);
          alert(""StackTrace: "" + r.StackTrace);
          alert(""ExceptionType: "" + r.ExceptionType);
        }
        });

    }

    function PopulateTable(tbl, offerings) {
      var newBody = document.createElement(""tbody"");

      offerings.sort(function (a, b) {
        return a.number - b.number;
      });

      $.each(offerings, function (i, item) {
        var tr = document.createElement(""tr"");

        var td = document.createElement(""td"");
        td.appendChild(document.createTextNode(item.number));
        tr.appendChild(td);

        var td = document.createElement(""td"");
    ");
                WriteLiteral("    var a = document.createElement(\"a\");\r\n        a.setAttribute(\"href\", \"/Administrator/Course/?subject=\" + \'");
                EndContext();
                BeginContext(3177, 19, false);
#line 107 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
                Write(ViewData["subject"]);

#line default
#line hidden
                EndContext();
                BeginContext(3196, 465, true);
                WriteLiteral(@"' + ""&num="" + item.number);
        a.appendChild(document.createTextNode(item.name));
        td.appendChild(a);
        tr.appendChild(td);

        newBody.appendChild(tr);
      });

      tbl.appendChild(newBody);

    }

    function LoadData() {

      var tbl = document.getElementById(""tblCourses"");
      var body = tbl.getElementsByTagName(""tbody"")[0];
      tbl.removeChild(body);

      $.ajax({
        type: 'POST',
        url: '");
                EndContext();
                BeginContext(3662, 41, false);
#line 127 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
                Write(Url.Action("GetCourses", "Administrator"));

#line default
#line hidden
                EndContext();
                BeginContext(3703, 68, true);
                WriteLiteral("\',\r\n        dataType: \'json\',\r\n        data: {\r\n          subject: \'");
                EndContext();
                BeginContext(3772, 19, false);
#line 130 "E:\C#Projects\LMS_handout\LMS\Views\Administrator\Department.cshtml"
                Write(ViewData["subject"]);

#line default
#line hidden
                EndContext();
                BeginContext(3791, 457, true);
                WriteLiteral(@"'
        },
          success: function (data, status) {
            //alert(JSON.stringify(data));
            PopulateTable(tbl, data);
          },
          error: function (ex) {
            var r = jQuery.parseJSON(response.responseText);
            alert(""Message: "" + r.Message);
            alert(""StackTrace: "" + r.StackTrace);
            alert(""ExceptionType: "" + r.ExceptionType);
          }
        });
    }

  </script>

");
                EndContext();
            }
                          );
            BeginContext(4251, 4, true);
            WriteLiteral("\r\n\r\n");
            EndContext();
        }
Пример #9
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(51, 129, true);
            WriteLiteral("<li class=\"dropdown user user-menu\">\r\n            <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\r\n              <img");
            EndContext();
            BeginWriteAttribute("src", " src=\"", 180, "\"", 229, 2);
            WriteAttributeValue("", 186, "\\updated/images/profile/", 186, 24, true);
#line 4 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
WriteAttributeValue("", 210, Model.ImageProfile, 210, 19, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginWriteAttribute("alt", "  alt=\"", 230, "\"", 248, 1);
#line 4 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
WriteAttributeValue("", 237, Model.Name, 237, 11, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(249, 100, true);
            WriteLiteral(" class=\"rounded-circle img-circle\" width=\"50\" height=\"50\" />\r\n              <span class=\"hidden-xs\">");
            EndContext();
            BeginContext(350, 10, false);
#line 5 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
                                 Write(Model.Name);

#line default
#line hidden
            EndContext();
            BeginContext(360, 199, true);
            WriteLiteral("</span>\r\n            </a>\r\n            <ul class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\">\r\n              <!-- User image -->\r\n              <li class=\"user-header\">\r\n                <img");
            EndContext();
            BeginWriteAttribute("src", " src=\"", 559, "\"", 608, 2);
            WriteAttributeValue("", 565, "\\updated/images/profile/", 565, 24, true);
#line 10 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
WriteAttributeValue("", 589, Model.ImageProfile, 589, 19, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(609, 34, true);
            WriteLiteral(" class=\"rounded-circle img-circle\"");
            EndContext();
            BeginWriteAttribute("alt", " alt=\"", 643, "\"", 660, 1);
#line 10 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
WriteAttributeValue("", 649, Model.Name, 649, 11, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(661, 67, true);
            WriteLiteral(" width=\"50\" height=\"50\" />\r\n                <p>\r\n                  ");
            EndContext();
            BeginContext(729, 10, false);
#line 12 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
             Write(Model.Name);

#line default
#line hidden
            EndContext();
            BeginContext(739, 27, true);
            WriteLiteral("\r\n                  <small>");
            EndContext();
            BeginContext(767, 13, false);
#line 13 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
                    Write(Model.Created);

#line default
#line hidden
            EndContext();
            BeginContext(780, 223, true);
            WriteLiteral("</small>\r\n                </p>\r\n              </li>\r\n              <!-- Menu Body -->\r\n\r\n              <!-- Menu Footer-->\r\n              <li class=\"user-footer\">\r\n                <div class=\"pull-left\">\r\n                  ");
            EndContext();
            BeginContext(1003, 117, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7cc937a5f5cdda9dd9c26b88589acc493d6d1dee9129", async() => {
                BeginContext(1109, 7, true);
                WriteLiteral("Profile");
                EndContext();
            }
            );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 21 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
                                                                    WriteLiteral(Model.Id);

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1120, 86, true);
            WriteLiteral("\r\n                </div>\r\n                <div class=\"pull-right\">\r\n                  ");
            EndContext();
            BeginContext(1206, 267, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "7cc937a5f5cdda9dd9c26b88589acc493d6d1dee11881", async() => {
                BeginContext(1356, 110, true);
                WriteLiteral("\r\n                    <button type=\"submit\" class=\"btn btn-default btn-flat\">Logout</button>\r\n                ");
                EndContext();
            }
            );
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_4.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Page = (string)__tagHelperAttribute_5.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
            if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null)
            {
                throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues"));
            }
            BeginWriteTagHelperAttribute();
#line 24 "D:\Developer\Projects\ForumTinTuc\TinTucCTSV\Views\Shared\Components\Profile\Default.cshtml"
                                                                                                    WriteLiteral(Url.Action("Index", "Home", new { area = "Student" }));

#line default
#line hidden
            __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
            __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
            __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(1473, 81, true);
            WriteLiteral("\r\n                </div>\r\n              </li>\r\n            </ul>\r\n          </li>");
            EndContext();
        }
Пример #10
0
 public ActionResult LinkLogin(string provider)
 {
     // Solicitar la redirección al proveedor de inicio de sesión externo para vincular un inicio de sesión para el usuario actual
     return(new AccountController.ChallengeResult(provider, Url.Action("LinkLoginCallback", "Manage"), User.Identity.GetUserId()));
 }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(54, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"


            Layout = "~/Views/Shared/LayoutDoctor.cshtml";


#line default
#line hidden
            BeginContext(122, 1354, true);
            WriteLiteral(@"
<section class=""content-header"">
    <h1>
        Doctors
    </h1>
    <ol class=""breadcrumb"">
        <li><a href=""https://*****:*****@"               <th>Name</th>
                                <th>Email</th>
                                <th>Phone</th>
                                <th>Specilaist</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
");
            EndContext();
#line 43 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(1565, 78, true);
                WriteLiteral("                                <tr>\r\n                                    <td>");
                EndContext();
                BeginContext(1644, 43, false);
#line 46 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.DoctorId));

#line default
#line hidden
                EndContext();
                BeginContext(1687, 47, true);
                WriteLiteral("</td>\r\n                                    <td>");
                EndContext();
                BeginContext(1735, 39, false);
#line 47 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Name));

#line default
#line hidden
                EndContext();
                BeginContext(1774, 47, true);
                WriteLiteral("</td>\r\n                                    <td>");
                EndContext();
                BeginContext(1822, 40, false);
#line 48 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Email));

#line default
#line hidden
                EndContext();
                BeginContext(1862, 47, true);
                WriteLiteral("</td>\r\n                                    <td>");
                EndContext();
                BeginContext(1910, 40, false);
#line 49 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Phone));

#line default
#line hidden
                EndContext();
                BeginContext(1950, 47, true);
                WriteLiteral("</td>\r\n                                    <td>");
                EndContext();
                BeginContext(1998, 45, false);
#line 50 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Specilaist));

#line default
#line hidden
                EndContext();
                BeginContext(2043, 51, true);
                WriteLiteral("</td>\r\n\r\n                                    <td><a");
                EndContext();
                BeginWriteAttribute("href", " href=\"", 2094, "\"", 2130, 2);
                WriteAttributeValue("", 2101, "Doctors/Update/", 2101, 15, true);
#line 52 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                WriteAttributeValue("", 2116, item.DoctorId, 2116, 14, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2131, 24, true);
                WriteLiteral(">Update</a> | <a href=\"\"");
                EndContext();
                BeginWriteAttribute("onclick", " onclick=\"", 2155, "\"", 2189, 3);
                WriteAttributeValue("", 2165, "Delete(\'", 2165, 8, true);
#line 52 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
                WriteAttributeValue("", 2173, item.DoctorId, 2173, 14, false);

#line default
#line hidden
                WriteAttributeValue("", 2187, "\')", 2187, 2, true);
                EndWriteAttribute();
                BeginContext(2190, 57, true);
                WriteLiteral(">Delete</a></td>\r\n                                </tr>\r\n");
                EndContext();
#line 54 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(2278, 246, true);
            WriteLiteral("                    </table>\r\n                </div>\r\n                <!-- /.box-body -->\r\n            </div>\r\n            <!-- /.box -->\r\n        </div>\r\n        <!-- /.col -->\r\n    </div>\r\n    <!-- /.row -->\r\n</section>\r\n\r\n<!-- DataTables -->\r\n");
            EndContext();
            BeginContext(2524, 85, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "1035261071b947bdb3014644d7d434e9", 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(2609, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(2611, 91, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "aa4cbbd329f24c169a3e42ea45f4406f", 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(2702, 334, true);
            WriteLiteral(@"
<!-- page script -->
<script>
    $(function () {
        $('#PopulateData').DataTable();
    });
    function Delete(DoctorId){
        var txt;
        var r = confirm(""Are you sure you want to Delete?"");
        if (r == true) {

            $.ajax(
            {
                type: ""POST"",
                url: '");
            EndContext();
            BeginContext(3037, 31, false);
#line 82 "E:\Asp.Net Core\Hospital_Managmnt\Hospital_Managmnt\Views\Doctors\Index.cshtml"
            Write(Url.Action("Delete", "Doctors"));

#line default
#line hidden
            EndContext();
            BeginContext(3068, 578, true);
            WriteLiteral(@"',
                data: {
                   id : DoctorId
                },
                error: function (result) {
                    alert(""error"");
                },
                success: function (result) {
                    if (result == true) {
                        var baseUrl=""/Doctors"";
                        window.location.reload();
                    }
                    else {
                        alert(""There is a problem, Try Later!"");
                    }
                }
            });
        }
    }
</script>
");
            EndContext();
        }
Пример #12
0
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     // Demandez une redirection vers le fournisseur de connexions externe
     return(new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl })));
 }
Пример #13
0
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     // Redirect para o provedor de login externo
     return new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl }));
 }
Пример #14
0
        public async Task <JsonResult> SaveUserRole(string userID, string roleID, bool isDelete = false)
        {
            var json = new JsonResult();
            var user = await UserManager.FindByIdAsync(userID);

            var role = await RoleManager.FindByIdAsync(roleID);

            var result = new IdentityResult();

            if (user != null && role != null)
            {
                switch (isDelete)
                {
                case false:
                    result = await UserManager.AddToRoleAsync(user.Id, role.Name);

                    break;

                case true:
                    result = await UserManager.RemoveFromRoleAsync(user.Id, role.Name);

                    break;
                }
                json.Data = new { Success = result.Succeeded, Message = string.Join(",", result.Errors), Link = Url.Action("Listing", "User") };
            }
            else
            {
                json.Data = new { Success = false, Message = "No User or role found" };
            }
            return(json);
        }
Пример #15
0
        public async Task <ActionResult> LogOn(LogOnModel model, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                var rp      = new OpenIdRelyingParty();
                var request = await rp.CreateRequestAsync(model.UserSuppliedIdentifier, Realm.AutoDetect, new Uri(Request.Url, Url.Action("Authenticate")));

                if (request != null)
                {
                    if (returnUrl != null)
                    {
                        request.AddCallbackArguments("returnUrl", returnUrl);
                    }

                    var response = await request.GetRedirectingResponseAsync();

                    Response.ContentType = response.Content.Headers.ContentType.ToString();
                    return(response.AsActionResult());
                }
                else
                {
                    ModelState.AddModelError(string.Empty, "The identifier you supplied is not recognized as a valid OpenID Identifier.");
                }
            }

            // If we got this far, something failed, redisplay form
            return(View(model));
        }
Пример #16
0
        protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);
            //Session Handling
            if (SessionWrapper.CurrentUserModel == null)
            {
                requestContext.HttpContext.Response.Clear();
                requestContext.HttpContext.Response.Redirect(Url.Action("SessionExpired", "Logout"));
                requestContext.HttpContext.Response.End();
            }
            //Clear Previously selected menu item and save its position.
            int k;

            k = 0;
            foreach (MenuItemModel Module in SessionWrapper.MainMenuItemModelList)
            {
                if (Module.isSelected)
                {
                    previousSelectedModuleIndex = k;
                    Module.isSelected           = false;
                }
                k++;
            }
            k = 0;
            foreach (MenuItemModel ModuleFunction in SessionWrapper.ChildMenuItemModelList)
            {
                if (ModuleFunction.isSelected)
                {
                    previousSelectedModuleFunctionIndex = k;
                    ModuleFunction.isSelected           = false;
                }
                k++;
            }

            //Set currently selected controller and action. If not found then select the previously selected
            var SelectedController = requestContext.RouteData.Values["controller"];
            var SelectedAction     = requestContext.RouteData.Values["action"];

            for (int i = 0; i < SessionWrapper.MainMenuItemModelList.Count; i++)
            {
                if (SessionWrapper.MainMenuItemModelList[i].ModuleController == SelectedController.ToString())
                {
                    SessionWrapper.MainMenuItemModelList[i].isSelected = true;
                }
            }
            if (SessionWrapper.MainMenuItemModelList.FirstOrDefault(x => x.isSelected) == null)
            {
                SessionWrapper.MainMenuItemModelList[previousSelectedModuleIndex].isSelected = true;
            }
            for (int i = 0; i < SessionWrapper.ChildMenuItemModelList.Count; i++)
            {
                if (SessionWrapper.ChildMenuItemModelList[i].ModuleFunctionController == SelectedController.ToString() && SessionWrapper.ChildMenuItemModelList[i].ModuleFunctionAction == SelectedAction.ToString())
                {
                    //if (SessionWrapper.ChildMenuItemModelList[i].ModuleFunctionController == SelectedController.ToString() && SelectedAction.ToString().Contains(SessionWrapper.ChildMenuItemModelList[i].ModuleFunctionAction))
                    SessionWrapper.ChildMenuItemModelList[i].isSelected = true;
                }
            }
            if (SessionWrapper.ChildMenuItemModelList.FirstOrDefault(x => x.isSelected) == null)
            {
                SessionWrapper.ChildMenuItemModelList[previousSelectedModuleFunctionIndex].isSelected = true;
            }
        }
Пример #17
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 2 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"

            ViewBag.Title = "Pesquisa";
            string currentType = (string)@ViewData["Type"];

            switch (currentType)
            {
            case "Professor":
                Layout = "~/Views/Shared/_LayoutProfessor.cshtml";
                break;

            case "Aluno":
                Layout = "~/Views/Shared/_LayoutAluno.cshtml";
                break;
            }

#line default
#line hidden
            BeginContext(395, 262, true);
            WriteLiteral(@"<div style=""margin-left: 24px; font-weight: 900; font-size: 30px; padding-bottom: 20px;"">Resultados da Pesquisa</div>

<hr />
<section class=""resume-section p-3 p-lg-5 d-flex flex-column"" id=""interests"">
    <div class=""my-auto"">
        <div class=""row"">
");
            EndContext();
#line 22 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(714, 88, true);
                WriteLiteral("                <div class=\"col-lg-4 col-sm-6 text-center mb-4\">\r\n                    <a");
                EndContext();
                BeginWriteAttribute("href", " href=\'", 802, "\'", 874, 1);
#line 25 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
                WriteAttributeValue("", 809, Url.Action("getReceita", "Receitas", new { idReceita = item.Id }), 809, 65, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(875, 66, true);
                WriteLiteral(">\r\n                        <img class=\"img-fluid3 d-block mx-auto\"");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 941, "\"", 989, 1);
#line 26 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
                WriteAttributeValue("", 947, Html.DisplayFor(modelItem => item.Imagem), 947, 42, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(990, 93, true);
                WriteLiteral(" alt=\"\" style=\"width:320px; height:180px; border-radius: 5px;\">\r\n                        <h3>");
                EndContext();
                BeginContext(1084, 39, false);
#line 27 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
                Write(Html.DisplayFor(modelItem => item.Nome));

#line default
#line hidden
                EndContext();
                BeginContext(1123, 76, true);
                WriteLiteral("</h3>\r\n                    </a>\r\n                    <p class=\"description\">");
                EndContext();
                BeginContext(1199, 77, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "af7694d77614570994d211b430b130b6e1341cd57253", 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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1276, 20, true);
                WriteLiteral("&nbsp; Dificuldade: ");
                EndContext();
                BeginContext(1297, 46, false);
#line 29 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
                Write(Html.DisplayFor(modelItem => item.Dificuldade));

#line default
#line hidden
                EndContext();
                BeginContext(1343, 7, true);
                WriteLiteral(" &nbsp;");
                EndContext();
                BeginContext(1350, 55, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "af7694d77614570994d211b430b130b6e1341cd59013", 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_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1405, 7, true);
                WriteLiteral("Tempo: ");
                EndContext();
                BeginContext(1413, 48, false);
#line 29 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
                Write(Html.DisplayFor(modelItem => item.TempoConfecao));

#line default
#line hidden
                EndContext();
                BeginContext(1461, 34, true);
                WriteLiteral("<br></p>\r\n                </div>\r\n");
                EndContext();
#line 31 "C:\Users\Operador\Desktop\LI4\cookboard\cookboard\Views\Home\Pesquisa.cshtml"
            }

#line default
#line hidden
            BeginContext(1510, 44, true);
            WriteLiteral("        </div>\r\n    </div>\r\n</section>\r\n\r\n\r\n");
            EndContext();
        }
Пример #18
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(64, 41, true);
            WriteLiteral("\r\n<div class=\"table-responsive m-t-40\">\r\n");
            EndContext();
            BeginContext(126, 500, true);
            WriteLiteral(@"    <table id=""example"" class=""table display table-bordered table-striped"">
        <thead>
            <tr>
                <th scope=""col"" class=""col-md-1"">POC Name</th>
                <th scope=""col"" class=""col-md-1"">Date Assigned</th>
                <th scope=""col"" class=""col-md-1"">Due Date</th>
                <th scope=""col"" class=""col-md-1"">Date Closed</th>
                <th scope=""col"" class=""col-md-1"">Assigned by</th>
                <th scope=""col"" class=""col-md-1"">#</th>
");
            EndContext();
            BeginContext(696, 70, true);
            WriteLiteral("            </tr>\r\n        </thead>\r\n        <tbody class=\"mainDiv\">\r\n");
            EndContext();
#line 18 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
            if (Model != null)
            {
                foreach (var s in Model)
                {
                    if (s.PocdateAssigned == null)
                    {
                        s.PocdateAssigned = string.Empty;
                    }
                    else
                    {
                        s.PocdateAssigned = Convert.ToDateTime(s.PocdateAssigned).ToShortDateString();
                    }


#line default
#line hidden
                    BeginContext(1076, 101, true);
                    WriteLiteral("                    <tr class=\"itemRecordPOC\">\r\n                        <td class=\"itemPocUsername\"> ");
                    EndContext();
                    BeginContext(1178, 13, false);
#line 26 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(s.Pocusername);

#line default
#line hidden
                    EndContext();
                    BeginContext(1191, 77, true);
                    WriteLiteral("</td>\r\n                        <td class=\"itemPocAssignedDate\" type=\"input\"> ");
                    EndContext();
                    BeginContext(1269, 17, false);
#line 27 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(s.PocdateAssigned);

#line default
#line hidden
                    EndContext();
                    BeginContext(1286, 7, true);
                    WriteLiteral("</td>\r\n");
                    EndContext();
                    BeginContext(1368, 30, true);
                    WriteLiteral("                        <td>\r\n");
                    EndContext();
                    BeginContext(1506, 28, true);
                    WriteLiteral("                            ");
                    EndContext();
                    BeginContext(1535, 102, false);
#line 31 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(Html.TextBoxFor(m => s.PocdateDue, "{0:yyyy-MM-dd}", new { @class = "itemPocDueDate", type = "date" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(1637, 33, true);
                    WriteLiteral("\r\n                        </td>\r\n");
                    EndContext();
                    BeginContext(1751, 30, true);
                    WriteLiteral("                        <td>\r\n");
                    EndContext();
                    BeginContext(1898, 28, true);
                    WriteLiteral("                            ");
                    EndContext();
                    BeginContext(1927, 108, false);
#line 36 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(Html.TextBoxFor(m => s.PocdateClosed, "{0:yyyy-MM-dd}", new { @class = "itemPocClosedDate", type = "date" }));

#line default
#line hidden
                    EndContext();
                    BeginContext(2035, 87, true);
                    WriteLiteral("\r\n                        </td>\r\n                        <td class=\"itemPocAssignedBy\">");
                    EndContext();
                    BeginContext(2123, 16, false);
#line 38 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(s.ParentUsername);

#line default
#line hidden
                    EndContext();
                    BeginContext(2139, 169, true);
                    WriteLiteral("</td>\r\n                        <td><button type=\"button\" class=\"btn btn-outline-danger\">Delete</button></td>\r\n                        <td class=\"itemID\" hidden=\"hidden\">");
                    EndContext();
                    BeginContext(2309, 4, false);
#line 40 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                    Write(s.Id);

#line default
#line hidden
                    EndContext();
                    BeginContext(2313, 34, true);
                    WriteLiteral("</td>\r\n                    </tr>\r\n");
                    EndContext();
#line 42 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
                }
            }

#line default
#line hidden
            BeginContext(2381, 642, true);
            WriteLiteral(@"        </tbody>
    </table>

</div>
    <button id=""btnAddPOC"" class=""btn btn-primary"" type=""submit"">Add POC</button>
    <div class=""modal fade"" id=""myModalAddPOC"" role=""dialog"">
        <div class=""modal-dialog"">
            <!-- Modal content-->
            <div class=""modal-content"">
                <div class=""modal-header"" style=""background-color: #000000; color: #fff"">
                    <h4 class=""modal-title"">Add POC</h4>
                    <button type=""button"" class=""close"" data-dismiss=""modal"" style=""color: #fff; opacity: 1"">&times;</button>
                </div>
                <div class=""modal-body"">
");
            EndContext();
            BeginContext(3372, 979, true);
            WriteLiteral(@"                    <div class=""form-group"">
                        <label class=""col-md-11 control-label"">Search Last Name</label>
                        <div class=""col-md-11"">
                            <input class=""form-control"" id=""txtSearchUser"" />
                        </div>
                    </div>
                    <div class=""row"">
                        <table class=""table table-dark"">
                            <thead>
                                <tr>
                                    <td>#</td>
                                    <td>User Name</td>
                                    <td>First Name</td>
                                    <td>Last Name</td>
                                </tr>
                            </thead>
                            <tbody id=""tblBody""></tbody>
                        </table>
                    </div>
                </div>
                <div class=""modal-footer"">

");
            EndContext();
            BeginContext(4487, 466, true);
            WriteLiteral(@"                    <a id=""btnSearchUser"" style=""color: #fff;"" class=""btn btn-primary"">Find User</a>
                    <a href=""javascript:void(0)"" data-dismiss=""modal"" id=""btnAddTaskOwner"" style=""color: #fff;"" class=""btn btn-primary"" data-toggle=""modal"" data-target=""#myModalAddPOC"">Add POC to this Task</a>
                </div>
            </div>

        </div>
    </div>

    <script src=""https://code.jquery.com/jquery-3.1.1.min.js""></script>
    ");
            EndContext();
            BeginContext(4953, 51, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "67516d3d33ef4d6db5c03064557c9e9a", 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(5004, 3313, true);
            WriteLiteral(@"
    <script type=""text/javascript"">
    $(document).ready(function () {
       // $('.theCheckBox:checkbox:unchecked');
        $(""#theCheckBox"").removeAttr(""checked"");
        $(""#btnAddPOC"").click(function() {
            $(""#myModalAddPOC"").modal('show');
        });
    });

    $('#btnSearchUser').click(function () {
        $(""#theCheckBox"").removeAttr(""checked"");
        var searchName = $(""#txtSearchUser"").val();
        $.ajax({
            type: ""GET"",
            url: ""/api/Admin/GetAllUsers/"" + searchName,
            success: function(result) {

                $(""#tblBody tr"").remove();
                $.each(result,
                    function(key, value) {
                        console.log(key, value);
                        $(""#tblBody"").append('<tr>' +
                            '<td><input class=""theCheckBox"" type=""checkbox""/></td>' +
                            '<td class=""check-record-column"">' +
                            value[""userName""] +
             ");
            WriteLiteral(@"               '</td>' +
                            '<td>' +
                            value[""firstName""] +
                            '</td>' +
                            '<td>' +
                            value[""lastName""] +
                            '</td>' +
                            '</tr>');

                    });

            },
            error: function() {
                $(""#tblBody tr"").remove();
            }
        });

        $(""#btnAddTaskOwner"").click(function () {
            //alert($('.theCheckBox:checkbox:checked'));
            var today = new Date();
            var dd = today.getDate();
            var mm = today.getMonth() + 1;
            var yyyy = today.getFullYear();
            if (dd < 10) {
                dd = '0' + dd;
            }
            if (mm < 10) {
                mm = '0' + mm;
            }
            var today = mm + '/' + dd + '/' + yyyy;
            //alert(today);

            $('.theCheckBox:checkbox:checked')");
            WriteLiteral(@".each(function() {
                var userName = $(this).closest(""tr"").find('td.check-record-column').text();
                //var assignedDate = $(""#txtPocpersonalDate"").val();
                //var dueDate = $(""#txtPocdateDue"").val();
                //var closedDate = $(""#txtPocdateClosed"").val();
                //alert($('table#tblPOC tr:last').index());

                var assignedDate = today;
                var dueDate = $(""#itemPocDueDate"").text();
                var closedDate = $(""#itemPocClosedDate"").text();
                var rowCount = $('table#tblassignedDateast').index() + 1;
              //  alert(rowCount);

                $('#tblPOC').append('<tr class=""itemRecordPOC"">' +
                    '<td class=""itemPocUsername"">' + userName +'</td>' +
                    '<td class=""itemPocAssignedDate"">' +assignedDate +'</td>' +
                    '<td class=""itemPocDueDate"">' + dueDate + '</td>' +
                    //'<td><input id=""itemPocDueDate"" class=""itemPocDueDat");
            WriteLiteral("e\"/></td>\' +\r\n                    \'<td class=\"itemPocClosedDate\">\' +closedDate +\'</td>\' +\r\n                    //\'<td><input id=\"itemPocClosedDate\" class=\"itemPocClosedDate\"/></td>\' +\r\n                    \'<td class=\"itemPocAssignedBy\">\' + \'");
            EndContext();
            BeginContext(8318, 15, false);
#line 174 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
            Write(ViewBag.AddedBy);

#line default
#line hidden
            EndContext();
            BeginContext(8333, 711, true);
            WriteLiteral(@"' + '</td>' +
                    '<td><button type=""button"" onClick=""$(this).parent().parent().remove();"" class=""btn btn-outline-danger"">Delete</button></td>' +
                    '<td class=""itemID"" hidden=""hidden"">0</td>' +
                    '</tr>');
            });
            var requestPOC = new Array();

                $(""tr.itemRecordPOC"").each(function() {
                    requestPOC.push({
                        ""PocdateAssigned"": $(this).find("".itemPocAssignedDate"").text(),
                        ""PocdateClosed"": $(this).find("".itemPocClosedDate"").text(),
                        ""PocdateDue"": $(this).find("".itemPocDueDate"").text(),
                        ""PoctaskId"": """);
            EndContext();
            BeginContext(9045, 10, false);
#line 186 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
            Write(ViewBag.id);

#line default
#line hidden
            EndContext();
            BeginContext(9055, 47, true);
            WriteLiteral("\",\r\n                        \"ParentUsername\": \"");
            EndContext();
            BeginContext(9103, 15, false);
#line 187 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
            Write(ViewBag.AddedBy);

#line default
#line hidden
            EndContext();
            BeginContext(9118, 599, true);
            WriteLiteral(@""",
                        ""Pocusername"": $(this).find("".itemPocUsername"").text(),
                        ""Id"": $(this).find("".itemID"").text()
                    });
                });
                console.log(requestPOC);
                $.ajax({
                    type: ""POST"",
                    url: ""/Home/CreatePOC"",
                    data: JSON.stringify(requestPOC),
                    dataType: ""json"",
                    contentType: 'application/json; charset=utf-8',
                    success: function(result) {
                        console.log(result);
");
            EndContext();
            BeginContext(9775, 43, true);
            WriteLiteral("                        window.location = \'");
            EndContext();
            BeginContext(9819, 86, false);
#line 202 "D:\source\vijay\CoreProject\TaskSystem\TaskSystem\Views\Home\_TaskPOCListPartial.cshtml"
            Write(Url.Action("TaskDetail", "Home", new { id = ViewBag.id, taskOwner = ViewBag.AddedBy }));

#line default
#line hidden
            EndContext();
            BeginContext(9905, 196, true);
            WriteLiteral("\';\r\n                    },\r\n                    failed: function (res) {\r\n                        alert(res);\r\n                    }\r\n                });\r\n\r\n\r\n        });\r\n    });\r\n    </script>\r\n");
            EndContext();
        }
Пример #19
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(38, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(138, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\Da Slayer\Desktop\UWS\Web Systems Development\DarylSwasbrook\BCH\BadgerysCreekHotel\Views\Shared\_LoginPartial.cshtml"
            if (SignInManager.IsSignedIn(User))
            {
#line default
#line hidden
                BeginContext(181, 4, true);
                WriteLiteral("    ");
                EndContext();
                BeginContext(185, 555, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "bd656fb0febb4dfea1adca8b5f5dd4ab", async() => {
                    BeginContext(359, 86, true);
                    WriteLiteral("\r\n        <ul class=\"nav navbar-nav navbar-right\">\r\n            <li>\r\n                ");
                    EndContext();
                    BeginContext(445, 112, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "78f5cf9efa5c4c59bf0b3f7dd4719b80", async() => {
                        BeginContext(516, 6, true);
                        WriteLiteral("Hello ");
                        EndContext();
                        BeginContext(523, 29, false);
#line 11 "C:\Users\Da Slayer\Desktop\UWS\Web Systems Development\DarylSwasbrook\BCH\BadgerysCreekHotel\Views\Shared\_LoginPartial.cshtml"
                        Write(UserManager.GetUserName(User));

#line default
#line hidden
                        EndContext();
                        BeginContext(552, 1, true);
                        WriteLiteral("!");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(557, 176, true);
                    WriteLiteral("\r\n            </li>\r\n            <li>\r\n                <button type=\"submit\" class=\"btn btn-link navbar-btn navbar-link\">Logout</button>\r\n            </li>\r\n        </ul>\r\n    ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Page = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 8 "C:\Users\Da Slayer\Desktop\UWS\Web Systems Development\DarylSwasbrook\BCH\BadgerysCreekHotel\Views\Shared\_LoginPartial.cshtml"
                WriteLiteral(Url.Action("Index", "Home", new { area = "" }));

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(740, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 18 "C:\Users\Da Slayer\Desktop\UWS\Web Systems Development\DarylSwasbrook\BCH\BadgerysCreekHotel\Views\Shared\_LoginPartial.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(754, 58, true);
                WriteLiteral("    <ul class=\"nav navbar-nav navbar-right\">\r\n        <li>");
                EndContext();
                BeginContext(812, 64, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "8961a15c959e4bc1aa421c3c9938ee68", async() => {
                    BeginContext(864, 8, true);
                    WriteLiteral("Register");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(876, 19, true);
                WriteLiteral("</li>\r\n        <li>");
                EndContext();
                BeginContext(895, 58, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "91b44feb0b734ce0956ce9dafcec28d6", async() => {
                    BeginContext(944, 5, true);
                    WriteLiteral("Login");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(953, 18, true);
                WriteLiteral("</li>\r\n    </ul>\r\n");
                EndContext();
#line 25 "C:\Users\Da Slayer\Desktop\UWS\Web Systems Development\DarylSwasbrook\BCH\BadgerysCreekHotel\Views\Shared\_LoginPartial.cshtml"
            }

#line default
#line hidden
        }
Пример #20
0
        public override void Execute()
        {
            #line 4 "..\..\Views\Shared\_List_Toolbar.cshtml"

            var fact = ViewBag.Factory as IEntityOperate;
            var page = ViewBag.Page as Pager ?? new Pager();
            var user = ViewBag.User as IUser ?? (User == null ? null : User.Identity as IUser);

            var act = ViewBag.Action as String;
            if (act.IsNullOrEmpty())
            {
                act = Url.Action("Index");
            }

            var enableSelect = this.EnableSelect();


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"tableTools-container\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"form-inline\"");

            WriteLiteral(">\r\n        <form");

            WriteAttribute("action", Tuple.Create(" action=\"", 485), Tuple.Create("\"", 528)

            #line 16 "..\..\Views\Shared\_List_Toolbar.cshtml"
                           , Tuple.Create(Tuple.Create("", 494), Tuple.Create <System.Object, System.Int32>(Html.Raw(page.GetFormAction(act))

            #line default
            #line hidden
                                                                                                            , 494), false)
                           );

            WriteLiteral(" method=\"post\"");

            WriteLiteral(" role=\"form\"");

            WriteLiteral(">\r\n");


            #line 17 "..\..\Views\Shared\_List_Toolbar.cshtml"


            #line default
            #line hidden

            #line 17 "..\..\Views\Shared\_List_Toolbar.cshtml"
            if (user.Has(PermissionFlags.Insert))
            {
            #line default
            #line hidden

            #line 19 "..\..\Views\Shared\_List_Toolbar.cshtml"
                Write(Html.ActionLink("添加" + ViewContext.Controller.GetType().GetDisplayName(), "Add", null, new { @class = "btn btn-success btn-sm" }));


            #line default
            #line hidden

            #line 19 "..\..\Views\Shared\_List_Toolbar.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("            ");


            #line 21 "..\..\Views\Shared\_List_Toolbar.cshtml"
            if (enableSelect)
            {
            #line default
            #line hidden
                WriteLiteral("                <div");

                WriteLiteral(" class=\"form-group toolbar-batch\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 24 "..\..\Views\Shared\_List_Toolbar.cshtml"
                Write(Html.Partial("_List_Toolbar_Batch"));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n");


            #line 26 "..\..\Views\Shared\_List_Toolbar.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("            <div");

            WriteLiteral(" class=\"pull-right form-group\"");

            WriteLiteral(">\r\n");

            WriteLiteral("                ");


            #line 28 "..\..\Views\Shared\_List_Toolbar.cshtml"
            Write(Html.Partial("_List_Search"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("                ");


            #line 29 "..\..\Views\Shared\_List_Toolbar.cshtml"
            Write(Html.Partial("_List_Toolbar_Search"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("                ");


            #line 30 "..\..\Views\Shared\_List_Toolbar.cshtml"
            Write(Html.Partial("_List_Toolbar_Adv"));


            #line default
            #line hidden
            WriteLiteral("\r\n            </div>\r\n        </form>\r\n    </div>\r\n</div>\r\n");


            #line 35 "..\..\Views\Shared\_List_Toolbar.cshtml"
            if (enableSelect)
            {
            #line default
            #line hidden
                WriteLiteral("    <script>\r\n        $(function () {\r\n            var $toolbarContext = $(\'.tool" +
                             "bar-batch\'),\r\n                $batchButtons = $(\'button[data-action], input[data" +
                             "-action]\'), //button, input=button, a 3种类型都可以\r\n                $table = $(\'.tabl" +
                             "e\'),\r\n                $keys = $(\'input[name=\"keys\"]\', $table);\r\n\r\n            $t" +
                             "able.on(\'click\', \'#chkAll\', function () {\r\n                // 全选\r\n              " +
                             "  $keys.prop(\'checked\', this.checked);\r\n                // 启用禁用批量操作区\r\n          " +
                             "      $batchButtons.prop(\'disabled\', !this.checked);\r\n            });\r\n\r\n       " +
                             "     $table.on(\'click.checked\', \'tbody input[name=\"keys\"]\', function (e) {\r\n    " +
                             "            //页面中所有的checkbox\r\n                var allbox = $table.find(\'tbody :c" +
                             "heckbox[name=\"keys\"]\');\r\n                //页面中所选中的checkbox\r\n                var " +
                             "selecteds = $table.find(\'tbody :checkbox:checked[name=\"keys\"]\');\r\n              " +
                             "  if (selecteds.length > 0) {\r\n                    // 启用禁用批量操作区\r\n               " +
                             "     $batchButtons.prop(\'disabled\', false);\r\n                    //需要判断当前页面所有行的c" +
                             "heckbox是否都选中,以此来决定是否需要改变checkbox#chkAll 的状态\r\n                    if (allbox.leng" +
                             "th == selecteds.length) {\r\n                        $table.find(\'#chkAll\').prop(\'" +
                             "checked\', true);\r\n                    } else {\r\n                        $table.f" +
                             "ind(\'#chkAll\').prop(\'checked\', false);\r\n                    }\r\n                }" +
                             "\r\n                else {\r\n                    $batchButtons.prop(\'disabled\', tru" +
                             "e);\r\n                    $table.find(\'#chkAll\').prop(\'checked\', false);\r\n       " +
                             "         }\r\n            });\r\n        })\r\n    </script>\r\n");


            #line 73 "..\..\Views\Shared\_List_Toolbar.cshtml"
            }

            #line default
            #line hidden
        }
Пример #21
0
        public override void Execute()
        {
            DefineSection("Head", () => {
                WriteLiteral("\r\n    <script");

                WriteLiteral(" type=\"text/javascript\"");

                WriteLiteral(">\r\n        $(document).ready(function () {\r\n            $(\'#Param_Name\').focus();" +
                             "\r\n        });\r\n    </script>\r\n");
            });

            DefineSection("Toolbar", () => {
                WriteLiteral("\r\n");


            #line 10 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.Partial("Partial/Tabs"));


            #line default
            #line hidden
                WriteLiteral("\r\n<div");

                WriteLiteral(" class=\"toolbar\"");

                WriteLiteral(">\r\n    <div");

                WriteLiteral(" class=\"inner\"");

                WriteLiteral(">\r\n        <ul>\r\n            <li><a");

                WriteLiteral(" class=\"save submit\"");

                WriteLiteral(">");


            #line 14 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Piranha.Resources.Global.ToolbarSave);


            #line default
            #line hidden
                WriteLiteral("</a></li>\r\n");


            #line 15 "..\..\Areas\Manager\Views\Settings\Param.cshtml"


            #line default
            #line hidden

            #line 15 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                if (!Model.Param.IsLocked)
                {
            #line default
            #line hidden
                    WriteLiteral("            <li><a");

                    WriteAttribute("href", Tuple.Create(" href=\"", 486), Tuple.Create("\"", 548)

            #line 16 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                                   , Tuple.Create(Tuple.Create("", 493), Tuple.Create <System.Object, System.Int32>(Url.Action("deleteparam", new { id = Model.Param.Id })

            #line default
            #line hidden
                                                                                                                    , 493), false)
                                   );

                    WriteLiteral(" class=\"delete\"");

                    WriteLiteral(">");


            #line 16 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                    Write(Piranha.Resources.Global.ToolbarDelete);


            #line default
            #line hidden
                    WriteLiteral("</a></li>\r\n");


            #line 17 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("            <li><a");

                WriteAttribute("href", Tuple.Create(" href=\"", 648), Tuple.Create("\"", 679)

            #line 18 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                               , Tuple.Create(Tuple.Create("", 655), Tuple.Create <System.Object, System.Int32>(Url.Action("paramlist")

            #line default
            #line hidden
                                                                                                                , 655), false)
                               );

                WriteLiteral(" class=\"back\"");

                WriteLiteral(">");


            #line 18 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Piranha.Resources.Global.ToolbarBack);


            #line default
            #line hidden
                WriteLiteral("</a></li>\r\n            <li><a");

                WriteAttribute("href", Tuple.Create(" href=\"", 760), Tuple.Create("\"", 816)

            #line 19 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                               , Tuple.Create(Tuple.Create("", 767), Tuple.Create <System.Object, System.Int32>(Url.Action("param", new { id = Model.Param.Id })

            #line default
            #line hidden
                                                                                                                , 767), false)
                               );

                WriteLiteral(" class=\"refresh\"");

                WriteLiteral(">");


            #line 19 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Piranha.Resources.Global.ToolbarReload);


            #line default
            #line hidden
                WriteLiteral("</a></li>\r\n        </ul>\r\n        <div");

                WriteLiteral(" class=\"clear\"");

                WriteLiteral("></div>\r\n    </div>\r\n</div>\r\n");
            });


            #line 25 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Html.BeginForm();

            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 26 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.HiddenFor(m => m.Param.Id));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 27 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.HiddenFor(m => m.Param.IsNew));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 28 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.HiddenFor(m => m.Param.IsLocked));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 29 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.HiddenFor(m => m.Param.Created));


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"grid_12\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"box\"");

            WriteLiteral(">\r\n        <div");

            WriteLiteral(" class=\"title\"");

            WriteLiteral("><h2>Information</h2></div>\r\n        <div");

            WriteLiteral(" class=\"inner\"");

            WriteLiteral(">\r\n            <ul");

            WriteLiteral(" class=\"form\"");

            WriteLiteral(">\r\n                <li>\r\n");

            WriteLiteral("                    ");


            #line 36 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.LabelFor(m => m.Param.Name));


            #line default
            #line hidden
            WriteLiteral("\r\n                    <div");

            WriteLiteral(" class=\"input\"");

            WriteLiteral(">\r\n");


            #line 38 "..\..\Areas\Manager\Views\Settings\Param.cshtml"


            #line default
            #line hidden

            #line 38 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            if (!Model.Param.IsLocked)
            {
            #line default
            #line hidden

            #line 39 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextBoxFor(m => m.Param.Name));


            #line default
            #line hidden

            #line 39 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }
            else
            {
            #line default
            #line hidden

            #line 41 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextBoxFor(m => m.Param.Name, new { @disabled = "disabled" }));


            #line default
            #line hidden

            #line 41 "..\..\Areas\Manager\Views\Settings\Param.cshtml"



            #line default
            #line hidden

            #line 42 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.HiddenFor(m => m.Param.Name));


            #line default
            #line hidden

            #line 42 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("                    </div>\r\n");

            WriteLiteral("                    ");


            #line 45 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.ValidationMessageFor(m => m.Param.Name));


            #line default
            #line hidden
            WriteLiteral("\r\n                </li>\r\n                <li>\r\n");

            WriteLiteral("                    ");


            #line 48 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.LabelFor(m => m.Param.Value));


            #line default
            #line hidden
            WriteLiteral("\r\n                    <div");

            WriteLiteral(" class=\"input\"");

            WriteLiteral(">\r\n");


            #line 50 "..\..\Areas\Manager\Views\Settings\Param.cshtml"


            #line default
            #line hidden

            #line 50 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            if (Model.Param.Name != "SITE_VERSION")
            {
            #line default
            #line hidden

            #line 51 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextBoxFor(m => m.Param.Value));


            #line default
            #line hidden

            #line 51 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }
            else
            {
            #line default
            #line hidden

            #line 53 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextBoxFor(m => m.Param.Value, new { @disabled = "disabled" }));


            #line default
            #line hidden

            #line 53 "..\..\Areas\Manager\Views\Settings\Param.cshtml"



            #line default
            #line hidden

            #line 54 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.HiddenFor(m => m.Param.Value));


            #line default
            #line hidden

            #line 54 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("                    </div>\r\n                </li>\r\n                <li>\r\n");

            WriteLiteral("                    ");


            #line 59 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Write(Html.LabelFor(m => m.Param.Description));


            #line default
            #line hidden
            WriteLiteral("\r\n                    <div");

            WriteLiteral(" class=\"input\"");

            WriteLiteral(">\r\n");


            #line 61 "..\..\Areas\Manager\Views\Settings\Param.cshtml"


            #line default
            #line hidden

            #line 61 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            if (!Model.Param.IsLocked)
            {
            #line default
            #line hidden

            #line 62 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextAreaFor(m => m.Param.Description,
                                       new { @rows = 3, @placeholder = Piranha.Resources.Global.Optional }));


            #line default
            #line hidden

            #line 63 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }
            else
            {
            #line default
            #line hidden

            #line 65 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.TextAreaFor(m => m.Param.Description,
                                       new { @rows = 3, @disabled = "disabled", @placeholder = Piranha.Resources.Global.Optional }));


            #line default
            #line hidden

            #line 66 "..\..\Areas\Manager\Views\Settings\Param.cshtml"



            #line default
            #line hidden

            #line 67 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
                Write(Html.HiddenFor(m => m.Param.Description));


            #line default
            #line hidden

            #line 67 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("                    </div>\r\n                </li>\r\n            </ul>\r\n        </d" +
                         "iv>\r\n    </div>\r\n</div>\r\n");


            #line 75 "..\..\Areas\Manager\Views\Settings\Param.cshtml"
            Html.EndForm();

            #line default
            #line hidden
            WriteLiteral("\r\n");
        }
 internal virtual RedirectResult MakeRedirectResultToManageAccountPageGamingGroupsTab(
     AccountController.ManageMessageId?message = AccountController.ManageMessageId.EmptyGamingGroupName)
 {
     return(new RedirectResult(Url.Action(MVC.Account.ActionNames.Manage, MVC.Account.Name,
                                          new { message }) + "#" + AccountController.GAMING_GROUPS_TAB_HASH_SUFFIX));
 }
Пример #23
0
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     // Запрос перенаправления к внешнему поставщику входа
     return(new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl })));
 }
        public ActionResult register(clsRegister register, string Country, string State, HttpPostedFileBase File, string city, string Title)
        {
            try
            {
                writeToLogFile("signup post - Load Data Binding Begins: " + date, "true");

                int             countryid = Convert.ToInt32(Country);
                int             stateid   = Convert.ToInt32(State);
                int             cityid    = Convert.ToInt32(city);
                int             titleid   = Convert.ToInt32(Title);
                List <tblState> stateinfo = donateNeedy.tblStates.Where(a => a.countryId == countryid).ToList();

                var AID = donateNeedy.tblRegistrations.Where(a => a.emailID == register.emailID && a.isActive == true && a.userTypeID == 1).ToList();
                if (Convert.ToInt16(AID.Count) == 0)
                {
                    if (File != null && File.ContentLength != 0)
                    {
                        string file1 = System.IO.Path.GetFileName(File.FileName);
                        string path1 = System.IO.Path.Combine(Server.MapPath("~/Images/ProfilePictures/"), file1);
                        File.SaveAs(path1);
                        List <usp_CRUDtblRegistation_Result> GetUserByID = donateNeedy.usp_CRUDtblRegistation(0, 1, countryid, stateid, register.firstName, register.lastName, register.emailID,
                                                                                                              register.Password, register.Address, cityid, register.Pincode, file1, false, register.PhoneNumber, register.userName, null, register.middleName, titleid, 1).ToList();

                        string from    = "";
                        string subject = "DonateNeedy Registration";
                        string body    = "<html>" + "<body>" + "<p style='font-size: 14px; color: #000;'>"
                                         + "<p style='font-size: 14px; color: #000;'>" +
                                         string.Format("Dear {0} <BR/><BR/> Thank you for registering with us, please click on the link to complete your registration: <a href =\"{1}\">Click Here</a> <br/><br/><br/>Best Regards<br/>From DonateNeedy Team",
                                                       register.firstName, Url.Action("EmailConfirm", "User", new { Token = GetUserByID[0].registrationID }, Request.Url.Scheme)) +
                                         "</p>" + "</body>" + "</html>";

                        mail(from, subject, body, register.emailID);

                        TempData["msg1"] = "We have sent you an e-mail please go through that and confirm your account ";
                    }
                    else
                    {
                        List <usp_CRUDtblRegistation_Result> GetUserByID = donateNeedy.usp_CRUDtblRegistation(0, 1, countryid, stateid, register.firstName, register.lastName, register.emailID,
                                                                                                              register.Password, register.Address, cityid, register.Pincode, null, false, register.PhoneNumber, register.userName, null, register.middleName, titleid, 1).ToList();


                        string from    = "";
                        string subject = "DonateNeedy Registration";
                        string body    = "<html>" + "<body>" + "<p style='font-size: 14px; color: #000;'>"
                                         + "<p style='font-size: 14px; color: #000;'>" +
                                         string.Format("Dear {0} <BR/><BR/> Thank you for registering with us, please click on the link to complete your registration: <a href =\"{1}\">Click Here</a> <br/><br/><br/>Best Regards<br/>From DonateNeedy Team",
                                                       register.firstName, Url.Action("EmailConfirm", "User", new { Token = GetUserByID[0].registrationID }, Request.Url.Scheme)) +
                                         "</p>" + "</body>" + "</html>";

                        mail(from, subject, body, register.emailID);

                        TempData["msg1"] = "We have sent you an e-mail please go through that and confirm your account";
                    }
                }
                else
                {
                    TempData["msg2"] = "Your email is already registered with us";
                    ModelState.Clear();
                }
                writeToLogFile("signup post - Load Data Binding Ends: " + date1 + "\r\n====================\r\n", "true");
            }
            catch (Exception ex)
            {
                errorLog(ex.Message.ToString(), ex.GetType().ToString(), "SignUp");
                TempData["msg"] = "Some thing went wrong. Please try Again..";
            }
            return(View());
        }
Пример #25
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 1 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"

            Layout = "_Layout";

#line default
#line hidden
            BeginContext(27, 1, true);
            WriteLiteral("\n");
            EndContext();
            BeginContext(64, 49, true);
            WriteLiteral("\n<h2>Are you sure you want to delete this?</h2>\n\n");
            EndContext();
            BeginContext(114, 40, false);
#line 9 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            Write(Html.DisplayNameFor(model => model.Name));

#line default
#line hidden
            EndContext();
            BeginContext(154, 2, true);
            WriteLiteral(": ");
            EndContext();
            BeginContext(157, 36, false);
#line 9 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            Write(Html.DisplayFor(model => model.Name));

#line default
#line hidden
            EndContext();
            BeginContext(193, 1, true);
            WriteLiteral("\n");
            EndContext();
#line 10 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            using (Html.BeginForm())
            {
#line default
#line hidden
                BeginContext(222, 43, true);
                WriteLiteral("    <input type=\"submit\" value=\"Delete\" />\n");
                EndContext();
#line 13 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            }

#line default
#line hidden
            BeginContext(267, 41, true);
            WriteLiteral("<input type=\"button\" value=\"Student List\"");
            EndContext();
            BeginWriteAttribute("onclick", " onclick=\"", 308, "\"", 367, 3);
            WriteAttributeValue("", 318, "location.href=\'", 318, 15, true);
#line 14 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            WriteAttributeValue("", 333, Url.Action("Index", "Students"), 333, 32, false);

#line default
#line hidden
            WriteAttributeValue("", 365, "\';", 365, 2, true);
            EndWriteAttribute();
            BeginContext(368, 68, true);
            WriteLiteral(" class=\"btn btn-primary\" />\n<input type=\"button\" value=\"Return Home\"");
            EndContext();
            BeginWriteAttribute("onclick", " onclick=\"", 436, "\"", 491, 3);
            WriteAttributeValue("", 446, "location.href=\'", 446, 15, true);
#line 15 "/Users/iangregg/Desktop/UniversityRegistrar.solution/UniversityReg/Views/Students/Delete.cshtml"
            WriteAttributeValue("", 461, Url.Action("Index", "Home"), 461, 28, false);

#line default
#line hidden
            WriteAttributeValue("", 489, "\';", 489, 2, true);
            EndWriteAttribute();
            BeginContext(492, 27, true);
            WriteLiteral(" class=\"btn btn-primary\" />");
            EndContext();
        }
Пример #26
0
 public ActionResult ExternalLogin(string provider, string returnUrl)
 {
     return(new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl })));
 }
Пример #27
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(38, 2, true);
            WriteLiteral("\r\n");
            EndContext();
            BeginContext(138, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 6 "C:\Users\Tech-W154\source\repos\Final-Project\Final-Project\Views\Shared\_LoginPartial.cshtml"
            if (SignInManager.IsSignedIn(User))
            {
#line default
#line hidden
                BeginContext(181, 4, true);
                WriteLiteral("    ");
                EndContext();
                BeginContext(185, 555, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "e4dee8c224c94eaf8d18cc4512e489de", async() => {
                    BeginContext(359, 86, true);
                    WriteLiteral("\r\n        <ul class=\"nav navbar-nav navbar-right\">\r\n            <li>\r\n                ");
                    EndContext();
                    BeginContext(445, 112, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "770295dd5bd04bd284880b77959d4c60", async() => {
                        BeginContext(516, 6, true);
                        WriteLiteral("Hello ");
                        EndContext();
                        BeginContext(523, 29, false);
#line 11 "C:\Users\Tech-W154\source\repos\Final-Project\Final-Project\Views\Shared\_LoginPartial.cshtml"
                        Write(UserManager.GetUserName(User));

#line default
#line hidden
                        EndContext();
                        BeginContext(552, 1, true);
                        WriteLiteral("!");
                        EndContext();
                    }
                                                                                );
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                    __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                    __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_1.Value;
                    __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
                    __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(557, 176, true);
                    WriteLiteral("\r\n            </li>\r\n            <li>\r\n                <button type=\"submit\" class=\"btn btn-link navbar-btn navbar-link\">Logout</button>\r\n            </li>\r\n        </ul>\r\n    ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Page = (string)__tagHelperAttribute_3.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 8 "C:\Users\Tech-W154\source\repos\Final-Project\Final-Project\Views\Shared\_LoginPartial.cshtml"
                WriteLiteral(Url.Action("Index", "Home", new { area = "" }));

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(740, 2, true);
                WriteLiteral("\r\n");
                EndContext();
#line 18 "C:\Users\Tech-W154\source\repos\Final-Project\Final-Project\Views\Shared\_LoginPartial.cshtml"
            }
            else
            {
#line default
#line hidden
                BeginContext(754, 58, true);
                WriteLiteral("    <ul class=\"nav navbar-nav navbar-right\">\r\n        <li>");
                EndContext();
                BeginContext(812, 64, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "9b8120e3fa2d4fc0a3b70d97854b73b7", async() => {
                    BeginContext(864, 8, true);
                    WriteLiteral("Register");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_7.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(876, 19, true);
                WriteLiteral("</li>\r\n        <li>");
                EndContext();
                BeginContext(895, 58, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "15b13daf4e1149ac975ddb0e189f0368", async() => {
                    BeginContext(944, 5, true);
                    WriteLiteral("Login");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_8.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(953, 18, true);
                WriteLiteral("</li>\r\n    </ul>\r\n");
                EndContext();
#line 25 "C:\Users\Tech-W154\source\repos\Final-Project\Final-Project\Views\Shared\_LoginPartial.cshtml"
            }

#line default
#line hidden
        }
Пример #28
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(86, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 5 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"

            ViewData["Title"] = "Home Page";

#line default
#line hidden
            BeginContext(133, 122, true);
            WriteLiteral("\r\n<br/>\r\n<br/>\r\n<br/>\r\n<table class=\"table table-bordered\">\r\n    <thead>\r\n        <tr>\r\n            <th>\r\n                ");
            EndContext();
            BeginContext(256, 38, false);
#line 16 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.DisplayNameFor(model => model.Id));

#line default
#line hidden
            EndContext();
            BeginContext(294, 55, true);
            WriteLiteral("\r\n            </th>\r\n            <th>\r\n                ");
            EndContext();
            BeginContext(350, 40, false);
#line 19 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.DisplayNameFor(model => model.Name));

#line default
#line hidden
            EndContext();
            BeginContext(390, 55, true);
            WriteLiteral("\r\n            </th>\r\n            <th>\r\n                ");
            EndContext();
            BeginContext(446, 43, false);
#line 22 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.DisplayNameFor(model => model.Company));

#line default
#line hidden
            EndContext();
            BeginContext(489, 63, true);
            WriteLiteral("\r\n            </th>\r\n        </tr>\r\n    </thead>\r\n    <tbody>\r\n");
            EndContext();
#line 27 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(601, 60, true);
                WriteLiteral("            <tr>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(662, 37, false);
#line 31 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Id));

#line default
#line hidden
                EndContext();
                BeginContext(699, 67, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(767, 39, false);
#line 34 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Name));

#line default
#line hidden
                EndContext();
                BeginContext(806, 67, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(874, 42, false);
#line 37 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
                Write(Html.DisplayFor(modelItem => item.Company));

#line default
#line hidden
                EndContext();
                BeginContext(916, 44, true);
                WriteLiteral("\r\n                </td>\r\n            </tr>\r\n");
                EndContext();
#line 40 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(971, 28, true);
            WriteLiteral("    </tbody>\r\n\r\n</table>\r\n\r\n");
            EndContext();
            BeginContext(1379, 65, true);
            WriteLiteral("\r\n<h3>Pager Configurations</h3>\r\n<h6>Default Pager Control</h6>\r\n");
            EndContext();
            BeginContext(1445, 68, false);
#line 49 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page })));

#line default
#line hidden
            EndContext();
            BeginContext(1513, 28, true);
            WriteLiteral("\r\n\r\n<h6>Minimal Pager</h6>\r\n");
            EndContext();
            BeginContext(1542, 93, false);
#line 52 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), PrePagerOptions.Minimal));

#line default
#line hidden
            EndContext();
            BeginContext(1635, 62, true);
            WriteLiteral("\r\n\r\n<h6>Minimal Pager with Pager Text (Page Count Text)</h6>\r\n");
            EndContext();
            BeginContext(1698, 106, false);
#line 55 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), PrePagerOptions.MinimalWithPagerText));

#line default
#line hidden
            EndContext();
            BeginContext(1804, 64, true);
            WriteLiteral("\r\n\r\n<h6>Minimal Pager with entries text (Item Count Text)</h6>\r\n");
            EndContext();
            BeginContext(1869, 108, false);
#line 58 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), PrePagerOptions.MinimalWithEntriesText));

#line default
#line hidden
            EndContext();
            BeginContext(1977, 111, true);
            WriteLiteral("\r\n\r\n<h6>Classic Pager <small>(always shows Previous/Next links, but sometimes they are disabled)</small></h6>\r\n");
            EndContext();
            BeginContext(2089, 98, false);
#line 61 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), PrePagerOptions.ClassicPager));

#line default
#line hidden
            EndContext();
            BeginContext(2187, 118, true);
            WriteLiteral("\r\n\r\n<h6>Classic Pager <small>(Classic Pager with First and Last links, but sometimes they are disabled)</small></h6>\r\n");
            EndContext();
            BeginContext(2306, 119, false);
#line 64 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), PrePagerOptions.ClassicPagerWithFirstAndLastPages));

#line default
#line hidden
            EndContext();
            BeginContext(2425, 59, true);
            WriteLiteral("\r\n\r\n<h6>Shows custom page numbers, let say 10 pages.</h6>\r\n");
            EndContext();
            BeginContext(2485, 110, false);
#line 67 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), new PagerOptions {
                PagesToDisplay = 10
            }));

#line default
#line hidden
            EndContext();
            BeginContext(2595, 39, true);
            WriteLiteral("\r\n\r\n<h6>With Custom Page numbers</h6>\r\n");
            EndContext();
            BeginContext(2635, 125, false);
#line 70 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), new PagerOptions {
                TextToIndividualPages = "Page-{0}"
            }));

#line default
#line hidden
            EndContext();
            BeginContext(2760, 69, true);
            WriteLiteral("\r\n\r\n<h6>Custom Wording. (<i>Can use for translation also.</i>)</h6>\r\n");
            EndContext();
            BeginContext(2830, 219, false);
#line 73 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), new PagerOptions {
                TextToPreviousPage = "Previous Page", TextToNextPage = "Next Page", TextToFirstPage = "First Page", TextToLastPage = "Last Page"
            }));

#line default
#line hidden
            EndContext();
            BeginContext(3049, 30, true);
            WriteLiteral("\r\n\r\n<h6>Custom options.</h6>\r\n");
            EndContext();
            BeginContext(3080, 358, false);
#line 76 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), new PagerOptions {
                TextToPreviousPage = "last-page", TextToNextPage = "next-page", TextToFirstPage = "first-page", TextToLastPage = "last-page", ClassToUl = "list-inline", ClassToLi = "list-inline-item", PageClass = "nopageclass", ClassToActiveLi = "niloclass", TextForDelimiter = " | "
            }));

#line default
#line hidden
            EndContext();
            BeginContext(3438, 53, true);
            WriteLiteral("\r\n\r\n<h6>Custom Icon Options (Fontawsome 5.8.1)</h6>\r\n");
            EndContext();
            BeginContext(3492, 320, false);
#line 79 "C:\Users\thiag\source\repos\TestPager\TestPager\Views\Home\Index.cshtml"
            Write(Html.Pager((IPager)Model, page => Url.Action("Index", new { page }), new PagerOptions {
                TextToPreviousPage = "<i class='fas fa-step-backward'></i>", TextToNextPage = "<i class='fas fa-step-forward'></i>", TextToFirstPage = "<i class='fas fa-fast-backward'></i>", TextToLastPage = "<i class='fas fa-fast-forward'></i>"
            }));

#line default
#line hidden
            EndContext();
        }
Пример #29
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#line 5 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"

            ViewData["Title"] = "Add";
            Layout            = "~/Views/Shared/_Layout.cshtml";

#line default
#line hidden
            BeginContext(198, 45, true);
            WriteLiteral("\r\n<article class=\"page-container\">\r\n    <form");
            EndContext();
            BeginWriteAttribute("action", " action=\"", 243, "\"", 305, 1);
#line 11 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 252, Url.Action("Save", new { MemberID = Model.MemberID }), 252, 53, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(306, 682, true);
            WriteLiteral(@" method=""post"" class=""form form-horizontal"" id=""form-add"">
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>会员等级:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <span class=""select-box"">
                    <select class=""select"" size=""1"" id=""fRankId"" name=""fRankId""></select>
                </span>
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>公司名称:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <input type=""text"" class=""input-text""");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 988, "\"", 1014, 1);
#line 23 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 996, Model.CompanyName, 996, 18, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1015, 330, true);
            WriteLiteral(@" placeholder="""" id=""CompanyName"" name=""CompanyName"" />
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>姓名:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <input type=""text"" class=""input-text""");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 1345, "\"", 1364, 1);
#line 29 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 1353, Model.Name, 1353, 11, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(1365, 392, true);
            WriteLiteral(@" placeholder="""" id=""fName"" name=""fName"" />
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>性别:</label>
            <div class=""formControls col-xs-8 col-sm-9 skin-minimal"">
                <div class=""radio-box"">
                    <input type=""radio"" id=""sex-1"" name=""fSex"" value=""1"" ");
            EndContext();
            BeginContext(1759, 39, false);
#line 36 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            Write(Model.Sex.ToInt() == 1 ? "checked" : "");

#line default
#line hidden
            EndContext();
            BeginContext(1799, 193, true);
            WriteLiteral(" />\r\n                    <label for=\"sex-1\">男</label>\r\n                </div>\r\n                <div class=\"radio-box\">\r\n                    <input type=\"radio\" id=\"sex-2\" name=\"fSex\" value=\"2\" ");
            EndContext();
            BeginContext(1994, 39, false);
#line 40 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            Write(Model.Sex.ToInt() == 2 ? "checked" : "");

#line default
#line hidden
            EndContext();
            BeginContext(2034, 193, true);
            WriteLiteral(" />\r\n                    <label for=\"sex-2\">女</label>\r\n                </div>\r\n                <div class=\"radio-box\">\r\n                    <input type=\"radio\" id=\"sex-3\" name=\"fSex\" value=\"0\" ");
            EndContext();
            BeginContext(2229, 39, false);
#line 44 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            Write(Model.Sex.ToInt() == 0 ? "checked" : "");

#line default
#line hidden
            EndContext();
            BeginContext(2269, 354, true);
            WriteLiteral(@" />
                    <label for=""sex-3"">保密</label>
                </div>
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>手机:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <input type=""text"" class=""input-text""");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 2623, "\"", 2643, 1);
#line 52 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 2631, Model.Phone, 2631, 12, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(2644, 320, true);
            WriteLiteral(@" placeholder="""" id=""fPhone"" name=""fPhone"" />
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>邮箱:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <input type=""text"" class=""input-text""");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 2964, "\"", 2984, 1);
#line 58 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 2972, Model.Email, 2972, 12, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(2985, 320, true);
            WriteLiteral(@" placeholder="""" id=""fEmail"" name=""fEmail"" />
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2""><span class=""c-red"">*</span>地址:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <input type=""text"" class=""input-text""");
            EndContext();
            BeginWriteAttribute("value", " value=\"", 3305, "\"", 3327, 1);
#line 64 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            WriteAttributeValue("", 3313, Model.Address, 3313, 14, false);

#line default
#line hidden
            EndWriteAttribute();
            BeginContext(3328, 377, true);
            WriteLiteral(@" placeholder="""" id=""fAddress"" name=""fAddress"" />
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2"">备注:</label>
            <div class=""formControls col-xs-8 col-sm-9"">
                <textarea id=""fRemark"" name=""fRemark"" cols="""" rows="""" class=""textarea"" placeholder=""说点什么...100个字符以内"" dragonfly=""true"">");
            EndContext();
            BeginContext(3706, 12, false);
#line 70 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            Write(Model.Remark);

#line default
#line hidden
            EndContext();
            BeginContext(3718, 428, true);
            WriteLiteral(@"</textarea>
                <p class=""textarea-numberbar""><em class=""textarea-length""></em>/100</p>
            </div>
        </div>
        <div class=""row cl"">
            <label class=""form-label col-xs-4 col-sm-2"">审核:</label>
            <div class=""formControls col-xs-8 col-sm-9 skin-minimal"">
                <div class=""check-box"">
                    <input type=""checkbox"" id=""fState"" name=""fState"" value=""1"" ");
            EndContext();
            BeginContext(4148, 37, false);
#line 78 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
            Write(Model.State.ToBool() ? "checked" : "");

#line default
#line hidden
            EndContext();
            BeginContext(4186, 400, true);
            WriteLiteral(@" />
                    <label for=""checkbox-1"">&nbsp;</label>
                </div>
            </div>
        </div>
        <div class=""row cl"">
            <div class=""col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2"">
                <input class=""btn btn-primary radius"" type=""submit"" value=""&nbsp;&nbsp;提交&nbsp;&nbsp;"">
            </div>
        </div>
    </form>
</article>

");
            EndContext();
            DefineSection("scripts", async() => {
                BeginContext(4665, 34, true);
                WriteLiteral("\r\n    <!--请在下方写此页面业务相关的脚本-->\r\n    ");
                EndContext();
                BeginContext(4699, 92, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "137ce5f91b494cf68eea77f608d2fb56", 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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4791, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(4797, 102, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "67de79d1e5c0428ca43ba5f991818262", 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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(4899, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(4905, 103, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "695ca13d35df4686960949b364bfebde", 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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(5008, 6, true);
                WriteLiteral("\r\n    ");
                EndContext();
                BeginContext(5014, 98, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "397f5d57a4e84a578caaadb19afbc861", 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);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(5112, 563, true);
                WriteLiteral(@"
    <script type=""text/javascript"">
        (function ($) {
            $.mainu = {
                init: function () {
                    $('.skin-minimal input').iCheck({
                        checkboxClass: 'icheckbox-blue',
                        radioClass: 'iradio-blue',
                        increaseArea: '20%'
                    });
                    $(""#fRemark"").Huitextarealength({
                        minlength: 4,
                        maxlength: 100
                    });
                    $.mainu.getMemberRank(""");
                EndContext();
                BeginContext(5676, 12, false);
#line 115 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
                Write(Model.RankID);

#line default
#line hidden
                EndContext();
                BeginContext(5688, 108, true);
                WriteLiteral("\");\r\n                },\r\n                getMemberRank: function (rankid) {\r\n                    var url = \"");
                EndContext();
                BeginContext(5797, 27, false);
#line 118 "G:\蓝点管理信息系统-开源版ASP.NET CORE\LdCms\LdCms.Web\Views\MemberAccount\Add.cshtml"
                Write(Url.Action("rank-list-get"));

#line default
#line hidden
                EndContext();
                BeginContext(5824, 3419, true);
                WriteLiteral(@""";
                    $.ajaxSetup({ cache: false });
                    $.get(url, { state: true }, function (result) {
                        var state = result.state;
                        var message = result.message;
                        var strOption = '<option value="""">请选择会员等级</option>';
                        if (state == ""success"") {
                            var list = result.data;
                            for (var i = 0; i < list.length; i++) {
                                if (rankid == list[i].id)
                                    strOption += '<option value=""' + list[i].id + '"" selected>' + list[i].name + '</option>';
                                else
                                    strOption += '<option value=""' + list[i].id + '"">' + list[i].name + '</option>';
                            }
                        }
                        $(""#fRankId"").html(strOption);
                    });
                },
                formSubmit: function () {");
                WriteLiteral(@"
                    $(""#form-add"").validate({
                        rules: {
                            fRankId: {
                                required: true
                            },
                            fName: {
                                required: true
                            },
                            fPhone: {
                                required: true
                            }
                        },
                        onkeyup: false,
                        focusCleanup: true,
                        success: ""valid"",
                        submitHandler: function (form) {
                            var fRankName = $(""select[name='fRankId']"").find(""option:selected"").text();
                            var fState = $(""input[name='fState']"").is(':checked');
                            $(form).ajaxSubmit({
                                type: ""POST"",
                                cache: false,
                                data:");
                WriteLiteral(@" { fRankName: fRankName, fState: fState },
                                dataType: ""json"",
                                error: function (XMLHttpRequest, textStatus, errorThrown) {
                                    if (XMLHttpRequest.status != 200) {
                                        layer.alert(""POST[FAIL]"", { icon: 5 });
                                    }
                                },
                                success: function (result) {
                                    var state = result.state;
                                    var message = result.message;
                                    if (state == ""success"") {
                                        var index = parent.layer.getFrameIndex(window.name);
                                        parent.location.reload();
                                        parent.layer.close(index);
                                    } else {
                                        layer.alert(message, { icon: 5 });
 ");
                WriteLiteral(@"                                   }
                                }
                            });
                        }
                    });
                }
            };
            $(function () {
                $.mainu.init();
                $.mainu.formSubmit();
            });
        })(jQuery);
    </script>
");
                EndContext();
            }
                          );
            BeginContext(9246, 2, true);
            WriteLiteral("\r\n");
            EndContext();
        }
Пример #30
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(51, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"

            ViewData["Title"] = "My questions";

#line default
#line hidden
            BeginContext(101, 19, true);
            WriteLiteral("<br />\r\n\r\n<p>\r\n    ");
            EndContext();
            BeginContext(120, 102, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "95594f0ba3a948ffa356e779d14658cb", async() => {
                BeginContext(168, 50, true);
                WriteLiteral("<i class=\"fas fa-arrow-alt-circle-left fa-2x\"></i>");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_0.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_1.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(222, 6, true);
            WriteLiteral("\r\n    ");
            EndContext();
            BeginContext(228, 80, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ef59893c8c194e6b8f2eae637b6986de", async() => {
                BeginContext(294, 10, true);
                WriteLiteral("Create New");
                EndContext();
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
            __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_2.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(308, 449, true);
            WriteLiteral(@"
</p>
<table class=""table table-hover table-sm table-bordered"">
    <thead class=""thead-light"">
        <tr class=""text-center"">
            <th style=""width: auto""> Text  </th>
            <th style=""width: 20%""> Answer </th>
            <th style=""width: 12%""> Difficulty </th>
            <th> Time </th>
            <th style=""width: 10%"">Course </th>
            <th style=""width: 7%""></th>
        </tr>
    </thead>
    <tbody>
");
            EndContext();
#line 24 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
            foreach (var item in Model)
            {
#line default
#line hidden
                BeginContext(806, 80, true);
                WriteLiteral("            <tr class=\"text-center\">\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(887, 39, false);
#line 28 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                Write(Html.DisplayFor(modelItem => item.Text));

#line default
#line hidden
                EndContext();
                BeginContext(926, 67, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(994, 41, false);
#line 31 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                Write(Html.DisplayFor(modelItem => item.Answer));

#line default
#line hidden
                EndContext();
                BeginContext(1035, 47, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n");
                EndContext();
#line 34 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                for (var i = 0; i < item.Difficulty / 2; i++)
                {
#line default
#line hidden
                    BeginContext(1173, 65, true);
                    WriteLiteral("                        <i class=\"text-warning fa fa-star\"></i>\r\n");
                    EndContext();
#line 37 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                }

#line default
#line hidden
                BeginContext(1261, 20, true);
                WriteLiteral("                    ");
                EndContext();
#line 38 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                if (item.Difficulty % 2 != 0)
                {
#line default
#line hidden
                    BeginContext(1336, 75, true);
                    WriteLiteral("                        <i class=\"text-warning fas fa-star-half-alt\"></i>\r\n");
                    EndContext();
#line 41 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                }

#line default
#line hidden
                BeginContext(1434, 20, true);
                WriteLiteral("                    ");
                EndContext();
#line 42 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                for (var i = (item.Difficulty + 1) / 2; i < 5; i++)
                {
#line default
#line hidden
                    BeginContext(1531, 66, true);
                    WriteLiteral("                        <i class=\"text-warning far fa-star\"></i>\r\n");
                    EndContext();
#line 45 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                }

#line default
#line hidden
                BeginContext(1620, 65, true);
                WriteLiteral("                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(1686, 39, false);
#line 48 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                Write(Html.DisplayFor(modelItem => item.Time));

#line default
#line hidden
                EndContext();
                BeginContext(1725, 67, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    ");
                EndContext();
                BeginContext(1793, 41, false);
#line 51 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                Write(Html.DisplayFor(modelItem => item.Course));

#line default
#line hidden
                EndContext();
                BeginContext(1834, 148, true);
                WriteLiteral("\r\n                </td>\r\n                <td>\r\n                    <div class=\"btn-group\" role=\"group\" aria-label=\"Group\">\r\n                        ");
                EndContext();
                BeginContext(1982, 113, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a09a6b04ac5d4680b0ccbced0b943736", async() => {
                    BeginContext(2062, 29, true);
                    WriteLiteral("<i class=\"fas fa-info\"></i>  ");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                if (__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues == null)
                {
                    throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper", "RouteValues"));
                }
                BeginWriteTagHelperAttribute();
#line 55 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
                WriteLiteral(item.qId);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer;
                __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(2095, 292, true);
                WriteLiteral(@"
                        <button class=""btn btn-danger btn-sm"" data-toggle=""modal"" data-target="".bd-example-modal-sm"">
                            <i class=""fas fa-trash-alt""></i>
                        </button>


                    </div>
                </td>
            </tr>
");
                EndContext();
#line 64 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
            }

#line default
#line hidden
            BeginContext(2400, 944, true);
            WriteLiteral(@"    </tbody>
</table>


<!-- Modal -->
<div class=""modal fade bd-example-modal-sm"" tabindex=""-1"" role=""dialog"" aria-labelledby=""mySmallModalLabel"" aria-hidden=""true"">
    <div class=""modal-dialog modal-sm modal-dialog-centered"">
        <div class=""modal-content  text-sm-center  "">
            <div class=""modal-header  text-sm-center"">
                <h4 class=""modal-title text-center"">Are you sure?</h4>
                <button type=""button"" class=""close"" data-dismiss=""modal"" aria-hidden=""true"">&times;</button>
            </div>
            <div class=""modal-body text-sm-center"">
                <p>Do you really want to delete that record?</p>
            </div>
            <div class=""modal-footer "">
                <div class=""col text-center"">
                    <button type=""button"" class=""btn btn-primary"" data-dismiss=""modal"">Cancel</button>
                    <button type=""button"" class=""btn btn-danger""");
            EndContext();
            BeginWriteAttribute("onclick", " onclick=\"", 3344, "\"", 3423, 3);
            WriteAttributeValue("", 3354, "location.href=\'", 3354, 15, true);
#line 84 "C:\Users\ionut\Desktop\Evaluation\Evaluation\Views\SendExam\SendExam.cshtml"
            WriteAttributeValue("", 3369, Url.Action("Delete", "Questions", new { id = 1009 }), 3369, 53, false);

#line default
#line hidden
            WriteAttributeValue("", 3422, "\'", 3422, 1, true);
            EndWriteAttribute();
            BeginContext(3424, 96, true);
            WriteLiteral(">Delete</button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");
            EndContext();
        }