// js NONE-- haskell
> sum [x | x <- [1..10]]| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="webForm1.aspx.cs" Inherits="aspnet_webapp.webForm1" %> | |
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head runat="server"> | |
| <title>Pure asp.net testing </title> | |
| </head> | |
| <body> |
| import java.sql.Connection; | |
| import javafx.application.Application; | |
| import javafx.stage.Stage; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.layout.StackPane; | |
| public class UI extends Application { |
| Class.forName("org.postgresql.Driver"); | |
| con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/mydatabase", "username", "pwd"); | |
| con.setAutoCommit(false); |
| decimal? percDeficiencia = candidatoData.InfoDeficiencia.PercentagemDeficiencia; | |
| if (percDeficiencia.HasValue) | |
| { | |
| } |
| /// <summary> | |
| /// É necessário alterar os dados, 'ddlnecalterardados'? Se sim, mostrar a | |
| /// opção 'ddldadospessoaisalterados' de dizer se foram ou não alterados. | |
| /// </summary> | |
| private void ShowEscolhaAlteracaoDados() | |
| { | |
| // quando o valor da ddl for alterado, será gerado um postback cujo único propósito | |
| // é o de que o fluxo volte a entrar neste método, de modo a que se valide a condição do if | |
| ddlnecalterardados.Attributes.Add("onchange", "javascript:setTimeout('__doPostBack(\'alterarDadosPessoais\',\'\')', 0)"); |
| public Atividade1(FormFormalizarContratoTrabalho form) : base(form) | |
| { | |
| // No code by default | |
| } |
| protected void PopulateDropDown(DropDownList dropDown, SPList listUrl, string field, bool addSelectedItem = true) | |
| { | |
| int iterator = 0; | |
| var valores = Utils.ListFieldToDropDown(listUrl, field); | |
| if (addSelectedItem) | |
| { | |
| AddDefaultValueDropDownList(dropDown); | |
| iterator++; |
| // criar uma row por cada item devolvido na query | |
| if (tiposContratoSelect.Count > 0) | |
| { | |
| // clear previously created rows | |
| // 'Multiple controls with the same ID' exception otherwise | |
| tbtipocontrato.Rows.Clear(); | |
| foreach (SPListItem item in tiposContratoSelect) |
| if ((var as = Item.GetValue(TAXA_FIXA_IRS)) == "Sim") | |
| { | |
| SetValueAndVisible(tbcpercentagemirs, PERCENTAGEM_IRS, WebControlType.TableCell); | |
| } |
// js NONE-- haskell
> sum [x | x <- [1..10]]