255 lines
13 KiB
Plaintext
255 lines
13 KiB
Plaintext
@model GODATA.Models.Ticket.EscalationMatrix
|
|
|
|
<link href="~/Content/css/jquery.tagsinput.css" rel="stylesheet" />
|
|
|
|
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
|
|
|
|
@*<div>*@
|
|
@using (Ajax.BeginForm("CreateEscalation", "Ticket", new AjaxOptions { HttpMethod = "POST", OnBegin = "onBeginCreateEscalation", OnSuccess = "onSuccessEscalation" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.StateName, new { id = "stateName" })
|
|
@Html.HiddenFor(model => model.region_name, new { id = "regionName" })
|
|
|
|
<div>
|
|
<div>
|
|
<table class="themeTable" cellpadding="5" cellspacing="0" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.organization_id)</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@*@Html.TextBoxFor(model => model.OrganizationId, new { @class = "k-textbox" })*@
|
|
@Html.DropDownListFor(model => model.organization_id, (IEnumerable<SelectListItem>)ViewBag.OrganizationList, "-Select-", new { @id = "ddOrganization", @onchange = "onChangeOrganization(id)" })
|
|
@Html.ValidationMessageFor(model => model.organization_id)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.dealer_name)</span>
|
|
</td>
|
|
<td class="tableCellinfo darktxt">
|
|
@Html.TextBoxFor(model => model.dealer_name, new { @id = "ddDealerName", @class = "widthComboBox" })
|
|
@*@Html.DropDownListFor(model => model.DealerName, (IEnumerable<SelectListItem>)ViewBag.Service, "-Select-", new { @id = "ddDealerName" })*@
|
|
@Html.ValidationMessageFor(model => model.dealer_name)
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">
|
|
@Html.LabelFor(model => model.manager_name)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.manager_name, new { @class = "" })
|
|
@*@Html.DropDownListFor(model => model.ManagerName, (IEnumerable<SelectListItem>)ViewBag.Service, "-Select-", new { @id = "ddServicelist", @onchange = "onChangeServices()" })*@
|
|
@Html.ValidationMessageFor(model => model.manager_name)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.manager_level)</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@*@Html.TextBoxFor(model => model.ManagerLevel, new { @class = "k-textbox" })*@
|
|
@Html.DropDownListFor(model => model.manager_level, (IEnumerable<SelectListItem>)ViewBag.Service, "-Select-", new { @id = "ddManagerLevel" })
|
|
|
|
@Html.ValidationMessageFor(model => model.manager_level)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.state)</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@Html.DropDownListFor(model => model.state, (IEnumerable<SelectListItem>)ViewBag.StateList, "-Select-", new { @id = "ddStateList", @onchange = "onChangeState(id)" })
|
|
|
|
@Html.ValidationMessageFor(model => model.state)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.city)</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@Html.DropDownListFor(model => model.city, (IEnumerable<SelectListItem>)ViewBag.Service, "-Select-", new { @id = "ddCityList" })
|
|
@Html.ValidationMessageFor(model => model.city)
|
|
@*@Html.TextBoxFor(model => model.City, new { @class = "disable_btn k-textbox"})*@
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.van_type)</span>
|
|
</td>
|
|
<td class="tableCellinfo SelectDD">
|
|
@*@Html.TextBoxFor(model => model.VanType, new { @class = "k-textbox" })*@
|
|
|
|
@Html.DropDownListFor(model => model.VehicleTaggingList, (IEnumerable<SelectListItem>)ViewBag.Service, "-Select-", new { @id = "ddVehicleType" })
|
|
@Html.ValidationMessageFor(model => model.VehicleTaggingList)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.notification_type)</span>
|
|
</td>
|
|
<td class="tableCellinfo" style="vertical-align: top">
|
|
<input type="checkbox" checked="checked" name="EmailType" value="email" id="chkEmail">
|
|
<span>Email</span>
|
|
<input type="checkbox" checked="checked" name="SMSType" value="sms" id="chkSms" style="margin-left: 10px;">
|
|
<span>SMS</span>
|
|
<span id="spanNotificationType" style="display: none; color: red;">*</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.alarm_age)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.alarm_age, new { @class = "" })
|
|
|
|
@Html.ValidationMessageFor(model => model.alarm_age)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.alarm_age_sla_not_met)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.alarm_age_sla_not_met, new { @class = "" })
|
|
|
|
@Html.ValidationMessageFor(model => model.alarm_age_sla_not_met)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.alarm_age_ticket_not_closed)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.alarm_age_ticket_not_closed, new { @class = "" })
|
|
|
|
@Html.ValidationMessageFor(model => model.alarm_age_ticket_not_closed)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.alarm_age_van_not_live)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.alarm_age_van_not_live, new { @class = "" })
|
|
|
|
@Html.ValidationMessageFor(model => model.alarm_age_van_not_live)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.alarm_age_eicher_promise_48hrs)</span>
|
|
</td>
|
|
<td class="tableCellinfo">
|
|
@Html.TextBoxFor(model => model.alarm_age_eicher_promise_48hrs, new { @class = "" })
|
|
|
|
@Html.ValidationMessageFor(model => model.alarm_age_eicher_promise_48hrs)
|
|
</td>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt"></span>
|
|
</td>
|
|
<td class="tableCellinfo"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.emails)</span>
|
|
@*<div class="tooltip">
|
|
<img src="~/Content/css/images/help_favicon.ico" alt="help" />
|
|
<span>
|
|
|
|
</span>
|
|
</div>*@
|
|
</td>
|
|
<td class="tableCellinfo" colspan="3" style="width: 81%;">
|
|
@Html.TextBoxFor(model => model.emails)
|
|
<span id="spanEmail" style="display: none; color: red;">*</span>
|
|
@Html.ValidationMessageFor(model => model.emails)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tableCelllabel">
|
|
<span class="darktxt">@Html.LabelFor(model => model.phones)</span>
|
|
<div class="tooltip">
|
|
<img id="img_help" src="~/Content/css/images/help_favicon.png" height="20" width="20" alt="help" />
|
|
<span>Only 10 digits
|
|
<br />
|
|
Ex. 9999999999
|
|
</span>
|
|
</div>
|
|
@*<br />
|
|
<span style="color: red;">[Only 10 digits
|
|
<br />
|
|
Ex. xxxxxxxxxx]</span>*@
|
|
</td>
|
|
<td class="tableCellinfo" colspan="3" style="width: 81%;">
|
|
@Html.TextBoxFor(model => model.phones)
|
|
<span id="spanPhoneNo" style="display: none; color: red;">*</span>
|
|
@Html.ValidationMessageFor(model => model.phones)
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="CreateWrp">
|
|
<input type="submit" value="Create " class="button_blue" style="margin: 0px; height: 13px; width: auto;" />
|
|
<input type="reset" value="Reset " class="button_blue" style="margin: 0px; height: 13px; width: auto;" />
|
|
<input type="button" value="Cancel " class="button_blue" style="background: #ee2e22 !important; margin: 0px; height: 13px; width: auto;" onclick='closeWindow("#divCreateEscalation")' />
|
|
</div>
|
|
}
|
|
@*</div>*@
|
|
@*<script src="~/Scripts/jquery.tagsinput.js"></script>*@
|
|
@Scripts.Render("~/bundles/jsTagsInput")
|
|
<script>
|
|
// $('#Emails').tagsInput("hgfj@jkgh.com");
|
|
$('#emails').tagsInput({
|
|
type: 'email'
|
|
});
|
|
//$('#Phones').tagsInput();
|
|
$('#phones').tagsInput({
|
|
type: 'phone'
|
|
});
|
|
//bindVehicleProductVariant();
|
|
bindManagerLevel();
|
|
|
|
$("#ddDealerName").kendoComboBox({
|
|
dataTextField: "",
|
|
dataValueField: "",
|
|
filter: "",
|
|
dataSource: ""
|
|
});
|
|
|
|
$(document).ready(function () {
|
|
$('#ddVehicleType').kendoMultiSelect({
|
|
dataSource: vehicleProductVariantList,
|
|
dataTextField: 'Text',
|
|
dataValueField: 'Value',
|
|
filter: 'contains',
|
|
placeholder: "-Select-"
|
|
}).data("kendoMultiSelect");
|
|
});
|
|
//onBlurOfTag();
|
|
</script>
|
|
<style type="text/css">
|
|
.SelectDD select { width: 171px; padding: 0px 0px; text-indent: 3px; }
|
|
|
|
.themeTable tbody td { width: 24% !important; }
|
|
|
|
div.k-window { /*height: 500px;*/ box-shadow: 20px 20px 30px #555 !important; border-radius: 0; padding-top: 0 !important; }
|
|
|
|
.k-window-titlebar { border-radius: 0px !important; }
|
|
|
|
.k-i-close { background-color: #fff; border-radius: 2px; width: inherit !important; }
|
|
|
|
.k-window-titlebar.k-header { background: url("/Content/css/images/infowindow_head-bg.png") repeat-x left top; height: 18px !important; background-color: transparent !important; line-height: 16px; }
|
|
|
|
.tableCellinfo .text-box { width: 164px; }
|
|
|
|
div.tagsinput { float: left !important; width: 96% !important; }
|
|
|
|
div.tagsinput span.tag { border: 1px solid #77a8d1; background: #d2e2f0; color: #505050; }
|
|
|
|
div.tagsinput span.tag a { color: #77a8d1; display: -webkit-inline-box !important; }
|
|
|
|
div.tooltip span { border-radius: 4px; box-shadow: 5px 5px 8px #ccc; margin-left: 5px; margin-top: -18px; width: 122px; }
|
|
|
|
#Emails_tag { width: 200px; }
|
|
|
|
/*$("#Emails_tag").css('width','200px')*/
|
|
</style>
|