Пример #1
0
        /// <summary>
        /// To get all the unallocated GL Lines
        /// <param name="AD_Org_ID"> Organization ID </param>
        /// <param name="_C_Currency_ID">Currency</param>
        /// <param name="_C_BPartner_ID">Business Partner</param>
        /// <param name="page">Page Number</param>
        /// <param name="size">Page Size</param>
        /// <paramref name="fromDate"/>From Date
        /// <paramref name="toDate"/>To Date
        /// <paramref name="srchText"/>Search Document No
        /// <paramref name="chk"/>MultiCurrency
        /// <returns>No of unallocated GL Lines</returns>
        public JsonResult GetGLData(int AD_Org_ID, int _C_Currency_ID, int _C_BPartner_ID, int page, int size, DateTime?fromDate, DateTime?toDate, string srchText, bool chk)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetGLData(AD_Org_ID, _C_Currency_ID, _C_BPartner_ID, page, size, fromDate, toDate, srchText, chk)), JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        /// <summary>
        /// To get all the unallocated GL Lines
        /// <param name="_C_Currency_ID">Currency</param>
        /// <param name="_C_BPartner_ID">Business Partner</param>
        /// <param name="page">Page Number</param>
        /// <param name="size">Page Size</param>
        /// <returns>No of unallocated GL Lines</returns>
        public JsonResult GetGLData(int _C_Currency_ID, int _C_BPartner_ID, int page, int size)
        {
            Ctx ct = Session["ctx"] as Ctx;
            PaymentAllocation payments = new PaymentAllocation(ct);

            return(Json(JsonConvert.SerializeObject(payments.GetGLData(_C_Currency_ID, _C_BPartner_ID, page, size)), JsonRequestBehavior.AllowGet));
        }