public FrmPrinc() { HttpClientHandler ch = new HttpClientHandler(); ch.UseDefaultCredentials = true; urlServidor = new Uri(ApoioUtils.getStrConfig("Con")); c = new HttpClient(ch) { BaseAddress = urlServidor }; urlServidor = new Uri(urlServidor.ToString().Remove(urlServidor.ToString().IndexOf("/", 7, StringComparison.Ordinal))); InitializeComponent(); }
public DemonstrativoForm(DateTime dataHora, Funcionario funcionario) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; HttpClientHandler ch = new HttpClientHandler(); ch.UseDefaultCredentials = true; c = new HttpClient(ch) { BaseAddress = new Uri(ApoioUtils.getStrConfig("Con")) }; this.funcionario = funcionario; this.data.Text = String.Format("{0:dd/MM/yyyy}", dataHora.Date); this.matricula.Text = funcionario.Id; this.nome.Text = funcionario.Nome; this.horaCerta.Text = String.Format("Hora certa: {0:hh\\:mm}h", dataHora.TimeOfDay); preencherTabela(); }
public DemonstrativoFormConfirmacao(String data, Funcionario funcionario) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; HttpClientHandler ch = new HttpClientHandler(); ch.UseDefaultCredentials = true; c = new HttpClient(ch) { BaseAddress = new Uri(ApoioUtils.getStrConfig("Con")) }; this.funcionario = funcionario; this.data.Text = data; this.matricula.Text = funcionario.Id; this.nome.Text = funcionario.Nome; preencherTabela(); }
public void registraLog(Usuario usuario, String txContxLogseg, String txOperaLog, String txIpUsuarRedeLog) { registraLog(usuario.Id, DateTime.Now, usuario.Nome, txContxLogseg, txOperaLog, txIpUsuarRedeLog, usuario.Login, ApoioUtils.getStrConfig("matricSGA"), usuario.LoginRede); }