init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,179 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@model Kreta.Web.Areas.UgyfelSzolgalat.Models.BejelentesModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
<div id="UgyfelszolgValidation">
|
||||
@Html.KretaValidationSummary()
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.RequestTypeId)
|
||||
@Html.HiddenFor(m => m.NeedUserAndBrowserInformation)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.IntezmenyAzonosito)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.Nev)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.FenntartoAzonosito)
|
||||
|
||||
<div class="row labelFix">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaLabelForWithoutName(m => m.TextBoxTitle)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaTextBoxFor(m => m.TextBox)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row labelFix">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaLabelForWithoutName(m => m.TextAreaTitle)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaTextAreaFor(m => m.TextArea, 20, new Dictionary<string, object>() {{ "class", "validateDescriptionLength" } })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div id="validateDescriptionLengthLabel" class="col-sm-12"></div>
|
||||
</div>
|
||||
@if (Model.IsFileUploadEnabled)
|
||||
{
|
||||
<div id="CsatolmanyokInputContainer" class="row">
|
||||
@UgyfelszolgalatResource.CsatolmanyokHozzaadasa
|
||||
@Html.KretaFileUpload("CsatolmanyokInput", onSelectEvent: "function(e){ BejelentesHelper.onSelect(e); }")
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var BejelentesHelper = (function () {
|
||||
var helper = function () { };
|
||||
helper.SendBejelentes = function () {
|
||||
var userAndBrowserInformation = "";
|
||||
if ($("#NeedUserAndBrowserInformation").val() === "1") {
|
||||
userAndBrowserInformation = "Intézmény azonosítója: ";
|
||||
userAndBrowserInformation += $("#IntezmenyAdatok_IntezmenyAzonosito").val() !== "" ? $("#IntezmenyAdatok_IntezmenyAzonosito").val() : "-";
|
||||
|
||||
userAndBrowserInformation += "\n\rIntézmény neve: ";
|
||||
userAndBrowserInformation += $("#IntezmenyAdatok_Nev").val() !== "" ? $("#IntezmenyAdatok_Nev").val() : "-";
|
||||
|
||||
userAndBrowserInformation += "\n\rIntézmény fenntartóazonosítója: ";
|
||||
userAndBrowserInformation += $("#IntezmenyAdatok_FenntartoAzonosito").val() !== "" ? $("#IntezmenyAdatok_FenntartoAzonosito").val() : "-";
|
||||
|
||||
var bejelento = "@(ClaimData.FelhasznaloNev?? string.Empty)";
|
||||
if (bejelento != "") {
|
||||
userAndBrowserInformation += ("\n\rBejelentő neve: " + bejelento.toString());
|
||||
}
|
||||
|
||||
userAndBrowserInformation += "\n\rBejelentő felület: ";
|
||||
var fullUrl = location.href;
|
||||
userAndBrowserInformation += typeof fullUrl !== 'undefined' ? fullUrl : "-";
|
||||
|
||||
userAndBrowserInformation += "\n\rBöngésző információ: ";
|
||||
userAndBrowserInformation += "userAgent: " + navigator.userAgent + ";";
|
||||
var windowWidth = window.innerWidth || document.body.clientWidth;
|
||||
var windowHeight = window.innerHeight || document.body.clientHeight;
|
||||
userAndBrowserInformation += "screenSize: " + windowWidth + "," + windowHeight + ";";
|
||||
}
|
||||
|
||||
function SendRequest(csatolmanyArray) {
|
||||
JiraRestHelper.createBejelentes($("#TextBox").val(), $("#TextArea").val(), $("#RequestTypeId").val(), csatolmanyArray, userAndBrowserInformation, BejelentesHelper.errorFeedback);
|
||||
}
|
||||
if ("@Model.IsFileUploadEnabled" === "True") {
|
||||
KretaFileUpload.SendAttachmentsAsBase64EncodedString("CsatolmanyokInput", SendRequest);
|
||||
} else {
|
||||
SendRequest([]);
|
||||
}
|
||||
};
|
||||
|
||||
helper.onSelect = function (e) {
|
||||
KretaFileUpload.StopAnimation();
|
||||
var allowedFileExtensionArray = [];
|
||||
@foreach (var item in Model.AllowedFileExtensionArray)
|
||||
{
|
||||
@:allowedFileExtensionArray.push("@item");
|
||||
}
|
||||
var attachmentMaxFileSizeInBytes = @Model.AttachmentMaxFileSizeInBytes;
|
||||
var attachments = e.files;
|
||||
|
||||
for (var i = 0; i < attachments.length; i++) {
|
||||
if (attachmentMaxFileSizeInBytes < attachments[i].size) {
|
||||
e.preventDefault();
|
||||
var errorMessage = "@ErrorResource.HibaTortentXMBNalNemLehetNagyobbAFajlMerete";
|
||||
errorMessage = errorMessage.replace("{0}", attachmentMaxFileSizeInBytes / (1024 * 1024));
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", errorMessage, true);
|
||||
break;
|
||||
}
|
||||
if ($.inArray(attachments[i].extension.toLowerCase(), allowedFileExtensionArray) === -1) {
|
||||
e.preventDefault();
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@ErrorResource.AFajlKiterjeszteseVagyTipusaNemMegfelelo", true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
helper.errorFeedback = function (data) {
|
||||
try {
|
||||
var errorResponse = CommonUtils.JSONparse(data.responseText);
|
||||
if (typeof (errorResponse.ModelState["model.Cim"]) !== 'undefined' || typeof (errorResponse.ModelState["model.Leiras"]) !== 'undefined') {
|
||||
return false;
|
||||
} else if (typeof (errorResponse.ModelState["model.Comment"]) !== 'undefined') {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", errorResponse.ModelState["model.Comment"], true);
|
||||
} else {
|
||||
var messageJson = CommonUtils.JSONparse(errorResponse.Message);
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", messageJson.errorMessage, true);
|
||||
if (messageJson.isFileError === true) {
|
||||
KretaFileUpload.ResetUploadControl("CsatolmanyokInputContainer");
|
||||
JiraRestHelper.successCallBack("BejelentesWindow");
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@CommonResource.HibaTortentAzOldalon", true);
|
||||
}
|
||||
}
|
||||
|
||||
return helper;
|
||||
})();
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@Model.Fejlec");
|
||||
JiraRestHelper.ValidateDescriptionLength(5000);
|
||||
$(".validateDescriptionLength").keyup(JiraRestHelper.ValidateDescriptionLength);
|
||||
|
||||
KretaFileUpload.DisplayValidationInfo("CsatolmanyokInputContainer", "CsatolmanyokFileUploadValidationInfo");
|
||||
var attachmentMaxFileSizeInBytes = @Model.AttachmentMaxFileSizeInBytes;
|
||||
var allowedFileExtensionArray = [];
|
||||
allowedFileExtensionArray.push("Max.: {0}MB".replace("{0}", attachmentMaxFileSizeInBytes / (1024 * 1024)));
|
||||
allowedFileExtensionArray.push("Megengedett:");
|
||||
@foreach (var item in Model.AllowedFileExtensionArray)
|
||||
{
|
||||
@:allowedFileExtensionArray.push("@item");
|
||||
}
|
||||
|
||||
var uploadButton = $("#CsatolmanyokInputContainer");
|
||||
uploadButton.mouseenter(function () {
|
||||
KretaFileUpload.StartAnimation();
|
||||
|
||||
KretaFileUpload.VaidationInfoExtensionContainerAnimation("CsatolmanyokFileUploadValidationInfo", allowedFileExtensionArray, 0);
|
||||
});
|
||||
uploadButton.mouseleave(function () {
|
||||
KretaFileUpload.StopAnimation("CsatolmanyokFileUploadValidationInfo");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
.row.labelFix {
|
||||
min-height: initial !important;
|
||||
}
|
||||
|
||||
.row.labelFix div {
|
||||
min-height: initial !important;
|
||||
margin-left: -10px !important;
|
||||
}
|
||||
|
||||
</style>
|
|
@ -0,0 +1,32 @@
|
|||
@using Kreta.Resources
|
||||
@using Kreta.Web.Areas.UgyfelSzolgalat.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@model CommentsModel
|
||||
|
||||
@{
|
||||
foreach (var comment in Model)
|
||||
{
|
||||
<div id="row" class="ugyfelszolgalat-comment-row">
|
||||
<div class="col-sm-6 ugyfelszolgalat-comment-name">
|
||||
@comment.Name
|
||||
</div>
|
||||
<div class="col-sm-6 ugyfelszolgalat-comment-date">
|
||||
@comment.FreandlyDate
|
||||
</div>
|
||||
</div>
|
||||
<div id="row">
|
||||
<div class="col-sm-12 ugyfelszolgalat-comment-row-container">
|
||||
@Html.Raw(comment.Text)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.Count == 0)
|
||||
{
|
||||
<div id="row" class="ugyfelszolgalat-comment-row-ures">
|
||||
@UgyfelszolgalatResource.JelenlegNincsMegjegyzes
|
||||
</div>
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@model Kreta.Web.Areas.UgyfelSzolgalat.Models.DbVisszaallitasModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.NeedUserAndBrowserInformation)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.IntezmenyAzonosito)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.Nev)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.FenntartoAzonosito)
|
||||
</div>
|
||||
|
||||
<div id="UgyfelszolgValidation">
|
||||
@Html.KretaValidationSummary()
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.RequestTypeId)
|
||||
|
||||
<div class="row labelFix">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaLabelForWithoutName(m => m.VisszaallitasKerdes)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaDatePickerFor(m => m.VisszaallitasDatum).Max(Model.MaiDatum).RenderWithMask()
|
||||
</div>
|
||||
</div>
|
||||
<div class="row labelFix">
|
||||
<div class="dbVisszaAllitasFigyelmeztetes">
|
||||
@Model.VisszaallitasFigyelmeztetes
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@Model.Fejlec");
|
||||
});
|
||||
|
||||
var BejelentesHelper = (function () {
|
||||
var helper = function () { };
|
||||
|
||||
function StringBuilder(value) {
|
||||
this.strings = new Array("");
|
||||
this.append(value);
|
||||
}
|
||||
|
||||
StringBuilder.prototype.append = function (value) {
|
||||
if (value) {
|
||||
this.strings.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
StringBuilder.prototype.toString = function () {
|
||||
return this.strings.join("");
|
||||
}
|
||||
|
||||
helper.SendBejelentes = function () {
|
||||
var sb = new StringBuilder();
|
||||
|
||||
if ($("#NeedUserAndBrowserInformation").val() === "1") {
|
||||
sb.append("Intézmény azonosítója: ");
|
||||
$("#IntezmenyAdatok_IntezmenyAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_IntezmenyAzonosito").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény neve: ");
|
||||
$("#IntezmenyAdatok_Nev").val() !== "" ? sb.append($("#IntezmenyAdatok_Nev").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény fenntartóazonosítója: ");
|
||||
$("#IntezmenyAdatok_FenntartoAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_FenntartoAzonosito").val()) : sb.append("-");
|
||||
|
||||
var bejelento = "@(ClaimData.FelhasznaloNev?? string.Empty)";
|
||||
if (bejelento != "") {
|
||||
sb.append("\n\rBejelentő neve: " + bejelento.toString());
|
||||
}
|
||||
|
||||
sb.append("\n\rBejelentő felület: ");
|
||||
|
||||
var fullUrl = location.href;
|
||||
typeof fullUrl !== 'undefined' ? sb.append(fullUrl) : sb.append("-");
|
||||
|
||||
sb.append("\n\rBöngésző információ: ");
|
||||
sb.append("userAgent: " + navigator.userAgent + ";");
|
||||
|
||||
var windowWidth = window.innerWidth || document.body.clientWidth;
|
||||
var windowHeight = window.innerHeight || document.body.clientHeight;
|
||||
sb.append("screenSize: " + windowWidth + "," + windowHeight + ";");
|
||||
|
||||
var userAndBrowserInformation = sb.toString();
|
||||
}
|
||||
JiraRestHelper.createDbVisszaallitas($("#VisszaallitasDatum").val(), $("#RequestTypeId").val(), userAndBrowserInformation);
|
||||
};
|
||||
|
||||
return helper;
|
||||
})();
|
||||
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.row.labelFix {
|
||||
min-height: initial !important;
|
||||
}
|
||||
|
||||
.row.labelFix div {
|
||||
min-height: initial !important;
|
||||
margin-left: -10px !important;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,23 @@
|
|||
@using Kreta.Resources
|
||||
@using Kreta.Web.Helpers
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 ugyfelszolgalat-hibaoldal">
|
||||
<h3>
|
||||
@UgyfelszolgalatResource.AValasztottBejelentesTipusARendszerbenJelenlegNemTamogatott
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@UgyfelszolgalatResource.KRETAUgyfelszolgalat");
|
||||
});
|
||||
|
||||
</script>
|
|
@ -0,0 +1,184 @@
|
|||
@using Kreta.Web.Areas.UgyfelSzolgalat.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@model KommunikaciosModel
|
||||
|
||||
@Html.HiddenFor(x => x.IssueId)
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-12 ugyfelszolgalat-header-top">
|
||||
@(UgyfelszolgalatResource.Ugyfelszolgalat) / @(Model.ServiceDesk) / @(Model.TaskKey)
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="ugyfelszolgalat-header-taskname">
|
||||
@(Model.IssueName + " - " + Model.Status)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@UgyfelszolgalatResource.LeirasSzovege
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@{
|
||||
if (string.IsNullOrWhiteSpace(@Model.IssueDescription))
|
||||
{
|
||||
@CommonResource.Kotojel
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.Raw(Model.IssueDescription)
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
@Html.KretaTextAreaFor(x => x.IssueText, 5, new Dictionary<string, object>() { { "class", "validateDescriptionLength" } })
|
||||
</div>
|
||||
</div>
|
||||
<div class="row col-sm-12">
|
||||
<div id="validateDescriptionLengthLabel"></div>
|
||||
</div>
|
||||
@if (Model.IsFileUploadEnabled)
|
||||
{
|
||||
<div id="CsatolmanyokInputContainer" class="row">
|
||||
@UgyfelszolgalatResource.CsatolmanyokHozzaadasa
|
||||
@Html.KretaFileUpload("CsatolmanyokInput", onSelectEvent: "function(e){ UgyfelszolgalatKommunikaciosHelper.onSelect(e); }")
|
||||
</div>
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-sm-12 ugyfelszolgalat-gombok">
|
||||
@Html.KretaButton("addCommentBtn", CommonResource.Kuldes).Events(e => e.Click("function(){ UgyfelszolgalatKommunikaciosHelper.sendNewComment(); }"))
|
||||
@Html.KretaButton("emptyCommentBtn", CommonResource.Megse).Events(e => e.Click("function(){ UgyfelszolgalatKommunikaciosHelper.emptyTextArea(); }"))
|
||||
</div>
|
||||
</div>
|
||||
<div class="ugyfelszolgalat-commentlist-header">
|
||||
@UgyfelszolgalatResource.Megjegyzesek
|
||||
</div>
|
||||
<div class="ugyfelszolgalat-commentlist-container">
|
||||
@Html.Partial("Comments", Model.CommentList)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Kommunikacios.title).data("kendoWindow").title("@UgyfelszolgalatResource.Bejelentes");
|
||||
|
||||
JiraRestHelper.ValidateDescriptionLength(5000);
|
||||
$(".validateDescriptionLength").keyup(JiraRestHelper.ValidateDescriptionLength);
|
||||
|
||||
KretaFileUpload.DisplayValidationInfo("CsatolmanyokInputContainer", "CsatolmanyokFileUploadValidationInfo");
|
||||
|
||||
var attachmentMaxFileSizeInBytes = @Model.AttachmentMaxFileSizeInBytes;
|
||||
var allowedFileExtensionArray = [];
|
||||
allowedFileExtensionArray.push("Max.: {0}MB".replace("{0}", attachmentMaxFileSizeInBytes / (1024 * 1024)));
|
||||
allowedFileExtensionArray.push("Megengedett:");
|
||||
@foreach (var item in Model.AllowedFileExtensionArray)
|
||||
{
|
||||
@:allowedFileExtensionArray.push("@item");
|
||||
}
|
||||
|
||||
var uploadButton = $("#CsatolmanyokInputContainer");
|
||||
uploadButton.mouseenter(function () {
|
||||
KretaFileUpload.StartAnimation();
|
||||
KretaFileUpload.VaidationInfoExtensionContainerAnimation("CsatolmanyokFileUploadValidationInfo", allowedFileExtensionArray, 0);
|
||||
});
|
||||
uploadButton.mouseleave(function () {
|
||||
KretaFileUpload.StopAnimation("CsatolmanyokFileUploadValidationInfo");
|
||||
});
|
||||
});
|
||||
|
||||
var UgyfelszolgalatKommunikaciosHelper = function () {
|
||||
var helper = function () { };
|
||||
|
||||
var urls = {
|
||||
RefreshCommentList: '@Url.Action("RefreshCommentList", "UgyfelSzolgalat", new {area = "UgyfelSzolgalat"})'
|
||||
};
|
||||
|
||||
helper.emptyTextArea = function () {
|
||||
$("#IssueText").val("");
|
||||
};
|
||||
helper.sendNewComment = function () {
|
||||
|
||||
function SendRequest(csatolmanyArray) {
|
||||
var issueText = $('#IssueText').val();
|
||||
if (issueText.length > 0 || csatolmanyArray.length > 0) {
|
||||
JiraRestHelper.createCommentToBejegyzes($('#IssueId').val(), issueText, csatolmanyArray, UgyfelszolgalatKommunikaciosHelper.addNewComment, UgyfelszolgalatKommunikaciosHelper.errorFeedback);
|
||||
}
|
||||
}
|
||||
if ("@Model.IsFileUploadEnabled" === "True") {
|
||||
KretaFileUpload.SendAttachmentsAsBase64EncodedString("CsatolmanyokInput", SendRequest);
|
||||
} else {
|
||||
SendRequest([]);
|
||||
}
|
||||
}
|
||||
helper.errorFeedback = function (data) {
|
||||
try {
|
||||
var errorResponse = CommonUtils.JSONparse(data.responseText);
|
||||
if (typeof (errorResponse.ModelState["model.Comment"]) !== 'undefined') {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", errorResponse.ModelState["model.Comment"], true);
|
||||
} else {
|
||||
var messageJson = CommonUtils.JSONparse(errorResponse.Message);
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", messageJson.errorMessage, true);
|
||||
KretaFileUpload.ResetUploadControl("CsatolmanyokInputContainer");
|
||||
if (messageJson.issueId !== -1) createNewComment(messageJson.issueId);
|
||||
}
|
||||
} catch (e) {
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@CommonResource.HibaTortentAzOldalon", true);
|
||||
}
|
||||
}
|
||||
|
||||
helper.addNewComment = function (id) {
|
||||
KretaFileUpload.ResetUploadControl("CsatolmanyokInputContainer");
|
||||
createNewComment(id);
|
||||
}
|
||||
|
||||
function createNewComment(id) {
|
||||
$("#IssueText").val("");
|
||||
callRefreshCommentList(id);
|
||||
}
|
||||
|
||||
function callRefreshCommentList(id) {
|
||||
AjaxHelper.AsyncPost(urls.RefreshCommentList, { Id: id }, function (data) { refreshCommentList(data) });
|
||||
}
|
||||
|
||||
function refreshCommentList(data) {
|
||||
var $commentListContainer = $("div.ugyfelszolgalat-commentlist-container");
|
||||
$commentListContainer.empty();
|
||||
$commentListContainer.append(data);
|
||||
}
|
||||
helper.onSelect = function (e) {
|
||||
KretaFileUpload.StopAnimation();
|
||||
var allowedFileExtensionArray = [];
|
||||
@foreach (var item in Model.AllowedFileExtensionArray)
|
||||
{
|
||||
@:allowedFileExtensionArray.push("@item");
|
||||
}
|
||||
var attachmentMaxFileSizeInBytes = @Model.AttachmentMaxFileSizeInBytes;
|
||||
var attachments = e.files;
|
||||
|
||||
for (var i = 0; i < attachments.length; i++) {
|
||||
if (attachmentMaxFileSizeInBytes < attachments[i].size) {
|
||||
e.preventDefault();
|
||||
var errorMessage = "@ErrorResource.HibaTortentXMBNalNemLehetNagyobbAFajlMerete";
|
||||
errorMessage = errorMessage.replace("{0}", attachmentMaxFileSizeInBytes / (1024 * 1024));
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", errorMessage, true);
|
||||
break;
|
||||
}
|
||||
if ($.inArray(attachments[i].extension.toLowerCase(), allowedFileExtensionArray) === -1) {
|
||||
e.preventDefault();
|
||||
KretaWindowHelper.feedbackWindow("@CommonResource.Hiba", "@ErrorResource.AFajlKiterjeszteseVagyTipusaNemMegfelelo", true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return helper;
|
||||
}();
|
||||
</script>
|
|
@ -0,0 +1,100 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@model Kreta.Web.Areas.UgyfelSzolgalat.Models.KonferenciaJelentkezesModel
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.NeedUserAndBrowserInformation)
|
||||
</div>
|
||||
|
||||
<div id="UgyfelszolgValidation">
|
||||
@Html.KretaValidationSummary()
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.RequestTypeId)
|
||||
<div class="row col-sm-12">
|
||||
<div class="ugyfelszolgalatLabel-text">@UgyfelszolgalatResource.JelentkezoSzemelyekSzama@CommonResource.RequiredString</div>
|
||||
@Html.KretaNumericFor(m => m.JelentkezoSzemelyekSzama).Value(1).Min(1).Max(10)
|
||||
</div>
|
||||
<div class="row col-sm-12">
|
||||
<div class="ugyfelszolgalatLabel-text">@UgyfelszolgalatResource.JelentkezoSzemelyekListaja@CommonResource.RequiredString</div>
|
||||
@Html.KretaTextAreaFor(m => m.JelentkezoSzemelyekListaja, 6)
|
||||
</div>
|
||||
<div class="row col-sm-12">
|
||||
<div class="ugyfelszolgalatLabel-text">@UgyfelszolgalatResource.EgyebUzenet</div>
|
||||
@Html.KretaTextAreaFor(m => m.EgyebUzenet, 4, new Dictionary<string, object>() { { "class", "validateDescriptionLength" } })
|
||||
</div>
|
||||
<div class="row col-sm-12">
|
||||
<div id="validateDescriptionLengthLabel"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@Model.Fejlec");
|
||||
|
||||
JiraRestHelper.ValidateDescriptionLength(1000);
|
||||
$(".validateDescriptionLength").keyup(JiraRestHelper.ValidateDescriptionLength);
|
||||
});
|
||||
|
||||
var BejelentesHelper = (function () {
|
||||
var helper = function () { };
|
||||
|
||||
function StringBuilder(value) {
|
||||
this.strings = new Array("");
|
||||
this.append(value);
|
||||
}
|
||||
|
||||
StringBuilder.prototype.append = function (value) {
|
||||
if (value) {
|
||||
this.strings.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
StringBuilder.prototype.toString = function () {
|
||||
return this.strings.join("");
|
||||
}
|
||||
|
||||
helper.SendBejelentes = function () {
|
||||
var sb = new StringBuilder();
|
||||
|
||||
if ($("#NeedUserAndBrowserInformation").val() === "1") {
|
||||
sb.append("Intézmény azonosítója: ");
|
||||
$("#IntezmenyAdatok_IntezmenyAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_IntezmenyAzonosito").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény neve: ");
|
||||
$("#IntezmenyAdatok_Nev").val() !== "" ? sb.append($("#IntezmenyAdatok_Nev").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény fenntartóazonosítója: ");
|
||||
$("#IntezmenyAdatok_FenntartoAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_FenntartoAzonosito").val()) : sb.append("-");
|
||||
|
||||
var bejelento = "@(ClaimData.FelhasznaloNev?? string.Empty)";
|
||||
if (bejelento != "") {
|
||||
sb.append("\n\rBejelentő neve: " + bejelento.toString());
|
||||
}
|
||||
|
||||
sb.append("\n\rBejelentő felület: ");
|
||||
|
||||
var fullUrl = location.href;
|
||||
typeof fullUrl !== 'undefined' ? sb.append(fullUrl) : sb.append("-");
|
||||
|
||||
sb.append("\n\rBöngésző információ: ");
|
||||
sb.append("userAgent: " + navigator.userAgent + ";");
|
||||
|
||||
var windowWidth = window.innerWidth || document.body.clientWidth;
|
||||
var windowHeight = window.innerHeight || document.body.clientHeight;
|
||||
sb.append("screenSize: " + windowWidth + "," + windowHeight + ";");
|
||||
|
||||
var userAndBrowserInformation = sb.toString();
|
||||
}
|
||||
JiraRestHelper.createKonferenciaJelentkezes($("#JelentkezoSzemelyekSzama").val(), $("#JelentkezoSzemelyekListaja").val(), $("#EgyebUzenet").val(), $("#RequestTypeId").val(), userAndBrowserInformation);
|
||||
};
|
||||
|
||||
return helper;
|
||||
})();
|
||||
|
||||
</script>
|
|
@ -0,0 +1,71 @@
|
|||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Areas.UgyfelSzolgalat.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Web.Helpers.Grid
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@model UgyfelszolgalatModel
|
||||
<div class="container-fluid">
|
||||
@{
|
||||
List<FunctionCommand> bejelentesMenu = new List<FunctionCommand>();
|
||||
List<FunctionCommand> nestedBejelentesMenu = new List<FunctionCommand> { };
|
||||
foreach (var gomb in Model.BejelentesGombsor)
|
||||
{
|
||||
string action = "function() { JiraRestHelper.popUpBejelentesWindow('" + gomb.Id + "', '" + gomb.Key + "'); }";
|
||||
nestedBejelentesMenu.Add(new FunctionCommand { Name = gomb.ToolTip, ClientAction = action });
|
||||
}
|
||||
bejelentesMenu.Add(new FunctionCommand { Name = UgyfelszolgalatResource.UjBejelentes.ToUpper(), NestedCommands = nestedBejelentesMenu });
|
||||
}
|
||||
|
||||
<div id="ugyfelszolgalatSearchParams" class="row">
|
||||
@Html.HiddenFor(x => x.ServiceDeskId)
|
||||
@Html.KretaComboBoxFor(x => x.BejelentesTypusId, Model.BejelentesTypusList).Events(x => x.Change("function() { UgyfelszolgHelper.RefreshGrid(); }")).RenderIntoOneColWithName(4)
|
||||
@Html.KretaComboBoxFor(x => x.StatusId, Model.StatusList).Events(x => x.Change("function() { UgyfelszolgHelper.RefreshGrid(); }")).RenderIntoOneColWithName(3)
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<UgyfelszolgalatGridModel>
|
||||
(
|
||||
"UgyfelszolgalatGrid",
|
||||
new GridApiUrl("UgyfelSzolgalatApi", "GetBejelentesekGrid", new Dictionary<string, string>()),
|
||||
dataParameterFunction: "ugyfelszolgalatSearchParams",
|
||||
useToolBar: false
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.BejelentesTipus);
|
||||
})
|
||||
.LinkButtonColumn("", c => c.Referencia, "JiraRestHelper.popUpKommunikaciosWindow", GridButtonsEnum.Modositas)
|
||||
.LinkButtonColumn("", c => c.BejelentesCime, "JiraRestHelper.popUpKommunikaciosWindow", GridButtonsEnum.Modositas)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Status);
|
||||
columns.Bound(c => c.BejelentesDatuma).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
columns.Bound(c => c.UtolsoFrissites).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
}).Sortable(s => s.Enabled(false))
|
||||
.FunctionCommand(Html, bejelentesMenu)
|
||||
.AutoBind(true)
|
||||
)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.UgyfelSzolgalat.title).data("kendoWindow").title("@Model.Fejlec");
|
||||
});
|
||||
|
||||
var UgyfelszolgHelper = (function () {
|
||||
var ugyfelszolgHelper = function () { };
|
||||
|
||||
ugyfelszolgHelper.RefreshGrid = function () {
|
||||
KretaGridHelper.refreshGridSearchPanel("UgyfelszolgalatGrid", "ugyfelszolgalatSearchParams");
|
||||
}
|
||||
|
||||
return ugyfelszolgHelper;
|
||||
})();
|
||||
|
||||
</script>
|
|
@ -0,0 +1,102 @@
|
|||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Resources
|
||||
@using Kreta.Web.Security
|
||||
|
||||
@model Kreta.Web.Areas.UgyfelSzolgalat.Models.UjUrlIgenyles
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.NeedUserAndBrowserInformation)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.IntezmenyAzonosito)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.Nev)
|
||||
@Html.HiddenFor(m => m.IntezmenyAdatok.FenntartoAzonosito)
|
||||
</div>
|
||||
|
||||
<div id="UgyfelszolgValidation">
|
||||
@Html.KretaValidationSummary()
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
@Html.HiddenFor(m => m.RequestTypeId)
|
||||
|
||||
<div class="row ujUrlIgenylese-text">
|
||||
@UgyfelszolgalatResource.KeremAdjaMegMilyenURLCimenSzeretneElerhetoveTenniAzIntezmenyKretaRendszeret
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="ujUrlIgenylese-url-div">
|
||||
@UgyfelszolgalatResource.https
|
||||
</div>
|
||||
<div class="ujUrlIgenylese-url-div" style="max-width: 150px;">
|
||||
@Html.KretaTextBoxFor(m => m.UjUrlName)
|
||||
</div>
|
||||
<div class="ujUrlIgenylese-url-div">
|
||||
@UgyfelszolgalatResource.ekretahu
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ujUrlIgenylese-text">
|
||||
@UgyfelszolgalatResource.FigyelemAzIntezmenyJelenlegiEleresiLehetosegeAzUjUrlCimIgenylesetKovetoenIsMegmaradSzoveg
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#" + JiraRestHelper.popUpTitles.Bejelentes.title).data("kendoWindow").title("@Model.Fejlec");
|
||||
});
|
||||
|
||||
var BejelentesHelper = (function () {
|
||||
var helper = function () { };
|
||||
|
||||
function StringBuilder(value) {
|
||||
this.strings = new Array("");
|
||||
this.append(value);
|
||||
}
|
||||
|
||||
StringBuilder.prototype.append = function (value) {
|
||||
if (value) {
|
||||
this.strings.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
StringBuilder.prototype.toString = function () {
|
||||
return this.strings.join("");
|
||||
}
|
||||
|
||||
helper.SendBejelentes = function () {
|
||||
var sb = new StringBuilder();
|
||||
|
||||
if ($("#NeedUserAndBrowserInformation").val() === "1") {
|
||||
sb.append("Intézmény azonosítója: ");
|
||||
$("#IntezmenyAdatok_IntezmenyAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_IntezmenyAzonosito").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény neve: ");
|
||||
$("#IntezmenyAdatok_Nev").val() !== "" ? sb.append($("#IntezmenyAdatok_Nev").val()) : sb.append("-");
|
||||
|
||||
sb.append("\n\rIntézmény fenntartóazonosítója: ");
|
||||
$("#IntezmenyAdatok_FenntartoAzonosito").val() !== "" ? sb.append($("#IntezmenyAdatok_FenntartoAzonosito").val()) : sb.append("-");
|
||||
|
||||
var bejelento = "@(ClaimData.FelhasznaloNev?? string.Empty)";
|
||||
if (bejelento != "") {
|
||||
sb.append("\n\rBejelentő neve: " + bejelento.toString());
|
||||
}
|
||||
|
||||
sb.append("\n\rBejelentő felület: ");
|
||||
|
||||
var fullUrl = location.href;
|
||||
typeof fullUrl !== 'undefined' ? sb.append(fullUrl) : sb.append("-");
|
||||
|
||||
sb.append("\n\rBöngésző információ: ");
|
||||
sb.append("userAgent: " + navigator.userAgent + ";");
|
||||
|
||||
var windowWidth = window.innerWidth || document.body.clientWidth;
|
||||
var windowHeight = window.innerHeight || document.body.clientHeight;
|
||||
sb.append("screenSize: " + windowWidth + "," + windowHeight + ";");
|
||||
|
||||
var userAndBrowserInformation = sb.toString();
|
||||
}
|
||||
JiraRestHelper.createUjUrlIgenyles($("#UjUrlName").val(), $("#RequestTypeId").val(), userAndBrowserInformation);
|
||||
};
|
||||
|
||||
return helper;
|
||||
})();
|
||||
|
||||
</script>
|
36
KretaWeb/Areas/UgyfelSzolgalat/Views/web.config
Normal file
36
KretaWeb/Areas/UgyfelSzolgalat/Views/web.config
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
|
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
|
||||
<system.web.webPages.razor>
|
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Mvc" />
|
||||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Web.Optimization" />
|
||||
<add namespace="Kreta.Web" />
|
||||
|
||||
</namespaces>
|
||||
</pages>
|
||||
</system.web.webPages.razor>
|
||||
|
||||
<appSettings>
|
||||
<add key="webpages:Enabled" value="false" />
|
||||
</appSettings>
|
||||
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<remove name="BlockViewHandler"/>
|
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</configuration>
|
Loading…
Add table
Add a link
Reference in a new issue