Create & View Resume Repository which will have multiple address, project details,certificate,skill & experience details,education.
ADD:
AddResume.cshtml
@using Kendo.Mvc.UI;
@{
ViewBag.Title = "AddResumeRepository";
Layout = "~/Views/Shared/_LayoutAdminLanding.cshtml";
}
@{
Html.RenderPartial("_RibbonMenu");
}
<style>
/*.k-toolbar .k-widget .k-toolbar-resizable
{
margin-left: 51px
}*/
#ToolBar {
margin-left: 51px;
}
.k-datepicker {
width: 220px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 9%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active, .accordion:hover {
background-color: #ccc;
}
.accordion:after {
content: '\002B';
color: #777;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "\2212";
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.lbl-toggle {
display: block;
font-weight: bold;
font-family: monospace;
font-size: 1.2rem;
text-transform: uppercase;
text-align: left;
padding: 1rem;
/*color: #A77B0E;
background: #FAE042;*/
cursor: pointer;
border-radius: 7px;
transition: all 0.25s ease-out;
}
.lbl-toggle:hover {
color: #7C5A0B;
}
.lbl-toggle::before {
content: ' ';
display: inline-block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid currentColor;
vertical-align: middle;
margin-right: .7rem;
transform: translateY(-2px);
transition: transform .2s ease-out;
}
.collapsible-content .content-inner {
background: rgba(250, 224, 66, .2);
border-bottom: 1px solid rgba(250, 224, 66, .45);
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
padding: .5rem 1rem;
}
.collapsible-content {
max-height: 0px;
overflow: hidden;
transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content {
max-height: 350px;
}
.toggle:checked + .lbl-toggle::before {
transform: rotate(90deg) translateX(-3px);
}
.toggle:checked + .lbl-toggle {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
/*.k-picker-wrap k-state-default {
width: 253px;
}*/
.k-dropzone {
margin-right: 837px;
}
.resume-dtails {
width: 83%;
padding: 50px;
margin-top: -49px;
}
.body-main-wrap {
margin-top: 41px;
padding-left: 160px;
}
</style>
<div style="margin-top: 20px;margin-left: 61px;color:grey"><h4>Add Applicant</h4></div>
<hr>
@*//personal details*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible" class="lbl-toggle" style="width:167px;margin-bottom:5px">Personal Details</label>
@*<label id="Personal" style="">Personal Details</label>*@
<div class="collapsible-content" id="save-container-personal">
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
First Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtFName")
.HtmlAttributes(new { placeholder = " First Name", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Middle Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtMName")
.HtmlAttributes(new { placeholder = " Middle Name", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Last Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtLName")
.HtmlAttributes(new { placeholder = "Last Name", required = "required", validationmessage = " * ", style = "width:220px;margin-left: 199px;margin-top:-24px; " }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
D.O.B
</div>
<div class="col-md-3" style="width:220px;float: left;margin-top:-35px;margin-left: 726px;">
@(Html.Kendo().DatePicker()
.Name("DOB")
//.Format("dd.MM.yyyy")
//.Format("dd/MM/yyyy")
//.Value(System.DateTime.Now.Date.ToString("dd/MM/yyyy"))
//.Format("dd/MM/yyyy")
//.Value("November 2011")
//.DateInput()
//.Format("dd/MM/yyyy")yyyy/MM/dd"
.HtmlAttributes(new { placeholder = " DOB", required = "required", validationmessage = " * ", style = " " }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Marital Status
</div>
<div class="col-md-3" style="margin-top: -19px;">
@(Html.Kendo().DropDownList()
.Name("DrpMStatus")
.DataTextField("MaritalStatusName")
.DataValueField("MaritalStatusId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllMaritalStatusList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:4px;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-24px;margin-left: 515px;">
Nationality
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpNationality")
.DataTextField("NationalityName")
.DataValueField("NationalityId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllNationalityList", "ResumeRepository"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;float: left;margin-top:-30px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 46px;float: left; margin-top: 10px;">
Religion
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpRel")
.DataTextField("ReligionName")
.DataValueField("ReligionId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllRegionList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:105px;margin-top:7px!important;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-28px;margin-left: 515px;">
Caste
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpCastey")
.DataTextField("CasteName")
.DataValueField("CasteId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllCasteList", "ResumeRepository"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-29px;margin-left: 726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: -902px;float: left;margin-top: 10px;">
Contact No
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtContact")
.HtmlAttributes(new { placeholder = " Contact No", required = "required", onkeypress = "return numbersonly(event)", validationmessage = " * ", maxlength = "10", minlength = "10", style = "width:220px; margin-left: -747px;margin-top:6px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -34px; margin-left: 515px;">
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtEmail")
.HtmlAttributes(new { placeholder = " Email", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-34px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-2" style="float: left;margin-left: -901px;">
Experience
</div>
<div class="col-md-2" style="margin-left: 90px;float: left;">
@(Html.Kendo().DatePicker()
.Name("monthpickerFrom")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left; font-size: 12px;", title = "monthpicker" })
)
@*@(Html.Kendo().TextBox()
.Name("txtExYear")
.HtmlAttributes(new { placeholder = "Year", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-2px;margin-left:89px;" }))*@
</div>
<div class="col-md-2"style="float: left;margin-left: 1px;margin-top: 0px;">
@(Html.Kendo().DatePicker()
.Name("monthpickerTo")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left;font-size: 12px;", title = "monthpicker" })
)
@*@(Html.Kendo().TextBox()
.Name("txtExMonth")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-2px;margin-left: 2px;" }))*@
</div>
<div class="col-md-3" style="float: left; margin-left: 94px;margin-top: 0px;">
Gender
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpGender")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Female",
Value = "Female"
},
new SelectListItem() {
Text = "Male",
Value = "Male"
}
})
//.Value("1")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-25px;margin-left:726px;" })
)
@*@(Html.Kendo().TextBox()
.Name("txtGender")
.HtmlAttributes(new { placeholder = "Gender", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-25px;margin-left:726px;" }))*@
</div>
</div>
</div>
</div>
@(Html.Kendo().Window()
.Name("AddPopupAddress")
.Title("Add Address")
.Content(@<text>
<div style="margin-left: 42px;" id="save-container-address">
@*@(Html.Kendo().RadioButton().Name("engine1").HtmlAttributes(new { }).Label("Permanent Address"));
@(Html.Kendo().RadioButton().Name("engine1").HtmlAttributes(new { }).Label("Correspondance Address"));*@
@(Html.Kendo().RadioButton().Name("engine1").HtmlAttributes(new { @name = "engine" }).Value("Permanent").Label("Permanent"))
@(Html.Kendo().RadioButton().Name("engine2").HtmlAttributes(new { @name = "engine" }).Value("Correspondance").Label("Correspondance"))
<div class="col-md-12" style="margin-top: 10px;">
<div class="col-md-6">
Country
</div>
<div class="col-md-6">
@(Html.Kendo().DropDownList()
.Name("DrpCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:220px;margin-top: -26px;" }) //margin-left: 199px;margin-top:-22px;
)
</div>
</div>
<div class="col-md-12">
<div class="col-md-6" style="">
State
</div>
<div class="col-md-6">
@(Html.Kendo().DropDownList()
.Name("DrpState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 220px;margin-top: -26px; " }) //float: left;margin-top:-35px;margin-left:726px;
)
</div>
</div>
<div class="col-md-12">
<div class="col-md-6">
City
</div>
<div class="col-md-6">
@*@(Html.Kendo().TextBox().Name("txtCity").HtmlAttributes(new { style = "width: 220px;margin-left:220px;margin-top: -26px; " }))*@
@(Html.Kendo().DropDownList()
.Name("DrpCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpState")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:220px;margin-top: -26px; " }) //margin-left: 199px;margin-top:-24px;
)
</div>
</div>
<div class="col-md-12">
<div class="col-md-6" style="">
Zip Code
</div>
<div class="col-md-6">
@(Html.Kendo().TextBox()
.Name("txtZip")
.HtmlAttributes(new { placeholder = "Zip Code", required = "required", validationmessage = " * ", style = "width:220px;margin-left:220px;margin-top: -26px;" })) @*//float: left;margin-top:-35px;margin-left:726px;*@
</div>
</div>
<div class="col-md-12">
<div class="col-md-6">
Street 1
</div>
<div class="col-md-6">
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
<textarea style="width:220px;margin-left: 220px;height:50px;margin-top: -21px;" maxlength="200" required class="k-input k-textbox" id="txtstreet1" placeholder="street" multiline="True"></textarea> @*margin-left: 199px;margin-top:-17px;*@
</div>
</div>
<div class="col-md-12">
<div class="col-md-6" style="">
Street 2
</div>
<div class="col-md-6">
@*<textarea id="txtstreet2" style="width: 220px;float: left;margin-top:-35px;margin-left:726px;" placeholder="street"></textarea>*@
<textarea style="width: 220px;margin-left: 220px;margin-top: -21px;margin-top: -21px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtstreet2" placeholder="street" multiline="True"></textarea>
@*float: left;margin-top:-56px;margin-left:726px;*@
</div>
</div>
<div class="col-md-12">
@(Html.Kendo().Button().Name("btnSaveAddress").Content("Save").Events(ev => ev.Click("Addaddress")).HtmlAttributes(new { style = "width:100px;margin-top: 70px;margin-left: 340px;" }))
</div>
</div>
</text>)
.Draggable()
.Resizable()
.Width(540)
.Height(500)
.Visible(false)
.Actions(actions => actions.Close())
)
<script>
function filterCountry() {
debugger;
return {
Country: $("#DrpCountry").val()
};
}
</script>
<script>
function filterState() {
debugger;
return {
State: $("#DrpState").val()
};
}
</script>
@****************For address Popup************************@
<script>
var count = 0;
function openAddress()
{
debugger;
var wnd = $("#AddPopupAddress").kendoWindow();
$("#AddPopupAddress").data("kendoWindow").open().center();
}
function Addaddress()
{
count++;
debugger;
var validator = $('#save-container-address').kendoValidator().data("kendoValidator");
if (validator.validate()) {
var CountryId, StateId, CityId, AddressZIP, AddressStreet1, AddressStreet2, Country, State, City, AddressType;
CountryId = $('#DrpCountry').data("kendoDropDownList").value();
StateId = $('#DrpState').data("kendoDropDownList").value();
CityId = $('#DrpCity').data("kendoDropDownList").value(); //
//CityId = $('#txtCity').val();
Country = $('#DrpCountry').data("kendoDropDownList").text();
State = $('#DrpState').data("kendoDropDownList").text();
City = $('#DrpCity').data("kendoDropDownList").text();
//City = $('#txtCity').val();
AddressZIP = $("#txtZip").val();
AddressStreet1 = $("#txtstreet1").val();
AddressStreet2 = $("#txtstreet2").val();
//AddressType = $("#engine1_Foo").val()
AddressType = $("[name='engine']").is(":checked")
AddressType = $("input[name='engine']:checked").val();
//$("#ChkAdd").is(':checked'),
//AddressType = $("[name='engine1']").is(":checked")
//var docType = $("input[name='engine1']:checked").val();
var selValue = $('#engine:checked').val();
//var ddlSkillDynText = $("#ddlSkillDyn").data("kendoDropDownList").text();
//var ddlSkillIdDyn = $("#ddlSkillDyn").val();
//$("#address").append(
// '<div class="row" style="padding-left: 31px;" id="skillNameDynRow">' +
// //'<div class="col-md-1">' + countDyRow++ + '</div>' +
// '<div class="col-md-3" style="float:right;margin-right:19em;margin-top:-16px;" id="skillNameDyn">' + ddlSkillDynText + '</div>' +
// '<div class="col-md-3" style="float:right;margin-right:68em;margin-top:-16px;display:none" id="skillIdDyn">' + ddlSkillIdDyn + '</div>' +
// '<div class="col-md-3 km-icon km-trash float-right" onclick=deleteDynSkill(this)></div>' +
// '</div>'
// );
var div = $("<div style='border-width: 1px; margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
"<span style='' id='addressTypeDyn" + count + "'>" + AddressType + " Address</span> " +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Country" +
"</div>" +
"<span style='display:none;' id='countryIDDyn" + count + "' name='countryIDDyn" + count + "'>" + CountryId + "</span>" +
" <div class='col-md-3' style = 'width:220px; margin-left: 199px;margin-top:-18px;' >" +
Country +
"</div>" +
" <div class='col-md-3' style='float: left;margin-top: -15px;margin-left: 515px;'>" +
" State" +
"</div>" +
"<span style='display:none;' id='stateIDDyn" + count + "'>" + StateId + "</span>" +
"<div class='col-md-3' style='margin-left: 700px;margin-top:-16px;'>" +
State +
"</div>" +
" </div>" +
" <div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-top: 23px; margin-left: 45px;'>" +
"City" +
"</div>" +
"<span style='display:none;' id='cityIDDyn" + count + "'>" + CityId + "</span>" +
"<div class='col-md-3' style='width: 220px;margin-left: 199px;margin-top: -22px;' id='cityIDDyn" + count + "'>" +
City +
" </div>" +
"<div class='col-md-3' style='float: left;margin-top:-14px;margin-left: 515px;'>" +
"Zip Code" +
" </div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 700px;margin-top: -13px;' id='zipDyn" + count + "'>" +
AddressZIP +
"</div>" +
" </div>" +
"<div class='col-md-12' style='margin-left: 25px;margin-top: 19px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
" Street 1" +
"</div>" +
"<div class='col-md-3' style='width:220px;margin-left: 199px;margin-top:-17px;height:50px;' id='street1Dyn" + count + "'>" +
AddressStreet1 +
" </div>" +
" <div class='col-md-3' style='float: left;margin-top:-53px;margin-left: 515px;'>" +
" Street 2" +
" </div>" +
"<div class='col-md-3' style='width: 220px;float: left;margin-top:-56px;margin-left:702px;height:50px;' id='street2Dyn" + count + "'>" +
AddressStreet1 +
" </div>" +
"</div> " +
" <span style='display:none;' id='addressTypeDyn" + count + "'>" + AddressType + "</span>" +
"</div> ");
localStorage.setItem("count", count);
$("#AddPopupAddress").data("kendoWindow").close(); // close address popup window
// reset popup window
$("#DrpCountry").data("kendoDropDownList").value("")
$("#DrpState").data("kendoDropDownList").value("")
$("#DrpCity").data("kendoDropDownList").value("")
// document.getElementById("txtCity").value = "";
document.getElementById("txtZip").value = "";
document.getElementById("txtstreet1").value = "";
document.getElementById("txtstreet2").value = "";
//
$("#address").append(div);
}
}
</script>
@*******Address Details************@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible1" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible1" class="lbl-toggle" style="width:167px;margin-bottom:5px">Address Details <input type="button" value="+" onclick="openAddress()" style="width: 14px;margin-left: 164px;margin-top: -10px;height: 37px;padding-right:30px;" /></label>
<div class="collapsible-content">
@*<label style="margin-bottom:5px;margin-left: 39px;">Permannet Address</label>*@
<div id="address">
</div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Zip Code
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtZip")
.HtmlAttributes(new { placeholder = "Zip Code", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Street 1
</div>
<div class="col-md-3">*@
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
@*<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtstreet1" placeholder="street" multiline="True"></textarea>
</div>
<div class="col-md-3" style="float: left;margin-top:-53px;margin-left: 515px;">
Street 2
</div>
<div class="col-md-3">*@
@*<textarea id="txtstreet2" style="width: 220px;float: left;margin-top:-35px;margin-left:726px;" placeholder="street"></textarea>*@
@*<textarea style="width: 220px;float: left;margin-top:-56px;margin-left:726px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtstreet2" placeholder="street" multiline="True"></textarea>
</div>
</div>*@
@*<div class="col-md-12" style="margin-bottom:10px;">
@(Html.Kendo().CheckBox()
.Name("ChkAdd")
.Label("Present address same As Permanent Address")
.HtmlAttributes(new { Style = "margin-left:20px;" })
)
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-4">
@(Html.Kendo().DropDownList()
.Name("DrpCurCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpCurState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCurCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCurCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpCurCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCurState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCurState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Zip Code
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtCurZip")
.HtmlAttributes(new { placeholder = "", required = "required", value = "", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Street 1
</div>
<div class="col-md-3">
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
@*<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtCurstreet1" placeholder="street" multiline="True"></textarea>*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-53px;margin-left: 515px;">
Street 2
</div>
<div class="col-md-3">
@*<textarea id="txtstreet2" style="width: 220px;float: left;margin-top:-35px;margin-left:726px;" placeholder="street"></textarea>*@
@*<textarea style="width: 220px;float: left;margin-top:-56px;margin-left:726px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtCurstreet2" placeholder="street" multiline="True"></textarea>
</div>
</div>*@
</div>
</div>
@******For Address***********************@
<script>
$("#ChkAdd").click(function () {
if (this.checked) {
console.log("hit");
}
var val = $("#ChkAdd").is(':checked');
if (val == true) {
debugger;
var c = $('#DrpCountry').data("kendoDropDownList").value()
$("#DrpCurCountry").data("kendoDropDownList").value(c)
var s = $('#DrpState').data("kendoDropDownList").value()
$("#DrpCurState").data("kendoDropDownList").value(s)
var cit = $('#DrpCity').data("kendoDropDownList").value()
$("#DrpCurCity").data("kendoDropDownList").value(cit)
var curZip = $("#txtZip").val();
var curStreet1 = $("#txtstreet1").val();
var curStreet2 = $("#txtstreet2").val();
document.getElementById("txtCurZip").value = curZip
document.getElementById("txtCurstreet1").innerText = curStreet1
document.getElementById("txtCurstreet2").innerHTML = curStreet2
}
else {
$("#DrpCurCountry").data("kendoDropDownList").value("")
$("#DrpCurState").data("kendoDropDownList").value("")
$("#DrpCurCity").data("kendoDropDownList").value("")
document.getElementById("txtCurZip").innerHTML = "";
document.getElementById("txtCurstreet1").innerText = ""
document.getElementById("txtCurstreet2").innerHTML = ""
}
});
</script>
@****************************************@
<script>
function filterCurCountry() {
return {
Country: $("#DrpCurCountry").val()
};
}
</script>
<script>
function filterCurState() {
return {
State: $("#DrpCurState").val()
};
}
</script>
@*Highest education detail*@
@*//////////////////////////////////////////////////////////*@
@(Html.Kendo().Window()
.Name("AddPopupEducation")
.Title("Add Education")
.Content(@<text>
<div style="margin-top:20px" id="id=" save-container-education">
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Qualification Category
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpQualcat")
.DataTextField("CategoryName")
.DataValueField("QualificationCategoryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllQualCatList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 245px;margin-top: -28px; " }) // margin - top:-22px;
)
</div>
<div class="col-md-3" style="margin-left:45px;">
Qualification
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpQual")
.DataTextField("QualificationName")
.DataValueField("QualificationId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllQualificationList", "ResumeRepository")
.Data("filterQualCat");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQualcat")
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 245px;margin-top: -28px;" }) //float: left;margin-top:-35px;
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Specialization
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpSpec")
.DataTextField("SpecializationName")
.DataValueField("QualificationISpecializationDtld")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSpecializationList", "ResumeRepository")
.Data("filterQual");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQual")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 247px;margin-top: -28px;" }) //margin-top:-24px;
)
</div>
<div class="col-md-3" style="float: left; margin-left: 44px; ">
Board Of University
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpBOU")
.DataTextField("BoardUniversityName")
.DataValueField("BoardUniversityId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllBOUList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 247px;margin-top: -28px; " }) //float: left;margin-top:-35px;
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Institute
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpInstitute")
.DataTextField("InstituteName")
.DataValueField("InstituteId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllInstituteList", "ResumeRepository")
.Data("filterBOU");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpBOU")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:247px;margin-top: -18px;" }) //;margin-top:-24px
)
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Country
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpEdCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:726px;" }) //float: left;margin-top:-35px;
)
</div>
</div>
<div class="col-md-12">
@(Html.Kendo().Button().Name("btnSaveEducation").Content("Save").Events(ev => ev.Click("Addeducation")).HtmlAttributes(new { style = "width:100px; margin-left: 391px;margin-top: 30px;" }))
</div>
</div>
</text>)
.Draggable()
.Resizable()
.Width(540)
.Height(391)
.Visible(false)
.Actions(actions => actions.Close())
)
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible2" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible2" class="lbl-toggle" style="width:244px;margin-bottom:5px">Highest Education Detail<input type="button" value="+" onclick="openEducation()" style="width: 14px;margin-left: 232px;margin-top: -14px;height: 37px;padding-right:30px;" /></label>
@*<label id="Personal" style="">Personal Details</label>*@
<div class="collapsible-content">
<div id="education"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Qualification Category
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpQualcat")
.DataTextField("CategoryName")
.DataValueField("QualificationCategoryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllQualCatList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Qualification
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpQual")
.DataTextField("QualificationName")
.DataValueField("QualificationId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllQualificationList", "ResumeRepository")
.Data("filterQualCat");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQualcat")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Specialization
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpSpec")
.DataTextField("SpecializationName")
.DataValueField("QualificationISpecializationDtld")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSpecializationList", "ResumeRepository")
.Data("filterQual");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQual")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Board Of University
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpBOU")
.DataTextField("BoardUniversityName")
.DataValueField("BoardUniversityId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllBOUList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left: 726px; " })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Institute
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpInstitute")
.DataTextField("InstituteName")
.DataValueField("InstituteId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllInstituteList", "ResumeRepository")
.Data("filterBOU");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpBOU")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-24px;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Country
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpEdCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;float: left;margin-top:-35px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
State
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpEdState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterEdCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpEdCountry")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-24px;" })
)
</div>
<div class="col-md-3" style="float: left;margin-top:-37px;margin-left: 515px;">
City
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpEdCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterEdState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpEdState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top: -19px;margin-left: 212px; " })
)
</div>
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Zip Code
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtEdZipCode")
.HtmlAttributes(new { placeholder = "Zip Code", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-24px;" }))
</div>
</div>*@
</div>
</div>
<script>
function filterEdCountry() {
return {
Country: $("#DrpEdCountry").val()
};
}
</script>
<script>
function filterEdState() {
return {
State: $("#DrpEdState").val()
};
}
</script>
<script>
function filterBOU() {
return {
BOU: $("#DrpBOU").val()
};
}
</script>
<script>
function filterQualCat() {
return {
Category: $("#DrpQualcat").val()
};
}
</script>
<script>
function filterQual() {
return {
Qualification: $("#DrpQual").val()
};
}
</script>
@*****************Skill*****************@
<style>
.km-icon {
}
/*table {
border-spacing: 0;
margin-top: -0.25em;
border: 0 none;
}*/
.km-add {
position: relative !important;
margin-top: 0px !important;
margin-left: 846px !important;
color: #7ea700;
}
#txtnewStages {
margin-left: 169px;
width: 200px;
height: 4px;
margin-top: 2px;
}
.km-trash {
padding-top: 0px;
position: relative !important;
margin-top: -8px !important;
margin-left: -48px !important;
color: #ff4350;
}
</style>
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible3" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible3" class="lbl-toggle" style="width:167px;margin-bottom:5px">Skill Details</label>
<div class="collapsible-content">
<div id="repeater" class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Skill
</div>
<div class="col-md-3">
@*@(Html.Kendo().TextBox()
.Name("DynamicTextBoxSkill")
.HtmlAttributes(new { placeholder = "Skill", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;" }))*@
@(Html.Kendo().DropDownList()
.Name("DynamicTextBoxSkill")
.DataTextField("SkillName")
.DataValueField("SkillId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSkillList", "ResumeRepository");
});
})
//.DataSource(read => read.Read("GetAllSkillList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)
</div>
<div class="col-md-4" style="float: left;margin-top: -31px; margin-left: 515px;">
Experience
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("DynamicTextBoxYear")
.HtmlAttributes(new { placeholder = "Year", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("DynamicTextBoxMonth")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-35px;margin-left: 841px;" }))
</div>
</div>
<table id="my_table" style="margin-left: 68px;"></table>
<div class="km-icon km-add" id="my_button" style="cursor:pointer">Add Another Skill Details </div>
</div>
</div>
@*************************************************Creating dynamic textbox for skill************************@
<script>
var count = 0;
$(document).ready(function () {
$("#my_button").click(function () {
var kendoddl = $("<tr><td> Skill</td><td>" +
"<input id='txtnewStages' style='width:219px; font-size: 14px; margin-right: 67px; margin-left:-410px;margin-top:-4px;' placeholder=' Skill' " +
+count + "' name='DynamicTextBoxSkill' validationmessage = ' * ' required/></td>");
//<input id="productoPresupuesto' + rowCount + '" />
$("#my_table").append(kendoddl);
//function preview() {
// var dropdown = $("#txtnewStages"+count).data("kendoDropDownList");
// var product = dropdown.dataSource.get(dropdown.value());
//}
$.ajax({
type: "GET",
url: "GetAllSkillList",
//data: model,
dataType: "json",
success: function (data) {
if (data) {
debugger;
var res = "txtnewStages" + count;
//#productoPresupuesto"+ rowCount
$("#txtnewStages").kendoDropDownList({
dataTextField: "SkillName",
dataValueField: "SkillId",
dataSource: data
}).attr("id", res);
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
debugger;
new_row = "<td style='float:left;margin-left: 473px;margin-top: -35px;'>Experience</td><td><input type='text' id='txtExYear' name='DynamicTextBoxYear' style='width:100px;float: left;margin-top:-39px;margin-left: 117px;' placeholder='Year'/></td><td><input type='text' id='txtExMonth' name='DynamicTextBoxMonth' style='width:100px;float: left;margin-top:-39px;margin-left: -24px;' placeholder='Month'/><td>" + "<td><span class='km-icon km-trash' onclick='removeRow(this)' style='cursor:pointer'></span></td>" +
"</tr>";
$("#my_table").append(new_row);
count = count + 1;
return false;
})
})
// DELETE TABLE ROW.
function removeRow(oButton) {
debugger
var empTab = document.getElementById('my_table');
empTab.deleteRow(oButton.parentNode.parentNode.rowIndex); // BUTTON -> TD -> TR.
}
//function createbtn() {
$(document).ready(function () {
$('#btn_SaveClose').click(function (e) {
debugger;
// save - container - personal
var validator = $('#save-container-personal').kendoValidator().data("kendoValidator");
if (validator.validate()) {
var valuesSkill = "";
var valuesExYear = "";
var valuesExMonth = "";
var valuesprojName = "";
var CountryIdArr = "";
var StateIdArr = "";
var CityIdArr = "";
var zipArr = "";
var street1Arr = "";
var street2Arr = "";
var AddType = "";
//for education
var QualCatId = "";
var QualId = "";
var SpecId = "";
var BOUId = "";
var InsId = "";
//for project
var valuesProname = "";
var valuesProClient = "";
var valuesProStatus = "";
var valuesProFrom = "";
var valuesProTo = "";
var valuesProtype = "";
var valuesProUrl = "";
var valuesProSize = "";
var valuesProRole = "";
var valuesProSkill = "";
var valuesProDesc = "";
//for company
var Companyname = "", Comwebsite = "", ComDurFrom = "", ComdurTo = "", ComDes = "", Comcountry = "", Comstate = "", ComCity = "";
//
$("input[name=DynamicTextBoxSkill]").each(function () {
debugger;
valuesSkill += $(this).val() + ",";
});
$("input[name=DynamicTextBoxYear]").each(function () {
debugger;
valuesExYear += $(this).val() + ",";
});
$("input[name=DynamicTextBoxMonth]").each(function () {
debugger;
valuesExMonth += $(this).val() + ",";
});
$("input[name=DynamicProject]").each(function () {
debugger;
valuesprojName += $(this).val() + ",";
});
//for address
var count = localStorage.getItem("count");
for (var i = 1; i <= count; i++) {
debugger;
var cid = "#countryIDDyn" + i;
var sid = "#stateIDDyn" + i;
var ciid = "#cityIDDyn" + i;
var zipid = "#zipDyn" + i;
var st1 = "#street1Dyn" + i;
var st2 = "#street2Dyn" + i;
var atpe = "#addressTypeDyn" + i;
CountryIdArr += $(cid).text() + ",";
StateIdArr += $(sid).text() + ",";
CityIdArr += $(ciid).text() + ",";
zipArr += $(zipid).text() + ",";
street1Arr += $(st1).text() + ",";
street2Arr += $(st2).text() + ",";
AddType += $(atpe).text() + ",";
//AddType+= $("#engine1_Foo").val()
}
var QualCatId = "";
var QualId = "";
var SpecId = "";
var BOUId = "";
var InsId = "";
// for education
var countEd = localStorage.getItem("counted");
for (var i = 1; i <= countEd; i++) {
debugger;
var cid = "#QualCatDynId" + i;
var sid = "#QualDynId" + i;
var ciid = "#QualSpecDynId" + i;
var zipid = "#BOUDynId" + i;
var st1 = "#InsDynId" + i;
QualCatId += $(cid).text() + ",";
QualId += $(sid).text() + ",";
SpecId += $(ciid).text() + ",";
BOUId += $(zipid).text() + ",";
InsId += $(st1).text() + ",";
}
//for project
var countPro = localStorage.getItem("countproject");
for (var k = 1; k <= countPro; k++) {
debugger;
var pn = "#ProNameDyn" + k;
var ps = "#ProStausDyn" + k;
var cln = "#ProClientDyn" + k;
var pyr = "#ProyearDyn" + k;
var pmn = "#PromonthDyn" + k;
var ts = "#ProTeamSizeDyn" + k;
var pt = "#ProTypeTextDyn" + k;
var rol = "#ProRoleDyn" + k;
var url = "#ProurlDyn" + k;
var skill = "#ProskillDyn" + k;
var desc = "#ProDescDyn" + k;
valuesProname += $(pn).text() + ",";
valuesProStatus += $(ps).text() + ",";
valuesProClient += $(cln).text() + ",";
valuesProFrom += $(pyr).text() + ",";
valuesProTo += $(pmn).text() + ",";
valuesProSize += $(ts).text() + ",";
valuesProtype += $(pt).text() + ",";
valuesProRole += $(rol).text() + ",";
valuesProUrl += $(url).text() + ",";
valuesProSkill += $(skill).text() + ",";
valuesProDesc += $(desc).text() + ",";
}
//for certificate
var certificatename = "", UploadCer = "";
var countcer = localStorage.getItem("countcert");
for (var cer = 1; cer <= countcer; cer++) {
var certname = "#CerDyn" + cer;
var upcer = "#upDyn" + cer;
certificatename += $(certname).text() + ",";
UploadCer += $(upcer).text() + ",";
}
//for company
var CountCom = localStorage.getItem("countedCom");
for (var com = 1; com <= CountCom; com++) {
var name = "#CompanyNameDyn" + com;
var des = "#CompanyDesDyn" + com;
var DurFrom = "#ComDurYearDyn" + com;
var DurTo = "#ComDurToDyn" + com;
var Web = "#ComWebDyn" + com;
var country = "#ComCountryDynId" + com;
var state = "#ComStateDynId" + com;
var city = "#ComCityDynId" + com;
//var Companyname = "", Comwebsite = "", ComDurFrom = "", ComdurTo = "", ComDes = "", Comcountry = "", Comstate = "", ComCity = "";
Companyname += $(name).text() + ",";
Comwebsite += $(Web).text() + ",";
ComDurFrom += $(DurFrom).text() + ",";
ComdurTo += $(DurTo).text() + ",";
ComDes += $(des).text() + ",";
Comcountry += $(country).text() + ",";
Comstate += $(state).text() + ",";
ComCity += $(city).text() + ",";
}
//
var datepicker = $("#DOB").data("kendoDatePicker").value();
var depModel = {
ApplicantFirstName: $("#txtFName").val(),
ApplicantMiddleName: $("#txtMName").val(),
ApplicantLastName: $("#txtLName").val(),
ContactNo: $("#txtContact").val(),
ApplicantDOB: $("#DOB").val(),
Gender: $("#DrpGender").data("kendoDropDownList").value(),
//Gender: $("#txtGender").val(),
EmailId: $("#txtEmail").val(),
MaritalStatusId: $("#DrpMStatus").data("kendoDropDownList").value(),
Nationality: $("#DrpNationality").data("kendoDropDownList").text(),
CasteName: $('#DrpCastey').data("kendoDropDownList").text(),
CasteId: $('#DrpCastey').data("kendoDropDownList").value(),
Religion: $('#DrpRel').data("kendoDropDownList").text(),
IsSameAsContactAddress: $("#ChkAdd").is(':checked'),
}
var ExperienceMonth = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
var ExperienceYear = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
// var datepicker = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
var model = {
"resumeRepository": depModel,
"skill": valuesSkill,
"ExYear": valuesExYear,
"ExMonth": valuesExMonth,
//qualification
"QualCatId": QualCatId,
"QualId": QualId,
"SpecId": SpecId,
"BOUId": BOUId,
"InsId": InsId,
//address
"CountryIdArr": CountryIdArr,
"StateIdArr": StateIdArr,
"CityIdArr": CityIdArr,
"zipArr": zipArr,
"street1Arr": street1Arr,
"street2Arr": street2Arr,
"AddType": AddType,
//for project
"valuesProname": valuesProname,
"valuesProClient": valuesProClient,
"valuesProStatus": valuesProStatus,
"valuesProFrom": valuesProFrom,
"valuesProTo": valuesProTo,
"valuesProtype": valuesProtype,
"valuesProUrl": valuesProUrl,
"valuesProSize": valuesProSize,
"valuesProRole": valuesProRole,
"valuesProSkill": valuesProSkill,
"valuesProDesc": valuesProDesc,
//for certificate
"UploadCer": UploadCer,
"certificatename": certificatename,
//for ex
"ExperienceMonth": ExperienceMonth,
"ExperienceYear": ExperienceYear,
//for Company
"Companyname": Companyname,
"Comwebsite": Comwebsite,
"ComDurFrom": ComDurFrom,
"ComdurTo": ComdurTo,
"ComDes": ComDes,
"Comcountry": Comcountry,
"Comstate": Comstate,
"ComCity": ComCity
}
$.ajax({
type: "POST",
url: "CreateResume",
data: model,
dataType: "json",
success: function (data) {
if (data) {
debugger;
return true;
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
}
})
$('#btn_SaveData').click(function (e) {
debugger;
var validator = $('#save-container-personal').kendoValidator().data("kendoValidator");
if (validator.validate()) {
var valuesSkill = "";
var valuesExYear = "";
var valuesExMonth = "";
var valuesprojName = "";
var CountryIdArr = "";
var StateIdArr = "";
var CityIdArr = "";
var zipArr = "";
var street1Arr = "";
var street2Arr = "";
var AddType = "";
//for education
var QualCatId = "";
var QualId = "";
var SpecId = "";
var BOUId = "";
var InsId = "";
//for project
var valuesProname = "";
var valuesProClient = "";
var valuesProStatus = "";
var valuesProFrom = "";
var valuesProTo = "";
var valuesProtype = "";
var valuesProUrl = "";
var valuesProSize = "";
var valuesProRole = "";
var valuesProSkill = "";
var valuesProDesc = "";
//for company
var Companyname = "", Comwebsite = "", ComDurFrom = "", ComdurTo = "", ComDes = "", Comcountry = "", Comstate = "", ComCity = "";
//
$("input[name=DynamicTextBoxSkill]").each(function () {
debugger;
valuesSkill += $(this).val() + ",";
});
$("input[name=DynamicTextBoxYear]").each(function () {
debugger;
valuesExYear += $(this).val() + ",";
});
$("input[name=DynamicTextBoxMonth]").each(function () {
debugger;
valuesExMonth += $(this).val() + ",";
});
$("input[name=DynamicProject]").each(function () {
debugger;
valuesprojName += $(this).val() + ",";
});
//for address
var count = localStorage.getItem("count");
for (var i = 1; i <= count; i++) {
debugger;
var cid = "#countryIDDyn" + i;
var sid = "#stateIDDyn" + i;
var ciid = "#cityIDDyn" + i;
var zipid = "#zipDyn" + i;
var st1 = "#street1Dyn" + i;
var st2 = "#street2Dyn" + i;
var atpe = "#addressTypeDyn" + i;
CountryIdArr += $(cid).text() + ",";
StateIdArr += $(sid).text() + ",";
CityIdArr += $(ciid).text() + ",";
zipArr += $(zipid).text() + ",";
street1Arr += $(st1).text() + ",";
street2Arr += $(st2).text() + ",";
AddType += $(atpe).text() + ",";
//AddType+= $("#engine1_Foo").val()
}
var QualCatId = "";
var QualId = "";
var SpecId = "";
var BOUId = "";
var InsId = "";
// for education
var countEd = localStorage.getItem("counted");
for (var i = 1; i <= countEd; i++) {
debugger;
var cid = "#QualCatDynId" + i;
var sid = "#QualDynId" + i;
var ciid = "#QualSpecDynId" + i;
var zipid = "#BOUDynId" + i;
var st1 = "#InsDynId" + i;
QualCatId += $(cid).text() + ",";
QualId += $(sid).text() + ",";
SpecId += $(ciid).text() + ",";
BOUId += $(zipid).text() + ",";
InsId += $(st1).text() + ",";
}
//for project
var countPro = localStorage.getItem("countproject");
for (var k = 1; k <= countPro; k++) {
debugger;
var pn = "#ProNameDyn" + k;
var ps = "#ProStausDyn" + k;
var cln = "#ProClientDyn" + k;
var pyr = "#ProyearDyn" + k;
var pmn = "#PromonthDyn" + k;
var ts = "#ProTeamSizeDyn" + k;
var pt = "#ProTypeTextDyn" + k;
var rol = "#ProRoleDyn" + k;
var url = "#ProurlDyn" + k;
var skill = "#ProskillDyn" + k;
var desc = "#ProDescDyn" + k;
valuesProname += $(pn).text() + ",";
valuesProStatus += $(ps).text() + ",";
valuesProClient += $(cln).text() + ",";
valuesProFrom += $(pyr).text() + ",";
valuesProTo += $(pmn).text() + ",";
valuesProSize += $(ts).text() + ",";
valuesProtype += $(pt).text() + ",";
valuesProRole += $(rol).text() + ",";
valuesProUrl += $(url).text() + ",";
valuesProSkill += $(skill).text() + ",";
valuesProDesc += $(desc).text() + ",";
}
//for certificate
var certificatename = "", UploadCer = "";
var countcer = localStorage.getItem("countcert");
for (var cer = 1; cer <= countcer; cer++) {
var certname = "#CerDyn" + cer;
var upcer = "#upDyn" + cer;
certificatename += $(certname).text() + ",";
UploadCer += $(upcer).text() + ",";
}
//for company
var CountCom = localStorage.getItem("countedCom");
for (var com = 1; com <= CountCom; com++) {
var name = "#CompanyNameDyn" + com;
var des = "#CompanyDesDyn" + com;
var DurFrom = "#ComDurYearDyn" + com;
var DurTo = "#ComDurToDyn" + com;
var Web = "#ComWebDyn" + com;
var country = "#ComCountryDynId" + com;
var state = "#ComStateDynId" + com;
var city = "#ComCityDynId" + com;
//var Companyname = "", Comwebsite = "", ComDurFrom = "", ComdurTo = "", ComDes = "", Comcountry = "", Comstate = "", ComCity = "";
Companyname += $(name).text() + ",";
Comwebsite += $(Web).text() + ",";
ComDurFrom += $(DurFrom).text() + ",";
ComdurTo += $(DurTo).text() + ",";
ComDes += $(des).text() + ",";
Comcountry += $(country).text() + ",";
Comstate += $(state).text() + ",";
ComCity += $(city).text() + ",";
}
//
var datepicker = $("#DOB").data("kendoDatePicker").value();
var depModel = {
ApplicantFirstName: $("#txtFName").val(),
ApplicantMiddleName: $("#txtMName").val(),
ApplicantLastName: $("#txtLName").val(),
ContactNo: $("#txtContact").val(),
ApplicantDOB: $("#DOB").val(),
// Gender: $("#txtGender").val(),
Gender: $("#DrpGender").data("kendoDropDownList").value(),
EmailId: $("#txtEmail").val(),
MaritalStatusId: $("#DrpMStatus").data("kendoDropDownList").value(),
Nationality: $("#DrpNationality").data("kendoDropDownList").text(),
CasteName: $('#DrpCastey').data("kendoDropDownList").text(),
CasteId: $('#DrpCastey').data("kendoDropDownList").value(),
Religion: $('#DrpRel').data("kendoDropDownList").text(),
IsSameAsContactAddress: $("#ChkAdd").is(':checked'),
}
var ExperienceMonth = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
var ExperienceYear = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
// var datepicker = kendo.toString($("#monthpickerFrom").data("kendoDatePicker").value(), 'MMMM yyyy');
var model = {
"resumeRepository": depModel,
"skill": valuesSkill,
"ExYear": valuesExYear,
"ExMonth": valuesExMonth,
//qualification
"QualCatId": QualCatId,
"QualId": QualId,
"SpecId": SpecId,
"BOUId": BOUId,
"InsId": InsId,
//address
"CountryIdArr": CountryIdArr,
"StateIdArr": StateIdArr,
"CityIdArr": CityIdArr,
"zipArr": zipArr,
"street1Arr": street1Arr,
"street2Arr": street2Arr,
"AddType": AddType,
//for project
"valuesProname": valuesProname,
"valuesProClient": valuesProClient,
"valuesProStatus": valuesProStatus,
"valuesProFrom": valuesProFrom,
"valuesProTo": valuesProTo,
"valuesProtype": valuesProtype,
"valuesProUrl": valuesProUrl,
"valuesProSize": valuesProSize,
"valuesProRole": valuesProRole,
"valuesProSkill": valuesProSkill,
"valuesProDesc": valuesProDesc,
//for certificate
"UploadCer": UploadCer,
"certificatename": certificatename,
//for ex
"ExperienceMonth": ExperienceMonth,
"ExperienceYear": ExperienceYear,
//for Company
"Companyname": Companyname,
"Comwebsite": Comwebsite,
"ComDurFrom": ComDurFrom,
"ComdurTo": ComdurTo,
"ComDes": ComDes,
"Comcountry": Comcountry,
"Comstate": Comstate,
"ComCity": ComCity
}
$.ajax({
type: "POST",
url: "CreateResume",
data: model,
dataType: "json",
success: function (data) {
if (data) {
debugger;
return true;
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
}
}
) })
//function createbtn() {
// debugger;
// var valuesSkill = "";
// var valuesExYear = "";
// var valuesExMonth = "";
// var valuesprojName = "";
// $("input[name=DynamicTextBoxSkill]").each(function () {
// debugger;
// valuesSkill += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxYear]").each(function () {
// debugger;
// valuesExYear += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxMonth]").each(function () {
// debugger;
// valuesExMonth += $(this).val() + ",";
// });
// $("input[name=DynamicProject]").each(function () {
// debugger;
// valuesprojName += $(this).val() + ",";
// });
// //for project
// var valuesProname = "";
// var valuesProStatus = "";
// var valuesProFrom = "";
// var valuesProTo = "";
// var valuesProSize = "";
// var valuesProRole = "";
// var valuesProSkill = "";
// var valuesProDesc = "";
// $("input[name=DynamicTextBoxProjectName]").each(function () {
// debugger;
// valuesProname += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProjectStatus]").each(function () {
// debugger;
// valuesProStatus += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProDurFrom]").each(function () {
// debugger;
// valuesProFrom += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProDurTo]").each(function () {
// debugger;
// valuesProTo += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProSize]").each(function () {
// debugger;
// valuesProSize += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProRole]").each(function () {
// debugger;
// valuesProRole += $(this).val() + ",";
// });
// $("input[name=DynamicTextBoxProURl]").each(function () {
// debugger;
// valuesprojName += $(this).val() + ",";
// });
// $("input[name=DynamicProjectSkill]").each(function () {
// debugger;
// valuesProSkill += $(this).val() + ",";
// });
// $("input[name=DynamicProjectDesc]").each(function () {
// debugger;
// valuesProDesc += $(this).val() + ",";
// });
// var CurCountry = "", CurState = "", CurCity = "", CurStreet1 = "", CurStreet2 = "", CurZip = "";
// CurCountry = $("#DrpCurCountry").data("kendoDropDownList").value();
// CurState = $("#DrpCurState").data("kendoDropDownList").value();
// CurCity = $("#DrpCurCity").data("kendoDropDownList").value();
// CurStreet1 = $("#txtCurstreet1").val();
// CurStreet2 = $("#txtCurstreet2").val();
// CurZip = $("#txtCurZip").val();
// var datepicker = $("#DOB").data("kendoDatePicker").value();
// var depModel = {
// ApplicantFirstName: $("#txtFName").val(),
// ApplicantMiddleName: $("#txtMName").val(),
// ApplicantLastName: $("#txtLName").val(),
// ContactNo: $("#txtContact").val(),
// ApplicantDOB: $("#DOB").val(),
// Gender: $("#txtGender").val(),
// ApplicantEmail: $("#txtEmail").val(),
// MaritalStatusId: $("#DrpMStatus").data("kendoDropDownList").value(),
// NationalityId: $("#DrpNationality").data("kendoDropDownList").value(),
// CasteId: $('#DrpCastey').data("kendoDropDownList").value(),
// ReligionId: $('#DrpRel').data("kendoDropDownList").value(),
// //Address DrpCountry
// CountryId: $('#DrpCountry').data("kendoDropDownList").value(),
// StateId: $('#DrpState').data("kendoDropDownList").value(),
// CityId: $('#DrpCity').data("kendoDropDownList").value(),
// AddressZIP: $("#txtZip").val(),
// AddressStreet1: $("#txtstreet1").val(),
// AddressStreet2: $("#txtstreet2").val(),
// IsSameAsContactAddress: $("#ChkAdd").is(':checked'),
// ExperienceMonth: $("#txtExMonth").val(),
// ExperienceYear: $("#txtExYear").val(),
// //company
// //Project Details
// ProjectTypeId: $('#DrpProType').data("kendoDropDownList").value(),
// ApplicantProjectTitle: $("#txtProjectname").val(),
// ApplicantProjectStatus: $("#txtProStatus").val(),
// ProjectDuration: $("#txtProjdurationFrom").val() + " " + "year" + " " + $("#txtProjdurationTo").val() + " " + "month",
// SkillId: $('#DrpProjectSkill').data("kendoDropDownList").value(),
// TeamSize: $("#txtProjectTSize").val(),
// RoleDescription: $("#txtProjectRole").val(),
// ProjectDescription: $("#txtProDesc").val(),
// ProjectUrl: $("#txtProjectURL").val(),
// ClientName: $("#txtClientName").val(),
// //Gender:$("#txtFName").val(),
// ApplicantEmail: $("#txtEmail").val(),
// //Certificate
// QualificationId: $('#DrpQual').data("kendoDropDownList").value(),
// QualificationCategoryId: $('#DrpQualcat').data("kendoDropDownList").value(),
// QualificationSpecializationDtld: $('#DrpSpec').data("kendoDropDownList").value(),
// CertificateName: $("#CertificateName").val(),
// //IsSameAsContactAddress: $("#txtFName").val(),
// ProjectTypeId: $("#DrpProType").data("kendoDropDownList").value(),
// }
// var model = {
// "resumeRepository": depModel,
// "skill": valuesSkill,
// "ExYear": valuesExYear,
// "ExMonth": valuesExMonth,
// "CurCountry": CurCountry,
// "CurState": CurState,
// "CurCity": CurCity,
// "CurStreet1": CurStreet1,
// "CurStreet2": CurStreet2,
// "CurZip": CurZip,
// }
// $.ajax({
// type: "POST",
// url: "CreateResume",
// data: model,
// dataType: "json",
// success: function (data) {
// if (data == "OK") {
// debugger;
// Refresh();
// var grid = $('#grid').data("kendoGrid");
// grid.dataSource.read();
// return true;
// }
// else
// return false;
// },
// error: function (err) {
// //alert("fail");
// }
// });
//}
</script>
@*Company*@
@(Html.Kendo().Window()
.Name("AddPopupCompany")
.Title("Add Company")
.Content(@<text>
<div class="col-md-12">
<div class="col-md-3" style="margin-left: 45px;">
Company Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtCompany")
.HtmlAttributes(new { placeholder = "Company Name", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 470px;">
Designation
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtDesignation")
.HtmlAttributes(new { placeholder = "Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:626px;" }))
</div>
</div>
<div class="col-md-12">
<div class="col-md-2" style="margin-left: 45px;">
Duration
</div>
<div class="col-md-2">
@*@(Html.Kendo().DatePicker()
.Name("CompanyYearpickerFrom")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left; font-size: 12px;", title = "monthpicker" })
)*@
@(Html.Kendo().TextBox()
.Name("txtdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width: 100px;margin-left:199px;margin-top:-22px; " }))
</div>
<div class="col-md-2">
@*@(Html.Kendo().DatePicker()
.Name("CompanyMonthpickerFrom")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left; font-size: 12px;", title = "monthpicker" })
)*@
@(Html.Kendo().TextBox()
.Name("txtdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:317px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 470px;">
Company's Website
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtWebsite")
.HtmlAttributes(new { placeholder = "Company website", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:626px;" }))
</div>
</div>
<div class="col-md-12">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-4">
@(Html.Kendo().DropDownList()
.Name("DrpCumCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px; " })
)
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 470px;">
State
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpCumState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCumCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:626px;" })
)
</div>
</div>
<div class="col-md-12">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox().Name("txtComCity")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px;" }))
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCumState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumState")
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)*@
</div>
</div>
<div class="col-md-12">
@(Html.Kendo().Button().Name("btnSaveCompany").Content("Save").Events(ev => ev.Click("AddCompany")).HtmlAttributes(new { style = "width:100px; margin-left: 744px;margin-top: 66px;" }))
</div>
</text>)
.Draggable()
.Resizable()
.Width(900)
.Height(380)
.Visible(false)
.Actions(actions => actions.Close())
)
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible4" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible4" class="lbl-toggle" style="width:167px;margin-bottom:5px">Company </label>
<div class="collapsible-content">
<input id="collapsible4_1" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible4_1" class="lbl-toggle" style="margin-bottom:5px;margin-left: 39px;">Company Details<input type="button" value="+" onclick="openCompany()" style="width: 14px;margin-left: 232px;margin-top: -14px;height: 37px;padding-right:30px;" /></label>
<div class="collapsible-content">
<div id="Company"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Company Name
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtCompany")
.HtmlAttributes(new { placeholder = "Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Designation
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtDesignation")
.HtmlAttributes(new { placeholder = "Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-2" style="margin-left: 45px;">
Duration
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBox()
.Name("txtdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width: 100px;margin-left:199px;margin-top:-22px; " }))
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBox()
.Name("txtdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:317px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Company's Website
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtWebsite")
.HtmlAttributes(new { placeholder = "Company website", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-4">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px; " })
)
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCumCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCumState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumState")
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)
</div>
</div>*@
</div>
@*<div id="my_tableCompany" style="margin-left: -41px;"></div>
<div class="km-icon km-add" id="my_buttonCompany" style="cursor:pointer">Add Another Company Details </div>*@
</div>
</div>
@*-------------------------------Generate/ Remove Dynamic Div project-----------------------------------*@
<script>
var Com=0;
function openCompany() {
debugger;
// var wnd = $("#AddPopupProject").kendoWindow();
$("#AddPopupCompany").data("kendoWindow").open().center();
}
function AddCompany()
{
Com++;
debugger;
var ComName, Desig, DurYear, DurTo, ComWeb, ComCountry,ComCountryId, ComState, ComCity;
ComName = $('#txtCompany').val();
Desig = $('#txtDesignation').val();
DurYear = $('#txtdurationFrom').val();
DurTo = $('#txtdurationTo').val();
ComWeb = $('#txtWebsite').val();
ComCountry = $('#DrpCumCountry').data("kendoDropDownList").text();
ComCountryId = $("#DrpCumCountry").data("kendoDropDownList").value();
ComState = $("#DrpCumState").data("kendoDropDownList").text();
ComStateId = $("#DrpCumState").data("kendoDropDownList").value();
//ComCity = $("#DrpCumCity").data("kendoDropDownList").text();
ComCity = $("#txtComCity").val();
//ComCityId = $("#DrpCumCity").data("kendoDropDownList").value();
var divv = $("<div style='border-width: 1px; margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>"+
"<div class='col-md-12' style='margin-left: 25px; padding-top: 15px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
" Company Name</div>"+
"<div class='col-md-3' style = 'width:220px;margin-left:199px;margin-top:-22px;' id='CompanyNameDyn"+ Com+"'>" +
ComName+
@*@(Html.Kendo().TextBox()
.Name("txtCompany")
.HtmlAttributes(new { placeholder = "Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
*@
"</div><div class='col-md-3' style='float: left;margin-top: -14px; margin-left: 515px;'>"+
"Designation</div>"+
"<div class='col-md-3' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;' id='CompanyDesDyn" + Com + "'>" +
Desig+
@*@(Html.Kendo().TextBox()
.Name("txtDesignation")
.HtmlAttributes(new { placeholder = "Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
*@
"</div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-2' style='margin-left: 45px;'>"+
"Duration</div>"+
"<div class='col-md-2' style ='width: 100px;margin-left:199px;margin-top:-22px; ' id='ComDurYearDyn" + Com + "'>" +
DurYear+" Year"+
@*@(Html.Kendo().TextBox()
.Name("txtdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width: 100px;margin-left:199px;margin-top:-22px; " }))
*@
"</div><div class='col-md-2' style ='width:100px;float: left;margin-left: 247px;margin-top: -18px;' id='ComDurToDyn" + Com + "'>" +
DurTo+" Month"+
@*@(Html.Kendo().TextBox()
.Name("txtdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:317px;" }))
*@
"</div><div class='col-md-3' style='float: left;margin-top: -15px;;margin-left: 515px;'>" +
" Company's Website</div><div class='col-md-3' style ='width:220px;float: left;margin-top: -15px;margin-left:726px;' id='ComWebDyn" + Com + "'>" +
ComWeb+
@*@(Html.Kendo().TextBox()
.Name("txtWebsite")
.HtmlAttributes(new { placeholder = "Company website", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
*@
" </div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;'>"+
"Country</div>" +
"<span style='display:none' id='ComCountryDynId" + Com + "'>" + ComCountryId + "</span>" +
"<div class='col-md-4' style = 'width: 220px;margin-left:199px;margin-top:-22px;'>" +
ComCountry+
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px; " })
)*@
"</div><div class='col-md-3' style='float: left;margin-top: -15px;margin-left: 515px;'>" +
" State</div>" +
"<span style='display:none' id='ComStateDynId" + Com + "'>" + ComStateId + "</span>" +
"<div class='col-md-3' style='margin-top: -15px;margin-left: 726px;'>"+
ComState+
@*@(Html.Kendo().DropDownList()
.Name("DrpCumState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCumCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-fcreatebtntop:-35px;margin-left:726px;" })
)*@
"</div></div><div class='col-md-12' style='margin-left: 25px;padding-bottom: 15px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
"City"+
"</div>" +
//"<span style='display:none' id='ComCityDynId" + Com + "'>" + ComCityId + "</span>" +
"<div class='col-md-3' style='margin-top: -15px;margin-left: 198px;' id='ComCityDynId" + Com + "'>" +
ComCity+
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCumState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumState")
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)
</div>
</div>*@
"</div>");
$("#AddPopupCompany").data("kendoWindow").close(); // close address popup window
// reset popup window
$("#txtCompany").val("")
$("#txtDesignation").val("")
$("#txtdurationFrom").val("")
$("#txtWebsite").val("")
$("#DrpCumCountry").data("kendoDropDownList").value("")
$("#DrpCumState").data("kendoDropDownList").value("")
$("#txtComCity").val("")
//
localStorage.setItem("countedCom", Com);
$("#Company").append(divv);
}
</script>
<script>
var fileId = 0;
//$(document).ready(function () {
// $.ajax({
// type: "GET",
// url: "GetAllSkillList",
// //data: model,
// dataType: "json",
// success: function (data) {
// if (data) {
// debugger;
// var res = "Dynamicdrp";
// //#productoPresupuesto"+ rowCount
// $("#DynamicdrpProj1").kendoDropDownList({
// dataTextField: "SkillName",
// dataValueField: "SkillId",
// dataSource: data
// }).attr("id", res);
// }
// else
// return false;
// },
// error: function (err) {
// //alert("fail");
// }
// });
//})
function dynamicEmpDetailDivPrj() {
fileId++;
debugger;
////var div = document.getElementById('contentprj').innerHTML;
//$("#emp").append(div);
////addElement('contentprj', 'div', 'file-' + fileId, div, fileId);
var kendoddl = $("<label style='margin-bottom:5px;margin-left: 39px;'>Project Details</label>" +
"<div id='prj" + fileId + "'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Project Name" +
"</div>" +
"<div class='col-md-3'>" +
"<input id='txtnewProjectname' style='width: 220px; margin-left: 199px;margin-top: -22px;' placeholder=' Projectname' " + count + " name='DynamicTextBoxProjectName' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
"Project Status" +
"</div>" +
"<div class='col-md-3'>" +
"<input id='txtnewProjectStatus' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' Projectname' " + count + " name='DynamicTextBoxProjectStatus' validationmessage = ' * ' required/>" +
"</div>" +
" </div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Client Name" +
"</div>" +
"<div class='col-md-3'>" +
"<input id='txtnewClientName' style='width: 220px;margin-left: 199px;margin-top: -22px;' placeholder='Client Name' " + count + " name='DynamicTextBoxClientName' validationmessage = ' * ' required/>" +
" </div>" +
"<div class='col-md-2' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
" Project Duration" +
"</div>" +
" <div class='col-md-2'>" +
"<input id='txtnewProDurFrom' style='width:100px;float: left;margin-top:-35px;margin-left:726px;' placeholder='Year' " + count + " name='DynamicTextBoxProDurFrom' validationmessage = ' * ' required/>" +
"</div>" +
" <div class='col-md-2'>" +
"<input id='txtnewProDurTo' style='width:100px;float: left;margin-top:-35px;margin-left:845px;' placeholder='month' " + count + " name='DynamicTextBoxProDurTo' validationmessage = ' * ' required/>" +
"</div>" +
" </div>" +
" <div class='col-md-12' style='margin-left: 25px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
" Team SIze" +
" </div>" +
"<div class='col-md-4'>" +
"<input id='txtnewProSize' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder='Projectsize' " + count + " name='DynamicTextBoxProSize' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
" Project Type" +
"</div>" +
" <div class='col-md-3' style='width:220px;float: left;margin-top:-35px;margin-left:726px;'>" +
"<select id='drpproType' style='width: 230px;height: 28px'>" +
"<option value='Onsite'>Onsite</option>" +
"<option value='OffSite'>OffSite</option>" +
"</select>" +
" </div>" +
" </div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Role" +
"</div>" +
"<div class='col-md-3'>" +
"<input id='txtnewProRole' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder='Role' " + count + " name='DynamicTextBoxProRole' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px;margin-left: 515px;'>" +
"URL" +
"</div>" +
"<div class='col-md-3'>" +
"<input id='txtnewProUrl' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder='url' " + count + " name='DynamicTextBoxProURl' validationmessage = ' * ' required/>" +
" </div>" +
" </div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Skill Used" +
" </div>" +
"<div class='col-md-3'>" +
" <input id='DynamicProjectSkill' style='width:219px; font-size: 14px; margin-right: 67px; margin-left: -408px;margin-top:-9px;' placeholder='Skill' name='DynamicProjectSkill' />" +
" </div>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
" Description" +
" </div>" +
"<div class='col-md-3'>" +
"<textarea style='width:220px;margin-left: 199px;margin-top:-17px;height:50px;' maxlength='200' required class='k-input k-textbox' id='txtProDesc' name='DynamicProjectDesc' placeholder='street' multiline='True'></textarea>" +
" </div>" +
"</div>" +
"<div id='my_removebutton' style='cursor:pointer;margin-left:929px' onclick='dynamicRemoveDivPrj(this)'>- Remove Project </div>" +
" </div>" +
"</div>");
//var newElement = document.createElement("div");
//newElement.setAttribute('id', fileId);
//newElement.innerHTML = kendoddl;
$("#prj").append(kendoddl);
$.ajax({
type: "GET",
url: "GetAllSkillList",
//data: model,
dataType: "json",
success: function (data) {
if (data) {
debugger;
var res = "DynamicProjectSkill" + fileId;
//#productoPresupuesto"+ rowCount
$("#DynamicProjectSkill").kendoDropDownList({
dataTextField: "SkillName",
dataValueField: "SkillId",
dataSource: data
}).attr("id", res);
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
}
function addElement(parentId, elementTag, elementId, html, fileId) {
debugger;
var count = 0;
var p = document.getElementById(parentId);
var newElement = document.createElement(elementTag);
newElement.setAttribute('id', elementId);
var kendoddl = $();
newElement.innerHTML = html;
$("#prj").append(newElement);
//$("div :5th-last-child(1)").append("<span> - 2nd to last!</span>");
//$.ajax({
// type: "GET",
// url: "GetAllSkillList",
// //data: model,
// dataType: "json",
// success: function (data) {
// if (data) {
// debugger;
// var res = "DynamicdrpProj1" + fileId;
// //#productoPresupuesto"+ rowCount
// $("#DynamicdrpProj1").kendoDropDownList({
// dataTextField: "SkillName",
// dataValueField: "SkillId",
// dataSource: data
// }).attr("Name", res);
// count++;
// }
// else
// return false;
// },
// error: function (err) {
// //alert("fail");
// }
//});
}
function dynamicRemoveDivPrj(e) {
alert(e);
//$(e).prepend(" ");
//var d = document.getElementById(prj);
//var olddiv = document.getElementById(prj1);
//d.removeChild(olddiv);
}
</script>
@*<script>
var count = 0;
$(document).ready(function () {
debugger;
$("#my_buttonCompany").click(function () {
debugger;
//new_row = "<table><tr><td> Skill</td><td><input type='text' id='txtnewStages' style='width:209px; font-size: 14px; margin-right: 67px; margin-left: 103px;margin-top:-22px;' placeholder=' Skill' "
// + count + "' name='DynamicTextBoxSkill' validationmessage = ' * ' required/>" +
// "</td><td>Experience</td><td><input type='text' id='txtExYear' name='DynamicTextBoxYear' style='width:100px;float: left;margin-top:-5px;margin-left: 120px;' placeholder='Year'/></td><td><input type='text' id='txtExMonth' name='DynamicTextBoxMonth' style='width:100px;float: left;margin-top:-5px;margin-left: -24px;' placeholder='Month'/><td>" + "<td><span class='km-icon km-trash' onclick='removeRow(this)' style='cursor:pointer'></span></td>" +
// "</tr></table>";
//new_row = "<div class='collapsible-content'>" +
// "<input id='collapsible4_2' class='toggle' type='checkbox' style='visibility:hidden'>" +
// "<label for='collapsible4_2' class='lbl-toggle' style='margin-bottom:5px;margin-left: 39px;'>Company Details</label>" +
// "<div class='collapsible-content'>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "Company Name" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewComName' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder=' Company Name' "
// + count + "' name='DynamicTextBoxComName' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "Designation" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewDesignation' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' designation' "
// + count + "' name='DynamicTextBoxDesignation' validationmessage = ' * ' required/>" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-2' style='margin-left: 45px;'>" +
// " Duration" +
// "</div>" +
// "<div class='col-md-2'>" +
// "<input type='text' id='txtnewComDurYear' style='width: 100px;margin-left:199px;margin-top:-22px;' placeholder='Year' "
// + count + "' name='DynamicTextBoxComDurYear' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-2'>" +
// "<input type='text' id='txtnewComDurMonth' style='width:100px;float: left;margin-top:-35px;margin-left:317px;' placeholder='Month' "
// + count + "' name='DynamicTextBoxComDurMonth' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "Company's Website" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewComWeb' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' Company website' "
// + count + "' name='DynamicTextBoxComWeb' validationmessage = ' * ' required/>" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "Country" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "State" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "City" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "</div>" +
// "</div>" +
// "</div>";
new_row = "<div style='margin-bottom:5px;margin-left: 39px; margin-top: 17px;'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Company Name" +
"</div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 3px;margin-top: -14px;'>" +
"<input type='text' id='txtnewComName' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder=' Company Name' "
+ count + "' name='DynamicTextBoxComName' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
"Designation" +
"</div>" +
"<div class='col-md-3'>" +
"<input type='text' id='txtnewDesignation' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' designation' "
+ "' name='DynamicTextBoxDesignation' validationmessage = ' * ' required/>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-2' style='margin-left: 45px;margin-left: 49px;margin-top: 3px;'>" +
" Duration" +
"</div>" +
"<div class='col-md-2' style='margin-top: -20px;'>" +
"<input type='text' id='txtnewComDurYear' style='width: 100px;margin-left:202px;margin-top:0px;' placeholder='Year' "
+ "' name='DynamicTextBoxComDurYear' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-2'>" +
"<input type='text' id='txtnewComDurMonth' style='width:100px;float: left;margin-top:-35px;margin-left:317px;' placeholder='Month' "
+ "' name='DynamicTextBoxComDurMonth' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 86px;'>" +
"Company's Website" +
"</div>" +
"<div class='col-md-3'>" +
"<input type='text' id='txtnewComWeb' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' Company website' "
+ "' name='DynamicTextBoxComWeb' validationmessage = ' * ' required/>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Country" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='sel'>"+
"<option value=''>-- Select --</option>"+
"</select>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
"State" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='state'>" +
"<option value=''>-- Select --</option>" +
"</select>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"City" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='con'>" +
"<option value=''>-- Select --</option>" +
"</select>" +
"</div>" +
"</div>" +
"</div>";
$("#my_tableCompany").append(new_row);
count = count + 1;
var url = "/ResumeRepository/GetCountry";
$.getJSON(url, function (data) {
$.each(data, function (index, value) {
// APPEND OR INSERT DATA TO SELECT ELEMENT.
debugger;
$('#sel').append('<option value="' + value.ID + '">' + value.Name + '</option>');
});
});
return false;
})
})
//$(document).ready(function () {
//debugger;
//var url = "/ResumeRepository/GetCountry";
//$.getJSON(url, function (data) {
// $.each(data, function (index, value) {
// // APPEND OR INSERT DATA TO SELECT ELEMENT.
// debugger;
// $('#sel').append('<option value="' + value.ID + '">' + value.Name + '</option>');
// });
//});
//})
// DELETE TABLE ROW.
function removeRow(oButton) {
debugger
var empTab = document.getElementById('my_table');
empTab.deleteRow(oButton.parentNode.parentNode.rowIndex); // BUTTON -> TD -> TR.
}
</script>*@
<script>
function filterCumCountry() {
return {
Country: $("#DrpCumCountry").val()
};
}
</script>
<script>
function filterCumState() {
return {
State: $("#DrpCumState").val()
};
}
</script>
@(Html.Kendo().Window()
.Name("AddPopupProject")
.Title("Add Project")
.Content(@<text>
<div style="margin-top: 20px;">
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="margin-left: 45px;">
Project Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectname")
.HtmlAttributes(new { placeholder = " Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 454px;">
Project Status
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProStatus")
.HtmlAttributes(new { placeholder = "Status", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:627px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="margin-left: 45px;">
Client Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtClientName")
.HtmlAttributes(new { placeholder = "Client Name", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px; " }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-2" style="float: left;margin-top: -31px; margin-left: 454px;">
Project Duration
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("txtProjdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", onkeypress = "return numbersonly(event)", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:627px;" }))
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("txtProjdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", onkeypress = "return numbersonly(event)", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:747px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="margin-left: 45px;">
Team SIze
</div>
<div class="col-md-4">
@(Html.Kendo().TextBox()
.Name("txtProjectTSize")
.HtmlAttributes(new { placeholder = "Team Size,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 454px;">
Project Type
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpProType")
.DataTextField("ProjectTypeName")
.DataValueField("ProjectTypeId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllProjcetTypeList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:627px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="margin-left: 45px;">
Role
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectRole")
.HtmlAttributes(new { placeholder = "Role", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="float: left;margin-top: -31px;margin-left: 454px;">
URL
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectURL")
.HtmlAttributes(new { placeholder = "URL", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:627px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="margin-left: 45px;">
Skill Used
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectSkill")
.HtmlAttributes(new { placeholder = "skill", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px; " }))
@*<input id="DynamicdrpProj1" style="width:219px; font-size: 14px; margin-right: 67px; margin-left: 200px;margin-top:-27px;" placeholder="Skill"
name='DynamicProject' />*@
@*<input type="text" name='DynamicdrpProj1' /> @*name="DrpProjectSkill"**@
@*@(Html.Kendo().DropDownList()
.Name("DrpProjectSkill")
.DataTextField("SkillName")
.DataValueField("SkillId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSkillList", "ResumeRepository");
});
})
//.DataSource(read => read.Read("GetAllSkillList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px;" })
)*@
@*@(Html.Kendo().DropDownList()
.Name("DrpProjectSkill")
.DataTextField("MaritalStatus")
.DataValueField("MaritalStatusId")
.OptionLabel("--Select--")
//.DataSource(read => read.Read("GetCountry", "InterviewVenue"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)*@
</div>
</div>
<div class="col-md-12" style="margin-left: 0px;">
<div class="col-md-3" style="float: left;margin-top: -31px;margin-left: 454px;">
Description
</div>
<div class="col-md-3">
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
<textarea style="width:220px;float: left;margin-top: -35px;margin-left: 627px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtProDesc" placeholder="street" multiline="True"></textarea>
</div>
</div>
<div class="col-md-12">
@(Html.Kendo().Button().Name("btnSaveProject").Content("Save").Events(ev => ev.Click("AddProject")).HtmlAttributes(new { style = "width:100px;margin-left: 746px;margin - top: 48px; " }))
</div>
</div>
</text>)
.Draggable()
.Resizable()
.Width(900)
.Height(380)
.Visible(false)
.Actions(actions => actions.Close())
)
@*Project*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible5" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible5" class="lbl-toggle" style="width:167px;margin-bottom:5px">Project </label>
<div class="collapsible-content" id="contentprj">
<label style="margin-bottom:5px;margin-left:39px;">Project Details<input type="button" value="+" onclick="openProject()" style="width: 14px;margin-left: 164px;margin-top: 3px;height: 37px;padding-right:30px;" /></label>
<div id="project"></div>
@*<div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Project Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectname")
.HtmlAttributes(new { placeholder = " Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Status
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProStatus")
.HtmlAttributes(new { placeholder = " Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Client Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtClientName")
.HtmlAttributes(new { placeholder = "Client Name", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px; " }))
</div>
<div class="col-md-2" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Duration
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("txtProjdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
<div class="col-md-2">
@(Html.Kendo().TextBox()
.Name("txtProjdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:845px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Team SIze
</div>
<div class="col-md-4">
@(Html.Kendo().TextBox()
.Name("txtProjectTSize")
.HtmlAttributes(new { placeholder = " Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Type
</div>
<div class="col-md-3">
@(Html.Kendo().DropDownList()
.Name("DrpProType")
.DataTextField("ProjectTypeName")
.DataValueField("ProjectTypeId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllProjcetTypeList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Role
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectRole")
.HtmlAttributes(new { placeholder = "Role", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px;margin-left: 515px;">
URL
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("txtProjectURL")
.HtmlAttributes(new { placeholder = "URL", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Skill Used
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtProjectSkill")
.HtmlAttributes(new { placeholder = "skill", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px; " }))*@
@*<input id="DynamicdrpProj1" style="width:219px; font-size: 14px; margin-right: 67px; margin-left: 200px;margin-top:-27px;" placeholder="Skill"
name='DynamicProject' />*@
@*<input type="text" name='DynamicdrpProj1' /> @*name="DrpProjectSkill"**@
@*@(Html.Kendo().DropDownList()
.Name("DrpProjectSkill")
.DataTextField("SkillName")
.DataValueField("SkillId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSkillList", "ResumeRepository");
});
})
//.DataSource(read => read.Read("GetAllSkillList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px;" })
)*@
@*@(Html.Kendo().DropDownList()
.Name("DrpProjectSkill")
.DataTextField("MaritalStatus")
.DataValueField("MaritalStatusId")
.OptionLabel("--Select--")
//.DataSource(read => read.Read("GetCountry", "InterviewVenue"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)*@
@*</div>
<div class="col-md-3" style="margin-left: 45px;">
Description
</div>
<div class="col-md-3">
<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;" maxlength="200" required class="k-input k-textbox" id="txtProDesc" placeholder="street" multiline="True"></textarea>
</div>
</div>
</div>
</div>
<div id="prj">
</div>
</div>*@
</div>
</div>
@*Certificate*@
@(Html.Kendo().Window()
.Name("AddPopupCertificate")
.Title("Add Certificate")
.Content(@<text>
<div style="margin-top: 20px;">
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Certificate Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("CertificateName")
.HtmlAttributes(new { placeholder = " Certificate Name", required = "required", validationmessage = " * ", style = "width:207px; margin-left: 199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="margin-left: 45px;">
Upload
</div>
<div class="col-md-3" style="width: 133px;float: left;margin-top: -18px;margin-left: 200px;">
@(Html.Kendo().Upload()
.Name("imgupl")
//.Events(events => events
//.Select("onSelect1")
.Async(a => a.Save("UploadImageAsynB", "ResumeRepository")
.AutoUpload(true))
.Events(e => e.Success("success"))
//.Multiple(true)
)
@*@(Html.Kendo().Upload()
.Name("UploadResume")
.HtmlAttributes(new { placeholder = "", required = "required", validationmessage = " * ",/* style = "width:220px; margin-left: 199px;margin-top:-22px;"*/ }))*@
</div>
</div>
<div class="col-md-12">
@(Html.Kendo().Button().Name("btnSaveCertificate").Content("Save").Events(ev => ev.Click("AddCertificate")).HtmlAttributes(new { style = "width:100px;margin-left: 325px;margin-top:102px;" }))
</div>
</div>
</text>)
.Draggable()
.Resizable()
.Width(450)
.Height(378)
.Visible(false)
.Actions(actions => actions.Close())
)
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible6" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible6" class="lbl-toggle" style="width:167px;margin-bottom:5px">Certificate<input type="button" value="+" onclick="openCertificate()" style="width: 14px;margin-left: 164px;margin-top: -10px;height: 37px;padding-right:30px;" /></label>
<div class="collapsible-content">
<div id="Certificate"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Certificate Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBox()
.Name("CertificateName")
.HtmlAttributes(new { placeholder = " Certificate Name", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Upload
</div>
<div class="col-md-3" style="width: 133px;float: left;margin-top: -35px;margin-left: 726px;">
@(Html.Kendo().Upload()
.Name("imgupl")
//.Events(events => events
//.Select("onSelect1")
.Async(a => a.Save("UploadImageAsynB", "ResumeRepository")
.AutoUpload(true))
.Multiple(true)
)
@(Html.Kendo().Upload()
.Name("UploadCertificate")
.HtmlAttributes(new { placeholder = "", required = "required", validationmessage = " * ",/* style = "width: 100px;float: left;margin-top:-35px;margin-left: 726px;"*/ }))*@
@*</div>
</div>*@
@*<div class="col-md-12" style="margin-left: 25px;">
@(Html.Kendo().Button()
.Name("btnUploadCertificate")
.Content("Upload")
.HtmlAttributes(new { style = "width: 64px;float: left;margin-top: 5px;margin-left: 727px;border-radius: 6px; " }))
</div>*@
</div>
</div>
<style>
.k-widget .k-upload .k-header .k-upload-sync {
width: 150px;
}
</style>
@**************resume**************************************@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible7" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible7" class="lbl-toggle" style="width:167px;margin-bottom:5px">Resume Details</label>
<div class="collapsible-content">
<div class="row">
<div class="col-md-12">
<div class="col-md-3" style="margin-left: 45px;margin-bottom: -21px;">
Resume
</div>
<div class="col-md-3 pull-right resume-dtails">
@(Html.Kendo().Upload()
.Name("imgUpResume")
//.Events(events => events
//.Select("onSelect1")
.Async(a => a.Save("UploadImageAsynResume", "ResumeRepository")
.AutoUpload(true))
//.Multiple(true)
)
</div>
</div>
</div>
</div>
</div>
@*////////////////////////////////for Open education Popup///////////////////////*@
<script>
debugger;
var cc = 0;
var ccPro = 0;
var ccCer = 0;
//Session["filePath"] = "";
//var yourVariable = '<%= Session["filePath"] %>';
//alert(yourVariable);
function getFileInfo(e) {
return $.map(e.files, function (file) {
var info = file.name;
return info;
}).join(", ");
}
function success(e) {
debugger;
var filename = getFileInfo(e);
alert(filename);
}
function openEducation()
{
debugger;
//var wnd = $("#AddPopupEducation").kendoWindow();
$("#AddPopupEducation").data("kendoWindow").open().center();
}
function Addeducation()
{
cc++;
debugger;
//var validator = $('#save-container-education').kendoValidator().data("kendoValidator");
//if (validator.validate()) {
var QualCatid, QualId, QualSpecId, QualCat, Qual, Spec, BOUId, InstId, BOU, Inst;
QualCatid = $('#DrpQualcat').data("kendoDropDownList").value();
QualId = $('#DrpQual').data("kendoDropDownList").value();
QualSpecId = $('#DrpSpec').data("kendoDropDownList").value();
QualCat = $('#DrpQualcat').data("kendoDropDownList").text();
Qual = $('#DrpQual').data("kendoDropDownList").text();
Spec = $('#DrpSpec').data("kendoDropDownList").text();
BOUId = $("#DrpBOU").data("kendoDropDownList").value();
InstId = $("#DrpInstitute").data("kendoDropDownList").value();
BOU = $("#DrpBOU").data("kendoDropDownList").text();
Inst = $("#DrpInstitute").data("kendoDropDownList").text();
var divv = $("<div style='border-width: 1px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);margin-bottom: 10px;padding-bottom: 20px;'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
"Qualification Category" +
"</div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 247px;margin-top: -18px;'>" +
QualCat +
"</div>" +
"<span style='display:none' id='QualCatDynId" + cc + "'>" + QualCatid + "</span>" +
"<div class='col-md-3' style='margin-top: -17px;margin-left: 515px;'>" +
" Qualification" +
"</div>" +
"<div class='col-md-3' style='margin-left: 700px;margin-top: -18px;'>" +
Qual +
" </div>" + "<span style='display:none' id='QualDynId" + cc + "'>" + QualId + "</span>" +
"</div>" +
" <div class='col-md-12' style='margin-left: 25px; padding-top: 18px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
" Specialization" +
"</div><div class='col-md-3' style='width: 220px;margin-left: 248px;margin-top: -18px; '>" +
Spec +
"</div>" + "<span style='display:none' id='QualSpecDynId" + cc + "'>" + QualSpecId + "</span>" +
"<div class='col-md-3' style='margin-left: 515px;margin-top: -17px;'>" +
"Board Of University" +
"</div>" +
"<div class='col-md-3' style='margin-top: -18px;margin-left: 700px;'>" +
BOU +
"</div>" + "<span style='display:none' id='BOUDynId" + cc + "'>" + BOUId + "</span>" + "</div>" +
"<div class='col-md-12' style='margin-left: 27px;padding-top: 0px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
"Institute" +
" </div><div class='col-md-3' style='margin-left: 247px;margin-top: -18px;'>" +
Inst +
" </div>" + "<span style='display:none' id='InsDynId" + cc + "'>" + InstId + "</span>" + "</div>");
$("#AddPopupEducation").data("kendoWindow").close(); // close address popup window
// reset popup window
$("#DrpQualcat").data("kendoDropDownList").value("")
$("#DrpQual").data("kendoDropDownList").value("")
$("#DrpSpec").data("kendoDropDownList").value("")
$("#DrpBOU").data("kendoDropDownList").value("")
$("#DrpInstitute").data("kendoDropDownList").value("")
//
localStorage.setItem("counted", cc);
$("#education").append(divv);
//}
}
//////////////////////////// for Project///////////////////////////////////////
function openProject()
{
debugger;
$("#AddPopupProject").data("kendoWindow").open().center();
}
function AddProject()
{
ccPro++;
debugger;
var ProName, ProStatus, ClientName, ProYear, proMonth, Teamsize, Protype,ProtypeId, role, url, skill, desc;
ProName = $('#txtProjectname').val();
ProStatus = $('#txtProStatus').val();
ClientName = $('#txtClientName').val();
ProYear = $('#txtProjdurationFrom').val();
proMonth = $('#txtProjdurationTo').val();
Teamsize = $('#txtProjectTSize').val();
ProtypeId = $("#DrpProType").data("kendoDropDownList").value();
Protype = $("#DrpProType").data("kendoDropDownList").text();
role = $('#txtProjectRole').val();
url = $('#txtProjectURL').val();
skill = $('#txtProjectSkill').val();
desc = $('#txtProDesc').val();
var divv = $("<div style='border-width: 1px; margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
" <div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;border-width: 1px;margin-right: 164px;margin-top: 10px;''>" +
" Project Name"+
"</div><div class='col-md-3' id='ProNameDyn" + ccPro + "' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
ProName+
" </div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
"Project Status"+
" </div><div class='col-md-3' id='ProStausDyn" + ccPro + "' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
ProStatus+
"</div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>Client Name</div>" +
"<div class='col-md-3' id='ProClientDyn" + ccPro + "' style = 'width: 220px;margin-left:199px;margin-top:-18px; '>" +
ClientName+
" </div><div class='col-md-2' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
"Project Duration</div>"+
"<div class='col-md-2' id='ProyearDyn" + ccPro + "' style = 'width:100px;float: left;margin-top:-18px;margin-left:726px;'>" +
ProYear+" year"+
"</div><div class='col-md-2' id='PromonthDyn" + ccPro + "' style = 'width:100px;float: left;margin-top:-18px;margin-left:845px;'>" +
proMonth +" month"+
"</div></div>"+
"<div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Team SIze</div>"+
"<div class='col-md-4' id='ProTeamSizeDyn" + ccPro + "' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
Teamsize+
"</div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
" Project Type</div>"+
"<div class='col-md-3' id='ProTypeTextDyn" + ccPro + "' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
Protype+
"</div><span style='display:none;' id='ProTypeValDyn" + ccPro + "' >" + ProtypeId + "</span>" + "</div><div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Role</div>"+
"<div class='col-md-3' id='ProRoleDyn" + ccPro + "' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
role+
"</div><div class='col-md-3' style='float: left;margin-top: -18px;margin-left: 515px;'>"+
"URL</div><div class='col-md-3' id='ProurlDyn" + ccPro + "' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
url+
" </div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Skill Used</div><div class='col-md-3' id='ProskillDyn" + ccPro + "' style = 'width: 220px;margin-left:199px;margin-top:-22px;'>" +
skill+
"</div><div class='col-md-3' style='margin-left:515px;margin-top: -18px;'>" +
" Description</div><div class='col-md-3' id='ProDescDyn" + ccPro + "' style='width:220px;margin-left: 727px;margin-top:-18px;height:50px;'>" +
desc+
"</div></div></div></div>");
$("#AddPopupProject").data("kendoWindow").close(); // close address popup window
// reset popup window
$("#txtProjectname").val("")
$("#txtProStatus").val("")
$("#txtClientName").val("")
$("#txtProjdurationFrom").val("")
$("#txtProjdurationTo").val("")
$("#txtProjectTSize").val("")
$("#DrpProType").data("kendoDropDownList").value("")
$("#txtProjectRole").val("")
$("#txtProjectURL").val("")
$("#txtProjectSkill").val("")
$("#txtProDesc").val("")
//
localStorage.setItem("countproject", ccPro);
$("#project").append(divv);
}
function openCertificate() {
debugger;
$("#AddPopupCertificate").data("kendoWindow").open().center();
}
function AddCertificate()
{
debugger;
ccCer++;
@*var value = @Session["filePath"].ToString().Length;
alert(value);*@
var Cername,Upload;
Cername = $('#CertificateName').val();
@*if(value>0)
{
var r='@Session["filePath"].ToString()';
}
alert(r);*@
//if(r!=null)
//{
var div = $("<div style='border-width: 1px;height: 69px;width: 984px;margin-bottom: 10px;padding-top: 22px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
"<div class='col-md-12' style='margin-left: 25px;'>"+
" <div class='col-md-3' style='margin-left: 45px;'>"+
"Certificate Name"+
"</div><div class='col-md-3' id='CerDyn" + ccCer + "' style='margin-left: 200px;margin-top: -18px;padding-bottom: 20px;'>" +
Cername+
"</div><div class='col-md-3' style='margin-left: 364px;margin-top: -36px;'>" +
" Status</div>"+
"<div class='col-md-3' id='upDyn" + ccCer + "' style='width: 170px;COLOR: GREEN;float: left;margin-top:-18px;margin-left: 495px;'>" + "Successfully Uploaded" +
@*"@Session["filePath"].ToString()"+*@
@*"@ViewBag.LogoImage.ToString()"+*@
"</div></div> ");
//}
//else
//{
// var div="";
//}
@*Upload = @Session["filePathResume"].ToString();*@
localStorage.setItem("countcert", ccCer);
$("#AddPopupCertificate").data("kendoWindow").close(); // close address popup window
// reset popup window
$("#CertificateName").val("")
$("#imgupl").val(null);
$(".k-upload-files.k-reset").find("li").remove();
$(".k-upload-files.k-reset").find("li").parent().remove();
$(".k-widget.k-upload").find("ul").remove();
//$("#imgupl .k-upload-files").remove();
//$("#imgupl .k-upload-status").remove();
//$("#imgupl .k-upload.k-header").addClass("k-upload-empty");
//$("#imgupl .k-upload-button").removeClass("k-state-focused");
$("#Certificate").append(div);
}
function numbersonly(e) {
//debugger;
var unicode = e.charCode ? e.charCode : e.keyCode
if (unicode != 8) { //if the key isn't the backspace key (which we should allow)
if (unicode < 46 || unicode > 57) //if not a number
return false //disable key press
}
}
</script>
write the below code in controller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Kendo.Mvc.UI;
using KENResourceCloud.Areas.Recruitment.Models;
using Kendo.Mvc.Extensions;
using System.Net.Http;
using System.Configuration;
using System.Net.Http.Headers;
using Newtonsoft.Json;
using KENResourceCloud.Areas.Setup.Models;
using System.IO;
namespace KENResourceCloud.Areas.Recruitment.Controllers
{
public class ResumeRepositoryController : Controller
{
HttpClient client = new HttpClient();
Skill skills = new Skill();
List<Country> ctry = new List<Country>();
List<State> st = new List<State>();
List<City> ct = new List<City>();
List<QualificationCategory> dep = new List<QualificationCategory>();
List<Qualification> qual = new List<Qualification>();
public List<QualificationSpecialization> qualificationSpecialization = new List<QualificationSpecialization>();
List<BoardOfUniversity> lstBOU = new List<BoardOfUniversity>();
List<Institute> lstIns = new List<Institute>();
List<Skill> skill = new List<Skill>();
List<SkillDtl> skilldtl = new List<SkillDtl>();
List<Certificate> certlist = new List<Certificate>();
List<ResumeRepository> resume = new List<ResumeRepository>();
List<Experience> exp = new List<Experience>();
List<ApplicantExperienceDtl> AppexpList = new List<ApplicantExperienceDtl>();
List<ApplicantCertificateDtl> AppcerList = new List<ApplicantCertificateDtl>();
List<ApplicantCompanyDetail> AppComList = new List<ApplicantCompanyDetail>();
ResumeRepository objResumeRepo = new ResumeRepository();
List<Address> address = new List<Address>();
public ResumeRepositoryController()
{
var url = ConfigurationManager.AppSettings["BaseUrl"];
client.BaseAddress = new Uri(url);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
}
// GET: Recruitment/ResumeRepository
public ActionResult Index()
{
return View();
}
#region
//for grid
public List<City> getallCity()
{
HttpResponseMessage getcontacts = client.GetAsync("City").Result;
if (getcontacts.IsSuccessStatusCode)
{
ct = getcontacts.Content.ReadAsAsync<List<City>>().Result.ToList();
return ct.ToList();
}
else
{
return null;
}
}
public List<ApplicantCompanyDetail> getallAppComplist()
{
HttpResponseMessage getcontacts = client.GetAsync("ApplicantCompanyDetail").Result;
if (getcontacts.IsSuccessStatusCode)
{
AppComList = getcontacts.Content.ReadAsAsync<List<ApplicantCompanyDetail>>().Result.ToList();
return AppComList.ToList();
}
else
{
return null;
}
}
public List<ApplicantCertificateDtl> getallAppCertlist()
{
HttpResponseMessage getcontact = client.GetAsync("ApplicantCertificateDtl").Result;
if (getcontact.IsSuccessStatusCode)
{
AppcerList = getcontact.Content.ReadAsAsync<List<ApplicantCertificateDtl>>().Result.ToList();
return AppcerList.ToList();
}
else
{
return null;
}
}
public List<ApplicantExperienceDtl> getallAppExlist()
{
HttpResponseMessage getcontact = client.GetAsync("ApplicantExperienceDtl").Result;
if (getcontact.IsSuccessStatusCode)
{
AppexpList = getcontact.Content.ReadAsAsync<List<ApplicantExperienceDtl>>().Result.ToList();
return AppexpList.ToList();
}
else
{
return null;
}
}
public List<Certificate> getallcertificate()
{
HttpResponseMessage getcontact = client.GetAsync("Certificate").Result;
if (getcontact.IsSuccessStatusCode)
{
certlist = getcontact.Content.ReadAsAsync<List<Certificate>>().Result.ToList();
return certlist.ToList();
}
else
{
return null;
}
}
public List<Country> getallcountry()
{
HttpResponseMessage getcontact = client.GetAsync("Country").Result;
if (getcontact.IsSuccessStatusCode)
{
ctry = getcontact.Content.ReadAsAsync<List<Country>>().Result.ToList();
return ctry.ToList();
}
else
{
return null;
}
}
public List<State> GetallState()
{
HttpResponseMessage getcontact = client.GetAsync("State").Result;
if (getcontact.IsSuccessStatusCode)
{
st = getcontact.Content.ReadAsAsync<List<State>>().Result.ToList();
return st.ToList();
}
else
{
return null;
}
}
public List<City> GetallCity()
{
HttpResponseMessage getcontact = client.GetAsync("City").Result;
if (getcontact.IsSuccessStatusCode)
{
ct = getcontact.Content.ReadAsAsync<List<City>>().Result.ToList();
return ct.ToList();
}
else
{
return null;
}
}
public ActionResult GetCountry([DataSourceRequest]DataSourceRequest req)
{
try
{
var data = getallcountry().ToList();
var query = (from a in data
select new
{
a.CountryId,
a.CountryName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public ActionResult GetState([DataSourceRequest]DataSourceRequest req, int? country)
{
try
{
var data = GetallState().ToList().AsQueryable();
if (data != null)
{
data = data.Where(p => p.CountryId == country);
}
var query = (from a in data
select new
{
a.StateId,
a.StateName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public ActionResult GetCity([DataSourceRequest]DataSourceRequest req, int? State)
{
try
{
var data = GetallCity().ToList().AsQueryable();
if (data != null)
{
data = data.Where(p => p.StateId == State);
}
var query = (from a in data
select new
{
a.CityId,
a.CityName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public List<QualificationCategory> GetAllQualCat()
{
HttpResponseMessage res = client.GetAsync("QualificationCategory").Result;
if (res.IsSuccessStatusCode)
{
dep = res.Content.ReadAsAsync<List<QualificationCategory>>().Result.ToList();
return dep;
}
else
{ return null; }
}
public List<Qualification> GetAllQualification()
{
HttpResponseMessage res = client.GetAsync("Qualification").Result;
if (res.IsSuccessStatusCode)
{
qual = res.Content.ReadAsAsync<List<Qualification>>().Result.ToList();
return qual;
}
else
{
return null;
}
}
public List<QualificationSpecialization> GetAllQualificationSpecialization()
{
HttpResponseMessage res = client.GetAsync("QualificationSpecializationDtl").Result;
if (res.IsSuccessStatusCode)
{
qualificationSpecialization = res.Content.ReadAsAsync<List<QualificationSpecialization>>().Result.ToList();
return qualificationSpecialization;
}
else
{
return null;
}
}
public ActionResult GetAllQualCatList([DataSourceRequest]DataSourceRequest req)
{
try
{
var data = GetAllQualCat().ToList();
var query = (from a in data
select new
{
a.CategoryName,
a.QualificationCategoryId,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public ActionResult GetAllQualificationList([DataSourceRequest]DataSourceRequest req, int? Category)
{
try
{
var data = GetAllQualification().ToList().AsQueryable();
if (data != null)
{
data = data.Where(p => p.QualificationCategoryId == Category);
}
var query = (from a in data
select new
{
a.QualificationId,
a.QualificationName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public ActionResult GetAllSpecializationList([DataSourceRequest]DataSourceRequest req, int? Qualification)
{
try
{
var data = GetAllQualificationSpecialization().ToList().AsQueryable();
if (data != null)
{
data = data.Where(p => p.QualificationId == Qualification);
}
var query = (from a in data
select new
{
a.QualificationISpecializationDtld,
a.SpecializationName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public List<BoardOfUniversity> GetBOU()
{
HttpResponseMessage res = client.GetAsync("BoardOfUniversity").Result;
if (res.IsSuccessStatusCode)
{
lstBOU = res.Content.ReadAsAsync<List<BoardOfUniversity>>().Result.ToList();
return lstBOU;
}
else
{ return null; }
}
public ActionResult GetAllBOUList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetBOU().ToList();
var query = (from a in data
select new
{
a.BoardUniversityId,
a.BoardUniversityName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
public List<Institute> GetAllInstitute()
{
HttpResponseMessage res = client.GetAsync("Institute").Result;
if (res.IsSuccessStatusCode)
{
lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
return lstIns;
}
else
{ return null; }
}
public ActionResult GetAllInstituteList([DataSourceRequest]DataSourceRequest req, int? BOU)
{
try
{
var data = GetAllInstitute().ToList().AsQueryable();
if (data != null)
{
data = data.Where(p => p.BoardUniversityId == BOU);
}
var query = (from a in data
select new
{
a.InstituteName,
a.InstituteId,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//public List<ResumeRepository> GetResumeList()
//{
// try
// {
// List<ResumeRepository> list = new List<ResumeRepository>()
// {
// new ResumeRepository {
// ApplicantId =1,
// ApplicantFirstName="Rahul",
// ApplicantMiddleName="Kumar",
// ApplicantLastName="Singh",
// ContactNo="9874563214",
// ApplicantCurrentSalary=Convert.ToDecimal(3.0),
// ApplicantExpectedSalary=Convert.ToDecimal(3.5),
// ApplicantNoticePeriod="2 months",
// Gender="Male"
// },
// new ResumeRepository {
// ApplicantId =1,
// ApplicantFirstName="Rahul",
// ApplicantMiddleName="Kumar",
// ApplicantLastName="Singh",
// ContactNo="9874563214",
// ApplicantCurrentSalary=Convert.ToDecimal(3.0),
// ApplicantExpectedSalary=Convert.ToDecimal(3.5),
// ApplicantNoticePeriod="2 months",
// Gender="Male"
// },
// new ResumeRepository {
// ApplicantId =1,
// ApplicantFirstName="Rahul",
// ApplicantMiddleName="Kumar",
// ApplicantLastName="Singh",
// ContactNo="9874563214",
// ApplicantCurrentSalary=Convert.ToDecimal(3.0),
// ApplicantExpectedSalary=Convert.ToDecimal(3.5),
// ApplicantNoticePeriod="2 months",
// Gender="Male"
// },
// new ResumeRepository {
// ApplicantId =1,
// ApplicantFirstName="Rahul",
// ApplicantMiddleName="Kumar",
// ApplicantLastName="Singh",
// ContactNo="9874563214",
// ApplicantCurrentSalary=Convert.ToDecimal(3.0),
// ApplicantExpectedSalary=Convert.ToDecimal(3.5),
// ApplicantNoticePeriod="2 months",
// Gender="Male"
// }
// };
// return list;
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
//marital Status
public List<MaritalStatus> GetAllMaritalStatus()
{
//HttpResponseMessage res = client.GetAsync("Institute").Result;
//if (res.IsSuccessStatusCode)
//{
// lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
// return lstIns;
//}
//else
//{ return null; }
List<MaritalStatus> list = new List<MaritalStatus>()
{
new MaritalStatus {
MaritalStatusId =1,
MaritalStatusName="Single",
},
new MaritalStatus {
MaritalStatusId =2,
MaritalStatusName="Married",
},
new MaritalStatus {
MaritalStatusId =3,
MaritalStatusName="UnaMarried",
},
};
return list;
}
public ActionResult GetAllMaritalStatusList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetAllMaritalStatus().ToList();
var query = (from a in data
select new
{
a.MaritalStatusId,
a.MaritalStatusName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//Religion
public List<Religion> GetAllReligion()
{
//HttpResponseMessage res = client.GetAsync("Institute").Result;
//if (res.IsSuccessStatusCode)
//{
// lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
// return lstIns;
//}
//else
//{ return null; }
List<Religion> list = new List<Religion>()
{
new Religion {
ReligionId =1,
ReligionName="Hindu",
},
new Religion {
ReligionId =2,
ReligionName="Muslim",
},
new Religion {
ReligionId =3,
ReligionName="Sikh",
},
};
return list;
}
public ActionResult GetAllRegionList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetAllReligion().ToList();
var query = (from a in data
select new
{
a.ReligionId,
a.ReligionName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//caste
public List<Caste> GetAllcaste()
{
//HttpResponseMessage res = client.GetAsync("Institute").Result;
//if (res.IsSuccessStatusCode)
//{
// lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
// return lstIns;
//}
//else
//{ return null; }
List<Caste> list = new List<Caste>()
{
new Caste {
CasteId =1,
CasteName="OBC",
},
new Caste {
CasteId =2,
CasteName="SC",
},
new Caste {
CasteId =3,
CasteName="ST",
},
new Caste {
CasteId =4,
CasteName="General",
},
};
return list;
}
public ActionResult GetAllCasteList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetAllcaste().ToList();
var query = (from a in data
select new
{
a.CasteId,
a.CasteName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//nationality
public List<Nationality> GetAllNationality()
{
//HttpResponseMessage res = client.GetAsync("Institute").Result;
//if (res.IsSuccessStatusCode)
//{
// lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
// return lstIns;
//}
//else
//{ return null; }
List<Nationality> list = new List<Nationality>()
{
new Nationality {
NationalityId =1,
NationalityName="Indian",
},
new Nationality {
NationalityId =2,
NationalityName="Japanies",
},
new Nationality {
NationalityId =3,
NationalityName="American",
},
};
return list;
}
public ActionResult GetAllNationalityList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetAllNationality().ToList();
var query = (from a in data
select new
{
a.NationalityId,
a.NationalityName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//ProjectType
public List<ProjectType> GetAllPrjectType()
{
//HttpResponseMessage res = client.GetAsync("Institute").Result;
//if (res.IsSuccessStatusCode)
//{
// lstIns = res.Content.ReadAsAsync<List<Institute>>().Result.ToList();
// return lstIns;
//}
//else
//{ return null; }
List<ProjectType> list = new List<ProjectType>()
{
new ProjectType {
ProjectTypeId =1,
ProjectTypeName="OnSite",
},
new ProjectType {
ProjectTypeId =2,
ProjectTypeName="OffSite",
},
};
return list;
}
public ActionResult GetAllProjcetTypeList([DataSourceRequest]DataSourceRequest request)
{
try
{
var data = GetAllPrjectType().ToList();
var query = (from a in data
select new
{
a.ProjectTypeId,
a.ProjectTypeName,
}).ToList();
if (query.Count > 0)
{
return Json(query, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
}
catch (Exception ex)
{
throw ex;
}
}
//Skill
public ActionResult GetAllSkillList([DataSourceRequest]DataSourceRequest request)
{
var empdetails = (from a in GetAllSkill()
join b in GetAllSkillDtl() on a.SkillId equals b.SkillId
select new
{
a.SkillId,
a.SkillName,
b.SkillDtlsId
}).ToList();
if (empdetails.Count > 0)
{
return Json(empdetails, JsonRequestBehavior.AllowGet);
}
else
{
return null;
}
//return Json(empdetails.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
}
public List<Skill> GetAllSkill()
{
HttpResponseMessage res = client.GetAsync("Skill").Result;
if (res.IsSuccessStatusCode)
{
skill = res.Content.ReadAsAsync<List<Skill>>().Result.ToList();
return skill;
}
else
{ return null; }
}
public List<SkillDtl> GetAllSkillDtl()
{
HttpResponseMessage res = client.GetAsync("SkillDtl").Result;
if (res.IsSuccessStatusCode)
{
try
{
skilldtl = res.Content.ReadAsAsync<List<SkillDtl>>().Result.ToList();
return skilldtl;
}
catch (Exception ex)
{
throw ex;
}
}
else
{ return null; }
}
public List<ResumeRepository> GetAllResumeList()
{
HttpResponseMessage res = client.GetAsync("Applicant").Result;
if (res.IsSuccessStatusCode)
{
resume = res.Content.ReadAsAsync<List<ResumeRepository>>().Result.ToList();
return resume;
}
else
{ return null; }
}
public List<Experience> GetAllExperience()
{
try
{
HttpResponseMessage res = client.GetAsync("Experience").Result;
if (res.IsSuccessStatusCode)
{
exp = res.Content.ReadAsAsync<List<Experience>>().Result.ToList();
return exp;
}
else
{ return null; }
}
catch (Exception exp)
{
throw exp;
}
}
public List<Address> getAddressList()
{
try
{
HttpResponseMessage res = client.GetAsync("Address").Result;
if (res.IsSuccessStatusCode)
{
address = res.Content.ReadAsAsync<List<Address>>().Result.ToList();
return address;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantAddressDtl> getAddressDtlList()
{
try
{
List<ApplicantAddressDtl> appAddDet = new List<ApplicantAddressDtl>();
HttpResponseMessage res = client.GetAsync("ApplicantAddressDtl").Result;
if (res.IsSuccessStatusCode)
{
appAddDet = res.Content.ReadAsAsync<List<ApplicantAddressDtl>>().Result.ToList();
return appAddDet;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantQualificationDtl> getAppQualificationDtlList()
{
try
{
List<ApplicantQualificationDtl> appAddQual = new List<ApplicantQualificationDtl>();
HttpResponseMessage res = client.GetAsync("ApplicantQualificationDtl").Result;
if (res.IsSuccessStatusCode)
{
appAddQual = res.Content.ReadAsAsync<List<ApplicantQualificationDtl>>().Result.ToList();
return appAddQual;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<Certificate> getAppCertDtlList()
{
try
{
List<Certificate> appAddCertificate = new List<Certificate>();
HttpResponseMessage res = client.GetAsync("Certificate").Result;
if (res.IsSuccessStatusCode)
{
appAddCertificate = res.Content.ReadAsAsync<List<Certificate>>().Result.ToList();
return appAddCertificate;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantContactDtl> getAppContactDtlList()
{
try
{
List<ApplicantContactDtl> appAddContact = new List<ApplicantContactDtl>();
HttpResponseMessage res = client.GetAsync("ApplicantContactDtl").Result;
if (res.IsSuccessStatusCode)
{
appAddContact = res.Content.ReadAsAsync<List<ApplicantContactDtl>>().Result.ToList();
return appAddContact;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantEmailDtl> getAppEmailList()
{
try
{
List<ApplicantEmailDtl> appAddContact = new List<ApplicantEmailDtl>();
HttpResponseMessage res = client.GetAsync("ApplicantEmailDtl").Result;
if (res.IsSuccessStatusCode)
{
appAddContact = res.Content.ReadAsAsync<List<ApplicantEmailDtl>>().Result.ToList();
return appAddContact;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantProjectDetail> getAppProjectList()
{
try
{
List<ApplicantProjectDetail> appAddContact = new List<ApplicantProjectDetail>();
HttpResponseMessage res = client.GetAsync("ApplicantProjectDetail").Result;
if (res.IsSuccessStatusCode)
{
appAddContact = res.Content.ReadAsAsync<List<ApplicantProjectDetail>>().Result.ToList();
return appAddContact;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<ApplicantSkillDtl> getAppSkillDtlList()
{
try
{
List<ApplicantSkillDtl> appAddContact = new List<ApplicantSkillDtl>();
HttpResponseMessage res = client.GetAsync("ApplicantSkillDtl").Result;
if (res.IsSuccessStatusCode)
{
appAddContact = res.Content.ReadAsAsync<List<ApplicantSkillDtl>>().Result.ToList();
return appAddContact;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
public List<RelevantExperience> getRelExpeList()
{
try
{
List<RelevantExperience> appAddContact = new List<RelevantExperience>();
HttpResponseMessage res = client.GetAsync("RelevantExperience").Result;
if (res.IsSuccessStatusCode)
{
appAddContact = res.Content.ReadAsAsync<List<RelevantExperience>>().Result.ToList();
return appAddContact;
}
else
{ return null; }
}
catch (Exception ex)
{ throw ex; }
}
//ApplicantProjectDetail
#endregion
public ActionResult CreateResume(ResumeRepository resumeRepository,string Companyname,string Comwebsite, string ComDurFrom, string ComdurTo,string ComDes, string Comcountry, string Comstate,string ComCity, string ExperienceMonth,string ExperienceYear,string UploadCer,string certificatename, string skill, string ExYear, string ExMonth,string CountryIdArr, string StateIdArr, string CityIdArr, string zipArr, string street1Arr, string street2Arr, string AddType, string QualCatId, string QualId, string SpecId, string BOUId, string InsId, string valuesProname, string valuesProClient, string valuesProStatus, string valuesProFrom, string valuesProTo, string valuesProtype, string valuesProUrl, string valuesProSize, string valuesProRole, string valuesProSkill, string valuesProDesc)
{
var addid = "";
var qualid = "";
ResumeRepository applicant_resume;
Address address_applicantPresent = new Address();
//int itmSkill = skill.ToString().Split(',').Length;
int itmYear = ExYear.ToString().Split(',').Length;
int itmMonth = ExMonth.ToString().Split(',').Length;
//// for resume
ResumeRepository qual2 = new ResumeRepository();
resumeRepository.ApplicantUploadResume = (Session["filePathResume"]).ToString();
HttpResponseMessage resApplicant = client.PostAsJsonAsync("Applicant", resumeRepository).Result;
applicant_resume = GetAllResumeList().ToList().OrderByDescending(a => a.ApplicantId).FirstOrDefault();
//// for address
ApplicantExperienceDtl appex = new ApplicantExperienceDtl();
appex.ApplicantId = applicant_resume.ApplicantId;
appex.FromDate = Convert.ToDateTime(ExperienceMonth);
appex.ToDate = Convert.ToDateTime(ExperienceYear);
HttpResponseMessage resApplicantEx = client.PostAsJsonAsync("ApplicantExperienceDtl", appex).Result;
int CountCountry = CountryIdArr.ToString().Split(',').Length;
for (int ic = 0; ic < CountCountry - 1; ic++)
{
string Addresstpe = AddType.ToString().Split(',')[ic];
Address ad = new Address();
ad.AddressStreet1 = street1Arr.ToString().Split(',')[ic];
ad.AddressStreet2 = street2Arr.ToString().Split(',')[ic];
ad.AddressZIP = zipArr.ToString().Split(',')[ic];
ad.CountryId = Convert.ToInt32(CountryIdArr.ToString().Split(',')[ic]);
ad.StateId = Convert.ToInt32(StateIdArr.ToString().Split(',')[ic]);
//City ct = new City();
//ct.CityName= CityIdArr.ToString().Split(',')[ic];
//HttpResponseMessage rescity = client.PostAsJsonAsync("City", ct).Result;
//if(rescity.IsSuccessStatusCode)
//{
// var cityid = getallCity().ToList().OrderByDescending(a => a.CityId).FirstOrDefault();
ad.CityId = Convert.ToInt32(CityIdArr.ToString().Split(',')[ic]);
ad.AddressType = Addresstpe;
HttpResponseMessage resAddress = client.PostAsJsonAsync("Address", ad).Result;
if (resAddress.IsSuccessStatusCode)
{
addid += getAddressList().ToList().OrderByDescending(a => a.AddressId).Select(a => a.AddressId).FirstOrDefault() + ",";
}
//}
}
int cointaddId = addid.ToString().Split(',').Length;
for (int j = 0; j < cointaddId - 1; j++)
{
ApplicantAddressDtl appAdd = new ApplicantAddressDtl();
appAdd.AddressId = Convert.ToInt32(addid.ToString().Split(',')[j]);
appAdd.ApplicantId = applicant_resume.ApplicantId;
HttpResponseMessage AppAddress = client.PostAsJsonAsync("ApplicantAddressDtl", appAdd).Result;
if (AppAddress.IsSuccessStatusCode)
{ }
}
//for qualification
int CountQual = QualCatId.ToString().Split(',').Length; // count no of qualification Details
for (int iq = 0; iq < CountQual - 1; iq++)
{
ApplicantQualificationDtl appQuali = new ApplicantQualificationDtl();
appQuali.QualificationId = Convert.ToInt32(QualId.ToString().Split(',')[iq]);
appQuali.ApplicantId = applicant_resume.ApplicantId;
appQuali.InstituteId = Convert.ToInt32(InsId.ToString().Split(',')[iq]);
appQuali.QualificationISpecializationDtld = Convert.ToInt32(SpecId.ToString().Split(',')[iq]);
HttpResponseMessage resappQual = client.PostAsJsonAsync("ApplicantQualificationDtl", appQuali).Result;
if (resappQual.IsSuccessStatusCode)
{
}
}
////if (AppAddress.IsSuccessStatusCode)
////{
ApplicantContactDtl appContact = new ApplicantContactDtl();
appContact.ApplicantId = applicant_resume.ApplicantId;
appContact.ContactNo = resumeRepository.ContactNo;
// appContact.ContactNo = "9874563214";
HttpResponseMessage AppContact = client.PostAsJsonAsync("ApplicantContactDtl", appContact).Result;
if (AppContact.IsSuccessStatusCode)
{
ApplicantEmailDtl appEmail = new ApplicantEmailDtl();
appEmail.ApplicantId = applicant_resume.ApplicantId;
appEmail.EmailId = resumeRepository.EmailId;
//appEmail.EmailId = "puja.s@kencloud.co.in";
HttpResponseMessage resAppEmail = client.PostAsJsonAsync("ApplicantEmailDtl", appEmail).Result;
if (resAppEmail.IsSuccessStatusCode)
{
int CountCer = certificatename.ToString().Split(',').Length; // count no of certificate Details
int countcertLink = Session["filePath"].ToString().Split(',').Length;
for (int icer = 0; icer < CountCer - 1; icer++)
{
Certificate cer = new Certificate();
cer.CertificateName = certificatename.ToString().Split(',')[icer];
//cer.CertificateImageURL = UploadCer.ToString().Split(',')[icer];
//cer.CertificateImageThumbnail = UploadCer.ToString().Split(',')[icer];
cer.CertificateImageURL = Session["filePath"].ToString().Split(',')[icer];
cer.CertificateImageThumbnail = Session["filePath"].ToString().Split(',')[icer];
HttpResponseMessage resCertificate = client.PostAsJsonAsync("Certificate", cer).Result;
if (resCertificate.IsSuccessStatusCode)
{
var certid = getallcertificate().ToList().OrderByDescending(a => a.CertificateId).Select(a => a.CertificateId).FirstOrDefault();
ApplicantCertificateDtl appcer = new ApplicantCertificateDtl();
appcer.ApplicantId = applicant_resume.ApplicantId;
appcer.CertificateId = Convert.ToInt32(certid);
HttpResponseMessage resAppCertificate = client.PostAsJsonAsync("ApplicantCertificateDtl", appcer).Result;
if (resAppCertificate.IsSuccessStatusCode)
{
}
}
var ee = getAddressList().ToList().OrderByDescending(a => a.AddressId).Select(a => a.AddressId).FirstOrDefault() + ",";
}
int countproSkill = valuesProSkill.ToString().Split(',').Length;
var skillID = 0;
for (int k = 0; k < countproSkill - 1; k++)
{
Skill skl = new Skill();
skl.SkillName = valuesProSkill.ToString().Split(',')[k];
skl.SkillGroupId = 1;
HttpResponseMessage res = client.PostAsJsonAsync("Skill", skl).Result;
skillID = GetAllSkill().ToList().OrderByDescending(a => a.SkillId).Select(a => a.SkillId).FirstOrDefault();
if (res.IsSuccessStatusCode)
{
ApplicantProjectDetail appprojectDtl = new ApplicantProjectDetail();
appprojectDtl.ApplicantProjectTitle = valuesProname.ToString().Split(',')[k];
appprojectDtl.ApplicantProjectStatus = valuesProStatus.ToString().Split(',')[k];
appprojectDtl.ClientName = valuesProClient.ToString().Split(',')[k];
appprojectDtl.ProjectDescription = valuesProDesc.ToString().Split(',')[k];
appprojectDtl.ProjectDuration = valuesProFrom.ToString().Split(',')[k]+" "+ valuesProTo.ToString().Split(',')[k];
appprojectDtl.ProjectUrl = valuesProUrl.ToString().Split(',')[k];
appprojectDtl.RoleDescription = valuesProRole.ToString().Split(',')[k];
//appprojectDtl.TeamSize = resumeRepository.TeamSize;
appprojectDtl.TeamSize = Convert.ToInt32(valuesProSize.ToString().Split(',')[k]);
// appprojectDtl.TeamSize = 2;
//appprojectDtl.SkillId = Convert.ToInt32(skillID);
appprojectDtl.SkillId = Convert.ToInt32(skillID);
appprojectDtl.ApplicantId = applicant_resume.ApplicantId;
HttpResponseMessage resAppProject = client.PostAsJsonAsync("ApplicantProjectDetail", appprojectDtl).Result;
if (resAppProject.IsSuccessStatusCode)
{
k++;
}
}
}
}
}
int Comlen= Companyname.ToString().Split(',').Length;
int com = 0;
while(com<Comlen-1)
{
//string Companyname,string Comwebsite, string ComDurFrom, string ComdurTo,string ComDes, string Comcountry,
//string Comstate,string ComCity,
var cc = ComDurFrom.ToString().Split(',')[com];
int cci = cc.IndexOf("Y");
cc = cc.Substring(0, cci).Trim();
var ccm = ComdurTo.ToString().Split(',')[com];
int ccim = ccm.IndexOf("M");
ccm = ccm.Substring(0, cci).Trim();
ApplicantCompanyDetail appcompany = new ApplicantCompanyDetail();
appcompany.ApplicantCompanyName = Companyname.ToString().Split(',')[com];
appcompany.ApplicantDesignation = ComDes.ToString().Split(',')[com];
appcompany.CompanyWebSite = Comwebsite.ToString().Split(',')[com];
// appcompany.CompanyWebSite = "www.google.com";
appcompany.DurationMonth = Convert.ToInt32(ccim);
appcompany.DurationYear = Convert.ToInt32(cc);
appcompany.ApplicantId = applicant_resume.ApplicantId;
appcompany.CountryId = Convert.ToInt32(Comcountry.ToString().Split(',')[com]);
appcompany.StateId = Convert.ToInt32(Comstate.ToString().Split(',')[com]);
appcompany.City = ComCity.ToString().Split(',')[com];
HttpResponseMessage resAppCompany = client.PostAsJsonAsync("ApplicantCompanyDetail", appcompany).Result;
if (resAppCompany.IsSuccessStatusCode)
{
com++;
}
}
//for skill
int i = 0;
int len = skill.ToString().Split(',').Length;
int ln = skill.Length;
while (i < len-1)
{
string skill1 = skill.ToString().Split(',')[i];
string exyear = ExYear.ToString().Split(',')[i];
string exmoth = ExMonth.ToString().Split(',')[i];
//ApplicantSkillDtl appSkill = new ApplicantSkillDtl();
//appSkill.ApplicantId = applicant_resume.ApplicantId;
//appSkill.SkillId = Convert.ToInt32(skill[i]);
//HttpResponseMessage res1 = client.PostAsJsonAsync("ApplicantSkillDtl", appSkill).Result;
//if (res1.IsSuccessStatusCode)
//{
Experience ex = new Experience();
ex.ExperienceYears = Convert.ToInt32(exyear);
ex.ExperienceMonths = Convert.ToInt32(exmoth);
HttpResponseMessage resEx = client.PostAsJsonAsync("Experience", ex).Result;
var applicant_Ex = GetAllExperience().ToList().OrderByDescending(a => a.ExperienceId).FirstOrDefault();
if (resEx.IsSuccessStatusCode)
{
RelevantExperience re = new RelevantExperience();
try
{
int x = Convert.ToInt32(skill1);
}
catch (Exception t)
{
}
var AppAddId = 0;
AppAddId = GetAllSkillDtl().ToList().Where(a => a.SkillId == Convert.ToInt32(skill1)).Select(a => a.SkillDtlsId).FirstOrDefault(); // get addressId
re.SkillDtlId = Convert.ToInt32(AppAddId);
re.ApplicantId = applicant_resume.ApplicantId;
re.ExperienceId = applicant_Ex.ExperienceId;
HttpResponseMessage resAppEx = client.PostAsJsonAsync("RelevantExperience", re).Result;
i++;
}
else
{
return Json("null", JsonRequestBehavior.AllowGet);
}
}
//for Applicant
return Json(applicant_resume, JsonRequestBehavior.AllowGet);
}
[HttpGet]
public JsonResult GetResume()
{
var appDetails = (from a in GetAllResumeList()
join b in getAddressDtlList() on a.ApplicantId equals b.ApplicantId
join c in getAddressList() on b.AddressId equals c.AddressId
/*join d in GetAllNationalityList on a.ApplicantId equals*/
join e in getAppQualificationDtlList() on a.ApplicantId equals e.ApplicantId
join f in GetAllQualification() on e.QualificationId equals f.QualificationId
join g in GetAllQualCat() on f.QualificationCategoryId equals g.QualificationCategoryId
join h in getallcountry() on c.CountryId equals h.CountryId
join i in GetallState() on c.StateId equals i.StateId
join j in GetallCity() on c.CityId equals j.CityId
where a.ApplicantId == Convert.ToInt32(Session["ApplicantID"])
select new
{
a.ApplicantId,
a.ApplicantFirstName,
a.EmailId,
a.ApplicantLastName,
a.ApplicantMiddleName,
a.ApplicantUploadResume,
a.ContactNo,
a.Gender,
a.MaritalStatusId,
a.IsSameAsContactAddress,
b.AddressId,
c.AddressStreet1,
c.AddressStreet2,
c.AddressZIP,
f.QualificationId,
f.QualificationName,
g.CategoryName,
h.CountryId,
h.CountryName,
i.StateId,
i.StateName,
j.CityId,
j.CityName
}).ToList();
return Json("appDetails", JsonRequestBehavior.AllowGet);
}
public ActionResult AddResumeRepository()
{
//if (Session["FilePath"].ToString()!= null || Session["FilePath"].ToString() != " ")
//{
// return View();
//}
//else
//{
// return View(Session["FilePath"] = " ");
//}
return View();
}
public ActionResult GetAllResume([DataSourceRequest] DataSourceRequest req)
{
//var empdetails = GetAllResumeList() == null ? null : GetAllResumeList().ToList();
//var emp = (from a in empdetails
// select new ResumeRepository
// {
// ApplicantId = a.ApplicantId,
// ApplicantFirstName = a.ApplicantFirstName,
// ApplicantMiddleName = a.ApplicantMiddleName,
// ApplicantLastName = a.ApplicantLastName,
// ApplicantDOB = Convert.ToDateTime(a.ApplicantDOB).ToString("dd/MM/yyyy"),
// Gender = a.Gender,
// ContactNo = a.ContactNo
// }).ToList().OrderByDescending(a => a.ApplicantId);
//ResumeRepository objResumeRepos = new ResumeRepository();
var empdetails = (from a in GetAllResumeList()
//join b in getAddressDtlList() on a.ApplicantId equals b.ApplicantId
//join c in getAddressList() on b.AddressId equals c.AddressId
/*join d in GetAllNationalityList on a.ApplicantId equals*/
//join e in getAppQualificationDtlList() on a.ApplicantId equals e.ApplicantId
//join f in GetAllQualification() on e.QualificationId equals f.QualificationId
//join g in GetAllQualCat() on f.QualificationCategoryId equals g.QualificationCategoryId
//join h in getallcountry() on c.CountryId equals h.CountryId
//join i in GetallState() on c.StateId equals i.StateId
////join j in GetallCity() on c.CityId equals j.CityId
//join k in GetAllQualificationSpecialization() on e.QualificationId equals k.QualificationId
// join l in getAppContactDtlList() on a.ApplicantId equals l.ApplicantId
join m in getAppEmailList() on a.ApplicantId equals m.ApplicantId
// join n in getAppProjectList() on a.ApplicantId equals n.ApplicantId
// join o in GetAllSkillDtl() on n.SkillId equals o.SkillId
//join p in
// where a.ApplicantId == Convert.ToInt32(Session["ApplicantIDEdit"])
select new ResumeRepository
{
//skillex.SkillName= a.SkillName.ToList(),
ApplicantId = a.ApplicantId,
ApplicantFirstName = a.ApplicantFirstName,
ApplicantMiddleName = a.ApplicantMiddleName,
ApplicantLastName = a.ApplicantLastName,
ApplicantDOB = Convert.ToDateTime(a.ApplicantDOB).ToString(),
ApplicantUploadResume = a.ApplicantUploadResume,
// IsSameAsContactAddress = a.IsSameAsContactAddress,
// ContactNo = l.ContactNo,
// ApplicantContactDtlId = l.ApplicantContactDtlId,
// ApplicantEmailDtlId = m.ApplicantEmailDtlId,
// ApplicantAddressDtlId = b.ApplicantAddressDtlId,
EmailId = m.EmailId,
Gender=a.Gender,
// ApplicantProjectTitle = n.ApplicantProjectTitle,
// ApplicantProjectStatus = n.ApplicantProjectStatus,
// ProjectDuration = n.ProjectDuration,
// ApplicantProjectDetailId = n.ApplicantProjectDetailId,
// TeamSize = n.TeamSize,
// RoleDescription = n.RoleDescription,
// ProjectDescription = n.RoleDescription,
// ProjectUrl = n.ProjectUrl,
// ClientName = n.ClientName,
// AddressId = c.AddressId,
// AddressStreet1 = c.AddressStreet1,
// AddressStreet2 = c.AddressStreet2,
// AddressZIP = c.AddressZIP,
// ApplicantQualificationDtlId = e.ApplicantQualificationDtlId,
// QualificationId = f.QualificationId,
// QualificationName = f.QualificationName,
// CategoryName = g.CategoryName,
// QualificationCategoryId = g.QualificationCategoryId,
// SpecializationName = k.SpecializationName,
// QualificationSpecializationDtld = k.QualificationISpecializationDtld,
// CountryId = h.CountryId,
// CountryName = h.CountryName,
// StateId = i.StateId,
// StateName = i.StateName,
// SkillId = o.SkillId
//CityId = j.CityId,
//CityName = j.CityName,
}).ToList().OrderByDescending(a => a.ApplicantId);
return Json(empdetails.ToDataSourceResult(req), JsonRequestBehavior.AllowGet);
}
public ActionResult EditResumeRepository(string id)
{
try
{
List<Skil_Experience> skille = new List<Skil_Experience>();
Session["ApplicantIDEdit"] = id;
ResumeRepository objResumeRepos = new ResumeRepository();
objResumeRepos = (from a in GetAllResumeList()
join b in getAddressDtlList() on a.ApplicantId equals b.ApplicantId
join c in getAddressList() on b.AddressId equals c.AddressId
/*join d in GetAllNationalityList on a.ApplicantId equals*/
join e in getAppQualificationDtlList() on a.ApplicantId equals e.ApplicantId
join f in GetAllQualification() on e.QualificationId equals f.QualificationId
join g in GetAllQualCat() on f.QualificationCategoryId equals g.QualificationCategoryId
join h in getallcountry() on c.CountryId equals h.CountryId
join i in GetallState() on c.StateId equals i.StateId
//join j in GetallCity() on c.CityId equals j.CityId
join k in GetAllQualificationSpecialization() on e.QualificationId equals k.QualificationId
join l in getAppContactDtlList() on a.ApplicantId equals l.ApplicantId
join m in getAppEmailList() on a.ApplicantId equals m.ApplicantId
join n in getAppProjectList() on a.ApplicantId equals n.ApplicantId
join o in GetAllSkillDtl() on n.SkillId equals o.SkillId
//join p in
where a.ApplicantId == Convert.ToInt32(Session["ApplicantIDEdit"])
select new ResumeRepository
{
//skillex.SkillName= a.SkillName.ToList(),
ApplicantId = Convert.ToInt32(Session["ApplicantIDEdit"]),
ApplicantFirstName = a.ApplicantFirstName,
ApplicantMiddleName = a.ApplicantMiddleName,
ApplicantLastName = a.ApplicantLastName,
ApplicantDOB = Convert.ToDateTime(a.ApplicantDOB).ToString(),
ApplicantUploadResume = a.ApplicantUploadResume,
IsSameAsContactAddress = a.IsSameAsContactAddress,
ContactNo = l.ContactNo,
ApplicantContactDtlId = l.ApplicantContactDtlId,
ApplicantEmailDtlId = m.ApplicantEmailDtlId,
ApplicantAddressDtlId = b.ApplicantAddressDtlId,
EmailId = m.EmailId,
ApplicantProjectTitle = n.ApplicantProjectTitle,
ApplicantProjectStatus = n.ApplicantProjectStatus,
ProjectDuration = n.ProjectDuration,
ApplicantProjectDetailId = n.ApplicantProjectDetailId,
TeamSize = n.TeamSize,
RoleDescription = n.RoleDescription,
ProjectDescription = n.RoleDescription,
ProjectUrl = n.ProjectUrl,
ClientName = n.ClientName,
AddressId = c.AddressId,
AddressStreet1 = c.AddressStreet1,
AddressStreet2 = c.AddressStreet2,
AddressZIP = c.AddressZIP,
ApplicantQualificationDtlId = e.ApplicantQualificationDtlId,
QualificationId = f.QualificationId,
QualificationName = f.QualificationName,
CategoryName = g.CategoryName,
QualificationCategoryId = g.QualificationCategoryId,
SpecializationName = k.SpecializationName,
QualificationSpecializationDtld = k.QualificationISpecializationDtld,
CountryId = h.CountryId,
CountryName = h.CountryName,
StateId = i.StateId,
StateName = i.StateName,
SkillId = o.SkillId
//CityId = j.CityId,
//CityName = j.CityName,
}).ToList().FirstOrDefault();
objResumeRepos.ApplicantDOB = Convert.ToDateTime(objResumeRepos.ApplicantDOB).ToString("dd/MM/yyyy");
//Date date1 = new SimpleDateFormat("dd/MM/yyyy").parse(objResumeRepos);
DateTime st = new DateTime();
// st= Convert.ToDateTime(objResumeRepos.ApplicantDOB);
ViewBag.Dob = objResumeRepos.ApplicantDOB;
int indexYear = 0;
int indexmonth = 0;
int indexmonth1 = 0;
indexYear = objResumeRepos.ProjectDuration.IndexOf(" ");
indexmonth = objResumeRepos.ProjectDuration.IndexOf("r");
indexmonth1 = objResumeRepos.ProjectDuration.IndexOf("m");
objResumeRepos.ProjectDurationYear = objResumeRepos.ProjectDuration.Substring(0, indexYear);
objResumeRepos.ProjectDurationMonth = objResumeRepos.ProjectDuration.Substring(indexmonth + 1, 3);
//appDetails.ProjectDurationMonth = appDetails.ProjectDuration.Substring(indexmonth, indexmonth1) ;
//GetResume();
var em = GetAllSkillDtl().ToList();
var res = (from a in em
join b in GetAllSkill() on a.SkillId equals b.SkillId
//join c in getAppSkillDtlList() on a.SkillDtlsId equals c.SkillDtlId
join d in getRelExpeList() on a.SkillDtlsId equals d.SkillDtlId
join e in GetAllExperience() on d.ExperienceId equals e.ExperienceId
join f in GetAllResumeList() on d.ApplicantId equals f.ApplicantId
select new
{
b.SkillName,
e.ExperienceMonths,
e.ExperienceYears,
e.ExperienceId,
b.SkillId,
d.RelevantExperienceId,
f.ApplicantId,
//c.ApplicantSkillDtlId
}).ToList().Where(f => f.ApplicantId == Convert.ToInt32(Session["ApplicantIDEdit"]));
//foreach(var m in res)
//{
// appDetails.skillex = new List<Skil_Experience>().Add(m);
//}
TempData["CountSkill_App"] = res.ToList().Count;
if (res.ToList().Count > 0)
{
for (int i = 0; i < res.ToList().Count; i++)
{
Skil_Experience ob = new Skil_Experience();
ob.SkillName = res.ToList()[i].SkillName;
ob.SkillId = res.ToList()[i].SkillId;
ob.ExperienceYears = res.ToList()[i].ExperienceYears;
ob.ExperienceMonths = res.ToList()[i].ExperienceMonths;
ob.ExperienceId = res.ToList()[i].ExperienceId;
objResumeRepos.skillLists.Add(ob);
}
}
// for binding skillDtl in list
var empdetailsMasterSkill = (from a in GetAllSkill()
join b in GetAllSkillDtl() on a.SkillId equals b.SkillId
select new
{
a.SkillId,
a.SkillName,
b.SkillDtlsId
}).ToList();
if (empdetailsMasterSkill.ToList().Count > 0)
{
for (int i = 0; i < empdetailsMasterSkill.ToList().Count; i++)
{
SkillDtl ob = new SkillDtl();
ob.SkillName = empdetailsMasterSkill.ToList()[i].SkillName;
ob.SkillId = empdetailsMasterSkill.ToList()[i].SkillId;
ob.SkillDtlsId = empdetailsMasterSkill.ToList()[i].SkillDtlsId;
objResumeRepos.skillDtlList.Add(ob);
}
}
//ViewBag.skill_Ex = res;
//Session["skill_ex"] = res; //ViewBag.UploadResume = appDetails.ApplicantUploadResume;
//objResumeRepo = new { Skills = objResumeRepo, resume = appDetails };
return View(objResumeRepos);
}
catch (Exception exp)
{
throw exp;
}
}
public ActionResult ViewResumeRepository(string id)
{
//int indexYear = 0;
//int indexmonth = 0;
//int indexmonth1 = 0;
Session["ApplicantID"] = id;
ResumeRepository objResumeRepos = new ResumeRepository();
objResumeRepos = (from a in GetAllResumeList()
// join b in getAddressDtlList() on a.ApplicantId equals b.ApplicantId
// join c in getAddressList() on b.AddressId equals c.AddressId
// ///*join d in GetAllNationalityList on a.ApplicantId equals*/
// join e in getAppQualificationDtlList() on a.ApplicantId equals e.ApplicantId
// join f in GetAllQualification() on e.QualificationId equals f.QualificationId
// join g in GetAllQualCat() on f.QualificationCategoryId equals g.QualificationCategoryId
// join h in getallcountry() on c.CountryId equals h.CountryId
// join i in GetallState() on c.StateId equals i.StateId
// join j in GetallCity() on c.CityId equals j.CityId
// join k in GetAllQualificationSpecialization() on e.QualificationId equals k.QualificationId
join i in getallAppExlist() on a.ApplicantId equals i.ApplicantId
join j in GetAllMaritalStatus() on a.MaritalStatusId equals j.MaritalStatusId
join k in GetAllcaste() on a.CasteId equals k.CasteId
join l in getAppContactDtlList() on a.ApplicantId equals l.ApplicantId
join m in getAppEmailList() on a.ApplicantId equals m.ApplicantId
// join n in getAppProjectList() on a.ApplicantId equals n.ApplicantId
// //join o in getAppSkillDtlList() on a.ApplicantId equals o.ApplicantId
// //join p in GetAllSkillDtl() on o.SkillDtlId equals p.SkillDtlsId
// //join q in GetAllSkill() on p.SkillId equals q.SkillId
// //join r in getRelExpeList() on a.ApplicantId equals r.ApplicantId
// //join s in GetAllExperience() on r.ExperienceId equals s.ExperienceId
where a.ApplicantId == Convert.ToInt32(Session["ApplicantID"])
select new ResumeRepository
{
ApplicantId = a.ApplicantId,
ApplicantFirstName = a.ApplicantFirstName,
ApplicantMiddleName = a.ApplicantMiddleName,
ApplicantLastName = a.ApplicantLastName,
ApplicantDOB =Convert.ToDateTime(a.ApplicantDOB).ToLongDateString(),
ApplicantUploadResume = a.ApplicantUploadResume,
ContactNo = l.ContactNo,
EmailId = m.EmailId,
Nationality=a.Nationality,
Religion=a.Religion,
CasteName=k.CasteName,
MaritalStatusName=j.MaritalStatusName,
FromDate=i.FromDate.ToLongDateString(),
ToDate =i.ToDate.ToLongDateString(),
// ApplicantProjectTitle = n.ApplicantProjectTitle,
// ApplicantProjectStatus = n.ApplicantProjectStatus,
// ProjectDuration = n.ProjectDuration,
// TeamSize = n.TeamSize,
// RoleDescription = n.RoleDescription,
// ProjectDescription = n.RoleDescription,
// ProjectUrl = n.ProjectUrl,
// ClientName = n.ClientName,
// //SkillName=q.SkillName,
// //ExperienceYear=s.ExperienceYear,
// //ExperienceMonth=s.ExperienceMonth,
// //SkillName=
Gender =a.Gender,
// //a.MaritalStatusId,
// IsSameAsContactAddress = a.IsSameAsContactAddress,
// //b.AddressId,
// AddressId=c.AddressId,
// AddressStreet1 = c.AddressStreet1,
// AddressStreet2 = c.AddressStreet2,
// AddressZIP = c.AddressZIP,
// QualificationId = f.QualificationId,
// QualificationName = f.QualificationName,
// CategoryName = g.CategoryName,
// SpecializationName = k.SpecializationName,
// CountryId = h.CountryId,
// CountryName = h.CountryName,
// StateId = i.StateId,
// StateName = i.StateName,
// CityId = j.CityId,
// CityName = j.CityName
}).ToList().FirstOrDefault();
//indexYear = objResumeRepos.ProjectDuration.IndexOf(" ");
//indexmonth = objResumeRepos.ProjectDuration.IndexOf("r");
//indexmonth1 = objResumeRepos.ProjectDuration.IndexOf("m");
// //objResumeRepos.ProjectDurationYear = objResumeRepos.ProjectDuration.Substring(0, indexYear) + "Year";
// //objResumeRepos.ProjectDurationMonth = objResumeRepos.ProjectDuration.Substring(indexmonth + 1, 3) + "Month";
//var em = GetAllSkillDtl().ToList();
//var res = (from a in em
// join b in GetAllSkill() on a.SkillId equals b.SkillId
// join c in getAppSkillDtlList() on a.SkillDtlsId equals c.SkillDtlId
// join d in getRelExpeList() on a.SkillDtlsId equals d.SkillDtlId
// join e in GetAllExperience() on d.ExperienceId equals e.ExperienceId
// join f in GetAllResumeList() on c.ApplicantId equals f.ApplicantId
// select new
// {
// b.SkillName,
// e.ExperienceMonths,
// e.ExperienceYears,
// e.ExperienceId,
// b.SkillId,
// d.RelevantExperienceId,
// f.ApplicantId,
// }).ToList().Where(f => f.ApplicantId == Convert.ToInt32(Session["ApplicantID"]));
//int cnt = res.ToList().Count();
//if (res.ToList().Count() > 0)
//{
// for (int i = 0; i < res.ToList().Count; i++)
// {
// Skil_Experience ob = new Skil_Experience();
// ob.SkillName = res.ToList()[i].SkillName;
// ob.SkillId = res.ToList()[i].SkillId;
// ob.ExperienceYears = res.ToList()[i].ExperienceYears;
// ob.ExperienceMonths = res.ToList()[i].ExperienceMonths;
// objResumeRepos.skillLists.Add(ob);
// }
//}
return View(objResumeRepos);
}
public ActionResult UploadImageAsynB(HttpPostedFileBase imgupl)
{
// CloudBlockBlob imageBlob = null;
string test = null;
string fname;
if (imgupl != null && imgupl.ContentLength != 0)
{
HttpFileCollectionBase files = Request.Files;
for (int i = 0; i < files.Count; i++)
{
//string path = AppDomain.CurrentDomain.BaseDirectory + "Uploads/";
//string filename = Path.GetFileName(Request.Files[i].FileName);
HttpPostedFileBase file = files[i];
// string filePath = "~/Uploads/" + fileName;
// Checking for Internet Explorer
if (Request.Browser.Browser.ToUpper() == "IE" || Request.Browser.Browser.ToUpper() == "INTERNETEXPLORER")
{
string[] testfiles = file.FileName.Split(new char[] { '\\' });
fname = testfiles[testfiles.Length - 1];
//string filePath = "~/Client/" + fname;
}
else
{
fname = file.FileName;
}
ViewBag.LogoImage = file.FileName;
// Get the complete folder path and store the file inside it.
fname = Path.Combine(Server.MapPath("~/Client/"), fname);
//string filePath = "~/Client/" + fname;
Session["filePath"] = Session["filePath"]+ fname.ToString()+",";
test = Convert.ToString(Session["filePath"]);
//TempData["value"] = fname.ToString();
//TempData.Keep("value");
file.SaveAs(fname);
}
}
return Content(test);
//return View();
}
public ActionResult UploadImageAsynResume(HttpPostedFileBase imgUpResume)
{
// CloudBlockBlob imageBlob = null;
string test = null;
string fname;
if (imgUpResume != null && imgUpResume.ContentLength != 0)
{
HttpFileCollectionBase files = Request.Files;
for (int i = 0; i < files.Count; i++)
{
//string path = AppDomain.CurrentDomain.BaseDirectory + "Uploads/";
//string filename = Path.GetFileName(Request.Files[i].FileName);
HttpPostedFileBase file = files[i];
// string filePath = "~/Uploads/" + fileName;
// Checking for Internet Explorer
if (Request.Browser.Browser.ToUpper() == "IE" || Request.Browser.Browser.ToUpper() == "INTERNETEXPLORER")
{
string[] testfiles = file.FileName.Split(new char[] { '\\' });
fname = testfiles[testfiles.Length - 1];
//string filePath = "~/Client/" + fname;
}
else
{
fname = file.FileName;
}
ViewBag.Resume = file.FileName;
// Get the complete folder path and store the file inside it.
fname = Path.Combine(Server.MapPath("~/Client/"), fname);
//string filePath = "~/Client/" + fname;
Session["filePathResume"] = fname.ToString();
test = Convert.ToString(Session["filePath"]);
//TempData["value"] = fname.ToString();
//TempData.Keep("value");
file.SaveAs(fname);
}
}
return Content(test);
//return View();
}
[HttpPost]
public ActionResult UpdateResume(ResumeRepository resumeRepository, string url_resume, string[] skill, string ExYear, string ExMonth, string CurCountry, string CurState, string CurCity, string CurStreet1, string CurStreet2, string CurZip)
{
int idApplicant = Convert.ToInt32(Session["ApplicantIDEdit"]);
ResumeRepository applicant_resume;
resumeRepository.ApplicantId = idApplicant;
Address address_applicantPresent = new Address();
//int itmSkill = skill.ToString().Split(',').Length;
int itmYear = ExYear.ToString().Split(',').Length;
int itmMonth = ExMonth.ToString().Split(',').Length;
ResumeRepository qual2 = new ResumeRepository();
//resumeRepository.ApplicantUploadResume = (Session["filePathResume"]).ToString();
Address ad = new Address();
var App_Add_Id = 0;
App_Add_Id = getAddressDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).Select(a => a.AddressId).FirstOrDefault(); // get addressId
//var ID = 0;
//ID = getAddressDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId)).Select(a => a.AddressId).FirstOrDefault();
ad = getAddressList().ToList().Where(a => a.AddressId == Convert.ToInt32(App_Add_Id)).FirstOrDefault();
ad.AddressStreet1 = resumeRepository.AddressStreet1;
ad.AddressStreet2 = resumeRepository.AddressStreet2;
ad.AddressZIP = resumeRepository.AddressZIP;
ad.CountryId = resumeRepository.CountryId;
ad.StateId = resumeRepository.StateId;
ad.CityId = resumeRepository.CityId;
ad.AddressType = "Permanent";
HttpResponseMessage resAddress = client.PutAsJsonAsync("Address/" + ad.AddressId, ad).Result;
if (resumeRepository.IsSameAsContactAddress)
{
}
else
{
Address add = new Address();
//List<Address> addList = new List<Address>();
//App_Add_IdP = getAddressDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).Select(a => a.AddressId).ToList(); // get addressId
var App_Add_IdP = (from a in getAddressDtlList()
select new ApplicantAddressDtl
{
AddressId = a.AddressId,
ApplicantId = a.ApplicantId,
}).Where(a => a.ApplicantId == resumeRepository.ApplicantId).ToList();
foreach (var a in App_Add_IdP)
{
add = getAddressList().ToList().Where(b => b.AddressId == Convert.ToInt32(a.AddressId) && b.AddressType == "Present").FirstOrDefault();
}
if (add == null)
{
add.AddressStreet1 = CurStreet1.ToString();
add.AddressStreet2 = CurStreet2;
add.AddressZIP = CurZip;
add.CountryId = Convert.ToInt32(CurCountry);
add.StateId = Convert.ToInt32(CurState);
add.CityId = Convert.ToInt32(CurCity);
add.AddressType = "Present";
HttpResponseMessage resAddressPresen = client.PostAsJsonAsync("Address", add).Result;
}
}
if (resAddress.IsSuccessStatusCode)
{
ResumeRepository resume = new ResumeRepository();
resume = GetAllResumeList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
resume.ApplicantFirstName = resumeRepository.ApplicantFirstName;
resume.ApplicantMiddleName = resumeRepository.ApplicantMiddleName;
resume.ApplicantLastName = resumeRepository.ApplicantLastName;
resume.Gender = resumeRepository.Gender;
resume.IsSameAsContactAddress = resumeRepository.IsSameAsContactAddress;
if (Session["filePathResume"] != null)
{
resumeRepository.ApplicantUploadResume = (Session["filePathResume"]).ToString();
}
else
{
resume.ApplicantUploadResume = resumeRepository.ApplicantUploadResume;
}
HttpResponseMessage resApplicant = client.PutAsJsonAsync("Applicant/" + resume.ApplicantId, resume).Result;
if (resApplicant.IsSuccessStatusCode)
{
//ApplicantAddressDtl appAdd = new ApplicantAddressDtl();
//appAdd.AddressId = address_applicantPermanent.AddressId;
//appAdd.ApplicantId = applicant_resume.ApplicantId;
//HttpResponseMessage AppAddress = client.PostAsJsonAsync("ApplicantAddressDtl", appAdd).Result;
//int id = address_applicantPresent.AddressId;
//if (id > 0)
//{
// ApplicantAddressDtl appAddPre = new ApplicantAddressDtl();
// appAddPre.AddressId = address_applicantPresent.AddressId;
// appAddPre.ApplicantId = applicant_resume.ApplicantId;
// HttpResponseMessage AppAddressPre = client.PostAsJsonAsync("ApplicantAddressDtl", appAddPre).Result;
//}
//else
//{
//}
//if (AppAddress.IsSuccessStatusCode)
//{
ApplicantContactDtl appContact = new ApplicantContactDtl();
appContact = getAppContactDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
appContact.ContactNo = resumeRepository.ContactNo;
HttpResponseMessage AppContact = client.PutAsJsonAsync("ApplicantContactDtl/" + appContact.ApplicantContactDtlId, appContact).Result;
if (AppContact.IsSuccessStatusCode)
{
ApplicantEmailDtl appEmail = new ApplicantEmailDtl();
appEmail = getAppEmailList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
appEmail.EmailId = resumeRepository.EmailId;
HttpResponseMessage resAppEmail = client.PostAsJsonAsync("ApplicantEmailDtl/" + appEmail.ApplicantEmailDtlId, appEmail).Result;
if (resAppEmail.IsSuccessStatusCode)
{
ApplicantQualificationDtl appQuali = new ApplicantQualificationDtl();
appQuali = getAppQualificationDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
appQuali.QualificationId = resumeRepository.QualificationId;
appQuali.QualificationISpecializationDtld = resumeRepository.QualificationSpecializationDtld;
HttpResponseMessage resappQual = client.PutAsJsonAsync("ApplicantQualificationDtl/" + appQuali.ApplicantQualificationDtlId, appQuali).Result;
if (resappQual.IsSuccessStatusCode)
{
//Certificate cer = new Certificate();
//cer = getAppCertDtlList().ToList().Where(a => a.CertificateId == resumeRepository.CertificateId).FirstOrDefault();
//cer.CertificateName = resumeRepository.CertificateName;
//cer.CertificateImageURL = (Session["filePath"]).ToString();
//cer.CertificateImageThumbnail = (Session["filePath"]).ToString();
//HttpResponseMessage resCertificate = client.PutAsJsonAsync("Certificate/" + cer.CertificateId, cer).Result;
//if (resCertificate.IsSuccessStatusCode)
//{
var SkillDtlId = GetAllSkill().ToList().Where(a => a.SkillId == resumeRepository.SkillId).Select(a => a.SkillId).FirstOrDefault();
ApplicantProjectDetail appprojectDtl = new ApplicantProjectDetail();
appprojectDtl = getAppProjectList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
appprojectDtl.ApplicantProjectTitle = resumeRepository.ApplicantProjectTitle;
appprojectDtl.ApplicantProjectStatus = resumeRepository.ApplicantProjectStatus;
appprojectDtl.ClientName = resumeRepository.ClientName;
appprojectDtl.ProjectDescription = resumeRepository.ProjectDescription;
appprojectDtl.ProjectDuration = resumeRepository.ProjectDuration;
appprojectDtl.ProjectUrl = resumeRepository.ProjectUrl;
appprojectDtl.RoleDescription = resumeRepository.RoleDescription;
appprojectDtl.TeamSize = resumeRepository.TeamSize;
appprojectDtl.SkillId = Convert.ToInt32(SkillDtlId);
HttpResponseMessage resAppProject = client.PutAsJsonAsync("ApplicantProjectDetail/" + appprojectDtl.ApplicantProjectDetailId, appprojectDtl).Result;
//return Json(resumeRepository, JsonRequestBehavior.AllowGet);
//}
}
else
{
return Json(null, JsonRequestBehavior.AllowGet);
}
}
}
//}
}
}
//HttpResponseMessage resAddress=client.PostAsJsonAsync("ApplicantAddressDtl")
else
{
return Json("null", JsonRequestBehavior.AllowGet);
}
int i = 0;
while (i < skill.Length)
{
string skill1 = skill[i].Split(',')[i];
string exyear = ExYear.ToString().Split(',')[i];
string exmoth = ExMonth.ToString().Split(',')[i];
var ExId = getRelExpeList().ToList().Where(a => a.ApplicantId == idApplicant).Select(a => a.ExperienceId).FirstOrDefault();
Experience ex = new Experience();
//var SkillDtlId = GetAllExperience().ToList().Where(a => a.ExperienceId == ExId).Select(a => a.).FirstOrDefault();
ex.ExperienceId = Convert.ToInt32(ExId);
ex.ExperienceYears = Convert.ToInt32(exyear);
ex.ExperienceMonths = Convert.ToInt32(exmoth);
HttpResponseMessage resEx = client.PutAsJsonAsync("Experience/" + ex.ExperienceId, ex).Result;
if (resEx.IsSuccessStatusCode)
{
var SkillDtlId = GetAllSkillDtl().ToList().Where(a => a.SkillId == Convert.ToInt32(skill1)).Select(a => a.SkillDtlsId).FirstOrDefault();
var RelExId = getRelExpeList().ToList().Where(a => a.ApplicantId == idApplicant).Select(a => a.RelevantExperienceId).FirstOrDefault();
RelevantExperience re = new RelevantExperience();
re.RelevantExperienceId = Convert.ToInt32(RelExId);
re.SkillDtlId = Convert.ToInt32(SkillDtlId);
re.ApplicantId = idApplicant;
re.ExperienceId = ex.ExperienceId;
HttpResponseMessage resAppEx = client.PutAsJsonAsync("RelevantExperience/" + re.RelevantExperienceId, re).Result;
i++;
//ApplicantSkillDtl appSkill = new ApplicantSkillDtl();
//appSkill = getAppSkillDtlList().ToList().Where(a => a.ApplicantId == resumeRepository.ApplicantId).FirstOrDefault();
//changes need
}
else
{
}
}
return Json("OK", JsonRequestBehavior.AllowGet);
//return RedirectToAction("Index", "ResumeRepository");
}
[HttpPost]
public JsonResult DeleteApplicant(string[] id)
{
int i = 0;
//var ID = 0;
//var App_Add_Id = 0;
var App_Con_Id = 0;
//var App_Qual_Id = 0;
var App_Email_Id = 0;
//var App_Pro_Id = 0;
// var relexId = 0;
int countaddDtl = 0;
int countadd = 0;
int p = 0;
int add = 0;
//List<int> Ex_Id = new List<int>();
////int[] Ex_Id;
//string[] relexId;
while (i < id.Length)
{
var App_Add_Id = getAddressDtlList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantAddressDtlId).ToList(); // get addressId
var ID = getAddressDtlList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.AddressId).ToList(); // addressId
var exIdd = getRelExpeList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ExperienceId).ToList();// get the list of experience id of particular applicant
countaddDtl = App_Add_Id.ToList().Count;
while (p < countaddDtl)
{
HttpResponseMessage resAppAddDtl = client.DeleteAsync("ApplicantAddressDtl/" + Convert.ToInt32(App_Add_Id[p])).Result;
if (resAppAddDtl.IsSuccessStatusCode)
{
p++;
}
}
countadd = ID.ToList().Count;
while (add < countadd)
{
HttpResponseMessage resAppAdd = client.DeleteAsync("Address/" + Convert.ToInt32(ID[add])).Result;
{
if (resAppAdd.IsSuccessStatusCode)
{
add++;
}
}
}
App_Con_Id = getAppContactDtlList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantContactDtlId).FirstOrDefault(); // addressId
if (App_Con_Id> 0)
{
HttpResponseMessage resAppConDtl = client.DeleteAsync("ApplicantContactDtl/" + Convert.ToInt32(App_Con_Id)).Result;
if (resAppConDtl.IsSuccessStatusCode)
{
var App_Qual_Id = getAppQualificationDtlList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantQualificationDtlId).ToList(); // addressId
int pp = 0;
while (pp < App_Qual_Id.ToList().Count)
{
HttpResponseMessage resAppQualDtl = client.DeleteAsync("ApplicantQualificationDtl/" + Convert.ToInt32(App_Qual_Id[pp])).Result;
if (resAppQualDtl.IsSuccessStatusCode)
{
pp++;
}
}
App_Email_Id = getAppEmailList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantEmailDtlId).FirstOrDefault(); // addressId
HttpResponseMessage resAppEmailDtl = client.DeleteAsync("ApplicantEmailDtl/" + Convert.ToInt32(App_Email_Id)).Result;
if (resAppEmailDtl.IsSuccessStatusCode)
{
var App_Pro_Id = getAppProjectList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantProjectDetailId).ToList(); // addressId
int countPro = App_Pro_Id.ToList().Count;
int cp = 0;
while (cp < countPro)
{
HttpResponseMessage resAppProDtl = client.DeleteAsync("ApplicantProjectDetail/" + Convert.ToInt32(App_Pro_Id[cp])).Result;
if (resAppProDtl.IsSuccessStatusCode)
{
cp++;
}
}
var exId = getRelExpeList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ExperienceId).ToList();// get the list of experience id of particular applicant
var relexId = getRelExpeList().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.RelevantExperienceId).ToList();
int countrel = relexId.ToList().Count;
int cntrel = 0;
while (cntrel < countrel)
{
HttpResponseMessage resrelex = client.DeleteAsync("RelevantExperience/" + Convert.ToInt32(relexId[cntrel])).Result;
if (resrelex.IsSuccessStatusCode)
{
cntrel++;
}
}
int countex = exId.ToList().Count;
int cntrex = 0;
int j = 0;
while (j < countex)
{
HttpResponseMessage resEx = client.DeleteAsync("Experience/" + Convert.ToInt32(exId[i])).Result;
if (resEx.IsSuccessStatusCode)
{
j++;
}
}
var exID = getallAppExlist().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).FirstOrDefault();// get the list of experience id of particular applicant
HttpResponseMessage resAppEx = client.DeleteAsync("ApplicantExperienceDtl/" + Convert.ToInt32(exID.ApplicantExperienceDtlId)).Result;
if (resAppEx.IsSuccessStatusCode)
{
}
// }
}
// }
}
}
var appCom = getallAppComplist().ToList().Where(a => a.ApplicantId == Convert.ToInt32(id[i])).Select(a => a.ApplicantCompanyDetailId).ToList();
int countappcomp = appCom.ToList().Count;
for(int pp=0;pp<countappcomp;pp++)
{
HttpResponseMessage resAppcomp = client.DeleteAsync("ApplicantCompanyDetail/" + Convert.ToInt32(id[i])).Result;
}
HttpResponseMessage resApp = client.DeleteAsync("Applicant/" + Convert.ToInt32(id[i])).Result;
if (resApp.IsSuccessStatusCode)
{
i++;
}
}
return Json("OK", JsonRequestBehavior.AllowGet);
}
public ActionResult Remote_Data_Binding_Read()
{
var em = GetAllSkillDtl().ToList();
var res = (from a in em
join b in GetAllSkill() on a.SkillId equals b.SkillId
join c in getAppSkillDtlList() on a.SkillDtlsId equals c.SkillDtlId
join d in getRelExpeList() on a.SkillDtlsId equals d.SkillDtlId
join e in GetAllExperience() on d.ExperienceId equals e.ExperienceId
join f in GetAllResumeList() on c.ApplicantId equals f.ApplicantId
select new
{
b.SkillName,
e.ExperienceMonths,
e.ExperienceYears,
e.ExperienceId,
b.SkillId,
d.RelevantExperienceId,
f.ApplicantId
}).ToList().Where(f => f.ApplicantId == Convert.ToInt32(Session["ApplicantIDEdit"]));
//ViewBag.skill_Ex = res;
Session["skill_ex"] = res;
return Json(res, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppAddbyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
var objResumeRepos = (from a in GetAllResumeList()
join b in getAddressDtlList() on a.ApplicantId equals b.ApplicantId
join c in getAddressList() on b.AddressId equals c.AddressId
join h in getallcountry() on c.CountryId equals h.CountryId
join i in GetallState() on c.StateId equals i.StateId
join j in GetallCity() on c.CityId equals j.CityId
where a.ApplicantId == id
select new
{
a.ApplicantId,
c.AddressId,
c.AddressStreet1,
c.AddressStreet2,
c.AddressType,
c.AddressZIP,
h.CountryId,
h.CountryName,
i.StateId,
i.StateName,
j.CityName,
j.CityId
}).ToList();
return Json(objResumeRepos, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppEdubyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
var objResumeRepos = (from a in GetAllResumeList()
join e in getAppQualificationDtlList() on a.ApplicantId equals e.ApplicantId
join f in GetAllQualification() on e.QualificationId equals f.QualificationId
join g in GetAllQualCat() on f.QualificationCategoryId equals g.QualificationCategoryId
join k in GetAllQualificationSpecialization() on e.QualificationId equals k.QualificationId
where a.ApplicantId == id
select new
{
a.ApplicantId,
f.QualificationId,
f.QualificationName,
g.QualificationCategoryId,
g.CategoryName,
k.QualificationISpecializationDtld,
k.SpecializationName,
BOU="Central Board Of University",
InstituteName="Academy Of Technology"
}).ToList();
return Json(objResumeRepos, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppSkillbyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
var em = GetAllSkillDtl().ToList();
var res = (from a in em
join b in GetAllSkill() on a.SkillId equals b.SkillId
//join c in getAppSkillDtlList() on a.SkillDtlsId equals c.SkillDtlId
join d in getRelExpeList() on a.SkillDtlsId equals d.SkillDtlId
join e in GetAllExperience() on d.ExperienceId equals e.ExperienceId
join f in GetAllResumeList() on d.ApplicantId equals f.ApplicantId
where f.ApplicantId == id
select new
{
b.SkillName,
e.ExperienceMonths,
e.ExperienceYears,
e.ExperienceId,
b.SkillId,
d.RelevantExperienceId,
f.ApplicantId,
f.ApplicantUploadResume
}).ToList();
return Json(res, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppProbyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
int indexYear = 0;
int indexmonth = 0;
int indexmonth1 = 0;
var res = (from a in GetAllResumeList()
join n in getAppProjectList() on a.ApplicantId equals n.ApplicantId
join q in GetAllSkill() on n.SkillId equals q.SkillId
where a.ApplicantId == id
select new ResumeRepository
{
ApplicantProjectTitle=n.ApplicantProjectTitle,
ApplicantProjectDetailId=n.ApplicantProjectDetailId,
ApplicantProjectStatus=n.ApplicantProjectStatus,
ClientName=n.ClientName,
ProjectDescription=n.ProjectDescription,
ProjectDuration = n.ProjectDuration,
ProjectUrl= n.ProjectUrl,
RoleDescription=n.RoleDescription,
TeamSize= n.TeamSize,
SkillName= q.SkillName ,
ProjectTypeName="Offsite"
}).ToList().Distinct();
foreach(var a in res)
{
indexYear = a.ProjectDuration.IndexOf(" ");
indexmonth = a.ProjectDuration.IndexOf("r");
indexmonth1 = a.ProjectDuration.IndexOf("m");
a.ProjectDurationYear = a.ProjectDuration.Substring(0, indexYear) + "Year";
a.ProjectDurationMonth = a.ProjectDuration.Substring(indexmonth + 1, 3) + "Month";
}
return Json(res, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppCompanybyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
var res = (from a in GetAllResumeList()
join b in getallAppComplist() on a.ApplicantId equals b.ApplicantId
join h in getallcountry() on b.CountryId equals h.CountryId
join i in GetallState() on b.StateId equals i.StateId
where a.ApplicantId == id
select new
{
a.ApplicantId,
b.ApplicantCompanyName,
b.ApplicantDesignation,
b.CompanyWebSite,
b.DurationMonth,
b.DurationYear,
b.City,
h.CountryName,
i.StateName,
}).ToList().Distinct();
return Json(res, JsonRequestBehavior.AllowGet);
}
public JsonResult GetAppCertificatebyId()
{
int id = Convert.ToInt32(Session["ApplicantID"]);
var res = (from a in GetAllResumeList()
join n in getallAppCertlist() on a.ApplicantId equals n.ApplicantId
join q in getallcertificate() on n.CertificateId equals q.CertificateId
where a.ApplicantId == id
select new
{
q.CertificateName,
q.CertificateImageURL
}).ToList().Distinct();
return Json(res, JsonRequestBehavior.AllowGet);
}
}
}
for view
write the below code in .cshtml file
@using Kendo.Mvc.UI;
@model KENResourceCloud.Areas.Recruitment.Models.ResumeRepository
@{
ViewBag.Title = "ViewResumeRepository";
Layout = "~/Views/Shared/_LayoutAdminLanding.cshtml";
}
<style>
/*.k-toolbar .k-widget .k-toolbar-resizable
{
margin-left: 51px
}*/
#ToolBar {
margin-left: 51px;
}
.k-datepicker {
width: 220px;
}
.accordion {
background-color: #eee;
color: #444;
cursor: pointer;
padding: 18px;
width: 9%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
transition: 0.4s;
}
.active, .accordion:hover {
background-color: #ccc;
}
.accordion:after {
content: '\002B';
color: #777;
font-weight: bold;
float: right;
margin-left: 5px;
}
.active:after {
content: "\2212";
}
.panel {
padding: 0 18px;
background-color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
}
.lbl-toggle {
display: block;
font-weight: bold;
font-family: monospace;
font-size: 1.2rem;
text-transform: uppercase;
text-align: left;
padding: 1rem;
/*color: #A77B0E;
background: #FAE042;*/
cursor: pointer;
border-radius: 7px;
transition: all 0.25s ease-out;
}
.lbl-toggle:hover {
color: #7C5A0B;
}
.lbl-toggle::before {
content: ' ';
display: inline-block;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid currentColor;
vertical-align: middle;
margin-right: .7rem;
transform: translateY(-2px);
transition: transform .2s ease-out;
}
.collapsible-content .content-inner {
background: rgba(250, 224, 66, .2);
border-bottom: 1px solid rgba(250, 224, 66, .45);
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
padding: .5rem 1rem;
}
.collapsible-content {
max-height: 0px;
overflow: hidden;
transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content {
max-height: 350px;
}
.toggle:checked + .lbl-toggle::before {
transform: rotate(90deg) translateX(-3px);
}
.toggle:checked + .lbl-toggle {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
/*.k-picker-wrap k-state-default {
width: 253px;
}*/
.k-state-default{
border-top: 1px solid #ccc;
margin-top: -1px;
}
</style>
@*<script>
$(document).ready(function ()
{
debugger;
$.ajax({
url: "GetResume",
type: "GET",
dataType: "json",
success: function (data) {
if (data) {
debugger;
$("#txtFName").val(data.DepartmentCode);
$("#txtMName").val(data.DepartmentCode);
$("#txtLName").val(data.dep.DepartmentCode);
$("#txtMStatus").val(data.DepartmentCode);
$("#txtContact").val(data.DepartmentCode);
$("#txtEmail").val(data.DepartmentCode);
$("#txtCountry").val(data.DepartmentCode);
$("#txtCity").val(data.DepartmentCode);
$("#txtZip").val(data.DepartmentCode);
$("#txtstreet1").val(data.DepartmentCode);
$("#txtstreet2").val(data.DepartmentCode);
$("#txtQualCat").val(data.DepartmentCode);
$("#txtQual").val(data.DepartmentCode);
$("#txtSpec").val(data.DepartmentCode);
$("#txtBOU").val(data.DepartmentCode);
$("#txtInstitute").val(data.DepartmentCode);
$("#txtEdCountry").val(data.DepartmentCode);
$("#txtEdState").val(data.DepartmentCode);
$("#txtEdCity").val(data.DepartmentCode);
$("#txtEdZipCode").val(data.DepartmentCode);
$("#txtBOU").val(data.DepartmentCode);
$("#DrpSkill").val(data.DepartmentCode);
$("#DynamicTextBoxYear").val(data.DepartmentCode);
$("#DynamicTextBoxMonth").val(data.DepartmentCode);
$("#txtCompany").val(data.DepartmentCode);
$("#txtDesignation").val(data.DepartmentCode);
$("#txtdurationFrom").val(data.DepartmentCode);
$("#txtdurationTo").val(data.DepartmentCode);
$("#txtWebsite").val(data.DepartmentCode);
$("#txtComCountry").val(data.dep.DepartmentCode);
$("#txtComState").val(data.dep.DepartmentCode);
$("#txtComCity").val(data.dep.DepartmentCode);
$("#txtProjectname").val(data.DepartmentCode);
$("#txtProStatus").val(data.DepartmentCode);
$("#txtClientName").val(data.DepartmentCode);
$("#txtProjdurationTo").val(data.DepartmentCode);
$("#txtProjdurationFrom").val(data.DepartmentCode);
$("#txtProjectTSize").val(data.DepartmentCode);
$("#txtProjectType").val(data.DepartmentCode);
$("#txtProjectRole").val(data.DepartmentCode);
$("#txtProjectURL").val(data.DepartmentCode);
$("#txtProjectSkill").val(data.DepartmentCode);
$("#txtProDesc").val(data.DepartmentCode);
$("#CertificateName").val(data.DepartmentCode);
$("#imgupl").val(data.DepartmentCode);
$("#imguplResume").val(data.DepartmentCode);
return true;
}
else
return false;
},
error: function (err) {
alert(err);
}
})
})
</script>*@
<div style="margin-top: 100px;margin-left: 61px;color:grey"><h4>View Applicant</h4></div>
<hr>
@*//personal details*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible" class="lbl-toggle" style="width:167px;margin-bottom:5px">Personal Details</label>
@*<label id="Personal" style="">Personal Details</label>*@
<div class="collapsible-content">
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
First Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m=>m.ApplicantFirstName)
.Name("txtFName")
.HtmlAttributes(new { placeholder = " First Name", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;", @readonly="readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Middle Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.ApplicantMiddleName)
.Name("txtMName")
.HtmlAttributes(new { placeholder = " Middle Name", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Last Name
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.ApplicantLastName)
.Name("txtLName")
.HtmlAttributes(new { placeholder = "Last Name", style = "width:220px;margin-left: 199px;margin-top:-24px; border:none;", @readonly = "readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
D.O.B
</div>
<div class="col-md-3" style="width:220px;float: left;margin-top:-35px;margin-left: 726px;">
@(Html.Kendo().TextBoxFor(m => m.ApplicantDOB)
.Name("txtDOB")
.HtmlAttributes(new { placeholder = "DOB", style = "width:220px; margin-top: 0px; border:none;", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Marital Status
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.MaritalStatusName)
.Name("txtMStatus")
.HtmlAttributes(new { placeholder = "MStatus", style = "width: 220px;margin-left:199px;margin-top:-24px;border:none;", @readonly = "readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Nationality
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.Nationality)
.Name("txtNationality")
.HtmlAttributes(new { placeholder = "na", style = "width: 220px;float: left;margin-top:-35px;margin-left:726px;border:none;", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Religion
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m=>m.Religion)
.Name("txtReligion")
.HtmlAttributes(new { placeholder = "re", style = "width: 220px;float: left;margin-top: -24px;margin-left: 199px; border:none;", @readonly = "readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-20px;margin-left: 96px;">
Caste
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.CasteName)
.Name("txtCaste")
.HtmlAttributes(new { placeholder = "caste", style = "width:220px;float: left;margin-top:-35px;margin-left: 726px;border:none;", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px; margin-top: 14px;">
Contact No
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.ContactNo)
.Name("txtContact")
.HtmlAttributes(new { placeholder = " Contact No",style = "width:220px; margin-left: 199px;margin-top:-24px;border:none;", @readonly = "readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.EmailId)
.Name("txtEmail")
.HtmlAttributes(new { placeholder = " Email",style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-2" style="float: left;margin-left: 46px;">
Experience
</div>
<div class="col-md-2" style="margin-left: 200px;">
@*@(Html.Kendo().DatePicker()
.Name("monthpickerFrom")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left; font-size: 12px;", title = "monthpicker" })
)*@
@(Html.Kendo().TextBoxFor(m=>m.FromDate)
.Name("txtExYear")
.HtmlAttributes(new { placeholder = "Year", required = "required", validationmessage = " * ", style = "width:135px;float: left;margin-top:-2px;margin-left:-2px;border: none;font-size: 10px;", @readonly="readonly"}))
<label>To</label>
<br/>
@(Html.Kendo().TextBoxFor(m => m.ToDate)
.Name("txtExMonth")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:135px;float: left;margin-top:-2px;margin-left: -2px;border: none;font-size: 10px;", @readonly = "readonly" }))
</div>
@*<div class="col-md-2">*@
@*@(Html.Kendo().DatePicker()
.Name("monthpickerTo")
.Start(CalendarView.Year)
.Depth(CalendarView.Year)
.Format("MMMM yyyy")
.Value("")
.DateInput()
.HtmlAttributes(new { style = "width: 110px;float: left;font-size: 12px;", title = "monthpicker" })
)*@
@*</div>*@
<div class="col-md-3" style="float: left; margin-left: 175px;margin-top: -29px;">
Gender
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m=>m.Gender)
.Name("txtGender")
.HtmlAttributes(new { placeholder = "Gender", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-55px;margin-left:726px;border:none;", @readonly="readonly"}))
</div>
</div>
</div>
</div>
@*******Address Details************@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible1" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible1" class="lbl-toggle" style="width:167px;margin-bottom:5px">Address Details</label>
<div class="collapsible-content">
<table id="Address">
</table>
@*<label style="margin-bottom:5px;margin-left: 39px;">Permanent Address</label>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.CountryName)
.Name("txtCountry")
.HtmlAttributes(new { placeholder = " Address", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.StateName)
.Name("txtState")
.HtmlAttributes(new { placeholder = " Address", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.CityName)
.Name("txtCity")
.HtmlAttributes(new { placeholder = "City", style = "width:220px;margin-left: 199px;margin-top:-24px;border:none;", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Zip Code
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.AddressZIP)
.Name("txtZip")
.HtmlAttributes(new { placeholder = "Zip Code", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;Border:none", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Street 1
</div>
<div class="col-md-3">*@
@*@Html.TextAreaFor(m => m.AddressStreet1, new { @class = "form-control", style = "width:220px;margin-left: 203px;margin-top:-19px;height:50px;border:none;", multiline = "True", @readonly = "readonly" })*@
@*<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;border:none;" maxlength="200" required class="k-input k-textbox" id="txtstreet1" placeholder="street" multiline="True"></textarea>*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-74px;margin-left: 515px;">
Street 2
</div>
<div class="col-md-3">*@
@*@Html.TextAreaFor(m => m.AddressStreet2, new { @class = "form-control", style = "width: 220px;float: left;margin-top:-80px;margin-left:726px;height:50px;border:none;", multiline = "True", @readonly = "readonly" })*@
@*<textarea id="txtstreet2" style="width: 220px;float: left;margin-top:-35px;margin-left:726px;" placeholder="street"></textarea>*@
@*<textarea style="width: 220px;float: left;margin-top:-56px;margin-left:726px;height:50px;border:none;" maxlength="200" required class="k-input k-textbox" id="txtstreet2" placeholder="street" multiline="True"></textarea>*@
@*</div>
</div>
<label style="margin-bottom:5px;margin-left: 39px;margin-top: 16px;">Present Address</label>
<div class="col-md-12" style="margin-bottom:10px;">*@
@*@(Html.Kendo().CheckBox()
.Name("ChkAdd")
.Label("Present address same As Permanent Address")
.HtmlAttributes(new { Style = "margin-left:20px;" })
)*@
@*</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-top: 20px;margin-left: 45px;">
Country
</div>
<div class="col-md-4">*@
@*@(Html.Kendo().TextBoxFor(m => m.CountryName)
.Name("txtCurCountry")
.HtmlAttributes(new { placeholder = "Con",style = "width:220px; margin-left: 199px;margin-top:-22px;border:none", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCurCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.StateName)
.Name("txtCurState")
.HtmlAttributes(new { placeholder = "State", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCurState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCurCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCurCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">
@(Html.Kendo().TextBoxFor(m => m.CityName)
.Name("txtCurCity")
.HtmlAttributes(new { placeholder = "City", style = "width:220px;margin-left: 199px;margin-top:-24px;border:none;", @readonly = "readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCurCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCurState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCurState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Zip Code
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.AddressZIP)
.Name("txtCurZip")
.HtmlAttributes(new { placeholder = "Zip Code", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Street 1
</div>
<div class="col-md-3">*@
@*@Html.TextAreaFor(m => m.AddressStreet1, new { @class = "form-control", style = "width:220px;margin-left: 199px;margin-top:-17px;height:50px;border:none;", multiline = "True" , @readonly = "readonly" })*@
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
@*<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;border:none" maxlength="200" required class="k-input k-textbox" id="txtCurstreet1" placeholder="street" multiline="True"></textarea>*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-53px;margin-left: 515px;">
Street 2
</div>
<div class="col-md-3">*@
@*@Html.TextAreaFor(m => m.AddressStreet2, new { @class = "form-control", style = "width: 220px;float: left;margin-top:-78px;margin-left:730px;height:50px;border:none;", multiline = "True", @readonly = "readonly" })*@
@*<textarea id="txtstreet2" style="width: 220px;float: left;margin-top:-35px;margin-left:726px;" placeholder="street"></textarea>*@
@*<textarea style="width: 220px;float: left;margin-top:-56px;margin-left:726px;height:50px;border:none" maxlength="200" required class="k-input k-textbox" id="txtCurstreet2" placeholder="street" multiline="True"></textarea>*@
</div>
</div>
@*</div>
</div>*@
@******For Address***********************@
<script>
debugger;
//$.get('GetAppAddbyId', null, function (html) { $('#myDiv').replaceWith(html); });
//$.get("GetAppAddbyId", null, BindAddress);$.get()
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppAddbyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var tbl = $("#Address").val();
//foreach(var ad in Address)
//{
var count=data.length;
for(var i=0;i<count;i++)
{
debugger;
var div = $("<div style='border-width: 1px; margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>"+
"<span style='' id='addressTypeDyn" + count + "'>" +data[i].AddressType + " Address</span> " +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
"Country"+
"</div>" +
"<span style='display:none;' id='countryIDDyn" + count + "' name='countryIDDyn" + count + "'>" + data[i].CountryId + "</span>" +
" <div class='col-md-3' style = 'width:220px; margin-left: 199px;margin-top:-18px;' >" +
data[i].CountryName +
"</div>"+
" <div class='col-md-3' style='float: left;margin-top: -15px;margin-left: 515px;'>"+
" State"+
"</div>" +
"<span style='display:none;' id='stateIDDyn" + count + "'>" + data[i].StateId + "</span>" +
"<div class='col-md-3' style='margin-left: 700px;margin-top:-16px;'>"+
data[i].StateName +
"</div>"+
" </div>"+
" <div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-top: 23px; margin-left: 45px;'>"+
"City"+
"</div>" +
"<span style='display:none;' id='cityIDDyn" + count + "'>" + data[i].CityId + "</span>" +
"<div class='col-md-3' style='width: 220px;margin-left: 199px;margin-top: -22px;'>"+
data[i].CityName +
" </div>"+
"<div class='col-md-3' style='float: left;margin-top:-14px;margin-left: 515px;'>" +
"Zip Code"+
" </div>"+
"<div class='col-md-3' style='width: 220px;margin-left: 700px;margin-top: -13px;' id='zipDyn" + count + "'>" +
data[i].AddressZIP +
"</div>" +
" </div>"+
"<div class='col-md-12' style='margin-left: 25px;margin-top: 19px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
" Street 1"+
"</div>"+
"<div class='col-md-3' style='width:220px;margin-left: 199px;margin-top:-17px;height:50px;' id='street1Dyn" + count + "'>" +
data[i].AddressStreet1 +
" </div>"+
" <div class='col-md-3' style='float: left;margin-top:-53px;margin-left: 515px;'>"+
" Street 2"+
" </div>"+
"<div class='col-md-3' style='width: 220px;float: left;margin-top:-56px;margin-left:702px;height:50px;' id='street2Dyn" + count + "'>" +
data[i].AddressStreet1 +
" </div>" +
"</div> " +
" <span style='display:none;' id='addressTypeDyn" + count + "'>" + data[i].AddressType + "</span>" +
"</div> ");
$("#Address").append(div);
}
},
});
});
//}
$("#ChkAdd").click(function () {
if (this.checked) {
console.log("hit");
}
var val = $("#ChkAdd").is(':checked');
if (val == true) {
debugger;
var c = $('#DrpCountry').data("kendoDropDownList").value()
$("#DrpCurCountry").data("kendoDropDownList").value(c)
var s = $('#DrpState').data("kendoDropDownList").value()
$("#DrpCurState").data("kendoDropDownList").value(s)
var cit = $('#DrpCity').data("kendoDropDownList").value()
$("#DrpCurCity").data("kendoDropDownList").value(cit)
var curZip = $("#txtZip").val();
var curStreet1 = $("#txtstreet1").val();
var curStreet2 = $("#txtstreet2").val();
document.getElementById("txtCurZip").innerHTML = curZip
document.getElementById("txtCurstreet1").innerText = curStreet1
document.getElementById("txtCurstreet2").innerHTML = curStreet2
}
else {
$("#DrpCurCountry").data("kendoDropDownList").value("")
$("#DrpCurState").data("kendoDropDownList").value("")
$("#DrpCurCity").data("kendoDropDownList").value("")
document.getElementById("txtCurZip").innerHTML = "";
document.getElementById("txtCurstreet1").innerText = ""
document.getElementById("txtCurstreet2").innerHTML = ""
}
});
</script>
@****************************************@
<script>
function filterCurCountry() {
return {
Country: $("#DrpCurCountry").val()
};
}
</script>
<script>
function filterCurState() {
return {
State: $("#DrpCurState").val()
};
}
</script>
<script>
function filterCountry() {
return {
Country: $("#DrpCountry").val()
};
}
</script>
<script>
function filterState() {
debugger;
return {
State: $("#DrpState").val()
};
}
</script>
@*Highest education detail*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible2" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible2" class="lbl-toggle" style="width:244px;margin-bottom:5px">Highest Education Detail</label>
@*<label id="Personal" style="">Personal Details</label>*@
<div class="collapsible-content">
<div id="Education"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Qualification Category
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.CategoryName)
.Name("txtQualCat")
.HtmlAttributes(new { placeholder = "QualCat", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpQualcat")
.DataTextField("CategoryName")
.DataValueField("QualificationCategoryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllQualCatList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Qualification
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.QualificationName)
.Name("txtQual")
.HtmlAttributes(new { placeholder = "QualCat", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpQual")
.DataTextField("QualificationName")
.DataValueField("QualificationId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllQualificationList", "ResumeRepository")
.Data("filterQualCat");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQualcat")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Specialization
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.SpecializationName)
.Name("txtSpec")
.HtmlAttributes(new { placeholder = "Spec", required = "required", validationmessage = " * ", style = "width:220px;margin-left: 199px;margin-top:-24px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpSpec")
.DataTextField("SpecializationName")
.DataValueField("QualificationISpecializationDtld")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSpecializationList", "ResumeRepository")
.Data("filterQual");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpQual")
.Value("0")
.HtmlAttributes(new { style = "width:220px;margin-left: 199px;margin-top:-24px; " })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Board Of University
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.BoardUniversityName)
.Name("txtBOU")
.HtmlAttributes(new { placeholder = "BOU", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpBOU")
.DataTextField("BoardUniversityName")
.DataValueField("BoardUniversityId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllBOUList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left: 726px; " })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Institute
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.InstituteName)
.Name("txtInstitute")
.HtmlAttributes(new { placeholder = "BOU", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-24px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpInstitute")
.DataTextField("InstituteName")
.DataValueField("InstituteId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllInstituteList", "ResumeRepository")
.Data("filterBOU");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpBOU")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-24px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Country
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.CountryName)
.Name("txtEdCountry")
.HtmlAttributes(new { placeholder = "EdContry", required = "required", validationmessage = " * ", style = "width: 220px;float: left;margin-top:-35px;margin-left:726px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpEdCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
State
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.StateName)
.Name("txtEdState")
.HtmlAttributes(new { placeholder = "EdState", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-24px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpEdState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterEdCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpEdCountry")
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-24px;" })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top:-37px;margin-left: 515px;">
City
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.CityName)
.Name("txtEdCity")
.HtmlAttributes(new { placeholder = "EdCity", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top: -19px;margin-left: 212px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpEdCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterEdState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpEdState")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top: -19px;margin-left: 212px; " })
)*@
@*</div>
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Zip Code
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.AddressZIP)
.Name("txtEdZipCode")
.HtmlAttributes(new { placeholder = "Zip Code", style = "width:220px; margin-left: 199px;margin-top:-24px;border:none;" }))
</div>
</div>*@
</div>
</div>
<script>
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppEdubyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var tbl = $("#Address").val();
//foreach(var ad in Address)
//{
var count = data.length;
for (var i = 0; i < count; i++)
{
var div = $("<div style='border-width: 1px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);margin-bottom: 10px;padding-bottom: 20px;'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
" <div class='col-md-3' style='margin-left: 45px;margin-top: 17px;padding: 11px 0px 0px 0px;'>" +
"Qualification Category" +
"</div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 247px;margin-top: -18px;'>" +
data[i].CategoryName +
"</div>" +
"<span style='display:none' id='QualCatDynId'>" + data[i].QualificationCategoryId + "</span>" +
"<div class='col-md-3' style='margin-top: -17px;margin-left: 515px;'>" +
" Qualification" +
"</div>" +
"<div class='col-md-3' style='margin-left: 700px;margin-top: -18px;'>" +
data[i].QualificationName +
" </div>" + "<span style='display:none' id='QualDynId'>" + data[i].QualificationId + "</span>" +
"</div>" +
" <div class='col-md-12' style='margin-left: 25px; padding-top: 18px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
" Specialization" +
"</div><div class='col-md-3' style='width: 220px;margin-left: 248px;margin-top: -18px; '>" +
data[i].SpecializationName +
"</div>" + "<span style='display:none' id='QualSpecDynId'>" + data[i].QualificationISpecializationDtld + "</span>" +
"<div class='col-md-3' style='margin-left: 515px;margin-top: -17px;'>" +
"Board Of University" +
"</div>" +
"<div class='col-md-3' style='margin-top: -18px;margin-left: 700px;'>" +
data[i].BOU +
"</div>" +
//"<span style='display:none' id='BOUDynId" + cc + "'>" + BOUId + "</span>" + "</div>" +
"<div class='col-md-12' style='padding-top: 18px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
"Institute" +
" </div><div class='col-md-3' style='margin-left: 247px;margin-top: -18px;'>" +
data[i].InstituteName +
" </div>" + "<span style='display:none' id='InsDynId'>" + data[i].InstId + "</span>" + "</div>");
$("#Education").append(div);
}
}
})
});
function filterEdCountry() {
return {
Country: $("#DrpEdCountry").val()
};
}
</script>
<script>
function filterEdState() {
return {
State: $("#DrpEdState").val()
};
}
</script>
<script>
function filterBOU() {
return {
BOU: $("#DrpBOU").val()
};
}
</script>
<script>
function filterQualCat() {
return {
Category: $("#DrpQualcat").val()
};
}
</script>
<script>
function filterQual() {
return {
Qualification: $("#DrpQual").val()
};
}
</script>
@*****************Skill*****************@
<style>
.km-icon {
}
/*table {
border-spacing: 0;
margin-top: -0.25em;
border: 0 none;
}*/
.km-add {
position: relative !important;
margin-top: 0px !important;
margin-left: 846px !important;
color: #7ea700;
}
#txtnewStages {
margin-left: 169px;
width: 200px;
height: 4px;
margin-top: 2px;
}
.km-trash {
padding-top: 0px;
position: absolute !important;
margin-top: -8px !important;
margin-left: -48px !important;
color: #ff4350;
}
</style>
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible3" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible3" class="lbl-toggle" style="width:167px;margin-bottom:5px">Skill Details</label>
<div class="collapsible-content">
<div id="repeater" class="col-md-12" style="margin-left: 25px;">
<div id="skill">
</div>
@*<div class="col-md-3" style="margin-left: 45px;">
Skill
</div>
<div class="col-md-3">*@
@*@foreach (var skill in Model.skillLists)
{*@
@*<select>
<option value=@skill.SkillId id="">*@
@*<div style="width:220px; margin-left: 199px;margin-top:-22px;"> @skill.SkillName</div>
<br/>
<br />*@
@*</option>
</select>*@
@*}*@
@*@(Html.Kendo().TextBoxFor(m=>m.SkillName)
.Name("DrpSkill")
.HtmlAttributes(new { placeholder = "Skill", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpSkill")
.DataTextField("SkillName")
.DataValueField("SkillId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAllSkillList", "ResumeRepository");
});
})
//.DataSource(read => read.Read("GetAllSkillList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px; margin-left: 199px;margin-top:-22px;" })
)*@
@*</div>
<div class="col-md-2" style="float: left;margin-top: -31px; margin-left: 515px;">
Experience
</div>
<div class="col-md-2">*@
@*@foreach (var skill in Model.skillLists)
{*@
@*@skill.ExperienceYear*@
@*}*@
@*@(Html.Kendo().TextBoxFor(m=>m.ExperienceYear)
.Name("DynamicTextBoxYear")
.HtmlAttributes(new { placeholder = "Year", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-35px;margin-left:726px;border:none" }))*@
@*</div>
<div class="col-md-2">*@
@*@foreach (var skill in Model.skillLists)
{*@
@*@skill.ExperienceMonth*@
@*}*@
@*@(Html.Kendo().TextBoxFor(m => m.ExperienceMonth)
.Name("DynamicTextBoxMonth")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:110px;float: left;margin-top:-35px;margin-left: 841px;border:none" }))*@
@*</div>
</div>
<table id="my_table" style="margin-left: 68px;"></table>*@
@*<div class="km-icon km-add" id="my_button" style="cursor:pointer">Add Another Skill Details </div>*@
</div>
</div>
</div>
@*************************************************Creating dynamic textbox for skill************************@
<script>
var count = 0;
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppSkillbyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var dd = $("#Resume").val();
var dd = $("<div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;'>"+
" Resume</div>"+
"<div class='col-md-3' style='width: 133px;float: left;margin-top:-18px;margin-left:400px;'>" +
data[0].ApplicantUploadResume +
"</div>" +
"</div>");
$("#resume").append(dd);
var tbl = $("#Address").val();
//foreach(var ad in Address)
//{
var count = data.length;
for (var i = 0; i < count; i++) {
var div = $("<div style='border-width: 1px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);margin-bottom: 10px;padding-bottom: 20px;'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
" <div class='col-md-3' style='margin-left: 45px;'>" +
"Skill" +
"</div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 247px;margin-top: -18px;'>" +
data[i].SkillName +
"</div>" +
"<div class='col-md-2' style='margin-top: -17px;margin-left: 515px;'>" +
" Experience" +
"</div>" +
"<div class='col-md-2' style='margin-left: 700px;margin-top: -18px;'>" +
data[i].ExperienceYears +" Year"+
" </div>" +
"<div class='col-md-2' style='margin-left: 800px;margin-top: -18px;'>" +
data[i].ExperienceMonths +" Month"+
" </div>" +
"</div>" +
"</div>");
$("#skill").append(div);
}
}
})
});
$(document).ready(function () {
$("#my_button").click(function () {
var kendoddl = $("<tr><td> Skill</td><td>" +
"<input id='txtnewStages'style='width:220px; margin-left: 64px;margin-top:-22px;' placeholder=' Skill' " +
+count + "' name='DynamicTextBoxSkill1' validationmessage = ' * ' required/></td>");
$("#my_table").append(kendoddl);
var name = "txtnewStages" + count;
$.ajax({
type: "get",
url: "GetAllSkillList",
//data: model,
datatype: "json",
success: function (data) {
if (data) {
debugger;
$("#txtnewStages").kendoDropDownList({
dataTextField: "SkillName",
dataValueField: "SkillId",
dataSource: data,
height: 100
})
.attr("id", name);
//$("#txtnewStages"+count).kendoDropDownList({
// dataTextField: "SkillName",
// dataValueField:" SkillId",
// //dataSource: {
// // transport: {
// // read: {
// // url: "http://kencloudecosysapi.azurewebsites.net/api/Skill",
// // dataType: "json"
// // }
// // },
// // schema: {
// // model: {
// // id: "SkillId"
// // }
// // }
// //}
// dataSource: data,
//});
return true;
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
debugger;
new_row = "<td>Experience</td><td><input type='text' id='txtExYear' name='DynamicTextBoxYear' style='width:100px;float: left;margin-top:-5px;margin-left: 120px;' placeholder='Year'/></td><td><input type='text' id='txtExMonth' name='DynamicTextBoxMonth' style='width:100px;float: left;margin-top:-5px;margin-left: -24px;' placeholder='Month'/><td>" + "<td><span class='km-icon km-trash' onclick='removeRow(this)' style='cursor:pointer'></span></td>" +
"</tr>";
$("#my_table").append(new_row);
localStorage.setItem("Count", count);
count = count + 1;
return null;
})
})
// DELETE TABLE ROW.
function removeRow(oButton) {
debugger
var empTab = document.getElementById('my_table');
//empTab.deleteRow(oButton.parentNode.parentNode.rowIndex); // BUTTON -> TD -> TR.
empTab.deleteRow(oButton.parentNode.parentNode.rowIndex);
}
function createbtn() {
debugger;
var valuesSkill = "";
var valuesExYear = "";
var valuesExMonth = "";
$("input[name=DynamicTextBoxSkill]").each(function () {
debugger;
valuesSkill += $(this).val() + ",";
});
$("input[name=DynamicTextBoxYear]").each(function () {
debugger;
valuesExYear += $(this).val() + ",";
});
$("input[name=DynamicTextBoxMonth]").each(function () {
debugger;
valuesExMonth += $(this).val() + ",";
});
//txtnewStages
var cnt=localStorage.getItem("Count");
var SkillId = [];
var skill="";
SkillId.push($("#DrpSkill").data("kendoDropDownList").value());
for (var i = 0; i <= cnt; i++)
{
SkillId.push($('#txtnewStages' + i).data("kendoDropDownList").value());
skill += SkillId[i]+ ",";
}
var depModel = {
ApplicantFirstName: $("#txtFName").val(),
ApplicantMiddleName: $("#txtMName").val(),
ApplicantLastName: $("#txtLName").val(),
ContactNo: $("#txtContact").val(),
ApplicantDOB: $("#DOB").data("kendoDatePicker").value(),
//Gender:$("#txtFName").val(),
EmailId: $("#txtEmail").val(),
MaritalStatusId: $("#DrpMStatus").data("kendoDropDownList").value(),
NationalityId: $("#DrpNationality").data("kendoDropDownList").value(),
CasteId: $('#DrpCastey').data("kendoDropDownList").value(),
ReligionId: $('#DrpRel').data("kendoDropDownList").value(),
//Address DrpCountry
CountryId: $('#DrpCountry').data("kendoDropDownList").value(),
StateId: $('#DrpState').data("kendoDropDownList").value(),
CityId: $('#DrpCity').data("kendoDropDownList").value(),
AddressZIP: $("#txtZip").val(),
AddressStreet1: $("#txtstreet1").val(),
AddressStreet2: $("#txtstreet2").val(),
//company
//Certificate
CertificateName: $("#CertificateName").val(),
//IsSameAsContactAddress: $("#txtFName").val(),
ProjectTypeId: $("#DrpProType").data("kendoDropDownList").value(),
}
var model = {
"resumeRepository": depModel,
"skill": SkillId,
"ExYear": valuesExYear,
"ExMonth": valuesExMonth
}
$.ajax({
type: "POST",
url: "CreateResume",
data: model,
dataType: "json",
success: function (data) {
if (data == "OK") {
debugger;
Refresh();
var grid = $('#grid').data("kendoGrid");
grid.dataSource.read();
return true;
}
else
return false;
},
error: function (err) {
//alert("fail");
}
});
}
</script>
@*Company*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible4" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible4" class="lbl-toggle" style="width:167px;margin-bottom:5px">Company </label>
<div class="collapsible-content">
<input id="collapsible4_1" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible4_1" class="lbl-toggle" style="margin-bottom:5px;margin-left: 39px;">Company Details</label>
<div class="collapsible-content">
<div id="CompanyDet"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Company Name
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtCompany")
.HtmlAttributes(new { placeholder = "Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;border:none" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Designation
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtDesignation")
.HtmlAttributes(new { placeholder = "Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-2" style="margin-left: 45px;">
Duration
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBox()
.Name("txtdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width: 100px;margin-left:199px;margin-top:-22px;border:none " }))
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBox()
.Name("txtdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:317px;border:none" }))
</div>
<div class="col-md-3" style="float: left;margin-top:-31px;margin-left: 515px;">
Company's Website
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtWebsite")
.HtmlAttributes(new { placeholder = "Company website", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Country
</div>
<div class="col-md-4">*@
@*@(Html.Kendo().TextBox()
.Name("txtComCountry")
.HtmlAttributes(new { placeholder = "Country", required = "required", validationmessage = " * ", style = "border:none;width: 220px;margin-left:199px;margin-top:-22px;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCountry")
.DataTextField("CountryName")
.DataValueField("CountryId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetCountry", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width: 220px;margin-left:199px;margin-top:-22px; " })
)*@
@*</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
State
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtComState")
.HtmlAttributes(new { placeholder = "State", required = "required", validationmessage = " * ", style = "border:none;width:220px;float: left;margin-top:-35px;margin-left:726px;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumState")
.DataTextField("StateName")
.DataValueField("StateId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetState", "ResumeRepository")
.Data("filterCumCountry");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumCountry")
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
City
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBox()
.Name("txtComCity")
.HtmlAttributes(new { placeholder = "City", required = "required", validationmessage = " * ", style = "border:none;width: 220px;margin-left:199px;margin-top:-22px;" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpCumCity")
.DataTextField("CityName")
.DataValueField("CityId")
.OptionLabel("--Select--")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCity", "ResumeRepository")
.Data("filterCumState");
})
.ServerFiltering(true);
})
.CascadeFrom("DrpCumState")
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)*@
@*</div>
</div>*@
</div>
@*<div id="my_tableCompany" style="margin-left: -41px;"></div>
<div class="km-icon km-add" id="my_buttonCompany" style="cursor:pointer">Add Another Company Details </div>*@
</div>
</div>
@*************************************************Creating dynamic textbox fro Company************************@
<script>
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppCompanybyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data1) {
debugger;
var tbl = $("#CompanyDet").val();
//foreach(var ad in Address)
//{
var count = data1.length;
for (var i = 0; i < count; i++) {
debugger;
var divvcom = $("<div style='border-width: 1px; margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>"+
"<div class='col-md-12' style='margin-left: 25px;padding-top: 15px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
" Company Name</div>"+
"<div class='col-md-3' style = 'width:220px;margin-left:199px;margin-top:-22px;'>" +
data1[i].ApplicantCompanyName +
"</div><div class='col-md-3' style='float: left;margin-top: -14px; margin-left: 515px;'>"+
"Designation</div>"+
"<div class='col-md-3' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;' >" +
data1[i].ApplicantDesignation +
"</div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-2' style='margin-left: 45px;'>"+
"Duration</div>"+
"<div class='col-md-2' style ='width: 100px;margin-left:199px;margin-top:-22px; ' >" +
data1[i].DurationYear + " Year" +
"</div><div class='col-md-2' style ='width:100px;float: left;margin-left: 247px;margin-top: -18px;' >" +
data1[i].DurationMonth + " Month" +
"</div><div class='col-md-3' style='float: left;margin-top: -15px;;margin-left: 515px;'>" +
" Company's Website</div><div class='col-md-3' style ='width:220px;float: left;margin-top: -15px;margin-left:726px;' >" +
data1[i].CompanyWebSite +
" </div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;'>"+
"Country</div>" +
//"<span style='display:none' id='ComCountryDynId" + Com + "'>" + ComCountryId + "</span>" +
"<div class='col-md-4' style = 'width: 220px;margin-left:199px;margin-top:-22px;'>" +
data1[i].CountryName +
"</div><div class='col-md-3' style='float: left;margin-top: -15px;margin-left: 515px;'>" +
" State</div>" +
//"<span style='display:none' id='ComStateDynId" + Com + "'>" + ComStateId + "</span>" +
"<div class='col-md-3' style='margin-top: -15px;margin-left: 726px;'>"+
data1[i].StateName +
"</div></div><div class='col-md-12' style='margin-left: 25px;padding-bottom: 15px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>"+
"City"+
"</div>" +
"<div class='col-md-3' style='margin-top: -15px;margin-left: 198px;' >" +
data1[i].City +
"</div>");
$("#CompanyDet").append(divvcom);
}
}
})
});
</script>
<script>
var count = 0;
$(document).ready(function () {
debugger;
$("#my_buttonCompany").click(function () {
debugger;
//new_row = "<table><tr><td> Skill</td><td><input type='text' id='txtnewStages' style='width:209px; font-size: 14px; margin-right: 67px; margin-left: 103px;margin-top:-22px;' placeholder=' Skill' "
// + count + "' name='DynamicTextBoxSkill' validationmessage = ' * ' required/>" +
// "</td><td>Experience</td><td><input type='text' id='txtExYear' name='DynamicTextBoxYear' style='width:100px;float: left;margin-top:-5px;margin-left: 120px;' placeholder='Year'/></td><td><input type='text' id='txtExMonth' name='DynamicTextBoxMonth' style='width:100px;float: left;margin-top:-5px;margin-left: -24px;' placeholder='Month'/><td>" + "<td><span class='km-icon km-trash' onclick='removeRow(this)' style='cursor:pointer'></span></td>" +
// "</tr></table>";
//new_row = "<div class='collapsible-content'>" +
// "<input id='collapsible4_2' class='toggle' type='checkbox' style='visibility:hidden'>" +
// "<label for='collapsible4_2' class='lbl-toggle' style='margin-bottom:5px;margin-left: 39px;'>Company Details</label>" +
// "<div class='collapsible-content'>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "Company Name" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewComName' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder=' Company Name' "
// + count + "' name='DynamicTextBoxComName' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "Designation" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewDesignation' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' designation' "
// + count + "' name='DynamicTextBoxDesignation' validationmessage = ' * ' required/>" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-2' style='margin-left: 45px;'>" +
// " Duration" +
// "</div>" +
// "<div class='col-md-2'>" +
// "<input type='text' id='txtnewComDurYear' style='width: 100px;margin-left:199px;margin-top:-22px;' placeholder='Year' "
// + count + "' name='DynamicTextBoxComDurYear' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-2'>" +
// "<input type='text' id='txtnewComDurMonth' style='width:100px;float: left;margin-top:-35px;margin-left:317px;' placeholder='Month' "
// + count + "' name='DynamicTextBoxComDurMonth' validationmessage = ' * ' required/>" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "Company's Website" +
// "</div>" +
// "<div class='col-md-3'>" +
// "<input type='text' id='txtnewComWeb' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' Company website' "
// + count + "' name='DynamicTextBoxComWeb' validationmessage = ' * ' required/>" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "Country" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
// "State" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "</div>" +
// "<div class='col-md-12' style='margin-left: 25px;'>" +
// "<div class='col-md-3' style='margin-left: 45px;'>" +
// "City" +
// "</div>" +
// "<div class='col-md-3'>" +
// "" +
// "</div>" +
// "</div>" +
// "</div>" +
// "</div>";
new_row = "<div style='margin-bottom:5px;margin-left: 39px; margin-top: 17px;'>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Company Name" +
"</div>" +
"<div class='col-md-3' style='width: 220px;margin-left: 3px;margin-top: -14px;'>" +
"<input type='text' id='txtnewComName' style='width:220px;margin-left:199px;margin-top:-22px;' placeholder=' Company Name' "
+ count + "' name='DynamicTextBoxComName' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
"Designation" +
"</div>" +
"<div class='col-md-3'>" +
"<input type='text' id='txtnewDesignation' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' designation' "
+ "' name='DynamicTextBoxDesignation' validationmessage = ' * ' required/>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-2' style='margin-left: 45px;margin-left: 49px;margin-top: 3px;'>" +
" Duration" +
"</div>" +
"<div class='col-md-2' style='margin-top: -20px;'>" +
"<input type='text' id='txtnewComDurYear' style='width: 100px;margin-left:202px;margin-top:0px;' placeholder='Year' "
+ "' name='DynamicTextBoxComDurYear' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-2'>" +
"<input type='text' id='txtnewComDurMonth' style='width:100px;float: left;margin-top:-35px;margin-left:317px;' placeholder='Month' "
+ "' name='DynamicTextBoxComDurMonth' validationmessage = ' * ' required/>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 86px;'>" +
"Company's Website" +
"</div>" +
"<div class='col-md-3'>" +
"<input type='text' id='txtnewComWeb' style='width:220px;float: left;margin-top:-35px;margin-left:726px;' placeholder=' Company website' "
+ "' name='DynamicTextBoxComWeb' validationmessage = ' * ' required/>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"Country" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='sel'>" +
"<option value=''>-- Select --</option>" +
"</select>" +
"</div>" +
"<div class='col-md-3' style='float: left;margin-top: -31px; margin-left: 515px;'>" +
"State" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='state'>" +
"<option value=''>-- Select --</option>" +
"</select>" +
"</div>" +
"</div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;'>" +
"City" +
"</div>" +
"<div class='col-md-3'>" +
"<select id='con'>" +
"<option value=''>-- Select --</option>" +
"</select>" +
"</div>" +
"</div>" +
"</div>";
$("#my_tableCompany").append(new_row);
count = count + 1;
var url = "/ResumeRepository/GetCountry";
$.getJSON(url, function (data) {
$.each(data, function (index, value) {
// APPEND OR INSERT DATA TO SELECT ELEMENT.
debugger;
$('#sel').append('<option value="' + value.ID + '">' + value.Name + '</option>');
});
});
return false;
})
})
//$(document).ready(function () {
//debugger;
//var url = "/ResumeRepository/GetCountry";
//$.getJSON(url, function (data) {
// $.each(data, function (index, value) {
// // APPEND OR INSERT DATA TO SELECT ELEMENT.
// debugger;
// $('#sel').append('<option value="' + value.ID + '">' + value.Name + '</option>');
// });
//});
//})
// DELETE TABLE ROW.
function removeRow(oButton) {
debugger
var empTab = document.getElementById('my_table');
empTab.deleteRow(oButton.parentNode.parentNode.rowIndex); // BUTTON -> TD -> TR.
}
</script>
<script>
function filterCumCountry() {
return {
Country: $("#DrpCumCountry").val()
};
}
</script>
<script>
function filterCumState() {
return {
State: $("#DrpCumState").val()
};
}
</script>
@*Project*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible5" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible5" class="lbl-toggle" style="width:167px;margin-bottom:5px">Project </label>
<div class="collapsible-content">
<label style="margin-bottom:5px;margin-left: 39px;">Project Details</label>
<div id="Project"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Project Name
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ApplicantProjectTitle)
.Name("txtProjectname")
.HtmlAttributes(new { placeholder = "Company Name,", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;border:none;", @readonly = "readonly" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Status
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ApplicantProjectStatus)
.Name("txtProStatus")
.HtmlAttributes(new { placeholder = "Designation", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Client Name
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ClientName)
.Name("txtClientName")
.HtmlAttributes(new { placeholder = "Client Name", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px;border:none ", @readonly = "readonly" }))
</div>
<div class="col-md-2" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Duration
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBoxFor(m => m.ProjectDurationYear)
.Name("txtProjdurationFrom")
.HtmlAttributes(new { placeholder = "year", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:726px;border:none", @readonly = "readonly" }))
</div>
<div class="col-md-2">*@
@*@(Html.Kendo().TextBoxFor(m => m.ProjectDurationMonth)
.Name("txtProjdurationTo")
.HtmlAttributes(new { placeholder = "Month", required = "required", validationmessage = " * ", style = "width:100px;float: left;margin-top:-35px;margin-left:845px;border:none", @readonly = "readonly" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Team SIze
</div>
<div class="col-md-4">*@
@*@(Html.Kendo().TextBoxFor(m => m.TeamSize)
.Name("txtProjectTSize")
.HtmlAttributes(new { placeholder = "team size", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;border:none" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Project Type
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ProjectTypeName)
.Name("txtProjectType")
.HtmlAttributes(new { placeholder = "Project type", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none" ,@readonly="readonly" }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpProType")
.DataTextField("ProjectTypeName")
.DataValueField("ProjectTypeId")
.OptionLabel("--Select--")
.DataSource(read => read.Read("GetAllProjcetTypeList", "ResumeRepository"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new { style = "width:220px;float: left;margin-top:-35px;margin-left:726px;" })
)*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Role
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.RoleDescription)
.Name("txtProjectRole")
.HtmlAttributes(new { placeholder = "Role", required = "required", validationmessage = " * ", style = "width:220px;margin-left:199px;margin-top:-22px;border:none" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px;margin-left: 515px;">
URL
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ProjectUrl)
.Name("txtProjectURL")
.HtmlAttributes(new { placeholder = "URL", required = "required", validationmessage = " * ", style = "width:220px;float: left;margin-top:-35px;margin-left:726px;border:none" }))
</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Skill Used
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.SkillName)
.Name("txtProjectSkill")
.HtmlAttributes(new { placeholder = "skill", required = "required", validationmessage = " * ", style = "width: 220px;margin-left:199px;margin-top:-22px;border:none; ", }))*@
@*@(Html.Kendo().DropDownList()
.Name("DrpProjectSkill")
.DataTextField("MaritalStatus")
.DataValueField("MaritalStatusId")
.OptionLabel("--Select--")
//.DataSource(read => read.Read("GetCountry", "InterviewVenue"))
//.Events(e => e.Change("BulkAction"))
.Value("0")
.HtmlAttributes(new
{
style = "width: 220px;margin-left:199px;margin-top:-22px; "
})
)*@
@*</div>
<div class="col-md-3" style="margin-left: 515px; margin-top: -37px;">
Description
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m => m.ProjectDescription)
.Name("txtProDesc")
.HtmlAttributes(new { placeholder = "skill", required = "required", validationmessage = " * ", style = "width:220px;margin-left: 726px;margin-top:-32px;height:50px;border:none;", multiline = "True" }))
@*<textarea id="txtstreet1" style="width:220px;margin-left: 199px;margin-top:-24px;" placeholder="street",></textarea>*@
@*<textarea style="width:220px;margin-left: 199px;margin-top:-17px;height:50px;border:none;" maxlength="200" required class="k-input k-textbox" id="txtProDesc" placeholder="street" multiline="True"></textarea>*@
@*</div>
</div>*@
</div>
</div>
<script>
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppProbyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var tbl = $("#Project").val();
//foreach(var ad in Address)
//{
var count = data.length;
for (var i = 0; i < count; i++) {
var divv = $("<div style='border-width: 1px;width: 988px;margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
" <div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;border-width: 1px;margin-right: 164px;margin-top: 10px;''>" +
" Project Name"+
"</div><div class='col-md-3' id='ProNameDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].ApplicantProjectTitle +
" </div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
"Project Status"+
" </div><div class='col-md-3' id='ProStausDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ApplicantProjectStatus +
"</div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>Client Name</div>" +
"<div class='col-md-3' id='ProClientDyn' style = 'width: 220px;margin-left:199px;margin-top:-18px; '>" +
data[i].ClientName +
" </div><div class='col-md-2' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
"Project Duration</div>"+
"<div class='col-md-2' id='ProyearDyn' style = 'width:100px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectDurationYear +
"</div><div class='col-md-2' id='PromonthDyn' style = 'width:100px;float: left;margin-top:-18px;margin-left:845px;'>" +
data[i].ProjectDurationMonth +
"</div></div>"+
"<div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Team SIze</div>"+
"<div class='col-md-4' id='ProTeamSizeDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].TeamSize +
"</div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>"+
" Project Type</div>"+
"<div class='col-md-3' id='ProTypeTextDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectTypeName +
"</div>" + "</div><div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Role</div>"+
"<div class='col-md-3' id='ProRoleDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].RoleDescription +
"</div><div class='col-md-3' style='float: left;margin-top: 0px;margin-left: 515px;'>"+
"URL</div><div class='col-md-3' id='ProurlDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectUrl +
" </div></div><div class='col-md-12' style='margin-left: 25px;'>"+
"<div class='col-md-3' style='margin-left: 45px;margin-top: 25px;'>" +
"Skill Used</div><div class='col-md-3' id='ProskillDyn' style = 'width: 220px;margin-left:199px;margin-top:-22px;'>" +
data[i].SkillName +
"</div><div class='col-md-3' style='margin-left:515px;margin-top: -18px;'>" +
" Description</div><div class='col-md-3' id='ProDescDyn' style='width:220px;margin-left: 727px;margin-top:-18px;height:50px;'>" +
data[i].ProjectDescription +
"</div></div></div></div>");
$("#Project").append(divv);
}
}
})
});
</script>
@*Certificate*@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible6" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible6" class="lbl-toggle" style="width:167px;margin-bottom:5px">Certificate</label>
<div class="collapsible-content">
<div id="Certificate"></div>
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Certificate Name
</div>
<div class="col-md-3">*@
@*@(Html.Kendo().TextBoxFor(m=>m.CertificateName)
.Name("CertificateName")
.HtmlAttributes(new { placeholder = "Certificate Name", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;" }))
</div>
<div class="col-md-3" style="float: left;margin-top: -31px; margin-left: 515px;">
Upload
</div>
<div class="col-md-3" style="width: 133px;float: left;margin-top: -7px;margin-left: 726px;">*@
@*@(Html.Kendo().TextBoxFor(m => m.CertificateImageURL)
.Name("imgupl")
.HtmlAttributes(new { placeholder = "", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-22px;border:none;" }))*@
@*@(Html.Kendo().Upload()
.Name("imgupl")
//.Events(events => events
//.Select("onSelect1")
.Async(a => a.Save("UploadImageAsynB", "ResumeRepository")
.AutoUpload(true))
.Multiple(true)
)*@
@*</div>
</div>*@
@*<div class="col-md-12" style="margin-left: 25px;">
@(Html.Kendo().Button()
.Name("btnUploadCertificate")
.Content("Upload")
.HtmlAttributes(new { style = "width: 64px;float: left;margin-top: 5px;margin-left: 727px;border-radius: 6px; " }))
</div>*@
</div>
</div>
<script>
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppCertificatebyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var tbl = $("#Project").val();
var count = data.length;
for (var i = 0; i < count; i++) {
var divv = $("<div style='border-width: 1px;width: 988px;margin-bottom: 10px;height: 86px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
"<div class='col-md-12' style='margin-left: 25px;padding-top: 15px;padding-bottom: 15px;'>"+
"<div class='col-md-3' style='margin-left: 45px;'>"+
"Certificate Name</div>"+
"<div class='col-md-3' style = 'width:220px; margin-left: 199px;margin-top: -18px;border:none;'>" +
data[i].CertificateName+
"</div><div class='col-md-3' style='float: left;margin-top: -19px; margin-left: 515px;'>" +
"Uploaded Document</div>" +
"<div class='col-md-3' style='width: 133px;float: left;margin-top: -35px;;margin-left: 726px;'>" +
"<textarea multiline='True' readonly='readonly' style='border: none;width: 205px;height: 61px;'> " + data[i].CertificateImageURL + "</textarea>" +
"</div></div></div>");
$("#Certificate").append(divv);
}
}
})
});
$(document).ready(function () {
debugger
$.ajax({
type: "GET",
url: "/ResumeRepository/GetAppProbyId",
//data: model,
contentType: "application/json;charset=utf-8",
dataType: "JSON",
success: function (data) {
debugger;
var tbl = $("#Project").val();
//foreach(var ad in Address)
//{
var count = data.length;
for (var i = 0; i < count; i++) {
var divv = $("<div style='border-width: 1px;width: 988px;margin-bottom: 10px;margin-right: 164px;margin-left: 38px;margin-top: 10px;box-shadow: -2px 5px 30px 1px rgba(0,0,0,.176);'>" +
" <div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;border-width: 1px;margin-right: 164px;margin-top: 10px;''>" +
" Project Name" +
"</div><div class='col-md-3' id='ProNameDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].ApplicantProjectTitle +
" </div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>" +
"Project Status" +
" </div><div class='col-md-3' id='ProStausDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ApplicantProjectStatus +
"</div></div><div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>Client Name</div>" +
"<div class='col-md-3' id='ProClientDyn' style = 'width: 220px;margin-left:199px;margin-top:-18px; '>" +
data[i].ClientName +
" </div><div class='col-md-2' style='float: left;margin-top: -18px; margin-left: 515px;'>" +
"Project Duration</div>" +
"<div class='col-md-2' id='ProyearDyn' style = 'width:100px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectDurationYear +
"</div><div class='col-md-2' id='PromonthDyn' style = 'width:100px;float: left;margin-top:-18px;margin-left:845px;'>" +
data[i].ProjectDurationMonth +
"</div></div>" +
"<div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Team SIze</div>" +
"<div class='col-md-4' id='ProTeamSizeDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].TeamSize +
"</div><div class='col-md-3' style='float: left;margin-top: -18px; margin-left: 515px;'>" +
" Project Type</div>" +
"<div class='col-md-3' id='ProTypeTextDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectTypeName +
"</div>" + "</div><div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Role</div>" +
"<div class='col-md-3' id='ProRoleDyn' style = 'width:220px;margin-left:199px;margin-top:-18px;'>" +
data[i].RoleDescription +
"</div><div class='col-md-3' style='float: left;margin-top: -18px;margin-left: 515px;'>" +
"URL</div><div class='col-md-3' id='ProurlDyn' style = 'width:220px;float: left;margin-top:-18px;margin-left:726px;'>" +
data[i].ProjectUrl +
" </div></div><div class='col-md-12' style='margin-left: 25px;'>" +
"<div class='col-md-3' style='margin-left: 45px;margin-top: 10px;'>" +
"Skill Used</div><div class='col-md-3' id='ProskillDyn' style = 'width: 220px;margin-left:199px;margin-top:-22px;'>" +
data[i].SkillName +
"</div><div class='col-md-3' style='margin-left:515px;margin-top: -18px;'>" +
" Description</div><div class='col-md-3' id='ProDescDyn' style='width:220px;margin-left: 727px;margin-top:-18px;height:50px;'>" +
data[i].ProjectDescription +
"</div></div></div></div>");
$("#Project").append(divv);
}
}
})
});
</script>
<style>
.k-widget .k-upload .k-header .k-upload-sync {
width: 150px;
}
</style>
@**************resume**************************************@
<div class="wrap-collabsible" style="margin-left: 56px;">
@*<div class="row" >*@
<input id="collapsible7" class="toggle" type="checkbox" style="visibility:hidden">
<label for="collapsible7" class="lbl-toggle" style="width:167px;margin-bottom:5px">Resume Details</label>
<div class="collapsible-content">
@*<div id="resume">
</div>*@
@*<div class="col-md-12" style="margin-left: 25px;">
<div class="col-md-3" style="margin-left: 45px;">
Upload
</div>
<div class="col-md-3" style="width: 133px;float: left;margin-top: -18px;margin-left: 200px;">*@
@*@(Html.Kendo().TextBoxFor(m => m.ApplicantUploadResume)
.Name("imguplResume")
.HtmlAttributes(new { placeholder = "", required = "required", validationmessage = " * ", style = "width:220px; margin-left: 199px;margin-top:-4px;border:none;" }))*@
@*@(Html.Kendo().Upload()
.Name("imgUpResume")
//.Events(events => events
//.Select("onSelect1")
.Async(a => a.Save("UploadImageAsynResume", "ResumeRepository")
.AutoUpload(true))
.Multiple(true)
)*@
@*@(Html.Kendo().Upload()
.Name("UploadResume")
.HtmlAttributes(new { placeholder = "", required = "required", validationmessage = " * ",/* style = "width:220px; margin-left: 199px;margin-top:-22px;"*/ }))*@
@*</div>
</div>
<div class="col-md-12" style="margin-left: 25px;">*@
@*@(Html.Kendo().Button()
.Name("btnUploadCertificate")
.Content("Upload")
.HtmlAttributes(new { style = "width: 81px;float: left;margin-top: 40px;margin-left: -108px;border-radius: 6px; " }))*@
@*</div>*@
</div>
</div>
Comments
Post a Comment