如何使用ASP.net Angular js

时间:2018-02-15 09:34:40

标签: asp.net angular

当我点击有效按钮但我无法成功时,我想重定向到另一个页面。我使用Asp.NET Angular js。我在我的控制器中创建了我的功能:

$scope.RedirectionUrl = function (urlConf) 
        $scope.urlConf = urlConf;

    }

在Redirect.chtml页面中我有:

@{
    var urlConf = Url.Action("PageConfiguration", "Common");
        urlConf = HttpUtility.UrlDecode(urlConf);
}

 <button ng-click="RedirectionUrl('@urlConf')" ng-if="selectedLeaf != null">{{ loadedFilter | i18n :'Valider':'Valider'}}</button>

1 个答案:

答案 0 :(得分:0)

将您的功能更改为:

CREATE OR REPLACE
PACKAGE pkg_payment
AS
PROCEDURE PROCESS_PAYMENTS;
END pkg_payment;

CREATE OR REPLACE
PACKAGE body pkg_payment
AS
type typ_payment
IS
  record
  (
    payment_id payment1.payment_id%type,
    );
type tab_typ_payment
IS
  TABLE OF typ_payment;
PROCEDURE prepare_payments(payment_obj OUT tab_typ_payment )
IS
  tab_typ_payment_INDEX NUMBER ( 2 ) := 0 ;

BEGIN
  payment_obj.extend;
tab_typ_payment_INDEX:= payment_obj.count;
  payment_obj ( tab_typ_payment_INDEX ) .payment_id :=tab_typ_payment_INDEX;

END prepare_payments;

PROCEDURE PROCESS_PAYMENTS
IS
  payment_obj tab_typ_payment:= tab_typ_payment();
CURSOR C_PUIDS_CUR
  IS
    (
    select puid from payments
    );
type PUIDS
IS
  TABLE OF C_PUIDS_CUR%rowtype;
PUIDS_OBJ PUIDS := PUIDS();
BEGIN
  OPEN C_PUIDS_CUR;
  LOOP
    FETCH C_PUIDS_CUR bulk collect INTO PUIDS_OBJ limit 100;
    BEGIN
      FOR I_ROW_PUID IN 1 .. PUIDS_OBJ .count
      LOOP
         prepare_payments( payment_obj);
      END LOOP; -- FOR LOOP
    END;        -- END for fetch begin
    EXIT
  WHEN C_PUIDS_CUR %notfound;
  END LOOP; -- End for limit loop
  CLOSE C_PUIDS_CUR ;
  forall i IN 1 .. payment_obj.count SAVE EXCEPTIONS
  INSERT INTO payment1 VALUES payment_obj
    (i
    );
END PROCESS_PAYMENTS;
END pkg_payment;