code
string
repo_name
string
path
string
language
string
license
string
size
int64
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Packets { public abstract class Packet { protected byte numeroConnexion; protected byte typePacket; public byte NumeroConnexion { get { return numeroConnexion; } } ...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/Paquet.cs
C#
asf20
1,499
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Main.PrimitivesCommunication; namespace Main.Packets { public abstract class Packet { protected byte n...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/Packet.cs
C#
asf20
2,722
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Packets { public enum DisconnectRaison { DeclinedByDestination = 1, DeclinedByProvider } public class DisconnectionPacket : Packet { private byte adresseSource...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/DisconnectionPaquet.cs
C#
asf20
2,369
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Paquets { public class Packet3 { private Packet3 pdu; } }
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/Packet3.cs
C#
asf20
195
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Packets { public class ConnectionPacket : Packet { private byte adresseSource; private byte adresseDestination; private ConnectionPacket(byte numeroConnexion, byte typePack...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/ConnectionPaquet.cs
C#
asf20
2,293
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; namespace Main.Packets { public class ConnectionPacket : Packet { private byte adresseSource; private byte adresseDestination; public ConnectionPacket() { } ...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/ConnectionPacket.cs
C#
asf20
1,979
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace Core.Packets { public class DataPacket : Packet { private const int DATA_SIZE = 128; private byte[] data = new byte[DATA_SIZE]; private DataPacket(b...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/DataPaquet.cs
C#
asf20
2,529
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; namespace Main.Packets { public class DataPacket : Packet { private const int MAX_BYTES = 128; private string data; private DataPacket(byte numeroConnexion, Pack...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/DataPacket.cs
C#
asf20
1,634
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Core.Paquets { public enum PaquetTypes { RequestConnectionPaquet = 11, ConfirmationConnectionPaquet = 15, FreeConnectionPaquet = 19 } }
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/EnumTypePaquet.cs
C#
asf20
286
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; namespace Main.Packets { public class AcknowledgementPacket : Packet { public AcknowledgementPacket(byte numeroConnexion, PacketType type) : base(numeroConnexion, type) ...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Packets/AcknowledgementPacket.cs
C#
asf20
722
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using Main.Transport; using Main.Reseau; using System.Threading; namespace Main { class Program { static void Main(string[] args) { Console.SetWindowSize(2...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Program.cs
C#
asf20
1,206
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace Main.Reseau { public enum EtatsConnexion { ConnexionEtablie, EnAttente } public class Connexion { private static List<Connexion> listeConnex...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Reseau/ConnexionReseau.cs
C#
asf20
2,290
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO.Pipes; using Main.PrimitivesCommunication; using System.IO; using System.Threading; using Main.Packets; using Newtonsoft.Json; namespace Main.Reseau { class CoucheReseau { private const...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Main/Reseau/CoucheReseau.cs
C#
asf20
8,197
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Reseau { public partial class Main : Form { public Main() { InitializeCom...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Reseau/Main.cs
C#
asf20
604
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace Main.Reseau { public enum EtatsConnexion { ConnexionEtablie, EnAttente } public class Connexion { private static List<Connexion> listeConnex...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Reseau/ConnexionReseau.cs
C#
asf20
2,290
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations // associées à un assembly. [assembly:...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Reseau/Properties/AssemblyInfo.cs
C#
asf20
1,545
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Reseau { static class Program { static Main consoleMain; /// <summary> /// Point d'entrée principal de l'application. /// </summary> [STAThread] ...
028490q38u532895uy92hf98jh98shfe98sehgesg
trunk/Reseau/Program.cs
C#
asf20
804
/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */ .fancybox-tmp iframe, .fancybox-tmp object { vertical-align: top; padding: 0; margin: 0; } .fancybox-wrap { position: absolute; top: 0; left: 0; z-index: 8020; } .fancybox-skin { position: relative; padding: 0; margin: 0; background: #f...
001easytricks
trunk/fancybox.css
CSS
bsd
4,122
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
123danielbenjaminphilpott-123
get_access_token.py
Python
asf20
3,192
#!/usr/bin/python2.4 # -*- coding: utf-8 -*-# # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2...
123danielbenjaminphilpott-123
twitter_test.py
Python
asf20
27,102
#!/usr/bin/python2.4 '''Load the latest update for a Twitter user and leave it in an XHTML fragment''' __author__ = 'dewitt@google.com' import codecs import getopt import sys import twitter TEMPLATE = """ <div class="twitter"> <span class="twitter-user"><a href="http://twitter.com/%s">Twitter</a>: </span> <span...
123danielbenjaminphilpott-123
examples/twitter-to-xhtml.py
Python
asf20
1,685
#!/usr/bin/python2.4 '''Post a message to twitter''' __author__ = 'dewitt@google.com' import ConfigParser import getopt import os import sys import twitter USAGE = '''Usage: tweet [options] message This script posts a message to Twitter. Options: -h --help : print this help --consumer-key : the twit...
123danielbenjaminphilpott-123
examples/tweet.py
Python
asf20
4,205
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
123danielbenjaminphilpott-123
examples/shorten_url.py
Python
asf20
2,072
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
123danielbenjaminphilpott-123
setup.py
Python
asf20
2,254
#include "Python.h" #include "structmember.h" #if PY_VERSION_HEX < 0x02060000 && !defined(Py_TYPE) #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) #endif #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; #define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MIN INT_MIN #define PyInt_F...
123danielbenjaminphilpott-123
simplejson/_speedups.c
C
asf20
75,169
"""Implementation of JSONDecoder """ import re import sys import struct from simplejson.scanner import make_scanner try: from simplejson._speedups import scanstring as c_scanstring except ImportError: c_scanstring = None __all__ = ['JSONDecoder'] FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconst...
123danielbenjaminphilpott-123
simplejson/decoder.py
Python
asf20
12,032
"""JSON token scanner """ import re try: from simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scan...
123danielbenjaminphilpott-123
simplejson/scanner.py
Python
asf20
2,227
"""Implementation of JSONEncoder """ import re try: from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii except ImportError: c_encode_basestring_ascii = None try: from simplejson._speedups import make_encoder as c_make_encoder except ImportError: c_make_encoder = None ...
123danielbenjaminphilpott-123
simplejson/encoder.py
Python
asf20
15,836
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
123danielbenjaminphilpott-123
simplejson/__init__.py
Python
asf20
12,503
r"""Using simplejson from the shell to validate and pretty-print:: $ echo '{"json":"obj"}' | python -msimplejson.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -msimplejson.tool Expecting property name: line 1 column 2 (char 2) """ import simplejson def main(): import sys if l...
123danielbenjaminphilpott-123
simplejson/tool.py
Python
asf20
908
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module twitter</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, arial">...
123danielbenjaminphilpott-123
doc/twitter.html
HTML
asf20
132,276
#!/usr/bin/python2.4 # # Copyright 2007 The Python-Twitter Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
123danielbenjaminphilpott-123
twitter.py
Python
asf20
129,982
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta name="author" content="zouzhongbo" /> <title>117 Countdown</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" charset="utf-8"></script> <script src="ht...
117countdown
countdown.html
HTML
asf20
2,273
// # MI-r6 // Configuration settings will be stored #define CBundleVersionOfLastInstalled @"BundleVersionOfLastInstalled" #define CDeviceToken @"DeviceToken" #define CUserAgent [NSString stringWithFormat:@"%@/%@/%@/%@/%@",CApplicationName,CVersionNumber,CBuildNumber,DeviceModel,IosFullVersion] #define CProduc...
1234sv
Folder 1/Config1.h
C
mit
888
// # MI-r6 // Configuration settings will be stored // Subfolder 1 #define CBundleVersionOfLastInstalled @"BundleVersionOfLastInstalled" #define CDeviceToken @"DeviceToken" #define CUserAgent [NSString stringWithFormat:@"%@/%@/%@/%@/%@",CApplicationName,CVersionNumber,CBuildNumber,DeviceModel,IosFullVersion] ...
1234sv
Folder 1/SubFolder 1/Config Sub1.h
C
mit
903
// # MI-r6 // Configuration settings will be stored // Edit1 // Edit 2 // Edit 34 // Folder 2 #define CBundleVersionOfLastInstalled @"BundleVersionOfLastInstalled" #define CDeviceToken @"DeviceToken" #define CUserAgent [NSString stringWithFormat:@"%@/%@/%@/%@/%@",CApplicationName,CVersionNumber,CBuildNumber,De...
1234sv
Folder 2/Config2.h
C
mit
934
using core._1006apparel.security; namespace inside._1006apparel.BusinessLogic { public interface IAuthBusiness { _1006apparelPrincipal Login(string Username, string Password); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.BusinessLogic/IAuthBusiness.cs
C#
oos
213
using AutoMapper; using core._1006apparel; using core._1006apparel.security; using core._1006apparel.utils; using inside._1006apparel.Entity; using inside._1006apparel.Repository; using log4net; using System.Collections.Generic; using System.Linq; using System.Threading; namespace inside._1006apparel.Busin...
1006apparel
trunk/1006apparel.com/inside.1006apparel.BusinessLogic/AuthBusiness.cs
C#
oos
4,597
using core._1006apparel.security; namespace inside._1006apparel.BusinessLogic { public static class Utils { public static long GetStaffId() { return _1006apparelSession.Current.Principal._1006apparelIdentity.StaffId.Value; } public static string GetStaffFu...
1006apparel
trunk/1006apparel.com/inside.1006apparel.BusinessLogic/Infractstructure/Utils.cs
C#
oos
458
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/inside.1006apparel.BusinessLogic/Properties/AssemblyInfo.cs
C#
oos
1,476
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/test.1006apparel/Properties/AssemblyInfo.cs
C#
oos
1,444
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; using System.Collections.Generic; using core._1006apparel.security; using System.Web; namespace test._1006apparel { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod...
1006apparel
trunk/1006apparel.com/test.1006apparel/UnitTest1.cs
C#
oos
578
using System; using Microsoft.Practices.Unity; namespace core._1006apparel.App_Start { /// <summary> /// Specifies the Unity configuration for the main container. /// </summary> public class UnityConfig { #region Unity Container private static Lazy<IUnityContainer> contai...
1006apparel
trunk/1006apparel.com/core.1006apparel/App_Start/UnityConfig.cs
C#
oos
1,602
using Microsoft.Practices.ServiceLocation; namespace core._1006apparel { public class IoC { public static T Get<T>() { return ServiceLocator.Current.GetInstance<T>(); } } }
1006apparel
trunk/1006apparel.com/core.1006apparel/IoC.cs
C#
oos
237
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Practices.ServiceLocation; using System.Data.Entity.Core; namespace core._1006apparel { public class BusinessProcess : IDisposable { private object _resultObj = null; private Dictionary<string, List<o...
1006apparel
trunk/1006apparel.com/core.1006apparel/Business/BusinessProcess.cs
C#
oos
7,718
using System.Collections.Generic; namespace core._1006apparel { public class BusinessBase : IBusiness { private BusinessProcess businessProcess = BusinessProcess.Current; protected void AddError(object obj) { businessProcess.AddError(this.GetType(), obj); ...
1006apparel
trunk/1006apparel.com/core.1006apparel/Business/BusinessBase.cs
C#
oos
733
namespace core._1006apparel { public interface IBusiness { } }
1006apparel
trunk/1006apparel.com/core.1006apparel/Business/IBusiness.cs
C#
oos
84
using System.Runtime.Serialization; namespace core._1006apparel.Entity { [DataContract] public enum ObjectState { [EnumMember] Unchanged, [EnumMember] Added, [EnumMember] Modified, [EnumMember] Deleted } }
1006apparel
trunk/1006apparel.com/core.1006apparel/Entity/ObjectState.cs
C#
oos
307
namespace core._1006apparel.Entity { public interface IEntity { } }
1006apparel
trunk/1006apparel.com/core.1006apparel/Entity/IEntity.cs
C#
oos
89
using System; using System.Runtime.Serialization; namespace core._1006apparel.Entity { [DataContract(IsReference = true)] public class EntityBase : IEntity { [NonSerialized] public bool UpdateMethodCalled = false; [DataMember] public ObjectState ObjectState { g...
1006apparel
trunk/1006apparel.com/core.1006apparel/Entity/EntityBase.cs
C#
oos
344
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/core.1006apparel/Properties/AssemblyInfo.cs
C#
oos
1,444
using System; using System.Collections.Generic; using System.Linq; using System.Data; using System.Linq.Expressions; using core._1006apparel.Entity; using core._1006apparel.utils; using System.Data.Entity.Core.Objects; using System.Data.Entity.Core; using System.Data.Entity; namespace core._1006apparel.Rep...
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/EFRepository.cs
C#
oos
8,567
using System; using System.Linq.Expressions; namespace core._1006apparel.Repository { public interface ISpecification<TEntity> { // <summary> /// The criteria of the Specification. /// </summary> Expression<Func<TEntity, bool>> Predicate { get; } /// <summa...
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/ISpecification.cs
C#
oos
604
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Data; using core._1006apparel.Entity; using System.Data.Entity; using System.Data.Entity.Core.Metadata.Edm; using System.Data.Entity.Core.Objects; using System.Data.Entity.Core; using System.Data.Entity.In...
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/EFUnitOfWork.cs
C#
oos
15,447
using System; using System.Collections.Generic; using System.Linq.Expressions; namespace core._1006apparel.Repository { public interface IRepository<TEntity> where TEntity : class { /// <summary> /// Create a new Entity Object /// </summary> /// <returns>Entity object ...
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/IRepository.cs
C#
oos
1,505
using System; using System.Data.Entity.Core.Objects; namespace core._1006apparel.Repository { public interface IUnitOfWork : IDisposable { ObjectContext Context { get; } void Commit(); } }
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/IUnitOfWork.cs
C#
oos
232
namespace core._1006apparel.Repository { public interface IObjectContext { } }
1006apparel
trunk/1006apparel.com/core.1006apparel/Repository/IObjectContext.cs
C#
oos
100
namespace core._1006apparel.Service { public static class ResponseHelper { public static Response ToResponse(this BusinessProcess process) { Response rp = new Response(); rp.Infos = process.GetInfos(); rp.Errors = process.GetErrors(); Bus...
1006apparel
trunk/1006apparel.com/core.1006apparel/Service/ResponseHelper.cs
C#
oos
726
using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; namespace core._1006apparel.Service { [DataContract(IsReference = true)] public class Response { public Response() { Infos = new List<object>(); Errors = new List<ob...
1006apparel
trunk/1006apparel.com/core.1006apparel/Service/Response.cs
C#
oos
2,623
using core._1006apparel; using core._1006apparel.security; using core._1006apparel.Service; using inside._1006apparel.BusinessLogic; using System.ServiceModel; namespace inside._1006apparel.Services { [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.Pe...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/inside.1006apparel.service.cs
C#
oos
725
using core._1006apparel.SharedObject; using Newtonsoft.Json; using System.Web; [assembly: PreApplicationStartMethod(typeof(inside._1006apparel.Services.App_Start.Startup), "Start")] namespace inside._1006apparel.Services.App_Start { public class Startup { public static void Start() {...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/App_Start/Startup.cs
C#
oos
566
using core._1006apparel; using core._1006apparel.Repository; using inside._1006apparel.BusinessLogic; using inside._1006apparel.Entity; using inside._1006apparel.Repository; using Microsoft.Practices.Unity; namespace inside._1006apparel.Services { public class UnityConfig { public static IU...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/App_Start/UnityConfig.cs
C#
oos
2,488
using AutoMapper; using core._1006apparel.security; using inside._1006apparel.Entity; namespace inside._1006apparel.Services.App_Start { public class MapperConfig { public static void Init() { Mapper.CreateMap<Menu, MenuModel>(); } } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/App_Start/MapperConfig.cs
C#
oos
302
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/Properties/AssemblyInfo.cs
C#
oos
1,466
using core._1006apparel.security; using core._1006apparel.Service; namespace inside._1006apparel.Services { public interface inside1006apparelIServices { Response<_1006apparelPrincipal> Login(string Username, string Password); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Services/inside.1006apparel.Iservice.cs
C#
oos
265
namespace core._1006apparel.SharedObject { public class GlobalDefaultData { public class JsonSerializerSettings { public const int MaxDepth = 10; } } }
1006apparel
trunk/1006apparel.com/core.1006apparel.SharedObject/GlobalDefaultData.cs
C#
oos
213
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/core.1006apparel.SharedObject/Properties/AssemblyInfo.cs
C#
oos
1,470
using core._1006apparel.Repository; using inside._1006apparel.Entity; namespace inside._1006apparel.Repository { public class RoleRepository : EFRepository<Role>, IRoleRepository { public RoleRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { } } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/RoleRepository.cs
C#
oos
288
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Collections.Generic; namespace inside._1006apparel.Repository { public interface IMenuRepository : IRepository<Menu> { List<Menu> GetBy(List<long> listRoleId); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/IMenuRepository.cs
C#
oos
282
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Collections.Generic; using System.Linq; namespace inside._1006apparel.Repository { public class MenuRepository : EFRepository<Menu>, IMenuRepository { public MenuRepository(IUnitOfWork unitOfWork) : base(unitOf...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/MenuRepository.cs
C#
oos
532
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Linq; namespace inside._1006apparel.Repository { public class StaffAccountRepository : EFRepository<StaffAccount>, IStaffAccountRepository { public StaffAccountRepository(IUnitOfWork unitOfWork) : base(unitOfWor...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/StaffAccountRepository.cs
C#
oos
552
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Linq; namespace inside._1006apparel.Repository { public class StaffRepository : EFRepository<Staff>, IStaffRepository { public StaffRepository(IUnitOfWork unitOfWork) : base(unitOfWork) { } public Sta...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/StaffRepository.cs
C#
oos
442
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/Properties/AssemblyInfo.cs
C#
oos
1,470
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Collections.Generic; namespace inside._1006apparel.Repository { public interface IStaffRoleRepository : IRepository<StaffRole> { List<StaffRole> GetBy(long staffId); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/IStaffRoleRepository.cs
C#
oos
288
using core._1006apparel.Repository; using inside._1006apparel.Entity; namespace inside._1006apparel.Repository { public interface IStaffRepository : IRepository<Staff> { Staff GetBy(long Id); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/IStaffRepository.cs
C#
oos
230
using core._1006apparel.Repository; using inside._1006apparel.Entity; namespace inside._1006apparel.Repository { public interface IStaffAccountRepository : IRepository<StaffAccount> { StaffAccount GetBy(string Username, string PasswordHashed); } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/IStaffAccountRepository.cs
C#
oos
282
using core._1006apparel.Repository; using inside._1006apparel.Entity; using System.Collections.Generic; using System.Linq; namespace inside._1006apparel.Repository { public class StaffRoleRepository : EFRepository<StaffRole>, IStaffRoleRepository { public StaffRoleRepository(IUnitOfWork unitO...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/StaffRoleRepository.cs
C#
oos
518
using core._1006apparel.Repository; using inside._1006apparel.Entity; namespace inside._1006apparel.Repository { public interface IRoleRepository : IRepository<Role> { } }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Repository/IRoleRepository.cs
C#
oos
197
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Entity/Properties/AssemblyInfo.cs
C#
oos
1,462
using core._1006apparel.Repository; namespace inside._1006apparel.Entity { public partial class inside1006apparelEntities : IObjectContext { public inside1006apparelEntities(string connectionString) : base(connectionString) { var _ = typeof(System.Data.Entity.S...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Entity/inside1006apparelEntities.cs
C#
oos
495
namespace core._1006apparel.security { public interface _1006apparelIPrincipal { } }
1006apparel
trunk/1006apparel.com/core.1006apparel.security/IPrincipal.cs
C#
oos
106
using System.Collections.Generic; using System.Runtime.Serialization; using System.Security.Principal; namespace core._1006apparel.security { public class _1006apparelPrincipal : _1006apparelIPrincipal, IPrincipal { public _1006apparelPrincipal() { } public IIdenti...
1006apparel
trunk/1006apparel.com/core.1006apparel.security/Principal.cs
C#
oos
766
namespace core._1006apparel.security { public interface _1006apparelIIdentity { } }
1006apparel
trunk/1006apparel.com/core.1006apparel.security/IIdentity.cs
C#
oos
105
namespace core._1006apparel.security { public class Config { public const string cookie_name = "aprss"; public const string identity_authentication_type = "Custom"; } }
1006apparel
trunk/1006apparel.com/core.1006apparel.security/Config.cs
C#
oos
208
using core._1006apparel.utils; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Web; using System.Web.SessionState; namespace core._1006apparel.security { [Serializable] [DataContract] public class _1006apparelSession : IDispos...
1006apparel
trunk/1006apparel.com/core.1006apparel.security/Session.cs
C#
oos
6,953
using System; using System.Collections.Generic; namespace core._1006apparel.security { public class MenuModel : IComparable { public MenuModel() { } public long Id { get; set; } public string Name { get; set; } public string Code { get; set; } ...
1006apparel
trunk/1006apparel.com/core.1006apparel.security/MenuModel.cs
C#
oos
792
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/core.1006apparel.security/Properties/AssemblyInfo.cs
C#
oos
1,462
using System.Runtime.Serialization; using System.Security.Principal; namespace core._1006apparel.security { public class _1006apparelIdentity : _1006apparelIIdentity, IIdentity { [DataMember] public string Name { get; set; } [DataMember] public long? StaffId { get; se...
1006apparel
trunk/1006apparel.com/core.1006apparel.security/Identity.cs
C#
oos
839
using System; using System.Security.Cryptography; using System.Text; namespace core._1006apparel.utils { public static class String { public static byte[] ToByte(this string str) { return Encoding.UTF8.GetBytes(str); } public static string ToMD5(this s...
1006apparel
trunk/1006apparel.com/core.1006apparel.utils/ExtendObject/String.cs
C#
oos
1,013
using System; using System.Text; namespace core._1006apparel.utils { public static class Binary { public static string ToUTF8String(this byte[] binary) { return Encoding.UTF8.GetString(binary); } public static string ToBase64String(this byte[] binary) ...
1006apparel
trunk/1006apparel.com/core.1006apparel.utils/ExtendObject/Binary.cs
C#
oos
406
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
1006apparel
trunk/1006apparel.com/core.1006apparel.utils/Properties/AssemblyInfo.cs
C#
oos
1,456
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Resources; namespace core._1006apparel.utils { public static class ResourceHelper { /// <summary> //...
1006apparel
trunk/1006apparel.com/core.1006apparel.utils/ResourceHelper.cs
C#
oos
5,600
using System; using System.Linq; using System.Linq.Expressions; namespace core._1006apparel.utils { public static class ExpressionHelper { public static string GetPropertyName<T, TProperty>(this Expression<Func<T, TProperty>> expression) { MemberExpression member = null; ...
1006apparel
trunk/1006apparel.com/core.1006apparel.utils/ExpressionHelper.cs
C#
oos
2,314
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/_ViewStart.cshtml
HTML+Razor
oos
55
<div ng-if="$location.path() === '/menu' && !$templateInited.contains('/menu')"> @Scripts.Render("~/scripts/modules/menu.js") {{ $initTemplate('/menu') }} </div> <div ng-if="$location.path() === '/staff' && !$templateInited.contains('/staff')"> @Scripts.Render("~/scripts/modules/staff.js") {{ $...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Route/Index.cshtml
HTML+Razor
oos
355
@{ Layout = "~/Views/Shared/_Root.cshtml"; } @section css{ @Styles.Render("~/bundles/pages/layoutcss") @RenderSection("css", required: false) } <div data-ng-app="1006apparel"> <div data-ng-controller="RouteController"> <div class="page-boxed page-header-fixed page-sidebar-closed-hide-l...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Shared/_Layout.cshtml
HTML+Razor
oos
1,496
@{ Layout = null; } <div class="page-logo"> <a href="/"> <img src="/logo.png" alt="logo" class="logo-default"> </a> <div class="menu-toggler sidebar-toggler"> </div> </div> <!-- BEGIN RESPONSIVE MENU TOGGLER --> <a href="javascript:;" class="menu-toggler responsive-toggler" data-...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Shared/Components/_LayoutPageHeader.cshtml
HTML+Razor
oos
24,113
@{ Layout = null; } @{ var menus = core._1006apparel.security._1006apparelSession.Current.Principal.Menus; } <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing --> <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed --> <div class="p...
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Shared/Components/_LayoutPageSidebar.cshtml
HTML+Razor
oos
1,687
@{ ViewBag.Title = "Không được quyền truy cập"; } <div class="mt200 text-center"> <h3>Bạn không được quyền truy cập trang này</h3> </div>
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Shared/_DontHaveAccess.cshtml
HTML+Razor
oos
176
<div data-ng-controller="StaffController"> staff <h2>{{ title }}</h2> </div>
1006apparel
trunk/1006apparel.com/inside.1006apparel.Web/Views/Shared/Modules/Staff/Index.cshtml
HTML+Razor
oos
92