public JsonResult GetCashJounral(int _C_Currency_ID, int _C_BPartner_ID, bool isInterBPartner, bool chk, int page, int size)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetCashJounral(_C_Currency_ID, _C_BPartner_ID, isInterBPartner, chk, page, size)), JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        /// <summary>
        /// To get all the unallocated Cash Lines
        /// </summary>
        /// <param name="AD_Org_ID">Organisation ID</param>
        /// <param name="_C_Currency_ID">Currency</param>
        /// <param name="_C_BPartner_ID">Business Partner</param>
        /// <param name="isInterBPartner">Inter-Business Partner</param>
        /// <param name="chk">For MultiCurrency Check</param>
        /// <param name="page">Page Number</param>
        /// <param name="size">Page Size</param>
        /// <param name="fromDate">From Date</param>
        /// <param name="toDate">To Date</param>
        /// <param name="paymentType_ID">Payment Type ID</param>
        /// <param name="srchText">Search for Document No</param>
        /// <returns>No of unallocated Cash Lines</returns>
        public JsonResult GetCashJounral(int AD_Org_ID, int _C_Currency_ID, int _C_BPartner_ID, bool isInterBPartner, bool chk, int page, int size, DateTime?fromDate, DateTime?toDate, string paymentType_ID, string srchText)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetCashJounral(AD_Org_ID, _C_Currency_ID, _C_BPartner_ID, isInterBPartner, chk, page, size, fromDate, toDate, paymentType_ID, srchText)), JsonRequestBehavior.AllowGet));
        }