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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Linq.Expressions; | |
using Telerik.Web.Mvc; | |
namespace Simple.Web.Mvc.Telerik | |
{ | |
public class GridParser |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Threading; | |
namespace ConsoleApplication4 | |
{ | |
public static class Program |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Threading; | |
namespace ConsoleApplication4 | |
{ | |
public static class Program |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using TVGlobo.SDRH.Config; | |
using Simple; | |
using TVGlobo.SDRH.Web.Controllers; | |
using TVGlobo.SDRH.Web.Helpers; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Net; | |
namespace ConsoleApplication8 |
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 static class MontaFiltro<T, P> | |
where P : DbParameter, new() | |
{ | |
public static string RetornaWhere(T obj, out List<P> parameters) | |
{ | |
parameters = new List<P>(); | |
var where = new List<string>(); | |
foreach (var property in obj.GetType().GetProperties()) | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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 void ExcluirPacote(Int32 idPacote) | |
{ | |
ISession session = SessionManager.GetSession(); | |
session.BeginTransaction(); | |
try | |
{ | |
TbPacoteDao daoP = new TbPacoteDao(session); | |
TbItemPacoteDao daoItemP = new TbItemPacoteDao(session); | |
TbMovimentoDao daoCreditos = new TbMovimentoDao(session); | |
TbClientePacoteDao daoClientePacote = new TbClientePacoteDao(session); |
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
[RequiresTransaction] | |
public void ExcluirPacote(Int32 idPacote) | |
{ | |
TbClientePacote.Delete(x => x.Pacote.Id == idPacote); | |
TbItemPacote.Delete(x => x.Pacote.Id == idPacote); | |
TbMovimento.Delete(x => x.Pacote.Id == idPacote); | |
TbPacote.Delete(idPacote); | |
} |
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 Configuracao CarregarConfiguracao() | |
{ | |
Configuracao configuracao = new Configuracao(); | |
IList<TbParametro> parametros = RulesFactory.Create<ITbParametroRules>() | |
.ListAll(OrderBy.None()); | |
foreach (TbParametro parametro in parametros) | |
{ | |
if (parametro.Name == Configuracao.BalancaAtivaProperty) | |
configuracao.BalancaAtiva = bool.Parse(parametro.Value); |
OlderNewer