-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7985d22
commit 987a9b4
Showing
32 changed files
with
1,415 additions
and
647 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Text.Json.Serialization; | ||
using Dapper; | ||
|
||
namespace OPS.Core.Entity | ||
{ | ||
[Table("cl_empenho_temp", Schema = "ops_tmp")] | ||
public class DeputadoEstadualEmpenhoTemp | ||
{ | ||
[JsonIgnore] | ||
[Column("id")] | ||
public int Id { get; set; } | ||
|
||
[Column("nome_favorecido")] | ||
public string NomeFavorecido { get; set; } | ||
|
||
[Column("cnpj_cpf")] | ||
public string CNPJCPF { get; set; } | ||
|
||
//[Column("objeto")] | ||
//public string Objeto { get; set; } | ||
|
||
//[Column("tipo_licitacao")] | ||
//public string TipoLicitacao { get; set; } | ||
|
||
[Column("numero_empenho")] | ||
public string NumeroEmpenho { get; set; } | ||
|
||
[Column("data")] | ||
public DateOnly Data { get; set; } | ||
|
||
[Column("competencia")] | ||
public DateOnly Competencia { get; set; } | ||
|
||
[Column("valor_empenhado")] | ||
public decimal ValorEmpenhado { get; set; } | ||
|
||
[Column("valor_pago")] | ||
public decimal ValorPago { get; set; } | ||
|
||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OPS.Core.Utilities | ||
{ | ||
public static class StringExtension | ||
{ | ||
public static string ReplaceFirst(this string text, string search, string replace) | ||
{ | ||
int pos = text.IndexOf(search); | ||
if (pos < 0) | ||
{ | ||
return text; | ||
} | ||
return text.Substring(0, pos) + replace + text.Substring(pos + search.Length); | ||
} | ||
|
||
public static string ReplaceLast(this string text, string search, string replace) | ||
{ | ||
int pos = text.LastIndexOf(search); | ||
if (pos < 0) | ||
{ | ||
return text; | ||
} | ||
return text.Substring(0, pos) + replace + text.Substring(pos + search.Length); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.