Esempio n. 1
0
        public static object ContratoDetalleList(int jtStartIndex, int jtPageSize, string jtSorting, String WhereBy)
        {
            int total;
            int indexPage;
            if (jtStartIndex != 0)
            {
                indexPage = jtStartIndex / jtPageSize;
            }
            else
            {
                indexPage = jtStartIndex;
            }
            eContratoDetalleVC o = new eContratoDetalleVC();
            o._inicio = indexPage;
            o._fin = jtPageSize;
            o._orderby = jtSorting.Substring(1).ToUpper();
            o._nro_Contrato = WhereBy.Trim();

            bContratoDetalleVC tb = new bContratoDetalleVC();
            List<eContratoDetalleVC> list = tb.GetSelecionarContratoDetalle(o,out total);
            return new { Result = "OK", Records = list, TotalRecordCount = total };
        }