Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
mapqa
/
Views
/
ActivityReporting
/
Edit File Name :
PDFReport.cshtml
@model RER_Project.DataAccess.ViewModels.Activity.ActivityReportingViewModel @{ Layout = "../shared/_reportlayout.cshtml"; } @section ReportStyles{ } <center> <a href="#" onclick="createPDF()" class="btn pull-right hideColumn"> <img src="~/Images/ExternalIcon/pdf.png" style="height: 42px; width: 38px; padding-bottom: 5px; margin: -8px;"> </a> </center> <div id="dvData"> <center> <h3>Activity Report</h3> </center> <br /> <table class="table"> <thead> <tr> <th>Fiscal Year</th> <th>Start Date</th> <th>End Date</th> <th>Activity Name</th> <th>Commodity</th> </tr> </thead> <tbody> <tr> <td>@Model.ActivityReportingView.FiscalYear</td> <td>@Convert.ToDateTime(Model.ActivityReportingView.StartDate).ToShortDateString()</td> <td>@Convert.ToDateTime(Model.ActivityReportingView.EndDate).ToShortDateString()</td> <td>@Model.ActivityReportingView.ActivityName</td> <td>@Model.ActivityReportingView.Commodity</td> </tbody> </table> <br /> <table class="table"> <thead> <tr> <th>Planned Budget</th> <th>Actual Expense</th> <th>Province</th> <th>Atoll</th> <th>Island</th> <th>In Coordination Of</th> </tr> </thead> <tbody> <tr> <td><span>Rs. @Model.ActivityReportingView.PlannedBudget.ToString("#,##0.##")</span></td> <td><span> Rs. @Model.ActivityReportingView.ActualExpense.ToString("#,##0.##")</span></td> <td>@Model.ActivityReportingView.Province</td> <td> @Model.ActivityReportingView.District</td> <td> @Model.ActivityReportingView.Municipality</td> <td>@Model.ActivityReportingView.InCoordinationOf</td> </tbody> </table> <br /> <table class="table"> <thead> <tr> <th>Facilitator</th> <th>Objectives</th> <th>Details Of Activity</th> <th>Output</th> <th>Issues Identified</th> <th>Recommendation</th> </tr> </thead> <tbody> <tr> <td>@Model.ActivityReportingView.Facilitator</td> <td>@Model.ActivityReportingView.Objectives</td> <td>@Model.ActivityReportingView.DetailsOfActivity</td> <td>@Model.ActivityReportingView.Output</td> <td>@Model.ActivityReportingView.IssuesIdentified</td> <td>@Model.ActivityReportingView.Recommendation</td> </tbody> </table> <br /> <div class="row"> <h4 style="background-color: #e9e9e9; padding: 8px 8px;">Activity Participants</h4> <h5>Member Participants</h5> <table class="footable table table-hover"> <thead> <tr> <th>Group</th> <th>Member Name </th> <th>Age</th> @*<th>Ethnicity</th>*@ <th>Gender</th> <th>Contact</th> @*<th>Origin</th>*@ </tr> </thead> <tbody> @if (Model.ActivityParticipantViewList.Count() > 0) { foreach (var item in Model.ActivityParticipantViewList) { <tr> <td> @if (item.GroupId != 0) { @item.GroupName } else { <span>Has No Group</span> } </td> <td> @if (item.GroupId != 0) { @String.Concat(item.FirstName, ' ', item.LastName) } else { <span>@item.MemberName</span> } </td> <td>@item.Age</td> @*<td>@item.Ethnicity</td>*@ <td>@item.Gender</td> <td>@item.ContactNo</td> @*<td>@item.Origin</td>*@ </tr> } } else { <tr> <td align="center" colspan="7">No Records Found</td> </tr> } </tbody> </table> </div> <div class="row"> <h4 style="background-color: #e9e9e9; padding: 8px 8px;">Member Participants Details(Disaggregated Data)</h4> <table class="footable table table-bordered table-hover"> <thead> <tr> <th style="text-align:center">Total Participants</th> @*<th colspan="4" style="text-align:center">Dalit</th> <th colspan="4" style="text-align:center">Janajati</th> <th colspan="4" style="text-align:center">Others</th> <th colspan="4" style="text-align:center">Madhesi Eco Class2</th> <th colspan="4" style="text-align:center">Muslim</th>*@ <th colspan="2" style="text-align:center">Total</th> </tr> @*<tr> <th></th> <th colspan="2" style="text-align:center">Hill</th> <th colspan="2" style="text-align:center">Terai</th> <th colspan="2" style="text-align:center">Hill</th> <th colspan="2" style="text-align:center">Terai</th> <th colspan="2" style="text-align:center">Hill</th> <th colspan="2" style="text-align:center">Terai</th> <th colspan="2" style="text-align:center">Hill</th> <th colspan="2" style="text-align:center">Terai</th> <th colspan="2" style="text-align:center">Hill</th> <th colspan="2" style="text-align:center">Terai</th> <th colspan="2" style="text-align:center"></th> </tr>*@ <tr> <th></th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> @*<th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th> <th rowspan="2" style="text-align:center">Male</th> <th rowspan="2" style="text-align:center">Female</th>*@ </tr> </thead> <tbody> @if (Model.ActivityParticipantDetailViewList.Count() > 0) { foreach (var item in Model.ActivityParticipantDetailViewList) { <tr> <td style="text-align:center">@item.MigrationStatus</td> @*<td>@item.HillDalitMale</td> <td>@item.HillDalitFemale</td> <td>@item.TeraiDalitMale</td> <td>@item.TeraiDalitFemale</td> <td>@item.HillJanjatiMale</td> <td>@item.HillJanjatiFemale</td> <td>@item.TeraiJanjatiMale</td> <td>@item.TeraiJanjatiFemale</td> <td>@item.HillOthersMale</td> <td>@item.HillOthersFemale</td> <td>@item.TeraiOthersMale</td> <td>@item.TeraiOthersFemale</td> <td>@item.HillMadhesMale</td> <td>@item.HillMadhesFemale</td> <td>@item.TeraiMadhesMale</td> <td>@item.TeraiMadhesFemale</td> <td>@item.HillMuslimMale</td> <td>@item.HillMuslimFemale</td> <td>@item.TeraiMuslimMale</td> <td>@item.TeraiMuslimFemale</td>*@ @* <td>@item.male</td> <td>@item.female</td>*@ <td style="text-align:center">@item.TotalMale</td> <td style="text-align:center">@item.TotalFemale</td> </tr> } } else { <tr> <td align="center" colspan="7">No Records Found</td> </tr> } </tbody> </table> </div> </div> <script> function createPDF() { var sTable = document.getElementById('dvData').innerHTML; $('.hideColumn').hide(); var style = "<style>"; style = style + "table {width: 100%;font: 14px Calibri;padding:4px} body{font-size:13px;color:black}"; style = style + "table, th, td {border: solid 1px black; border-collapse: collapse;padding: 2px 3px;text-align: center;}"; style = style + "</style>"; var win = window.open('', '', 'height=2000,width=800'); win.document.write('<html><head><title></title>'); win.document.write(style); win.document.write('</head><body >'); win.document.write(sTable); win.document.write('</body></html>'); win.document.close(); // CLOSE THE CURRENT WINDOW. win.print(); // PRINT THE CONTENTS. } </script>
Save