找不到与请求URI匹配的HTTP资源。在与请求匹配的控制器'x'上未找到任何操作。“}

时间:2019-01-16 11:51:20

标签: javascript asp.net

var SBMClaimExportLog = new (function () {
var Variables = this.Variables = {
    parameter: null
};
var Actions = this.Actions = {

    OnLoad: function () {
        Core.AddClass('.navRecourseOperations', "active");
        Core.AddClass('.treeRecourseAcceptedFileList', "active");
        Core.DataTable("#DataTable", false, false, false, false, false);

        Transactions.GetSBMClaimExportLog();
    },
    Bind: function () {
        var data = Variables.ExpertBranches;
        var html;
        var currentdate = new Date();
        Core.DestroyDataTable("#DataTable");
        var parameters = Variables.parameter;
        $.each(parameters, function (index, item) {
            html += "<tr>"
            html += "<td>" + item.KAYNAK + "</td>";
            html += "<td>" + Core.GetDate(item.GUNCELLEMETARIHI, true) + "</td>";
            html += "<td>" + item.UYARILAR + "</td>";
            html += "<td>" + item.HASARDOSYANO + "</td>";
            html += '<td title="Hasarlı Dosyayı Göndermek için tıklayınız.">' +
                '<a onclick="SBMClaimExportLog.Actions.SendSBMClaim(' + item.HASARDOSYANO + ',' + item.BRANS_KOD + ')" href="#!">' + 'İşlem Yap</a></td>';
            html += "</tr>";
        });   
        Core.BindHTML('#DataTable tbody', html);
        Core.DataTable("#DataTable", true, true, true, true, false);
    },

    SendSBMClaim: function (hasarDosyaNo, bransKod) {
            var parameter = {
                HASARDOSYANO: hasarDosyaNo,

                BRANS_KOD: bransKod
        };
        Transactions.SendSBMClaimExportLog(parameter);        
    },

};

var Validations = this.Validations = {


 };
var Transactions = this.Transactions = {
    GetSBMClaimExportLog: function () {
    var parameter = { '': Variables.ExertCode };
        Core.CallAPI("GET", apiUrl + "SBM/GetClaimLogs", null, function (response) {
            if (response.Data.claim_logs !== null) {
                Variables.parameter = response.Data.claim_logs;
                      SBMClaimExportLog.Actions.Bind();
            }
            else {
                Core.DataTable("#DataTable", false, false, false, false, false);
                Core.ClearDataTable("#DataTable");
            }
            Core.StopLoading();
        }, false);
    },

    SendSBMClaimExportLog: function (parameter) {
        debugger; Core.CallAPI("GET", apiUrl + "Claim/SBMClaimTransfer", parameter, function (response) {
            if (Core.CheckError(response.Data)) {
                Core.GiveSuccessMessage(Options.Messages.Success);
                Actions.SendSBMClaim();
            }
        }, false);
    },

};
  })();
 $(document).ready(function () {
SBMClaimExportLog.Actions.OnLoad();
});



      [HttpGet]
    public IHttpActionResult SBMClaimTransfer(decimal? claimfileid,  string branch)
    {
        Response<ClaimViewModel> response = new Response<ClaimViewModel>();
        AuthorizedUser user = new AuthorizedUser();
        using (ClaimManager c = new ClaimManager(user))
        {
            DateTime oparationdate = System.DateTime.Now;
            c.SBM_Hasar_Gonder( claimfileid,  oparationdate,  branch);
            if (response.Data != null)
            {
                response.Status = Status.Success;
            }
        }
        return Content(HttpStatusCode.OK, response);
    }

{“ Message”:“未找到与请求URI'http://localhost:57444/Claim/SBMClaimTransfer?t=1547639176877&HASARDOSYANO=1774&BRANS_KOD=260'匹配的HTTP资源。”,“ MessageDetail”:“在与请求匹配的控制器'Claim'上未找到任何操作。” }发送参数时出现此错误。

0 个答案:

没有答案