-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
--------------------------------------------------------------------------------
/MVC_Print_PDF/Startup.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Owin;
2 | using Owin;
3 |
4 | [assembly: OwinStartupAttribute(typeof(MVC_Print_PDF.Startup))]
5 | namespace MVC_Print_PDF
6 | {
7 | public partial class Startup
8 | {
9 | public void Configuration(IAppBuilder app)
10 | {
11 | ConfigureAuth(app);
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ConfirmEmail.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Confirm Email";
3 | }
4 |
5 | @ViewBag.Title.
6 |
7 |
8 | Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
9 |
10 |
11 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ExternalLoginConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ExternalLoginConfirmationViewModel
2 | @{
3 | ViewBag.Title = "Register";
4 | }
5 | @ViewBag.Title.
6 | Associate your @ViewBag.LoginProvider account.
7 |
8 | @using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 |
12 | Association Form
13 |
14 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
15 |
16 | You've successfully authenticated with @ViewBag.LoginProvider.
17 | Please enter a user name for this site below and click the Register button to finish
18 | logging in.
19 |
20 |
27 |
32 | }
33 |
34 | @section Scripts {
35 | @Scripts.Render("~/bundles/jqueryval")
36 | }
37 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ExternalLoginFailure.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Login Failure";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 | Unsuccessful login with service.
8 |
9 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ForgotPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ForgotPasswordViewModel
2 | @{
3 | ViewBag.Title = "Forgot your password?";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Enter your email.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
25 | }
26 |
27 | @section Scripts {
28 | @Scripts.Render("~/bundles/jqueryval")
29 | }
30 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ForgotPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Forgot Password Confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Please check your email to reset your password.
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/Login.cshtml:
--------------------------------------------------------------------------------
1 | @using MVC_Print_PDF.Models
2 | @model LoginViewModel
3 | @{
4 | ViewBag.Title = "Log in";
5 | }
6 |
7 | @ViewBag.Title.
8 |
60 |
61 | @section Scripts {
62 | @Scripts.Render("~/bundles/jqueryval")
63 | }
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/Register.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.RegisterViewModel
2 | @{
3 | ViewBag.Title = "Register";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Create a new account.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
26 |
32 |
37 | }
38 |
39 | @section Scripts {
40 | @Scripts.Render("~/bundles/jqueryval")
41 | }
42 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ResetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ResetPasswordViewModel
2 | @{
3 | ViewBag.Title = "Reset password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Reset your password.
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 | @Html.HiddenFor(model => model.Code)
15 |
21 |
27 |
33 |
38 | }
39 |
40 | @section Scripts {
41 | @Scripts.Render("~/bundles/jqueryval")
42 | }
43 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/ResetPasswordConfirmation.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Reset password confirmation";
3 | }
4 |
5 |
6 | @ViewBag.Title.
7 |
8 |
9 |
10 | Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
11 |
12 |
13 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/SendCode.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.SendCodeViewModel
2 | @{
3 | ViewBag.Title = "Send";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("SendCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
9 | @Html.AntiForgeryToken()
10 | @Html.Hidden("rememberMe", @Model.RememberMe)
11 | Send verification code
12 |
13 |
14 |
15 | Select Two-Factor Authentication Provider:
16 | @Html.DropDownListFor(model => model.SelectedProvider, Model.Providers)
17 |
18 |
19 |
20 | }
21 |
22 | @section Scripts {
23 | @Scripts.Render("~/bundles/jqueryval")
24 | }
25 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/VerifyCode.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.VerifyCodeViewModel
2 | @{
3 | ViewBag.Title = "Verify";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("VerifyCode", "Account", new { ReturnUrl = Model.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" })) {
9 | @Html.AntiForgeryToken()
10 | @Html.Hidden("provider", @Model.Provider)
11 | @Html.Hidden("rememberMe", @Model.RememberMe)
12 | Enter verification code
13 |
14 | @Html.ValidationSummary("", new { @class = "text-danger" })
15 |
21 |
29 |
34 | }
35 |
36 | @section Scripts {
37 | @Scripts.Render("~/bundles/jqueryval")
38 | }
39 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Account/_ExternalLoginsListPartial.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ExternalLoginListViewModel
2 | @using Microsoft.Owin.Security
3 |
4 | Use another service to log in.
5 |
6 | @{
7 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
8 | if (loginProviders.Count() == 0) {
9 |
10 |
11 | There are no external authentication services configured. See this article
12 | for details on setting up this ASP.NET application to support logging in via external services.
13 |
14 |
15 | }
16 | else {
17 | using (Html.BeginForm("ExternalLogin", "Account", new { ReturnUrl = Model.ReturnUrl })) {
18 | @Html.AntiForgeryToken()
19 |
20 |
21 | @foreach (AuthenticationDescription p in loginProviders) {
22 |
23 | }
24 |
25 |
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/EmployeeInfo/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model IEnumerable
2 |
3 | @{
4 | ViewBag.Title = "Index";
5 | }
6 |
7 | Index
8 |
9 |
10 | @Html.ActionLink("Print","PrintAllReport")
11 |
12 |
13 |
14 |
15 | @Html.DisplayNameFor(model => model.EmpName)
16 | |
17 |
18 | @Html.DisplayNameFor(model => model.Salary)
19 | |
20 |
21 | @Html.DisplayNameFor(model => model.DeptName)
22 | |
23 |
24 | @Html.DisplayNameFor(model => model.Designation)
25 | |
26 |
27 | @Html.DisplayNameFor(model => model.NetSalary)
28 | |
29 | |
30 |
31 |
32 | @foreach (var item in Model) {
33 |
34 |
35 | @Html.DisplayFor(modelItem => item.EmpName)
36 | |
37 |
38 | @Html.DisplayFor(modelItem => item.Salary)
39 | |
40 |
41 | @Html.DisplayFor(modelItem => item.DeptName)
42 | |
43 |
44 | @Html.DisplayFor(modelItem => item.Designation)
45 | |
46 |
47 | @Html.DisplayFor(modelItem => item.NetSalary)
48 | |
49 |
50 | @Html.ActionLink("Print Salary Slip", "PrintSalarySlip", new { id=item.EmpNo })
51 |
52 | |
53 |
54 | }
55 |
56 |
57 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/EmployeeInfo/IndexById.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.EmployeeInfo
2 |
3 | @{
4 | ViewBag.Title = "IndexById";
5 | }
6 |
7 |
8 |
9 |
Salary Details of : @Model.EmpName
10 |
11 |
12 | Department Name : |
13 | @Model.DeptName |
14 |
15 |
16 | Designation : |
17 | @Model.Designation |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | Income Details |
26 |
27 |
28 | Salary |
29 | @Model.Salary |
30 |
31 |
32 | HRA |
33 | @Model.HRA |
34 |
35 |
36 | TA |
37 | @Model.TA |
38 |
39 |
40 | DA |
41 | @Model.DA |
42 |
43 |
44 | Gorss Salary |
45 | @Model.GrossSalary |
46 |
47 |
48 | |
49 |
50 |
51 |
52 |
53 | Deductions
54 | |
55 |
56 |
57 | TDS |
58 | @Model.TDS |
59 |
60 |
61 |
62 | Net Salary |
63 |
64 | @Model.NetSalary
65 | |
66 |
67 |
68 |
69 | |
70 |
71 |
72 |
73 | @Html.ActionLink("Back to List", "Index")
74 |
75 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "About";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 | Use this area to provide additional information.
8 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Home/Contact.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Contact";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P:
11 | 425.555.0100
12 |
13 |
14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com
17 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Home Page";
3 | }
4 |
5 |
6 |
ASP.NET
7 |
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
8 |
Learn more »
9 |
10 |
11 |
12 |
13 |
Getting started
14 |
15 | ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
16 | enables a clean separation of concerns and gives you full control over markup
17 | for enjoyable, agile development.
18 |
19 |
Learn more »
20 |
21 |
22 |
Get more libraries
23 |
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
24 |
Learn more »
25 |
26 |
27 |
Web Hosting
28 |
You can easily find a web hosting company that offers the right mix of features and price for your applications.
29 |
Learn more »
30 |
31 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/AddPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.AddPhoneNumberViewModel
2 | @{
3 | ViewBag.Title = "Phone Number";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Add a phone number
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
25 | }
26 |
27 | @section Scripts {
28 | @Scripts.Render("~/bundles/jqueryval")
29 | }
30 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/ChangePassword.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ChangePasswordViewModel
2 | @{
3 | ViewBag.Title = "Change Password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("ChangePassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | Change Password Form
12 |
13 | @Html.ValidationSummary("", new { @class = "text-danger" })
14 |
20 |
26 |
32 |
37 | }
38 | @section Scripts {
39 | @Scripts.Render("~/bundles/jqueryval")
40 | }
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.IndexViewModel
2 | @{
3 | ViewBag.Title = "Manage";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @ViewBag.StatusMessage
9 |
10 |
Change your account settings
11 |
12 |
13 | - Password:
14 | -
15 | [
16 | @if (Model.HasPassword)
17 | {
18 | @Html.ActionLink("Change your password", "ChangePassword")
19 | }
20 | else
21 | {
22 | @Html.ActionLink("Create", "SetPassword")
23 | }
24 | ]
25 |
26 | - External Logins:
27 | -
28 | @Model.Logins.Count [
29 | @Html.ActionLink("Manage", "ManageLogins") ]
30 |
31 | @*
32 | Phone Numbers can used as a second factor of verification in a two-factor authentication system.
33 |
34 | See this article
35 | for details on setting up this ASP.NET application to support two-factor authentication using SMS.
36 |
37 | Uncomment the following block after you have set up two-factor authentication
38 | *@
39 | @*
40 | - Phone Number:
41 | -
42 | @(Model.PhoneNumber ?? "None")
43 | @if (Model.PhoneNumber != null)
44 | {
45 |
46 | [ @Html.ActionLink("Change", "AddPhoneNumber") ]
47 | using (Html.BeginForm("RemovePhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
48 | {
49 | @Html.AntiForgeryToken()
50 | []
51 | }
52 | }
53 | else
54 | {
55 | [ @Html.ActionLink("Add", "AddPhoneNumber")
56 | }
57 |
58 | *@
59 | - Two-Factor Authentication:
60 | -
61 |
62 | There are no two-factor authentication providers configured. See this article
63 | for details on setting up this ASP.NET application to support two-factor authentication.
64 |
65 | @*@if (Model.TwoFactor)
66 | {
67 | using (Html.BeginForm("DisableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
68 | {
69 | @Html.AntiForgeryToken()
70 | Enabled
71 |
72 |
73 | }
74 | }
75 | else
76 | {
77 | using (Html.BeginForm("EnableTwoFactorAuthentication", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
78 | {
79 | @Html.AntiForgeryToken()
80 | Disabled
81 |
82 |
83 | }
84 | }*@
85 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/ManageLogins.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.ManageLoginsViewModel
2 | @using Microsoft.Owin.Security
3 | @{
4 | ViewBag.Title = "Manage your external logins";
5 | }
6 |
7 | @ViewBag.Title.
8 |
9 | @ViewBag.StatusMessage
10 | @{
11 | var loginProviders = Context.GetOwinContext().Authentication.GetExternalAuthenticationTypes();
12 | if (loginProviders.Count() == 0) {
13 |
14 |
15 | There are no external authentication services configured. See this article
16 | for details on setting up this ASP.NET application to support logging in via external services.
17 |
18 |
19 | }
20 | else
21 | {
22 | if (Model.CurrentLogins.Count > 0)
23 | {
24 | Registered Logins
25 |
53 | }
54 | if (Model.OtherLogins.Count > 0)
55 | {
56 | using (Html.BeginForm("LinkLogin", "Manage"))
57 | {
58 | @Html.AntiForgeryToken()
59 |
60 |
61 | @foreach (AuthenticationDescription p in Model.OtherLogins)
62 | {
63 |
64 | }
65 |
66 |
67 | }
68 | }
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/SetPassword.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.SetPasswordViewModel
2 | @{
3 | ViewBag.Title = "Create Password";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | You do not have a local username/password for this site. Add a local
9 | account so you can log in without an external login.
10 |
11 |
12 | @using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
13 | {
14 | @Html.AntiForgeryToken()
15 |
16 | Create Local Login
17 |
18 | @Html.ValidationSummary("", new { @class = "text-danger" })
19 |
25 |
31 |
36 | }
37 | @section Scripts {
38 | @Scripts.Render("~/bundles/jqueryval")
39 | }
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Manage/VerifyPhoneNumber.cshtml:
--------------------------------------------------------------------------------
1 | @model MVC_Print_PDF.Models.VerifyPhoneNumberViewModel
2 | @{
3 | ViewBag.Title = "Verify Phone Number";
4 | }
5 |
6 | @ViewBag.Title.
7 |
8 | @using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
9 | {
10 | @Html.AntiForgeryToken()
11 | @Html.Hidden("phoneNumber", @Model.PhoneNumber)
12 | Enter verification code
13 | @ViewBag.Status
14 |
15 | @Html.ValidationSummary("", new { @class = "text-danger" })
16 |
22 |
27 | }
28 |
29 | @section Scripts {
30 | @Scripts.Render("~/bundles/jqueryval")
31 | }
32 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Error";
5 | }
6 |
7 | Error.
8 | An error occurred while processing your request.
9 |
10 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Shared/Lockout.cshtml:
--------------------------------------------------------------------------------
1 | @model System.Web.Mvc.HandleErrorInfo
2 |
3 | @{
4 | ViewBag.Title = "Locked Out";
5 | }
6 |
7 |
8 | Locked out.
9 | This account has been locked out, please try again later.
10 |
11 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewBag.Title - My ASP.NET Application
7 | @Styles.Render("~/Content/css")
8 | @Scripts.Render("~/bundles/modernizr")
9 |
10 |
11 |
12 |
13 |
14 |
22 |
23 |
24 | - @Html.ActionLink("Home", "Index", "Home")
25 | - @Html.ActionLink("About", "About", "Home")
26 | - @Html.ActionLink("Contact", "Contact", "Home")
27 |
28 | @Html.Partial("_LoginPartial")
29 |
30 |
31 |
32 |
33 | @RenderBody()
34 |
35 |
38 |
39 |
40 | @Scripts.Render("~/bundles/jquery")
41 | @Scripts.Render("~/bundles/bootstrap")
42 | @RenderSection("scripts", required: false)
43 |
44 |
45 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using Microsoft.AspNet.Identity
2 | @if (Request.IsAuthenticated)
3 | {
4 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
5 | {
6 | @Html.AntiForgeryToken()
7 |
8 |
9 | -
10 | @Html.ActionLink("Hello " + User.Identity.GetUserName() + "!", "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Manage" })
11 |
12 | - Log off
13 |
14 | }
15 | }
16 | else
17 | {
18 |
19 | - @Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })
20 | - @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/MVC_Print_PDF/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/mvc-print-pdf/23980817b1ef86d7e493b6b39c4bada19cfb63a8/MVC_Print_PDF/favicon.ico
--------------------------------------------------------------------------------
/MVC_Print_PDF/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/mvc-print-pdf/23980817b1ef86d7e493b6b39c4bada19cfb63a8/MVC_Print_PDF/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/MVC_Print_PDF/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/mvc-print-pdf/23980817b1ef86d7e493b6b39c4bada19cfb63a8/MVC_Print_PDF/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/MVC_Print_PDF/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dotnetcurry/mvc-print-pdf/23980817b1ef86d7e493b6b39c4bada19cfb63a8/MVC_Print_PDF/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/MVC_Print_PDF/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Query.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE [dbo].[EmployeeInfo]
2 | (
3 | [EmpNo] INT identity PRIMARY KEY,
4 | [EmpName] varchar(50) Not Null,
5 | [Salary] int Not Null,
6 | [DeptName] varchar (50) Not Null,
7 | [Designation] varchar(50) Not Null,
8 | [HRA] as [Salary] * 0.2,
9 | [TA] as [Salary] * 0.15,
10 | [DA] as [Salary] * 0.18,
11 | [GrossSalary] as [Salary] + ([Salary]*0.2) + ([Salary] *0.15) + ([Salary]*0.18),
12 | [TDS] as ([Salary] + ([Salary]*0.2) + ([Salary] *0.15) + ([Salary]*0.18)) * 0.25,
13 | [NetSalary] as ([Salary] + ([Salary]*0.2) + ([Salary] *0.15) + ([Salary]*0.18))-([Salary] + ([Salary]*0.2) + ([Salary] *0.15) + ([Salary]*0.18)) * 0.25
14 | )
15 |
--------------------------------------------------------------------------------
/dbo.EmployeeInfo.data.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Mahesh', 45000, N'IT', N'Manager')
2 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Tejas', 89000, N'IT', N'Sr. Manager')
3 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Vikram', 56000, N'Sales', N'Manager')
4 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Saket', 58000, N'Sales', N'Sr. Manager')
5 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Amit', 89000, N'Stores', N'Sr. Manager')
6 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Ajit', 125000, N'R&D', N'G. Manager')
7 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Abhijeet', 48000, N'Training', N'Lead')
8 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Anil', 95000, N'Service', N'Sr. Manager')
9 | --INSERT INTO [dbo].[EmployeeInfo] ([EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Abhay', 85000, N'Service', N'Manager')
10 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Avinash', 90000, N'Service', N'Manager')
11 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Keshav', 65000, N'Training', N'Sr. Lead')
12 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Jayvant', 98000, N'Accounts', N'Manager')
13 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Anil', 65000, N'Training', N'Manager')
14 | --INSERT INTO [dbo].[EmployeeInfo] ( [EmpName], [Salary], [DeptName], [Designation]) VALUES ( N'Manish', 250000, N'Training', N'Director')
15 |
--------------------------------------------------------------------------------