Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model MaritimeChain.Models.COEApplicationViewModels.COEApplicationModel
- @{
- ViewData["Title"] = "Applicant";
- Layout = "/Views/Shared/_NavLayout.cshtml";
- }
- <!DOCTYPE html>
- <html lang="en">
- <head>
- </head>
- <body>
- @using (Html.BeginForm("SingleApplicantInfo", "COEApplication", FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- <div id="topnav">
- <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="4" class="tableheader">
- Applicant Details
- </td>
- </tr>
- <tr>
- <td>
- Applicant Name
- </td>
- <td width="200px">
- @Model.Name
- </td>
- <td>
- Ship Onboard
- </td>
- <td width="400px">
- @Model.ShipName
- </td>
- </tr>
- <tr>
- <td>
- Agent
- </td>
- <td>
- <a>
- @Model.UserId
- </a>
- </td>
- <td>
- Provisional COE Issued Date
- </td>
- <td>
- @Model.ProvisionalCOEIssuedDate
- </td>
- </tr>
- <tr>
- <td>
- Nationality
- </td>
- <td>
- @Model.Nationality
- </td>
- <td>
- Provisional COE Expiry Date
- </td>
- <td>
- @Model.ProvisionalCOEExpiryDate
- </td>
- </tr>
- <tr>
- <td>
- Blacklisted
- </td>
- <td>
- @Model.Blacklisted
- </td>
- <td>
- Permanent COE Issued Date
- </td>
- <td>
- @Model.PermanentCOEIssuedDate
- </td>
- </tr>
- <tr>
- <td>
- Permanent SSO Expiry Date
- </td>
- <td>
- @Model.PermanentSSOExpiryDate
- </td>
- <td>
- Permanent COE Expiry Date
- </td>
- <td>
- @Model.PermanentCOEExpiryDate
- </td>
- </tr>
- <tr>
- <td>
- Permanent GOC/ROC Expiry Date
- </td>
- <td>
- @Model.PermanentGOCExpiryDate
- </td>
- <td>
- Permanent DCE Expiry Date
- </td>
- <td>
- @Model.PermanentDCEExpiryDate
- </td>
- </tr>
- <tr>
- <td colspan="1" style="border: none">
- @if (Model.RegistrationStatusId == 1)
- {
- <h5>Status: <span class="label label-default">Pending Registration</span></h5>
- }
- else if (Model.RegistrationStatusId == 2)
- {
- <h5>Status: <span class="label label-primary">Pending Approval</span></h5>
- }
- else
- {
- <h5>Status: <span class="label label-success">Approved</span></h5>
- }
- </td>
- <td colspan="3">
- @Html.ActionLink("View Certificate Issued", "CertificateIssued", "COEApplication", new { applicantId = Model.Id }, new { @class = "btn btn-primary" })
- </td>
- </tr>
- @*}*@
- </table>
- <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="4" class="tableheader">
- Applicant Particulars
- </td>
- </tr>
- <tr>
- <td width="300px">
- Agent
- </td>
- <td>
- @Model.Name
- </td>
- </tr>
- <tr>
- <td>
- Applicant Name
- </td>
- <td>
- <div class="form-inline">
- @Html.DropDownListFor(m => m.Title, new SelectList(Model.TitleList.Select(s => s.Text)), Model.Title, new { @class = "form-control", @style = "width: 100; height: 30px; font-size: 14px;" })
- @Html.TextBoxFor(m => m.Name, new {id = "Name", style = "width: 330px; height: 30px; font-size: 14px !important", @class = "form-control"})
- </div>
- </tr>
- <tr>
- <td>
- Date of Birth
- </td>
- <td>
- @if (ViewBag.InfoDOB != null)
- {
- @Html.TextBoxFor(m => m.DateOfBirth, new { style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "DateOfBirth" })
- }
- else
- {
- @Html.TextBoxFor(m => m.DateOfBirth, new { style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "DateOfBirth" })
- @Html.ValidationMessageFor(m => m.DateOfBirth, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Nationality
- </td>
- <td>
- @Html.DropDownListFor(m => m.Nationality, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.Nationality, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Nationality, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Include in Blacklist
- </td>
- <td> @Html.DropDownListFor(m => m.Blacklisted, new SelectList(new[] { "Yes", "No" }), Model.Blacklisted, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- </td>
- </tr>
- <tr>
- <td>
- Ship Onboard
- </td>
- <td>
- @Html.DropDownListFor(m => m.ShipName, new SelectList(Model.ShipList.Select(s => s.ShipName)), Model.ShipName, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- </tr>
- @*}*@
- </table>
- <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="4" class="tableheader">
- Additional Particulars
- </td>
- </tr>
- <tr>
- <td width="300px">
- Place of Birth
- </td>
- <td>
- @Html.DropDownListFor(m => m.PlaceOfBirth, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), "-- Please Select --", new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- <span asp-validation-for="PlaceOfBirth" class="text-danger"></span>
- </td>
- </tr>
- <tr>
- <td>
- Identity Card Number
- </td>
- <td>
- @Html.TextBoxFor(m => m.IdentityCardNo, new { id = "IdentityCardNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Passport Number
- </td>
- <td>
- @Html.TextBoxFor(m => m.PassportNo, new { id = "PassportNo", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Residential Address
- </td>
- <td>
- @Html.TextBoxFor(m => m.Address, new { id = "Address", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Country (Registered Contact Number)
- </td>
- <td>
- @Html.DropDownListFor(m => m.ContactNoCountryCode, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.ContactNoCountryCode, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- </td>
- </tr>
- <tr>
- <td>
- Contact Number <font color="red">*</font>
- </td>
- <td>
- <div class="form-inline">
- <span>Country Code : </span><span style="padding-left: 42px">Contact No:</span><br />
- @Html.TextBoxFor(m => m.AreaCodeId, new { id = "AreaCodeId", style = "width: 100px; height: 30px; font-size: 14px !important", @placeholder = "Area Code", @class = "form-control" }) - @Html.TextBoxFor(m => m.ContactNo, new { id = "ContactNo", style = "width: 270px; height: 30px; font-size: 14px !important", @placeholder = "Contact No", @class = "form-control" })
- <span asp-validation-for="AreaCodeId" class="text-danger"></span>
- <span asp-validation-for="ContactNo" class="text-danger"></span>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- Email Address
- </td>
- <td>
- @Html.TextBoxFor(m => m.Email, new { id = "Email", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Contact Person
- </td>
- <td>
- @Html.TextBoxFor(m => m.ContactPerson, new { id = "ContactPerson", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <td colspan="4" style="text-align: center">
- <input name="submitButton" id="submit" type="submit" value="Update Details" class="btn btn-default" style="" />
- </td>
- @*}*@
- </table>
- </div>
- <br/>
- <br/>
- <div id="info_activation" style="display: none">
- <br />
- <table id="" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="2" class="tableheader">
- Edit Applicant Details
- </td>
- </tr>
- <tr>
- <td width="400px">
- Name as in Certificate of Competency <font color="red">*</font>
- </td>
- <td>
- @Html.TextBoxFor(m => m.Name, new { id = "Name", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- @Html.ValidationMessageFor(m => m.Name, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Date Of Birth<font color="red">*</font>
- </td>
- <td>
- @Model.DateOfBirth.ToString("dd/MM/yyyy")
- </td>
- </tr>
- <tr>
- <td>
- Nationality<font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Nationality, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.Nationality, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Nationality, null ,new {@class ="text-danger"})
- </td>
- @Html.HiddenFor(m => m.Id)
- </tr>
- </table>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
- <input onclick="return fnDeactivate_info()" value="Cancel" style="font-size: 14px" class="btn btn-default" />
- <input name="submitButton" id="submit" type="submit" value="Update Details" class="btn btn-default" style="font-size: 14px" />
- </div>
- <br />
- </div>
- <br />
- <br />
- </div>
- <div>
- <button id="button_activation_sso" onclick="return fnActivate_sso()" class="btn btn-default">SSO Info</button>
- <button id="button_deactivate_sso" style="display: none" onclick="return fnDeactivate_sso()" class="btn btn-default">Close SSO</button>
- <button id="button_activation_coe" onclick="return fnActivate_coe()" class="btn btn-default">COC Info</button>
- <button id="button_deactivate_coe" style="display: none" onclick="return fnDeactivate_coe()" class="btn btn-default">Close COC</button>
- @Html.ActionLink("DCE Info", "DCEForm", "COEApplication", new { applicantId = Model.Id }, new { @class = "btn btn-default" })
- <button id="button_activation_gocroc" onclick="return fnActivate_gocroc()" class="btn btn-default">GOC Info</button>
- <button id="button_deactivate_gocroc" style="display: none" onclick="return fnDeactivate_gocroc()" class="btn btn-default">Close GOC/ROC</button>
- </div>
- <div id="sso_activation" style="display: none">
- <br />
- <p>
- <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
- </p>
- <table id="" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="2" class="tableheader">
- SSO Particulars
- </td>
- </tr>
- <tr>
- <td width="400px">
- SSO Number <font color="red">*</font>
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoNumber, new { id = "Sso.SsoNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- @Html.ValidationMessageFor(m => m.Sso.SsoNumber, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Grade <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Sso.SSOGradeName, new SelectList(Model.PcoeGradeList.Select(s => s.Desc)), Model.Sso.SSOGradeName, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Sso.SSOGradeName, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- STCW Regulation
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoStcwRegulation, new { id = "Sso.SsoStcwRegulation", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Limitations
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoLimitations, new { id = "Sso.SsoLimitations", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Issued Date<font color="red">*</font>
- </td>
- <td>
- @if (@ViewData["SSOIssueDate"] != null)
- {
- @Html.TextBoxFor(m => m.Sso.SsoIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOIssueDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Sso.SsoIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOIssueDate" })
- @Html.ValidationMessageFor(m => m.Sso.SsoIssueDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Expiry Date<font color="red">*</font>
- </td>
- <td>
- @if (@ViewData["SSOExpiryDate"] != null)
- {
- @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOExpiryDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOExpiryDate" })
- @Html.ValidationMessageFor(m => m.Sso.SsoExpiryDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Date of Revalidation
- </td>
- <td>
- @if (@ViewData["SSOExpiryDate"] != null)
- {
- @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSODateOfRevalidation" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSODateOfRevalidation" })
- @Html.ValidationMessageFor(m => m.Sso.SsoExpiryDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Function
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoFunction, new { id = "Sso.SsoFunction", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Level of Functionality
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoLevelOfResponsibility, new { id = "Sso.SsoLevelOfResponsibility", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Endorsement
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoEndorsement, new { id = "Sso.SsoEndorsement", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Issuing Authority <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Sso.SsoIssuingCountry, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.Sso.SsoIssuingCountry, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Sso.SsoIssuingCountry, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Remarks
- </td>
- <td>
- @Html.TextBoxFor(m => m.Sso.SsoRemarks, new { id = "Sso.SsoRemarks", style = "width: 380px; height: 300px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- </table>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
- @Html.ActionLink("Remove", "RemoveSSO", "COEApplication", new { applicantId = Model.Id, From = "Applicant" }, new { @class = "btn btn-default" })
- <input name="submitButton" id="submit" type="submit" value="Update SSO" class="btn btn-default" style="font-size: 14px" />
- </div>
- <br />
- </div>
- </div>
- <div id="coe_activation" style="display: none">
- <br />
- <p>
- <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
- </p>
- <table id="" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="2" class="tableheader">
- Coc Particulars
- </td>
- </tr>
- <tr>
- <td width="400px">
- Coc Number <font color="red">*</font>
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocNumber, new { id = "Coc.CocNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- @Html.ValidationMessageFor(m => m.Coc.CocNumber, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Grade <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Coc.CocGradeName, new SelectList(Model.PcoeGradeList.Select(s => s.Desc)), Model.Coc.CocGradeName, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Coc.CocGradeName, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- STCW Regulation
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocStcwRegulation, new { id = "Coc.CocStcwRegulation", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Limitations
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocLimitations, new { id = "Coc.CocLimitations", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Issued Date<font color="red">*</font>
- </td>
- <td>
- @if (@ViewData["CocIssueDate"] != null)
- {
- @Html.TextBoxFor(m => m.Coc.CocIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocIssueDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Coc.CocIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocIssueDate" })
- @Html.ValidationMessageFor(m => m.Coc.CocIssueDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Expiry Date<font color="red">*</font>
- </td>
- <td>
- @if (@ViewData["CocExpiryDate"] != null)
- {
- @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocExpiryDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocExpiryDate" })
- @Html.ValidationMessageFor(m => m.Coc.CocExpiryDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Date of Revalidation
- </td>
- <td>
- @if (@ViewData["CocExpiryDate"] != null)
- {
- @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocDateOfRevalidation" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocDateOfRevalidation" })
- @Html.ValidationMessageFor(m => m.Coc.CocExpiryDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Function
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocFunction, new { id = "Coc.CocFunction", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Level of Functionality
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocLevelOfFunctionality, new { id = "Coc.CocLevelOfFunctionality", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Endorsement
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocEndorsement, new { id = "Coc.CocEndorsement", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- <tr>
- <td>
- Issuing Authority <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Coc.CocIssuingCountry, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.Coc.CocIssuingCountry, new { @class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;" })
- @Html.ValidationMessageFor(m => m.Coc.CocIssuingCountry, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Remarks
- </td>
- <td>
- @Html.TextBoxFor(m => m.Coc.CocRemarks, new { id = "Coc.CocRemarks", style = "width: 380px; height: 300px; font-size: 14px !important", @class = "form-control" })
- </td>
- </tr>
- </table>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
- @Html.ActionLink("Remove", "RemoveCoc", "COEApplication", new { applicantId = Model.Id , From = "Applicant" }, new { @class = "btn btn-default" })
- <input name="submitButton" id="submit" type="submit" value="Update COC" class="btn btn-default" style="font-size: 14px" />
- </div>
- <br />
- </div>
- </div>
- <div id="gocroc_activation" style="display: none">
- <br />
- <p>
- <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
- </p>
- <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="2" class="tableheader">
- <b>GOC/ROC Particulars</b>
- </td>
- </tr>
- <tr>
- <td width="400px">
- GOC Number <font color="red">*</font>
- </td>
- <td>
- @Html.TextBoxFor(m => m.Goc.GocNumber, new { id = "Goc.GocNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
- @Html.ValidationMessageFor(m => m.Goc.GocNumber, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td width="400px">
- Type of Certificate <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Goc.GocTypeOfCertificateName, new SelectList(Model.CoeTypeOfCertificate.Select(s => s.Desc)), Model.Goc.GocTypeOfCertificateName, new {@class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;"})
- @Html.ValidationMessageFor(m => m.Goc.GocTypeOfCertificateName, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Issuing Authority <font color="red">*</font>
- </td>
- <td>
- @Html.DropDownListFor(m => m.Goc.GocIssuingCountry, new SelectList(Model.NationalityList.Select(s => s.NationalityName)), Model.Goc.GocIssuingCountry, new {@class = "form-control", @style = "width: 380px; height: 30px; font-size: 14px;"})
- @Html.ValidationMessageFor(m => m.Goc.GocIssuingCountry, null, new { @class = "text-danger" })
- </td>
- </tr>
- <tr>
- <td>
- Issued Date <font color="red">*</font>
- </td>
- <td>
- @if (ViewData["GOCIssueDate"] != null)
- {
- @Html.TextBoxFor(m => m.Goc.GocIssuedDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCIssueDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Goc.GocIssuedDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCIssueDate" })
- @Html.ValidationMessageFor(m => m.Goc.GocIssuedDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- <tr>
- <td>
- Expiry Date
- </td>
- <td>
- @if (ViewData["GOCExpiryDate"] != null)
- {
- @Html.TextBoxFor(m => m.Goc.GocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCExpiryDate" })
- }
- else
- {
- @Html.TextBoxFor(m => m.Goc.GocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCExpiryDate" })
- @Html.ValidationMessageFor(m => m.Goc.GocExpiryDate, null, new { @class = "text-danger" })
- }
- </td>
- </tr>
- @Html.HiddenFor(m => m.Id)
- </table>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
- @Html.ActionLink("Remove", "RemoveGOC", "COEApplication", new { applicantId = Model.Id , From = "Applicant" }, new { @class = "btn btn-default" })
- <input name="submitButton" id="submit" type="submit" value="Update GOC/ROC" class="btn btn-default" style="font-size: 14px" />
- </div>
- <br />
- </div>
- </div>
- <br />
- <div id="ship_information" style="display: block">
- <div id="topnav">
- <table class="table table-bordered table-condensed" colspan="2">
- <tr>
- <td colspan="4" class="tableheader">
- <b>Upload Documents</b>
- </td>
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantPhotoFilename))
- {
- <td>
- Photo <br />
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantPhotoFile, null, new { id = "photofile", type = "file", name = "photofile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Photo <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoFilename)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoFilename)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantPhotoFile, null, new { id = "photofile", type = "file", name = "photofile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantCocFileName))
- {
- <td>
- Certificate of Competency
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantCocFile, null, new { id = "cocfile", type = "file", name = "cocfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Certificate Of Competency <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantCocFile, null, new { id = "cocfile", type = "file", name = "cocfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantMcFileName))
- {
- <td>
- Medical Certificate
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantMcFile, null, new { id = "mcfile", type = "file", name = "mcfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Medical Certificate <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantMcFile, null, new { id = "mcfile", type = "file", name = "mcfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantGmdssMcFileName))
- {
- <td>
- Global Maritime Distress and Safety System (GMDSS)
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantGmdssMcFile, null, new { id = "gmdssfile", type = "file", name = "gmdssfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Global Maritime Distress and Safety System (GMDSS) <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantGmdssMcFile, null, new { id = "gmdssfile", type = "file", name = "gmdssfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantSsoFileName))
- {
- <td>
- Ship Security Officer Certificate
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSsoFile, null, new { id = "ssofile", type = "file", name = "ssofile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Ship Security Officer Certificate <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSsoFile, null, new { id = "ssofile", type = "file", name = "ssofile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantAotFileName))
- {
- <td>
- Advanced Oil Tanker Certificate
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAotFile, null, new { id = "aotfile", type = "file", name = "aotfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Advanced Oil Tanker Certificate <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAotFile, null, new { id = "aotfile", type = "file", name = "aotfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantActFileName))
- {
- <td>
- Advanced Chemical Tanker Certificate
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantActFile, null, new { id = "actfile", type = "file", name = "actfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Advanced Chemical Tanker Certificate <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantActUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantActFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantActFileName)</a>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantActFile, null, new { id = "actfile", type = "file", name = "actfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantSatFileName))
- {
- <td>
- Security Awareness Training Certificate
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSatFile, null, new { id = "satfile", type = "file", name = "satfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Security Awareness Training Certificate <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSatFile, null, new { id = "satfile", type = "file", name = "satfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantStwdsdFileName))
- {
- <td>
- Security Training with Designated Security Duties Cert
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantStwdsdFile, null, new { id = "stwdfile", type = "file", name = "stwdfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Security Training with Designated Security Duties Cert
- <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantStwdsdFile, null, new { id = "stwdfile", type = "file", name = "stwdfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantAfiaFileName))
- {
- <td>
- Authentication from Issuing Authority
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAfiaFile, null, new { id = "afiafile", type = "file", name = "afiafile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Authentication from Issuing Authority
- <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaUploadDate)
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAfiaFile, null, new { id = "afiafile", type = "file", name = "afiafile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- </tr>
- <tr>
- @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantOthersFileName))
- {
- <td>
- Others (Please Specify)
- @Html.TextBoxFor(m => m.ApplicantDocument.ApplicantOthersDesc, new { id = "ApplicantDocument.ApplicantOthersDesc", style = "width: 250px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- <td>
- <p>No file uploaded.</p>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantOthersFile, null, new { id = "otherfile", type = "file", name = "otherfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- else
- {
- <td>
- Others (Please Specify)
- <br />
- Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersUploadDate)
- @Html.TextBoxFor(m => m.ApplicantDocument.ApplicantOthersDesc, new { id = "ApplicantDocument.ApplicantOthersDesc", style = "width: 250px; height: 30px; font-size: 14px !important", @class = "form-control" })
- </td>
- <td>
- <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersFileName)</a>
- <p></p>
- @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantOthersFile, null, new { id = "otherfile", type = "file", name = "otherfile", @class = "btn btn-default input-file" })
- <p></p>
- </td>
- }
- <td colspan="2">
- 1. Please upload two files at a time<br />
- 2. Larger files will take longer time to upload <br />
- 3. Each file size is capped at 10MB each and limited to the following file types: <br /> <br />
- Pictures: jpg, gif <br />
- Compressed fies: zip, rar <br />
- Documents: pdf, doc, docx <br />
- </td>
- </tr>
- <tr>
- <td colspan="4" style="text-align: center">
- <input name="submitButton" id="submit" type="submit" value="Upload All Files" class="btn btn-default" style="Width: 400px" />
- </td>
- </tr>
- </table>
- @Html.HiddenFor(m => m.Id)
- </div>
- </div>
- <br /> <br />
- <div id="submission" title="Warning" style="display: none">
- <p>Have you submitted all required files?</p>
- </div>
- <script src="~/lib/jquery/jquery-2.1.1.min.js"></script>
- <script src="~/lib/jquery/jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.js"></script>
- <script type="text/javascript">
- $.datepicker.setDefaults({
- dateFormat: 'm/d/y',
- });
- document.getElementById('photofile').addEventListener('change', checkFileImg, false);
- document.getElementById('cocfile').addEventListener('change', checkFile, false);
- document.getElementById('mcfile').addEventListener('change', checkFile, false);
- document.getElementById('gmdssfile').addEventListener('change', checkFile, false);
- document.getElementById('ssofile').addEventListener('change', checkFile, false);
- document.getElementById('aotfile').addEventListener('change', checkFile, false);
- document.getElementById('actfile').addEventListener('change', checkFile, false);
- document.getElementById('satfile').addEventListener('change', checkFile, false);
- document.getElementById('stwdfile').addEventListener('change', checkFile, false);
- document.getElementById('afiafile').addEventListener('change', checkFile, false);
- document.getElementById('otherfile').addEventListener('change', checkFile, false);
- function checkFile(e) {
- var file_list = e.target.files;
- var photoFile = document.getElementById('photofile').value.substring(document.getElementById('photofile').value.lastIndexOf('\\') + 1);
- var cocFile = document.getElementById('cocfile').value.substring(document.getElementById('cocfile').value.lastIndexOf('\\') + 1);
- var mcFile = document.getElementById('mcfile').value.substring(document.getElementById('mcfile').value.lastIndexOf('\\') + 1);
- var gmdssFile = document.getElementById('gmdssfile').value.substring(document.getElementById('gmdssfile').value.lastIndexOf('\\') + 1);
- var ssoFile = document.getElementById('ssofile').value.substring(document.getElementById('ssofile').value.lastIndexOf('\\') + 1);
- var aotFile = document.getElementById('aotfile').value.substring(document.getElementById('aotfile').value.lastIndexOf('\\') + 1);
- var actFile = document.getElementById('actfile').value.substring(document.getElementById('actfile').value.lastIndexOf('\\') + 1);
- var satFile = document.getElementById('satfile').value.substring(document.getElementById('satfile').value.lastIndexOf('\\') + 1);
- var stwdFile= document.getElementById('stwdfile').value.substring(document.getElementById('stwdfile').value.lastIndexOf('\\') + 1);
- var afiaFile = document.getElementById('afiafile').value.substring(document.getElementById('afiafile').value.lastIndexOf('\\') + 1);
- var otherFile = document.getElementById('otherfile').value.substring(document.getElementById('otherfile').value.lastIndexOf('\\') + 1);
- var arrFileTypeArray = [photoFile, cocFile, mcFile, gmdssFile, ssoFile, aotFile, actFile, satFile,stwdFile,afiaFile, otherFile]
- var arrDuplicateFlag = [0,0,0,0,0,0,0,0,0,0,0,0];
- var isFileDuplicate = false;
- var isFileCondition = false;
- // Loop through and check for duplicates
- for(i = 0; i < arrFileTypeArray.length; i++)
- {
- for(y = 0; y < arrFileTypeArray.length; y++)
- {
- // If file names match, are not empty strings and not at the same index
- if (arrFileTypeArray[i] == arrFileTypeArray[y] && arrFileTypeArray[i].length>0 && arrFileTypeArray[y].length>0 && i != y)
- {
- // Set duplicate file name flag
- isFileDuplicate = true;
- arrFileTypeArray[y].value = null;
- }
- }
- }
- for (var i = 0, file; file = file_list[i]; i++) {
- var sFileName = file.name;
- var sFileExtension = sFileName.split('.')[sFileName.split('.').length - 1].toLowerCase();
- var iFileSize = file.size;
- var iConvert = (file.size / 1048576).toFixed(2);
- if (!(sFileExtension === "pdf" || sFileExtension === "doc" || sFileExtension === "docx" || sFileExtension === "zip" || sFileExtension === "rar" || sFileExtension === "jpg") || sFileExtension === "gif" || iFileSize > 10485760) {
- txt = "Your upload file type : " + sFileExtension ;
- txt += " and size: " + iConvert + " MB \n\n";
- txt += "Make sure your file format is .jpg,.gif,.rar,.doc,or .pdf and file size is less than 10MB.\n";
- txt += "Please select a new valid file to upload.";
- isFileCondition = true;
- }
- }
- if(isFileCondition)
- alert(txt);
- else if(isFileDuplicate)
- alert("Cannot duplicate file for same applicant. Please try again.");
- }
- function checkFileImg(e) {
- var file_list = e.target.files;
- var photoFile = document.getElementById('photofile').value.substring(document.getElementById('photofile').value.lastIndexOf('\\') + 1);
- var cocFile = document.getElementById('cocfile').value.substring(document.getElementById('cocfile').value.lastIndexOf('\\') + 1);
- var mcFile = document.getElementById('mcfile').value.substring(document.getElementById('mcfile').value.lastIndexOf('\\') + 1);
- var gmdssFile = document.getElementById('gmdssfile').value.substring(document.getElementById('gmdssfile').value.lastIndexOf('\\') + 1);
- var ssoFile = document.getElementById('ssofile').value.substring(document.getElementById('ssofile').value.lastIndexOf('\\') + 1);
- var aotFile = document.getElementById('aotfile').value.substring(document.getElementById('aotfile').value.lastIndexOf('\\') + 1);
- var actFile = document.getElementById('actfile').value.substring(document.getElementById('actfile').value.lastIndexOf('\\') + 1);
- var satFile = document.getElementById('satfile').value.substring(document.getElementById('satfile').value.lastIndexOf('\\') + 1);
- var stwdFile= document.getElementById('stwdfile').value.substring(document.getElementById('stwdfile').value.lastIndexOf('\\') + 1);
- var afiaFile = document.getElementById('afiafile').value.substring(document.getElementById('afiafile').value.lastIndexOf('\\') + 1);
- var otherFile = document.getElementById('otherfile').value.substring(document.getElementById('otherfile').value.lastIndexOf('\\') + 1);
- var arrFileTypeArray = [photoFile, cocFile, mcFile, gmdssFile, ssoFile, aotFile, actFile, satFile,stwdFile,afiaFile, otherFile]
- var arrDuplicateFlag = [0,0,0,0,0,0,0,0,0,0,0,0];
- var isFileDuplicate = false;
- var isFileCondition = false;
- // Loop through and check for duplicates
- for(i = 0; i < arrFileTypeArray.length; i++)
- {
- for(y = 0; y < arrFileTypeArray.length; y++)
- {
- // If file names match, are not empty strings and not at the same index
- if (arrFileTypeArray[i] == arrFileTypeArray[y] && arrFileTypeArray[i].length>0 && arrFileTypeArray[y].length>0 && i != y)
- {
- // Set duplicate file name flag
- isFileDuplicate = true;
- arrFileTypeArray[y].value = null;
- }
- }
- }
- for (var i = 0, file; file = file_list[i]; i++) {
- var sFileName = file.name;
- var sFileExtension = sFileName.split('.')[sFileName.split('.').length - 1].toLowerCase();
- var iFileSize = file.size;
- var iConvert = (file.size / 1048576).toFixed(2);
- if (!( sFileExtension === "jpg") || sFileExtension === "gif" || iFileSize > 10485760) {
- txt = "Your upload file type : " + sFileExtension ;
- txt += " and size: " + iConvert + " MB \n\n";
- txt += "Make sure your file format is .jpg or .gif and file size is less than 10MB.\n";
- txt += "Please select a new valid file to upload.";
- isFileCondition = true;
- }
- }
- if(isFileCondition)
- alert(txt);
- else if(isFileDuplicate)
- alert("Cannot duplicate file for same applicant. Please try again.");
- }
- $('#tuv').addClass('active');
- $('.sidebar-menu li.active > .sidebar-submenu').each(function () {
- this.style.setProperty('display', 'block', 'important');
- });
- function fnActivate_sso() {
- $('#sso_activation').show();
- $('#coe_activation').hide();
- $('#gocroc_activation').hide();
- $('#dce_activation').hide();
- $('#button_activation_sso').hide();
- $('#button_deactivate_sso').show();
- fnDeactivate_coe();
- fnDeactivate_dce();
- fnDeactivate_gocroc();
- return false;
- }
- function fnDeactivate_sso() {
- $('#sso_activation').hide();
- $('#button_activation_sso').show();
- $('#button_deactivate_sso').hide();
- return false;
- }
- function fnActivate_coe() {
- $('#sso_activation').hide();
- $('#coe_activation').show();
- $('#gocroc_activation').hide();
- $('#dce_activation').hide();
- $('#button_activation_coe').hide();
- $('#button_deactivate_coe').show();
- fnDeactivate_sso();
- fnDeactivate_dce();
- fnDeactivate_gocroc();
- return false;
- }
- function fnDeactivate_coe() {
- $('#coe_activation').hide();
- $('#button_activation_coe').show();
- $('#button_deactivate_coe').hide();
- return false;
- }
- function fnActivate_dce() {
- $('#sso_activation').hide();
- $('#coe_activation').hide();
- $('#gocroc_activation').hide();
- $('#dce_activation').show();
- $('#button_activation_dce').hide();
- $('#button_deactivate_dce').show();
- fnDeactivate_sso();
- fnDeactivate_coe();
- fnDeactivate_gocroc();
- return false;
- }
- function fnDeactivate_dce() {
- $('#dce_activation').hide();
- $('#button_activation_dce').show();
- $('#button_deactivate_dce').hide();
- return false;
- }
- function fnActivate_gocroc() {
- $('#sso_activation').hide();
- $('#coe_activation').hide();
- $('#gocroc_activation').show();
- $('#dce_activation').hide();
- $('#button_activation_gocroc').hide();
- $('#button_deactivate_gocroc').show();
- fnDeactivate_sso();
- fnDeactivate_coe();
- fnDeactivate_dce();
- return false;
- }
- function fnDeactivate_gocroc() {
- $('#gocroc_activation').hide();
- $('#button_activation_gocroc').show();
- $('#button_deactivate_gocroc').hide();
- return false;
- }
- function fnActivate_info() {
- $('#info_activation').show();
- $('#button_activate_edit_info').hide();
- $('#button_deactivate_edit_info').show();
- return false;
- }
- function fnDeactivate_info() {
- $('#info_activation').hide();
- $('#button_activate_edit_info').show();
- $('#button_deactivate_edit_info').hide();
- return false;
- }
- $(document).ready(function () {
- $("#DateOfBirth").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#DateOfBirth").datepicker("option", "showAnim", "clip");
- $("#SSOIssueDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#SSOIssueDate").datepicker("option", "showAnim", "clip");
- $("#SSOExpiryDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#SSOExpiryDate").datepicker("option", "showAnim", "clip");
- $("#SSODateOfRevalidation").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#SSODateOfRevalidation").datepicker("option", "showAnim", "clip");
- $("#CocIssueDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#CocIssueDate").datepicker("option", "showAnim", "clip");
- $("#CocExpiryDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#CocExpiryDate").datepicker("option", "showAnim", "clip");
- $("#CocDateOfRevalidation").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#CocDateOfRevalidation").datepicker("option", "showAnim", "clip");
- $("#GOCExpiryDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#GOCExpiryDate").datepicker("option", "showAnim", "clip");
- $("#GOCIssueDate").datepicker({
- changeMonth: true,
- changeYear: true,
- yearRange: "-80:+10"
- });
- $("#GOCIssueDate").datepicker("option", "showAnim", "clip");
- });
- $('#txtreason').keyup(function () {
- if (this.value == '')
- $('#err_msg').show();
- else
- $('#err_msg').hide();
- });
- function validateForm() {
- var shipmu = $('#ShipAgeMarkup').val();
- var txtr = $('#txtreason').val();
- if (shipmu == 'No' && txtr == '') {
- return false;
- } else return true;
- }
- function _clear() {
- $(function () {
- $("#submission").dialog({
- modal: true,
- buttons: {
- Ok: function () {
- $(this).dialog("close");
- },
- },
- effect: "slideDown",
- duration: 100000
- });
- });
- }
- </script>
- }
- <div>
- <button class="btn btn-default"><a href="/COEApplication/ApplicantList/">Back</a></button>
- @if (ViewBag.AllCOCExist == true)
- {
- @Html.ActionLink("Complete Registration", "SubmitAll", "COEApplication", new { GroupID = Model.GroupId }, new { @class = "btn btn-default", onclick = "return confirm('Please make sure all necessary files are uploaded.');" })
- }
- @if (ViewBag.NotAllApplicantApproved == true)
- {
- @Html.ActionLink("Approve All Applicants", "ApproveAll", "COEApplication", new { GroupID = Model.GroupId }, new { @class = "btn btn-success", onclick = "return confirm('Are you sure you want to approve all applicants?');" })
- }
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement