This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Atividade1(FormFormalizarContratoTrabalho form) : base(form) | |
{ | |
// No code by default | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decimal? percDeficiencia = candidatoData.InfoDeficiencia.PercentagemDeficiencia; | |
if (percDeficiencia.HasValue) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class.forName("org.postgresql.Driver"); | |
con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/mydatabase", "username", "pwd"); | |
con.setAutoCommit(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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> |
NewerOlder