Hinsura
4/3/2018 - 1:21 PM

SearchPolicy

@{
  var searchModalUrl = Url.Action("SearchPolicyModal", "Policy", new {area = ""});
}

<button class="btn blue-madison" onclick="openAjaxPopUp('@searchModalUrl', false, null, 'full', 'Yükleniyor...', true);">
    <i class="fa fa-search"></i>&nbsp;Detaylı Arama
</button>

function gotPolicyFromSearchResult(policy) {

    $("#PolicyNo").val(policy.policyNo);/* policy object holds the selected policy's data  */
    $("#ajaxModal").modal("hide");
    $("#btnGetPolicy").click();

}
public ActionResult SearchPolicyModal()
{
    /* Proposal Status */
    IEnumerable<SelectListItem> proposalStatusesList =
        EnumHelper<ProposalStatus>.GetSelectList().OrderBy("Text");
    ViewBag.ProposalStatus = new SelectList(proposalStatusesList, "Value", "Text");
    
    return View();
}