Skip to content

Instantly share code, notes, and snippets.

View xerardoo's full-sized avatar
🎯
Focusing

Lucio G Pazos xerardoo

🎯
Focusing
View GitHub Profile
@xerardoo
xerardoo / foda.json
Created April 4, 2014 04:12
Modelo de Datos. FODA
{
"analisis": {
"metadatos": [
{
"fecha_elaboracion": [
""
],
"fecha_modificacion": [
""
],
@xerardoo
xerardoo / DAO
Created April 23, 2014 15:14
Clase DAO Clientes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
namespace Clientes_Orden.Model
{
@xerardoo
xerardoo / db.sql
Created April 23, 2014 18:12
DB Cliente_Orden
CREATE TABLE Cliente (
idCliente INT NOT NULL,
nombre VARCHAR(25) NOT NULL,
apPaterno VARCHAR(25) NOT NULL,
apMaterno VARCHAR(25) NOT NULL,
rfc VARCHAR(25) NOT NULL,
direccion VARCHAR(25) NOT NULL,
telefono VARCHAR(15) NOT NULL,
CONSTRAINT idCliente PRIMARY KEY (idCliente)
@xerardoo
xerardoo / metodo.cs
Last active August 29, 2015 14:00
Select * From (xPO)
/**
* @author: Lucio G. Pasos
* @description: Metodo para obtener todos los clientes
* @name: getAllClientes
*
*
* */
public XPCollection<Cliente> getAllClientes()
{
using (var uow = new UnitOfWork())
@xerardoo
xerardoo / customer.cs
Created April 24, 2014 08:50
GridControl
///model
public class CustomerDAO{
public XPCollection<Client> getAllCustomer()
{
var session = Session.DefaultSession;
XPCollection<Client> Customers = new XPCollection<Client>(session);
return Customers;
@xerardoo
xerardoo / 0_reuse_code.js
Created April 27, 2014 06:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xerardoo
xerardoo / getClientes.cs
Last active August 29, 2015 14:01
MetodoClientes
public IEnumerable<Cliente> GetClientes()
{
List<Cliente> AllClientes = new List<Cliente>();
XPCollection<Cliente> clientes = new XPCollection<Cliente>(XpoDefault.Session);
foreach (var cliente in clientes)
{
AllClientes.Add(new Cliente
{
Oid = cliente.Oid,
@xerardoo
xerardoo / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../google-map/google-map-directions.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-tooltip/core-tooltip.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@xerardoo
xerardoo / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@xerardoo
xerardoo / $httpProviderConfig
Created November 3, 2014 20:02
Enable CORS (cross-origin resource sharing) AngularJS
angular.module('myApp', ['myDepencencies'])
.config(function ($httpProvider) {
$httpProvider.defaults.useXDomain = true;
$httpProvider.defaults.withCredentials = true;
delete $httpProvider.defaults.headers.common["X-Requested-With"];
$httpProvider.defaults.headers.common["Accept"] = "application/json";
$httpProvider.defaults.headers.common["Content-Type"] = "application/json";
});