Advertisement
Guest User

Untitled

a guest
Feb 28th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.93 KB | None | 0 0
  1. @model MaritimeChain.Models.COEApplicationViewModels.COEApplicationModel
  2. @{
  3. ViewData["Title"] = "Applicant";
  4. Layout = "/Views/Shared/_NavLayout.cshtml";
  5. }
  6. <!DOCTYPE html>
  7. <html lang="en">
  8. <head>
  9. </head>
  10. <body>
  11. @using (Html.BeginForm("SingleApplicantInfo", "COEApplication", FormMethod.Post, new { enctype = "multipart/form-data" }))
  12. {
  13.  
  14. <div id="topnav">
  15.  
  16.  
  17.  
  18. <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
  19. <tr>
  20. <td colspan="4" class="tableheader">
  21. Applicant Details
  22. </td>
  23. </tr>
  24. <tr>
  25. <td>
  26. Applicant Name
  27. </td>
  28. <td width="200px">
  29. @Model.Name
  30. </td>
  31. <td>
  32. Ship Onboard
  33. </td>
  34. <td width="400px">
  35. @Model.ShipName
  36. </td>
  37. </tr>
  38. <tr>
  39. <td>
  40. Agent
  41. </td>
  42. <td>
  43. <a>
  44. @Model.UserId
  45. </a>
  46. </td>
  47. <td>
  48. Provisional COE Issued Date
  49. </td>
  50. <td>
  51. @Model.ProvisionalCOEIssuedDate
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>
  56. Nationality
  57. </td>
  58. <td>
  59. @Model.Nationality
  60. </td>
  61. <td>
  62. Provisional COE Expiry Date
  63. </td>
  64. <td>
  65. @Model.ProvisionalCOEExpiryDate
  66. </td>
  67. </tr>
  68. <tr>
  69. <td>
  70. Blacklisted
  71. </td>
  72. <td>
  73. @Model.Blacklisted
  74. </td>
  75. <td>
  76. Permanent COE Issued Date
  77. </td>
  78. <td>
  79. @Model.PermanentCOEIssuedDate
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. Permanent SSO Expiry Date
  85. </td>
  86. <td>
  87. @Model.PermanentSSOExpiryDate
  88. </td>
  89. <td>
  90. Permanent COE Expiry Date
  91. </td>
  92. <td>
  93. @Model.PermanentCOEExpiryDate
  94. </td>
  95. </tr>
  96. <tr>
  97. <td>
  98. Permanent GOC/ROC Expiry Date
  99. </td>
  100. <td>
  101. @Model.PermanentGOCExpiryDate
  102. </td>
  103. <td>
  104. Permanent DCE Expiry Date
  105. </td>
  106. <td>
  107. @Model.PermanentDCEExpiryDate
  108. </td>
  109. </tr>
  110. <tr>
  111.  
  112. <td colspan="1" style="border: none">
  113. @if (Model.RegistrationStatusId == 1)
  114. {
  115. <h5>Status: <span class="label label-default">Pending Registration</span></h5>
  116. }
  117. else if (Model.RegistrationStatusId == 2)
  118. {
  119. <h5>Status: <span class="label label-primary">Pending Approval</span></h5>
  120. }
  121. else
  122. {
  123. <h5>Status: <span class="label label-success">Approved</span></h5>
  124. }
  125. </td>
  126. <td colspan="3">
  127. @Html.ActionLink("View Certificate Issued", "CertificateIssued", "COEApplication", new { applicantId = Model.Id }, new { @class = "btn btn-primary" })
  128. </td>
  129.  
  130.  
  131. </tr>
  132.  
  133. @*}*@
  134.  
  135. </table>
  136.  
  137. <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
  138. <tr>
  139. <td colspan="4" class="tableheader">
  140. Applicant Particulars
  141. </td>
  142. </tr>
  143.  
  144. <tr>
  145. <td width="300px">
  146. Agent
  147. </td>
  148. <td>
  149. @Model.Name
  150. </td>
  151. </tr>
  152. <tr>
  153. <td>
  154. Applicant Name
  155. </td>
  156. <td>
  157. <div class="form-inline">
  158.  
  159. @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;" })
  160. @Html.TextBoxFor(m => m.Name, new {id = "Name", style = "width: 330px; height: 30px; font-size: 14px !important", @class = "form-control"})
  161. </div>
  162. </tr>
  163. <tr>
  164. <td>
  165. Date of Birth
  166. </td>
  167. <td>
  168. @if (ViewBag.InfoDOB != null)
  169. {
  170. @Html.TextBoxFor(m => m.DateOfBirth, new { style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "DateOfBirth" })
  171. }
  172. else
  173. {
  174. @Html.TextBoxFor(m => m.DateOfBirth, new { style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "DateOfBirth" })
  175. @Html.ValidationMessageFor(m => m.DateOfBirth, null, new { @class = "text-danger" })
  176. }
  177. </td>
  178. </tr>
  179. <tr>
  180. <td>
  181. Nationality
  182. </td>
  183. <td>
  184. @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;" })
  185. @Html.ValidationMessageFor(m => m.Nationality, null, new { @class = "text-danger" })
  186. </td>
  187.  
  188. </tr>
  189. <tr>
  190. <td>
  191. Include in Blacklist
  192.  
  193. </td>
  194. <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;" })
  195. </td>
  196.  
  197. </tr>
  198. <tr>
  199. <td>
  200. Ship Onboard
  201. </td>
  202. <td>
  203. @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;" })
  204.  
  205. </tr>
  206.  
  207.  
  208. @*}*@
  209. </table>
  210.  
  211. <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
  212. <tr>
  213. <td colspan="4" class="tableheader">
  214. Additional Particulars
  215. </td>
  216. </tr>
  217.  
  218. <tr>
  219. <td width="300px">
  220. Place of Birth
  221. </td>
  222. <td>
  223. @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;" })
  224. <span asp-validation-for="PlaceOfBirth" class="text-danger"></span>
  225. </td>
  226. </tr>
  227. <tr>
  228. <td>
  229. Identity Card Number
  230. </td>
  231. <td>
  232. @Html.TextBoxFor(m => m.IdentityCardNo, new { id = "IdentityCardNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  233. </td>
  234. </tr>
  235. <tr>
  236. <td>
  237. Passport Number
  238. </td>
  239. <td>
  240. @Html.TextBoxFor(m => m.PassportNo, new { id = "PassportNo", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  241. </td>
  242. </tr>
  243. <tr>
  244. <td>
  245. Residential Address
  246. </td>
  247. <td>
  248. @Html.TextBoxFor(m => m.Address, new { id = "Address", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  249. </td>
  250.  
  251. </tr>
  252. <tr>
  253. <td>
  254. Country (Registered Contact Number)
  255. </td>
  256. <td>
  257. @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;" })
  258. </td>
  259. </tr>
  260.  
  261. <tr>
  262. <td>
  263. Contact Number <font color="red">*</font>
  264. </td>
  265. <td>
  266. <div class="form-inline">
  267.  
  268. <span>Country Code : </span><span style="padding-left: 42px">Contact No:</span><br />
  269. @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" })
  270. <span asp-validation-for="AreaCodeId" class="text-danger"></span>
  271. <span asp-validation-for="ContactNo" class="text-danger"></span>
  272. </div>
  273. </td>
  274. </tr>
  275.  
  276. <tr>
  277. <td>
  278. Email Address
  279. </td>
  280. <td>
  281. @Html.TextBoxFor(m => m.Email, new { id = "Email", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  282. </td>
  283.  
  284. </tr>
  285. <tr>
  286. <td>
  287. Contact Person
  288. </td>
  289. <td>
  290. @Html.TextBoxFor(m => m.ContactPerson, new { id = "ContactPerson", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  291. </td>
  292.  
  293. </tr>
  294. <td colspan="4" style="text-align: center">
  295. <input name="submitButton" id="submit" type="submit" value="Update Details" class="btn btn-default" style="" />
  296. </td>
  297. @*}*@
  298. </table>
  299.  
  300.  
  301. </div>
  302. <br/>
  303. <br/>
  304.  
  305. <div id="info_activation" style="display: none">
  306. <br />
  307.  
  308.  
  309. <table id="" class="table table-bordered table-condensed" colspan="2">
  310. <tr>
  311. <td colspan="2" class="tableheader">
  312. Edit Applicant Details
  313. </td>
  314. </tr>
  315. <tr>
  316. <td width="400px">
  317.  
  318. Name as in Certificate of Competency <font color="red">*</font>
  319.  
  320. </td>
  321. <td>
  322. @Html.TextBoxFor(m => m.Name, new { id = "Name", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  323. @Html.ValidationMessageFor(m => m.Name, null, new { @class = "text-danger" })
  324. </td>
  325. </tr>
  326. <tr>
  327. <td>
  328. Date Of Birth<font color="red">*</font>
  329. </td>
  330. <td>
  331. @Model.DateOfBirth.ToString("dd/MM/yyyy")
  332. </td>
  333. </tr>
  334. <tr>
  335. <td>
  336. Nationality<font color="red">*</font>
  337.  
  338. </td>
  339. <td>
  340. @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;" })
  341. @Html.ValidationMessageFor(m => m.Nationality, null ,new {@class ="text-danger"})
  342. </td>
  343.  
  344. @Html.HiddenFor(m => m.Id)
  345.  
  346. </tr>
  347. </table>
  348. <div class="form-group">
  349. <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
  350. <input onclick="return fnDeactivate_info()" value="Cancel" style="font-size: 14px" class="btn btn-default" />
  351.  
  352. <input name="submitButton" id="submit" type="submit" value="Update Details" class="btn btn-default" style="font-size: 14px" />
  353. </div>
  354. <br />
  355. </div>
  356. <br />
  357. <br />
  358. </div>
  359.  
  360. <div>
  361.  
  362. <button id="button_activation_sso" onclick="return fnActivate_sso()" class="btn btn-default">SSO Info</button>
  363. <button id="button_deactivate_sso" style="display: none" onclick="return fnDeactivate_sso()" class="btn btn-default">Close SSO</button>
  364.  
  365. <button id="button_activation_coe" onclick="return fnActivate_coe()" class="btn btn-default">COC Info</button>
  366. <button id="button_deactivate_coe" style="display: none" onclick="return fnDeactivate_coe()" class="btn btn-default">Close COC</button>
  367.  
  368. @Html.ActionLink("DCE Info", "DCEForm", "COEApplication", new { applicantId = Model.Id }, new { @class = "btn btn-default" })
  369.  
  370.  
  371. <button id="button_activation_gocroc" onclick="return fnActivate_gocroc()" class="btn btn-default">GOC Info</button>
  372. <button id="button_deactivate_gocroc" style="display: none" onclick="return fnDeactivate_gocroc()" class="btn btn-default">Close GOC/ROC</button>
  373.  
  374.  
  375. </div>
  376.  
  377.  
  378. <div id="sso_activation" style="display: none">
  379. <br />
  380.  
  381. <p>
  382. <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
  383. </p>
  384.  
  385. <table id="" class="table table-bordered table-condensed" colspan="2">
  386. <tr>
  387. <td colspan="2" class="tableheader">
  388. SSO Particulars
  389. </td>
  390. </tr>
  391. <tr>
  392. <td width="400px">
  393.  
  394. SSO Number <font color="red">*</font>
  395.  
  396. </td>
  397. <td>
  398. @Html.TextBoxFor(m => m.Sso.SsoNumber, new { id = "Sso.SsoNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  399. @Html.ValidationMessageFor(m => m.Sso.SsoNumber, null, new { @class = "text-danger" })
  400.  
  401.  
  402. </td>
  403. </tr>
  404.  
  405. <tr>
  406. <td>
  407. Grade <font color="red">*</font>
  408. </td>
  409. <td>
  410. @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;" })
  411. @Html.ValidationMessageFor(m => m.Sso.SSOGradeName, null, new { @class = "text-danger" })
  412. </td>
  413. </tr>
  414. <tr>
  415. <td>
  416. STCW Regulation
  417. </td>
  418. <td>
  419. @Html.TextBoxFor(m => m.Sso.SsoStcwRegulation, new { id = "Sso.SsoStcwRegulation", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  420. </td>
  421. </tr>
  422. <tr>
  423. <td>
  424. Limitations
  425. </td>
  426. <td>
  427. @Html.TextBoxFor(m => m.Sso.SsoLimitations, new { id = "Sso.SsoLimitations", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  428. </td>
  429. </tr>
  430. <tr>
  431. <td>
  432. Issued Date<font color="red">*</font>
  433. </td>
  434. <td>
  435. @if (@ViewData["SSOIssueDate"] != null)
  436. {
  437. @Html.TextBoxFor(m => m.Sso.SsoIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOIssueDate" })
  438. }
  439. else
  440. {
  441. @Html.TextBoxFor(m => m.Sso.SsoIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOIssueDate" })
  442. @Html.ValidationMessageFor(m => m.Sso.SsoIssueDate, null, new { @class = "text-danger" })
  443. }
  444. </td>
  445. </tr>
  446. <tr>
  447. <td>
  448. Expiry Date<font color="red">*</font>
  449.  
  450. </td>
  451. <td>
  452. @if (@ViewData["SSOExpiryDate"] != null)
  453. {
  454. @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOExpiryDate" })
  455. }
  456. else
  457. {
  458. @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSOExpiryDate" })
  459. @Html.ValidationMessageFor(m => m.Sso.SsoExpiryDate, null, new { @class = "text-danger" })
  460. }
  461. </td>
  462.  
  463. </tr>
  464. <tr>
  465. <td>
  466. Date of Revalidation
  467.  
  468. </td>
  469. <td>
  470. @if (@ViewData["SSOExpiryDate"] != null)
  471. {
  472. @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSODateOfRevalidation" })
  473. }
  474. else
  475. {
  476. @Html.TextBoxFor(m => m.Sso.SsoExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "SSODateOfRevalidation" })
  477. @Html.ValidationMessageFor(m => m.Sso.SsoExpiryDate, null, new { @class = "text-danger" })
  478. }
  479. </td>
  480.  
  481. </tr>
  482.  
  483. <tr>
  484. <td>
  485. Function
  486.  
  487. </td>
  488. <td>
  489. @Html.TextBoxFor(m => m.Sso.SsoFunction, new { id = "Sso.SsoFunction", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  490. </td>
  491. </tr>
  492. <tr>
  493. <td>
  494. Level of Functionality
  495.  
  496. </td>
  497. <td>
  498. @Html.TextBoxFor(m => m.Sso.SsoLevelOfResponsibility, new { id = "Sso.SsoLevelOfResponsibility", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  499. </td>
  500. </tr>
  501. <tr>
  502. <td>
  503. Endorsement
  504.  
  505. </td>
  506. <td>
  507. @Html.TextBoxFor(m => m.Sso.SsoEndorsement, new { id = "Sso.SsoEndorsement", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  508. </td>
  509. </tr>
  510. <tr>
  511. <td>
  512. Issuing Authority <font color="red">*</font>
  513. </td>
  514. <td>
  515. @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;" })
  516. @Html.ValidationMessageFor(m => m.Sso.SsoIssuingCountry, null, new { @class = "text-danger" })
  517. </td>
  518. </tr>
  519. <tr>
  520. <td>
  521. Remarks
  522.  
  523. </td>
  524. <td>
  525. @Html.TextBoxFor(m => m.Sso.SsoRemarks, new { id = "Sso.SsoRemarks", style = "width: 380px; height: 300px; font-size: 14px !important", @class = "form-control" })
  526. </td>
  527. </tr>
  528.  
  529. </table>
  530. <div class="form-group">
  531. <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
  532. @Html.ActionLink("Remove", "RemoveSSO", "COEApplication", new { applicantId = Model.Id, From = "Applicant" }, new { @class = "btn btn-default" })
  533. <input name="submitButton" id="submit" type="submit" value="Update SSO" class="btn btn-default" style="font-size: 14px" />
  534.  
  535. </div>
  536. <br />
  537. </div>
  538. </div>
  539.  
  540.  
  541. <div id="coe_activation" style="display: none">
  542. <br />
  543.  
  544. <p>
  545. <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
  546. </p>
  547.  
  548. <table id="" class="table table-bordered table-condensed" colspan="2">
  549. <tr>
  550. <td colspan="2" class="tableheader">
  551. Coc Particulars
  552. </td>
  553. </tr>
  554. <tr>
  555. <td width="400px">
  556.  
  557. Coc Number <font color="red">*</font>
  558.  
  559. </td>
  560. <td>
  561. @Html.TextBoxFor(m => m.Coc.CocNumber, new { id = "Coc.CocNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  562. @Html.ValidationMessageFor(m => m.Coc.CocNumber, null, new { @class = "text-danger" })
  563.  
  564.  
  565. </td>
  566. </tr>
  567.  
  568. <tr>
  569. <td>
  570. Grade <font color="red">*</font>
  571. </td>
  572. <td>
  573. @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;" })
  574. @Html.ValidationMessageFor(m => m.Coc.CocGradeName, null, new { @class = "text-danger" })
  575. </td>
  576. </tr>
  577. <tr>
  578. <td>
  579. STCW Regulation
  580. </td>
  581. <td>
  582. @Html.TextBoxFor(m => m.Coc.CocStcwRegulation, new { id = "Coc.CocStcwRegulation", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  583. </td>
  584. </tr>
  585. <tr>
  586. <td>
  587. Limitations
  588. </td>
  589. <td>
  590. @Html.TextBoxFor(m => m.Coc.CocLimitations, new { id = "Coc.CocLimitations", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  591. </td>
  592. </tr>
  593. <tr>
  594. <td>
  595. Issued Date<font color="red">*</font>
  596. </td>
  597. <td>
  598. @if (@ViewData["CocIssueDate"] != null)
  599. {
  600. @Html.TextBoxFor(m => m.Coc.CocIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocIssueDate" })
  601. }
  602. else
  603. {
  604. @Html.TextBoxFor(m => m.Coc.CocIssueDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocIssueDate" })
  605. @Html.ValidationMessageFor(m => m.Coc.CocIssueDate, null, new { @class = "text-danger" })
  606. }
  607. </td>
  608. </tr>
  609. <tr>
  610. <td>
  611. Expiry Date<font color="red">*</font>
  612.  
  613. </td>
  614. <td>
  615. @if (@ViewData["CocExpiryDate"] != null)
  616. {
  617. @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocExpiryDate" })
  618. }
  619. else
  620. {
  621. @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocExpiryDate" })
  622. @Html.ValidationMessageFor(m => m.Coc.CocExpiryDate, null, new { @class = "text-danger" })
  623. }
  624. </td>
  625.  
  626. </tr>
  627. <tr>
  628. <td>
  629. Date of Revalidation
  630.  
  631. </td>
  632. <td>
  633. @if (@ViewData["CocExpiryDate"] != null)
  634. {
  635. @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocDateOfRevalidation" })
  636. }
  637. else
  638. {
  639. @Html.TextBoxFor(m => m.Coc.CocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "CocDateOfRevalidation" })
  640. @Html.ValidationMessageFor(m => m.Coc.CocExpiryDate, null, new { @class = "text-danger" })
  641. }
  642. </td>
  643.  
  644. </tr>
  645.  
  646. <tr>
  647. <td>
  648. Function
  649.  
  650. </td>
  651. <td>
  652. @Html.TextBoxFor(m => m.Coc.CocFunction, new { id = "Coc.CocFunction", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  653. </td>
  654. </tr>
  655. <tr>
  656. <td>
  657. Level of Functionality
  658.  
  659. </td>
  660. <td>
  661. @Html.TextBoxFor(m => m.Coc.CocLevelOfFunctionality, new { id = "Coc.CocLevelOfFunctionality", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  662. </td>
  663. </tr>
  664. <tr>
  665. <td>
  666. Endorsement
  667.  
  668. </td>
  669. <td>
  670. @Html.TextBoxFor(m => m.Coc.CocEndorsement, new { id = "Coc.CocEndorsement", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  671. </td>
  672. </tr>
  673. <tr>
  674. <td>
  675. Issuing Authority <font color="red">*</font>
  676. </td>
  677. <td>
  678. @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;" })
  679. @Html.ValidationMessageFor(m => m.Coc.CocIssuingCountry, null, new { @class = "text-danger" })
  680. </td>
  681. </tr>
  682. <tr>
  683. <td>
  684. Remarks
  685.  
  686. </td>
  687. <td>
  688. @Html.TextBoxFor(m => m.Coc.CocRemarks, new { id = "Coc.CocRemarks", style = "width: 380px; height: 300px; font-size: 14px !important", @class = "form-control" })
  689. </td>
  690. </tr>
  691.  
  692. </table>
  693. <div class="form-group">
  694. <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
  695. @Html.ActionLink("Remove", "RemoveCoc", "COEApplication", new { applicantId = Model.Id , From = "Applicant" }, new { @class = "btn btn-default" })
  696. <input name="submitButton" id="submit" type="submit" value="Update COC" class="btn btn-default" style="font-size: 14px" />
  697.  
  698. </div>
  699. <br />
  700. </div>
  701. </div>
  702.  
  703.  
  704.  
  705.  
  706. <div id="gocroc_activation" style="display: none">
  707. <br />
  708.  
  709. <p>
  710. <b>Applications received online do not automatically denote approval. Approval will be granted after evaluation.</b>
  711. </p>
  712. <table id="searchtable" class="table table-bordered table-condensed" colspan="2">
  713. <tr>
  714. <td colspan="2" class="tableheader">
  715. <b>GOC/ROC Particulars</b>
  716. </td>
  717. </tr>
  718. <tr>
  719. <td width="400px">
  720. GOC Number <font color="red">*</font>
  721. </td>
  722. <td>
  723. @Html.TextBoxFor(m => m.Goc.GocNumber, new { id = "Goc.GocNumber", style = "width: 380px; height: 30px; font-size: 14px !important", @class = "form-control" })
  724. @Html.ValidationMessageFor(m => m.Goc.GocNumber, null, new { @class = "text-danger" })
  725. </td>
  726. </tr>
  727. <tr>
  728. <td width="400px">
  729. Type of Certificate <font color="red">*</font>
  730. </td>
  731. <td>
  732. @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;"})
  733. @Html.ValidationMessageFor(m => m.Goc.GocTypeOfCertificateName, null, new { @class = "text-danger" })
  734. </td>
  735. </tr>
  736. <tr>
  737. <td>
  738. Issuing Authority <font color="red">*</font>
  739. </td>
  740. <td>
  741. @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;"})
  742. @Html.ValidationMessageFor(m => m.Goc.GocIssuingCountry, null, new { @class = "text-danger" })
  743.  
  744.  
  745. </td>
  746. </tr>
  747. <tr>
  748. <td>
  749. Issued Date <font color="red">*</font>
  750. </td>
  751. <td>
  752. @if (ViewData["GOCIssueDate"] != null)
  753. {
  754. @Html.TextBoxFor(m => m.Goc.GocIssuedDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCIssueDate" })
  755. }
  756. else
  757. {
  758. @Html.TextBoxFor(m => m.Goc.GocIssuedDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCIssueDate" })
  759. @Html.ValidationMessageFor(m => m.Goc.GocIssuedDate, null, new { @class = "text-danger" })
  760. }
  761. </td>
  762. </tr>
  763. <tr>
  764. <td>
  765. Expiry Date
  766. </td>
  767. <td>
  768. @if (ViewData["GOCExpiryDate"] != null)
  769. {
  770. @Html.TextBoxFor(m => m.Goc.GocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCExpiryDate" })
  771. }
  772. else
  773. {
  774. @Html.TextBoxFor(m => m.Goc.GocExpiryDate, new { onkeydown = "return false", style = "width: 160px; height: 30px; font-size: 14px;", @class = "form-control", Id = "GOCExpiryDate" })
  775. @Html.ValidationMessageFor(m => m.Goc.GocExpiryDate, null, new { @class = "text-danger" })
  776. }
  777. </td>
  778. </tr>
  779. @Html.HiddenFor(m => m.Id)
  780.  
  781. </table>
  782. <div class="form-group">
  783. <div class="col-md-offset-2 col-md-10" style="text-align: center; padding-right: 288px">
  784. @Html.ActionLink("Remove", "RemoveGOC", "COEApplication", new { applicantId = Model.Id , From = "Applicant" }, new { @class = "btn btn-default" })
  785.  
  786.  
  787. <input name="submitButton" id="submit" type="submit" value="Update GOC/ROC" class="btn btn-default" style="font-size: 14px" />
  788.  
  789. </div>
  790. <br />
  791. </div>
  792.  
  793.  
  794.  
  795. </div>
  796.  
  797.  
  798.  
  799.  
  800. <br />
  801. <div id="ship_information" style="display: block">
  802. <div id="topnav">
  803. <table class="table table-bordered table-condensed" colspan="2">
  804. <tr>
  805. <td colspan="4" class="tableheader">
  806. <b>Upload Documents</b>
  807. </td>
  808. </tr>
  809. <tr>
  810.  
  811. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantPhotoFilename))
  812. {
  813.  
  814. <td>
  815.  
  816. Photo <br />
  817.  
  818. </td>
  819. <td>
  820. <p>No file uploaded.</p>
  821. <p></p>
  822.  
  823. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantPhotoFile, null, new { id = "photofile", type = "file", name = "photofile", @class = "btn btn-default input-file" })
  824.  
  825. <p></p>
  826. </td>
  827.  
  828. }
  829. else
  830. {
  831. <td>
  832.  
  833. Photo <br />
  834. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoUploadDate)
  835.  
  836.  
  837. </td>
  838. <td>
  839. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoFilename)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantPhotoFilename)</a>
  840. <p></p>
  841. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantPhotoFile, null, new { id = "photofile", type = "file", name = "photofile", @class = "btn btn-default input-file" })
  842. <p></p>
  843. </td>
  844.  
  845. }
  846.  
  847.  
  848. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantCocFileName))
  849. {
  850. <td>
  851. Certificate of Competency
  852. </td>
  853. <td>
  854. <p>No file uploaded.</p>
  855. <p></p>
  856. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantCocFile, null, new { id = "cocfile", type = "file", name = "cocfile", @class = "btn btn-default input-file" })
  857. <p></p>
  858. </td>
  859.  
  860. }
  861. else
  862. {
  863. <td>
  864. Certificate Of Competency <br />
  865. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocUploadDate)
  866. </td>
  867. <td>
  868. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantCocFileName)</a>
  869. <p></p>
  870. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantCocFile, null, new { id = "cocfile", type = "file", name = "cocfile", @class = "btn btn-default input-file" })
  871. <p></p>
  872. </td>
  873.  
  874. }
  875. </tr>
  876. <tr>
  877.  
  878. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantMcFileName))
  879. {
  880. <td>
  881. Medical Certificate
  882. </td>
  883. <td>
  884. <p>No file uploaded.</p>
  885. <p></p>
  886. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantMcFile, null, new { id = "mcfile", type = "file", name = "mcfile", @class = "btn btn-default input-file" })
  887. <p></p>
  888. </td>
  889.  
  890. }
  891. else
  892. {
  893. <td>
  894. Medical Certificate <br />
  895. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcUploadDate)
  896. </td>
  897. <td>
  898. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantMcFileName)</a>
  899. <p></p>
  900. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantMcFile, null, new { id = "mcfile", type = "file", name = "mcfile", @class = "btn btn-default input-file" })
  901. <p></p>
  902. </td>
  903.  
  904. }
  905.  
  906.  
  907. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantGmdssMcFileName))
  908. {
  909. <td>
  910. Global Maritime Distress and Safety System (GMDSS)
  911. </td>
  912. <td>
  913.  
  914. <p>No file uploaded.</p>
  915. <p></p>
  916. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantGmdssMcFile, null, new { id = "gmdssfile", type = "file", name = "gmdssfile", @class = "btn btn-default input-file" })
  917. <p></p>
  918. </td>
  919.  
  920. }
  921. else
  922. {
  923. <td>
  924. Global Maritime Distress and Safety System (GMDSS) <br />
  925. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcUploadDate)
  926. </td>
  927. <td>
  928. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantGmdssMcFileName)</a>
  929. <p></p>
  930. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantGmdssMcFile, null, new { id = "gmdssfile", type = "file", name = "gmdssfile", @class = "btn btn-default input-file" })
  931. <p></p>
  932. </td>
  933.  
  934. }
  935. </tr>
  936. <tr>
  937.  
  938. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantSsoFileName))
  939. {
  940. <td>
  941. Ship Security Officer Certificate
  942. </td>
  943. <td>
  944. <p>No file uploaded.</p>
  945. <p></p>
  946. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSsoFile, null, new { id = "ssofile", type = "file", name = "ssofile", @class = "btn btn-default input-file" })
  947. <p></p>
  948. </td>
  949.  
  950. }
  951. else
  952. {
  953. <td>
  954. Ship Security Officer Certificate <br />
  955. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoUploadDate)
  956. </td>
  957. <td>
  958.  
  959. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSsoFileName)</a>
  960. <p></p>
  961. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSsoFile, null, new { id = "ssofile", type = "file", name = "ssofile", @class = "btn btn-default input-file" })
  962. <p></p>
  963. </td>
  964.  
  965. }
  966.  
  967. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantAotFileName))
  968. {
  969. <td>
  970. Advanced Oil Tanker Certificate
  971. </td>
  972. <td>
  973.  
  974. <p>No file uploaded.</p>
  975. <p></p>
  976. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAotFile, null, new { id = "aotfile", type = "file", name = "aotfile", @class = "btn btn-default input-file" })
  977. <p></p>
  978. </td>
  979.  
  980. }
  981. else
  982. {
  983. <td>
  984. Advanced Oil Tanker Certificate <br />
  985. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotUploadDate)
  986. </td>
  987. <td>
  988. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAotFileName)</a>
  989. <p></p>
  990. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAotFile, null, new { id = "aotfile", type = "file", name = "aotfile", @class = "btn btn-default input-file" })
  991. <p></p>
  992. </td>
  993.  
  994. }
  995. </tr>
  996. <tr>
  997.  
  998. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantActFileName))
  999. {
  1000. <td>
  1001. Advanced Chemical Tanker Certificate
  1002. </td>
  1003. <td>
  1004. <p>No file uploaded.</p>
  1005. <p></p>
  1006. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantActFile, null, new { id = "actfile", type = "file", name = "actfile", @class = "btn btn-default input-file" })
  1007. <p></p>
  1008. </td>
  1009.  
  1010. }
  1011. else
  1012. {
  1013. <td>
  1014. Advanced Chemical Tanker Certificate <br />
  1015. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantActUploadDate)
  1016. </td>
  1017. <td>
  1018. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantActFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantActFileName)</a>
  1019. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantActFile, null, new { id = "actfile", type = "file", name = "actfile", @class = "btn btn-default input-file" })
  1020. <p></p>
  1021. </td>
  1022.  
  1023. }
  1024.  
  1025. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantSatFileName))
  1026. {
  1027. <td>
  1028. Security Awareness Training Certificate
  1029. </td>
  1030. <td>
  1031.  
  1032. <p>No file uploaded.</p>
  1033. <p></p>
  1034. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSatFile, null, new { id = "satfile", type = "file", name = "satfile", @class = "btn btn-default input-file" })
  1035. <p></p>
  1036. </td>
  1037.  
  1038. }
  1039. else
  1040. {
  1041. <td>
  1042. Security Awareness Training Certificate <br />
  1043. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatUploadDate)
  1044. </td>
  1045. <td>
  1046. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantSatFileName)</a>
  1047. <p></p>
  1048. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantSatFile, null, new { id = "satfile", type = "file", name = "satfile", @class = "btn btn-default input-file" })
  1049. <p></p>
  1050. </td>
  1051.  
  1052. }
  1053. </tr>
  1054. <tr>
  1055.  
  1056. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantStwdsdFileName))
  1057. {
  1058. <td>
  1059. Security Training with Designated Security Duties Cert
  1060. </td>
  1061. <td>
  1062. <p>No file uploaded.</p>
  1063. <p></p>
  1064. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantStwdsdFile, null, new { id = "stwdfile", type = "file", name = "stwdfile", @class = "btn btn-default input-file" })
  1065. <p></p>
  1066. </td>
  1067.  
  1068. }
  1069. else
  1070. {
  1071. <td>
  1072. Security Training with Designated Security Duties Cert
  1073. <br />
  1074. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdUploadDate)
  1075. </td>
  1076. <td>
  1077. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantStwdsdFileName)</a>
  1078. <p></p>
  1079. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantStwdsdFile, null, new { id = "stwdfile", type = "file", name = "stwdfile", @class = "btn btn-default input-file" })
  1080. <p></p>
  1081. </td>
  1082.  
  1083. }
  1084.  
  1085. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantAfiaFileName))
  1086. {
  1087. <td>
  1088. Authentication from Issuing Authority
  1089. </td>
  1090. <td>
  1091.  
  1092. <p>No file uploaded.</p>
  1093. <p></p>
  1094. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAfiaFile, null, new { id = "afiafile", type = "file", name = "afiafile", @class = "btn btn-default input-file" })
  1095. <p></p>
  1096. </td>
  1097.  
  1098. }
  1099. else
  1100. {
  1101. <td>
  1102. Authentication from Issuing Authority
  1103. <br />
  1104. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaUploadDate)
  1105. </td>
  1106. <td>
  1107. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantAfiaFileName)</a>
  1108. <p></p>
  1109. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantAfiaFile, null, new { id = "afiafile", type = "file", name = "afiafile", @class = "btn btn-default input-file" })
  1110. <p></p>
  1111. </td>
  1112.  
  1113. }
  1114. </tr>
  1115. <tr>
  1116.  
  1117. @if (string.IsNullOrEmpty(Model.ApplicantDocument.ApplicantOthersFileName))
  1118. {
  1119. <td>
  1120. Others (Please Specify)
  1121. @Html.TextBoxFor(m => m.ApplicantDocument.ApplicantOthersDesc, new { id = "ApplicantDocument.ApplicantOthersDesc", style = "width: 250px; height: 30px; font-size: 14px !important", @class = "form-control" })
  1122. </td>
  1123. <td>
  1124. <p>No file uploaded.</p>
  1125. <p></p>
  1126. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantOthersFile, null, new { id = "otherfile", type = "file", name = "otherfile", @class = "btn btn-default input-file" })
  1127. <p></p>
  1128. </td>
  1129.  
  1130. }
  1131. else
  1132. {
  1133. <td>
  1134. Others (Please Specify)
  1135. <br />
  1136. Upload Date: @Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersUploadDate)
  1137. @Html.TextBoxFor(m => m.ApplicantDocument.ApplicantOthersDesc, new { id = "ApplicantDocument.ApplicantOthersDesc", style = "width: 250px; height: 30px; font-size: 14px !important", @class = "form-control" })
  1138. </td>
  1139. <td>
  1140. <a href="~/Uploads/@ViewData["FolderPath"]/@Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersFileName)">@Html.DisplayFor(m => m.ApplicantDocument.ApplicantOthersFileName)</a>
  1141. <p></p>
  1142. @Html.TextBoxFor(model => model.ApplicantDocument.ApplicantOthersFile, null, new { id = "otherfile", type = "file", name = "otherfile", @class = "btn btn-default input-file" })
  1143. <p></p>
  1144. </td>
  1145.  
  1146. }
  1147. <td colspan="2">
  1148. 1. Please upload two files at a time<br />
  1149. 2. Larger files will take longer time to upload <br />
  1150.  
  1151. 3. Each file size is capped at 10MB each and limited to the following file types: <br /> <br />
  1152. Pictures: jpg, gif <br />
  1153.  
  1154. Compressed fies: zip, rar <br />
  1155.  
  1156. Documents: pdf, doc, docx <br />
  1157. </td>
  1158. </tr>
  1159.  
  1160. <tr>
  1161. <td colspan="4" style="text-align: center">
  1162. <input name="submitButton" id="submit" type="submit" value="Upload All Files" class="btn btn-default" style="Width: 400px" />
  1163. </td>
  1164.  
  1165. </tr>
  1166.  
  1167. </table>
  1168. @Html.HiddenFor(m => m.Id)
  1169.  
  1170. </div>
  1171. </div>
  1172. <br /> <br />
  1173.  
  1174.  
  1175. <div id="submission" title="Warning" style="display: none">
  1176. <p>Have you submitted all required files?</p>
  1177. </div>
  1178. <script src="~/lib/jquery/jquery-2.1.1.min.js"></script>
  1179. <script src="~/lib/jquery/jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.js"></script>
  1180. <script type="text/javascript">
  1181. $.datepicker.setDefaults({
  1182. dateFormat: 'm/d/y',
  1183.  
  1184. });
  1185.  
  1186. document.getElementById('photofile').addEventListener('change', checkFileImg, false);
  1187. document.getElementById('cocfile').addEventListener('change', checkFile, false);
  1188. document.getElementById('mcfile').addEventListener('change', checkFile, false);
  1189. document.getElementById('gmdssfile').addEventListener('change', checkFile, false);
  1190. document.getElementById('ssofile').addEventListener('change', checkFile, false);
  1191. document.getElementById('aotfile').addEventListener('change', checkFile, false);
  1192. document.getElementById('actfile').addEventListener('change', checkFile, false);
  1193. document.getElementById('satfile').addEventListener('change', checkFile, false);
  1194. document.getElementById('stwdfile').addEventListener('change', checkFile, false);
  1195. document.getElementById('afiafile').addEventListener('change', checkFile, false);
  1196. document.getElementById('otherfile').addEventListener('change', checkFile, false);
  1197.  
  1198. function checkFile(e) {
  1199.  
  1200. var file_list = e.target.files;
  1201. var photoFile = document.getElementById('photofile').value.substring(document.getElementById('photofile').value.lastIndexOf('\\') + 1);
  1202. var cocFile = document.getElementById('cocfile').value.substring(document.getElementById('cocfile').value.lastIndexOf('\\') + 1);
  1203. var mcFile = document.getElementById('mcfile').value.substring(document.getElementById('mcfile').value.lastIndexOf('\\') + 1);
  1204. var gmdssFile = document.getElementById('gmdssfile').value.substring(document.getElementById('gmdssfile').value.lastIndexOf('\\') + 1);
  1205. var ssoFile = document.getElementById('ssofile').value.substring(document.getElementById('ssofile').value.lastIndexOf('\\') + 1);
  1206. var aotFile = document.getElementById('aotfile').value.substring(document.getElementById('aotfile').value.lastIndexOf('\\') + 1);
  1207. var actFile = document.getElementById('actfile').value.substring(document.getElementById('actfile').value.lastIndexOf('\\') + 1);
  1208. var satFile = document.getElementById('satfile').value.substring(document.getElementById('satfile').value.lastIndexOf('\\') + 1);
  1209. var stwdFile= document.getElementById('stwdfile').value.substring(document.getElementById('stwdfile').value.lastIndexOf('\\') + 1);
  1210. var afiaFile = document.getElementById('afiafile').value.substring(document.getElementById('afiafile').value.lastIndexOf('\\') + 1);
  1211. var otherFile = document.getElementById('otherfile').value.substring(document.getElementById('otherfile').value.lastIndexOf('\\') + 1);
  1212.  
  1213.  
  1214.  
  1215. var arrFileTypeArray = [photoFile, cocFile, mcFile, gmdssFile, ssoFile, aotFile, actFile, satFile,stwdFile,afiaFile, otherFile]
  1216. var arrDuplicateFlag = [0,0,0,0,0,0,0,0,0,0,0,0];
  1217. var isFileDuplicate = false;
  1218. var isFileCondition = false;
  1219.  
  1220. // Loop through and check for duplicates
  1221. for(i = 0; i < arrFileTypeArray.length; i++)
  1222. {
  1223. for(y = 0; y < arrFileTypeArray.length; y++)
  1224. {
  1225. // If file names match, are not empty strings and not at the same index
  1226. if (arrFileTypeArray[i] == arrFileTypeArray[y] && arrFileTypeArray[i].length>0 && arrFileTypeArray[y].length>0 && i != y)
  1227. {
  1228. // Set duplicate file name flag
  1229. isFileDuplicate = true;
  1230. arrFileTypeArray[y].value = null;
  1231. }
  1232. }
  1233. }
  1234.  
  1235.  
  1236.  
  1237. for (var i = 0, file; file = file_list[i]; i++) {
  1238. var sFileName = file.name;
  1239. var sFileExtension = sFileName.split('.')[sFileName.split('.').length - 1].toLowerCase();
  1240. var iFileSize = file.size;
  1241. var iConvert = (file.size / 1048576).toFixed(2);
  1242.  
  1243. if (!(sFileExtension === "pdf" || sFileExtension === "doc" || sFileExtension === "docx" || sFileExtension === "zip" || sFileExtension === "rar" || sFileExtension === "jpg") || sFileExtension === "gif" || iFileSize > 10485760) {
  1244. txt = "Your upload file type : " + sFileExtension ;
  1245. txt += " and size: " + iConvert + " MB \n\n";
  1246. txt += "Make sure your file format is .jpg,.gif,.rar,.doc,or .pdf and file size is less than 10MB.\n";
  1247. txt += "Please select a new valid file to upload.";
  1248. isFileCondition = true;
  1249.  
  1250. }
  1251.  
  1252.  
  1253.  
  1254. }
  1255.  
  1256.  
  1257. if(isFileCondition)
  1258. alert(txt);
  1259. else if(isFileDuplicate)
  1260. alert("Cannot duplicate file for same applicant. Please try again.");
  1261.  
  1262. }
  1263.  
  1264. function checkFileImg(e) {
  1265.  
  1266.  
  1267. var file_list = e.target.files;
  1268. var photoFile = document.getElementById('photofile').value.substring(document.getElementById('photofile').value.lastIndexOf('\\') + 1);
  1269. var cocFile = document.getElementById('cocfile').value.substring(document.getElementById('cocfile').value.lastIndexOf('\\') + 1);
  1270. var mcFile = document.getElementById('mcfile').value.substring(document.getElementById('mcfile').value.lastIndexOf('\\') + 1);
  1271. var gmdssFile = document.getElementById('gmdssfile').value.substring(document.getElementById('gmdssfile').value.lastIndexOf('\\') + 1);
  1272. var ssoFile = document.getElementById('ssofile').value.substring(document.getElementById('ssofile').value.lastIndexOf('\\') + 1);
  1273. var aotFile = document.getElementById('aotfile').value.substring(document.getElementById('aotfile').value.lastIndexOf('\\') + 1);
  1274. var actFile = document.getElementById('actfile').value.substring(document.getElementById('actfile').value.lastIndexOf('\\') + 1);
  1275. var satFile = document.getElementById('satfile').value.substring(document.getElementById('satfile').value.lastIndexOf('\\') + 1);
  1276. var stwdFile= document.getElementById('stwdfile').value.substring(document.getElementById('stwdfile').value.lastIndexOf('\\') + 1);
  1277. var afiaFile = document.getElementById('afiafile').value.substring(document.getElementById('afiafile').value.lastIndexOf('\\') + 1);
  1278. var otherFile = document.getElementById('otherfile').value.substring(document.getElementById('otherfile').value.lastIndexOf('\\') + 1);
  1279.  
  1280.  
  1281.  
  1282. var arrFileTypeArray = [photoFile, cocFile, mcFile, gmdssFile, ssoFile, aotFile, actFile, satFile,stwdFile,afiaFile, otherFile]
  1283. var arrDuplicateFlag = [0,0,0,0,0,0,0,0,0,0,0,0];
  1284. var isFileDuplicate = false;
  1285. var isFileCondition = false;
  1286.  
  1287. // Loop through and check for duplicates
  1288. for(i = 0; i < arrFileTypeArray.length; i++)
  1289. {
  1290. for(y = 0; y < arrFileTypeArray.length; y++)
  1291. {
  1292. // If file names match, are not empty strings and not at the same index
  1293. if (arrFileTypeArray[i] == arrFileTypeArray[y] && arrFileTypeArray[i].length>0 && arrFileTypeArray[y].length>0 && i != y)
  1294. {
  1295. // Set duplicate file name flag
  1296. isFileDuplicate = true;
  1297. arrFileTypeArray[y].value = null;
  1298. }
  1299. }
  1300. }
  1301.  
  1302.  
  1303. for (var i = 0, file; file = file_list[i]; i++) {
  1304. var sFileName = file.name;
  1305. var sFileExtension = sFileName.split('.')[sFileName.split('.').length - 1].toLowerCase();
  1306. var iFileSize = file.size;
  1307. var iConvert = (file.size / 1048576).toFixed(2);
  1308.  
  1309. if (!( sFileExtension === "jpg") || sFileExtension === "gif" || iFileSize > 10485760) {
  1310. txt = "Your upload file type : " + sFileExtension ;
  1311. txt += " and size: " + iConvert + " MB \n\n";
  1312. txt += "Make sure your file format is .jpg or .gif and file size is less than 10MB.\n";
  1313. txt += "Please select a new valid file to upload.";
  1314.  
  1315. isFileCondition = true;
  1316. }
  1317.  
  1318.  
  1319.  
  1320. }
  1321.  
  1322. if(isFileCondition)
  1323. alert(txt);
  1324. else if(isFileDuplicate)
  1325. alert("Cannot duplicate file for same applicant. Please try again.");
  1326. }
  1327.  
  1328. $('#tuv').addClass('active');
  1329.  
  1330. $('.sidebar-menu li.active > .sidebar-submenu').each(function () {
  1331. this.style.setProperty('display', 'block', 'important');
  1332. });
  1333.  
  1334.  
  1335. function fnActivate_sso() {
  1336. $('#sso_activation').show();
  1337. $('#coe_activation').hide();
  1338. $('#gocroc_activation').hide();
  1339. $('#dce_activation').hide();
  1340. $('#button_activation_sso').hide();
  1341. $('#button_deactivate_sso').show();
  1342.  
  1343. fnDeactivate_coe();
  1344. fnDeactivate_dce();
  1345. fnDeactivate_gocroc();
  1346. return false;
  1347.  
  1348. }
  1349.  
  1350. function fnDeactivate_sso() {
  1351. $('#sso_activation').hide();
  1352. $('#button_activation_sso').show();
  1353. $('#button_deactivate_sso').hide();
  1354. return false;
  1355.  
  1356. }
  1357.  
  1358.  
  1359. function fnActivate_coe() {
  1360. $('#sso_activation').hide();
  1361. $('#coe_activation').show();
  1362. $('#gocroc_activation').hide();
  1363. $('#dce_activation').hide();
  1364. $('#button_activation_coe').hide();
  1365. $('#button_deactivate_coe').show();
  1366.  
  1367. fnDeactivate_sso();
  1368. fnDeactivate_dce();
  1369. fnDeactivate_gocroc();
  1370. return false;
  1371.  
  1372. }
  1373.  
  1374. function fnDeactivate_coe() {
  1375. $('#coe_activation').hide();
  1376. $('#button_activation_coe').show();
  1377. $('#button_deactivate_coe').hide();
  1378. return false;
  1379.  
  1380. }
  1381.  
  1382.  
  1383. function fnActivate_dce() {
  1384. $('#sso_activation').hide();
  1385. $('#coe_activation').hide();
  1386. $('#gocroc_activation').hide();
  1387. $('#dce_activation').show();
  1388. $('#button_activation_dce').hide();
  1389. $('#button_deactivate_dce').show();
  1390.  
  1391. fnDeactivate_sso();
  1392. fnDeactivate_coe();
  1393. fnDeactivate_gocroc();
  1394. return false;
  1395.  
  1396. }
  1397.  
  1398. function fnDeactivate_dce() {
  1399. $('#dce_activation').hide();
  1400. $('#button_activation_dce').show();
  1401. $('#button_deactivate_dce').hide();
  1402. return false;
  1403.  
  1404. }
  1405.  
  1406. function fnActivate_gocroc() {
  1407. $('#sso_activation').hide();
  1408. $('#coe_activation').hide();
  1409. $('#gocroc_activation').show();
  1410. $('#dce_activation').hide();
  1411. $('#button_activation_gocroc').hide();
  1412. $('#button_deactivate_gocroc').show();
  1413.  
  1414. fnDeactivate_sso();
  1415. fnDeactivate_coe();
  1416. fnDeactivate_dce();
  1417. return false;
  1418.  
  1419. }
  1420.  
  1421. function fnDeactivate_gocroc() {
  1422. $('#gocroc_activation').hide();
  1423. $('#button_activation_gocroc').show();
  1424. $('#button_deactivate_gocroc').hide();
  1425. return false;
  1426.  
  1427. }
  1428.  
  1429. function fnActivate_info() {
  1430.  
  1431. $('#info_activation').show();
  1432. $('#button_activate_edit_info').hide();
  1433. $('#button_deactivate_edit_info').show();
  1434. return false;
  1435.  
  1436. }
  1437.  
  1438. function fnDeactivate_info() {
  1439. $('#info_activation').hide();
  1440. $('#button_activate_edit_info').show();
  1441. $('#button_deactivate_edit_info').hide();
  1442. return false;
  1443.  
  1444. }
  1445.  
  1446.  
  1447. $(document).ready(function () {
  1448.  
  1449. $("#DateOfBirth").datepicker({
  1450. changeMonth: true,
  1451. changeYear: true,
  1452. yearRange: "-80:+10"
  1453. });
  1454. $("#DateOfBirth").datepicker("option", "showAnim", "clip");
  1455.  
  1456.  
  1457. $("#SSOIssueDate").datepicker({
  1458. changeMonth: true,
  1459. changeYear: true,
  1460.  
  1461. yearRange: "-80:+10"
  1462. });
  1463. $("#SSOIssueDate").datepicker("option", "showAnim", "clip");
  1464.  
  1465. $("#SSOExpiryDate").datepicker({
  1466. changeMonth: true,
  1467. changeYear: true,
  1468.  
  1469. yearRange: "-80:+10"
  1470. });
  1471. $("#SSOExpiryDate").datepicker("option", "showAnim", "clip");
  1472.  
  1473. $("#SSODateOfRevalidation").datepicker({
  1474. changeMonth: true,
  1475. changeYear: true,
  1476.  
  1477. yearRange: "-80:+10"
  1478. });
  1479. $("#SSODateOfRevalidation").datepicker("option", "showAnim", "clip");
  1480.  
  1481. $("#CocIssueDate").datepicker({
  1482. changeMonth: true,
  1483. changeYear: true,
  1484.  
  1485. yearRange: "-80:+10"
  1486. });
  1487. $("#CocIssueDate").datepicker("option", "showAnim", "clip");
  1488.  
  1489. $("#CocExpiryDate").datepicker({
  1490. changeMonth: true,
  1491. changeYear: true,
  1492.  
  1493. yearRange: "-80:+10"
  1494. });
  1495. $("#CocExpiryDate").datepicker("option", "showAnim", "clip");
  1496.  
  1497. $("#CocDateOfRevalidation").datepicker({
  1498. changeMonth: true,
  1499. changeYear: true,
  1500.  
  1501. yearRange: "-80:+10"
  1502. });
  1503. $("#CocDateOfRevalidation").datepicker("option", "showAnim", "clip");
  1504.  
  1505.  
  1506. $("#GOCExpiryDate").datepicker({
  1507. changeMonth: true,
  1508. changeYear: true,
  1509.  
  1510. yearRange: "-80:+10"
  1511. });
  1512. $("#GOCExpiryDate").datepicker("option", "showAnim", "clip");
  1513.  
  1514.  
  1515. $("#GOCIssueDate").datepicker({
  1516. changeMonth: true,
  1517. changeYear: true,
  1518.  
  1519. yearRange: "-80:+10"
  1520. });
  1521. $("#GOCIssueDate").datepicker("option", "showAnim", "clip");
  1522.  
  1523. });
  1524.  
  1525. $('#txtreason').keyup(function () {
  1526. if (this.value == '')
  1527. $('#err_msg').show();
  1528. else
  1529. $('#err_msg').hide();
  1530. });
  1531.  
  1532.  
  1533. function validateForm() {
  1534. var shipmu = $('#ShipAgeMarkup').val();
  1535. var txtr = $('#txtreason').val();
  1536. if (shipmu == 'No' && txtr == '') {
  1537. return false;
  1538. } else return true;
  1539.  
  1540. }
  1541.  
  1542. function _clear() {
  1543.  
  1544. $(function () {
  1545. $("#submission").dialog({
  1546. modal: true,
  1547. buttons: {
  1548. Ok: function () {
  1549. $(this).dialog("close");
  1550. },
  1551. },
  1552. effect: "slideDown",
  1553. duration: 100000
  1554. });
  1555. });
  1556. }
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562. </script>
  1563.  
  1564.  
  1565. }
  1566. <div>
  1567. <button class="btn btn-default"><a href="/COEApplication/ApplicantList/">Back</a></button>
  1568.  
  1569. @if (ViewBag.AllCOCExist == true)
  1570. {
  1571.  
  1572. @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.');" })
  1573. }
  1574.  
  1575. @if (ViewBag.NotAllApplicantApproved == true)
  1576. {
  1577. @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?');" })
  1578. }
  1579. </div>
  1580. </body>
  1581. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement