protected void repItems_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) { return; } PurchaseOrderInformation po = (PurchaseOrderInformation)e.Item.DataItem; DetalleOC det = (DetalleOC)e.Item.FindControl("ucDetalle"); det.POId = po.Id; }
protected void repItems_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType != ListItemType.Item && e.Item.ItemType != ListItemType.AlternatingItem) { return; } if (Roles.IsUserInRole(UserType.Lectores.ToString())) { CheckBox cbtemp = (CheckBox)e.Item.FindControl("chkbItemStatus"); cbtemp.Enabled = false; } PurchaseOrderInformation po = (PurchaseOrderInformation)e.Item.DataItem; DetalleOC det = (DetalleOC)e.Item.FindControl("ucDetalle"); det.POId = po.Id; det.POS = Convert.ToInt32(ddlEstados.SelectedValue); }