public ActionResult tablaLayoutFiniquito(int idEmpresa) { _Layout lay = new _Layout(); var periodo = Session["periodo"] as NOM_PeriodosPago; var empresa = lay.empresas(periodo.IdSucursal); var datos = lay.listaEmpleadosFiniquito(periodo.IdPeriodoPago, idEmpresa); ViewBag.empresa = empresa; return(PartialView(datos)); }
public JsonResult crearLayout(encabezado Encabezado, List <detallado> Detalle, List <emisoras> emisoras) { ////se obtiene id usuario var idU = SessionHelpers.GetIdUsuario(); //declaramos objeto _Layout lay = new _Layout(); var ruta = Server.MapPath("~//Files/Layout/"); string[] archivoGen = lay.GenerarLayout(ruta, Encabezado, idU, Detalle, emisoras); return(Json(archivoGen, JsonRequestBehavior.AllowGet)); }
// GET: Layout public ActionResult Index() { _Layout lay = new _Layout(); var periodo = Session["periodo"] as NOM_PeriodosPago; ViewBag.periodo = periodo; var sucursal = Session["sucursal"] as SucursalDatos; var empresas = lay.empresas(sucursal.IdSucursal); return(PartialView(empresas)); }
public override List <IHtml> CreateDom() { Layout = new _Layout(); var document = new List <IHtml> { new Row().Add( Html.LabelFor(m => m.Title), Html.TextBoxFor(m => m.Title) ) }; return(document); }
public override Layout CreateLayout(Context Context, Rectangle SizeRange, out Point Size) { TextBlockStyle style = this.Style; Point cellsize = style.CellSize; int minwidth = (int)(SizeRange.Left / cellsize.X); int minheight = (int)(SizeRange.Top / cellsize.Y); // Calculate width, height and line indices List<int> lineindices = new List<int>(); int offset = 0; int width = minwidth; lineindices.Add(0); // Initial line, not explicitly indicated, but still deserves an index _Measure(style, this.Text, 0, lineindices, ref offset, ref width); int height = Math.Max(lineindices.Count, minheight); // Calculate actual size Size = new Point(width * cellsize.X, height * cellsize.Y); Size.X = Math.Min(Size.X, SizeRange.Right); Size.Y = Math.Min(Size.Y, SizeRange.Bottom); _Layout layout = new _Layout { TextBlock = this, Width = width, Height = height, LineIndices = lineindices }; return layout; }