{"id":749,"date":"2023-07-12T15:06:47","date_gmt":"2023-07-12T06:06:47","guid":{"rendered":"https:\/\/mvc.auctionpro.co.kr\/?page_id=749"},"modified":"2023-07-12T15:06:48","modified_gmt":"2023-07-12T06:06:48","slug":"model-%ec%97%90-%ed%8f%bc-%ec%9e%85%eb%a0%a5%ea%b0%92-%eb%84%a3%ea%b8%b0","status":"publish","type":"page","link":"https:\/\/mvc.auctionpro.co.kr\/?page_id=749","title":{"rendered":"Model \uc5d0 \ud3fc \uc785\ub825\uac12 \ub123\uae30"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview :  \ud0d1\uc2b9\uac1d \uc5ec\ub7ec\uba85 \ub370\uc774\ud0c0\ub97c model \uc5d0 \ub123\uae30<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" title=\"model  View\" >@model LBRs\n\n\/\/::: \uc911\ub7b5 ::\/\/\n\n@using (Ajax.BeginForm(\"PaxInfo\", \"Reservation\", new AjaxOptions() { HttpMethod = \"POST\" }, new { enctype = \"multipart\/form-data\" }))\n{\n\t@*\uc704\uc870\ubc29\uc9c0*@\n\t@Html.AntiForgeryToken()\n\t@Html.Hidden(\"LandingJson\", @ViewData[\"JsonResult\"])\n\n\t@{ PTCNumber = 0;\n\t   int i = -1;}\n\n\t@foreach (LBPassenger pass in trip.passengers) \/\/only \uccab\ubc88\uc9f8 trip\n\t{\n\t\tfor (var j = 0; j &lt; pass.paxCount.AsInt(); j++) \/\/paxCount\ub85c \uac00\uc838\uc624\uae30\n\t\t{\n\t\t\tPTCNumber = PTCNumber + 1;\n\t\t\ti = i + 1;\n\n\t\t\t&lt;tr&gt;\n\t\t\t\t&lt;td&gt;@(String.Format(\"{0}{1}\", \"0\", PTCNumber))&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t@(string.Format(\"{0}{1}\", (pass.paxType == \"ADT\" ? \"\uc131\uc778\" : (pass.paxType == \"CHD\" ? \"\uc18c\uc544\" : \"\uc720\uc544\")), j + 1))\n\t\t\t\t\t@Html.HiddenFor(m =&gt; m.domLandingRes.Bpassengers[i].paxType, new { @id = (String.Format(\"{0}{1}\", \"paxType\", PTCNumber)), Value = pass.paxType })\n\t\t\t\t\t@Html.HiddenFor(m =&gt; m.domLandingRes.Bpassengers[i].fareType, new { @id = (String.Format(\"{0}{1}\", \"fareType\", PTCNumber)), Value = pass.fareType })\n\t\t\t\t&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;label class=\"input last-name\"&gt;\n\t\t\t\t\t\t&lt;div class=\"in\"&gt;\n\t\t\t\t\t\t\t&lt;span class=\"ph\"&gt;\uc608) \ud64d&lt;\/span&gt;\n\t\t\t\t\t\t\t@Html.TextBoxFor(m =&gt; m.domLandingRes.Bpassengers[i].lastName, new { Required = true, @id = String.Format(\"{0}{1}\", \"paxLN\", PTCNumber), @maxlength = \"20\", @onblur = \"onlyChar(this);\" })\n\t\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t\t&lt;label class=\"input first-name\"&gt;\n\t\t\t\t\t\t&lt;div class=\"in\"&gt;\n\t\t\t\t\t\t\t&lt;span class=\"ph\"&gt;\uc608) \uae38\ub3d9&lt;\/span&gt;\n\t\t\t\t\t\t\t@Html.TextBoxFor(m =&gt; m.domLandingRes.Bpassengers[i].firstName, new { Required = true, @id = String.Format(\"{0}{1}\", \"paxFN\", PTCNumber), @style = \"ime-mode:active;\", @maxlength = \"25\", @onblur = \"onlyChar(this);\" })\n\t\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t\t&lt;!--input type='hidden' id=\"passengername1\" value=\"\" \/--&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;label class=\"select gender\"&gt;\n\t\t\t\t\t\t@{\n\t\t\t\t\t\t\tvar selectGenderList = new SelectList(\n\t\t\t\t\t\t\tnew List&lt;SelectListItem&gt; { new SelectListItem { Selected = true, Text = \"\ub0a8\uc790\", Value = \"M\" }, new SelectListItem { Text = \"\uc5ec\uc790\", Value = \"F\" }, }, \"Value\", \"Text\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@Html.DropDownListFor(m =&gt; m.domLandingRes.Bpassengers[i].gender, selectGenderList, null, new { @class = \"css-class\" })\n\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t\t&lt;td&gt;\n\t\t\t\t\t&lt;label class=\"input birthday\"&gt;\n\t\t\t\t\t\t&lt;div class=\"in\"&gt;\n\t\t\t\t\t\t\t&lt;span class=\"ph\"&gt;\uc608) 19800101&lt;\/span&gt;\n\t\t\t\t\t\t\t@Html.TextBoxFor(m =&gt; m.domLandingRes.Bpassengers[i].birthDate, new { Required = true, @id = String.Format(\"{0}{1}\", \"paxBT\", PTCNumber), @style = \"ime-mode:disabled;\", @maxlength = \"8\", @onKeyUp = \"isNumber(this);\" })\n\t\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t&lt;\/td&gt;\n\t\t\t&lt;\/tr&gt;\n\t\t}\n\t}\n\t\n}<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview : \ud0d1\uc2b9\uac1d \uc5ec\ub7ec\uba85 \ub370\uc774\ud0c0\ub97c model \uc5d0 \ub123\uae30<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-749","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":1,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/749\/revisions"}],"predecessor-version":[{"id":750,"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/749\/revisions\/750"}],"wp:attachment":[{"href":"https:\/\/mvc.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}