Skip to content

Commit

Permalink
EVE_Central
Browse files Browse the repository at this point in the history
市场姬api主干
  • Loading branch information
eveloki committed Dec 1, 2016
0 parents commit 0c35a2f
Show file tree
Hide file tree
Showing 683 changed files with 523,172 additions and 0 deletions.
1,110 changes: 1,110 additions & 0 deletions EVE_Central/.vs/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added EVE_Central/.vs/wzkf/v14/.suo
Binary file not shown.
636 changes: 636 additions & 0 deletions EVE_Central/Basis/DrawingCurve.cs

Large diffs are not rendered by default.

62 changes: 62 additions & 0 deletions EVE_Central/Basis/EVE_Central.Basis.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{04DE82DF-4181-4364-8030-DF7A1E1AD99C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Basis</RootNamespace>
<AssemblyName>Basis</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>G:\2016年程序开发代码\c#类库\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DrawingCurve.cs" />
<Compile Include="json.cs" />
<Compile Include="jsonhelp.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UnixTime.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
125 changes: 125 additions & 0 deletions EVE_Central/Basis/MemberManagePage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;

namespace EVE_Central.Basis
{
public class MemberManagePage : System.Web.UI.Page
{
protected internal Model.siteconfig siteConfig;
protected internal Model.member_setting set;

public MemberManagePage()
{
this.Load += new EventHandler(memberload);
siteConfig = new BLL.siteconfig().loadConfig();
}
private void memberload(object sender, EventArgs e)
{
//判断用户是否登陆
if (!IsMemberLogin())
{
//Response.Write("<script>parent.location.href='" + siteConfig.webpath + "/a_member/login.aspx'</script>");
string url = Request.Url.Authority.ToString();

//Response.Write("<script>window.location.href='" + Request.Url.Authority.ToString() + "/a_member/login.aspx'</script>");
//Response.Redirect("login.aspx");
Response.Write("<script>parent.location.href='/a_member/login.aspx'</script>");
Response.End();
}


}
#region 用户基础方法=========================================================
/// <summary>
/// 判断用户是否登陆
/// </summary>
/// <returns></returns>
public bool IsMemberLogin()
{
if (Session["Memberlogin"] != null)
{
return true;

}
else
{
//检查Cookies
string membername = Utils.GetCookie("membername", "JinBo");
string memberpwd = Utils.GetCookie("memberpwd", "JinBo");
if (membername != "" && memberpwd != "")
{
BLL.member bll = new BLL.member();
Model.member model = bll.CheckModle(membername, memberpwd);
set = new BLL.member_setting().GetModelByMid(model.id);
if (model != null)
{
Session["Memberlogin"] = model;
return true;
}
else
{ return false; }
}
else
return false;
}
}
/// <summary>
/// 取得用户信息
/// </summary>
public Model.member GetMemberInfo()
{
if (IsMemberLogin())
{
Model.member model = Session["Memberlogin"] as Model.member;
set = new BLL.member_setting().GetModelByMid(model.id);
if (model != null)
{
return model;
}
}
return null;
}
/// <summary>
/// 检查是否为管理员登陆
/// </summary>
/// <returns></returns>
public bool Isadminlogin()
{
ManagePage mana = new ManagePage();

if (mana.GetAdminInfo() == null)
return true;
else return false;
}

#endregion====================================================================
#region JS提示============================================
/// <summary>
/// 添加编辑删除提示
/// </summary>
/// <param name="msgtitle">提示文字</param>
/// <param name="url">返回地址</param>
protected void JscriptMsg(string msgtitle, string url)
{
string msbox = "parent.jsprint(\"" + msgtitle + "\", \"" + url + "\")";
ClientScript.RegisterClientScriptBlock(Page.GetType(), "JsPrint", msbox, true);
Server.Transfer(url, true);
}
/// <summary>
/// 带回传函数的添加编辑删除提示
/// </summary>
/// <param name="msgtitle">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="callback">JS回调函数</param>
protected void JscriptMsg(string msgtitle, string url, string callback)
{
string msbox = "parent.jsprint(\"" + msgtitle + "\", \"" + url + "\", " + callback + ")";
ClientScript.RegisterClientScriptBlock(Page.GetType(), "JsPrint", msbox, true);
}
#endregion
}
}
36 changes: 36 additions & 0 deletions EVE_Central/Basis/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Basis")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Basis")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//将 ComVisible 设置为 false 将使此程序集中的类型
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]

// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("04de82df-4181-4364-8030-df7a1e1ad99c")]

// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
39 changes: 39 additions & 0 deletions EVE_Central/Basis/UnixTime.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EVE_Central.Basis
{
public class UnixTime
{
/// <summary>
/// 将Unix时间戳转换为DateTime类型时间
/// </summary>
/// <param name="d">double 型数字</param>
/// <returns>DateTime</returns>
public static System.DateTime ConvertIntDateTime(double d)
{
System.DateTime time = System.DateTime.MinValue;
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1));
time = startTime.AddMilliseconds(d);
return time;
}

/// <summary>
/// 将c# DateTime时间格式转换为Unix时间戳格式
/// </summary>
/// <param name="time">时间</param>
/// <returns>long</returns>
public static long ConvertDateTimeInt(System.DateTime time)
{
//double intResult = 0;
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1, 0, 0, 0, 0));
//intResult = (time- startTime).TotalMilliseconds;
long t = (time.Ticks - startTime.Ticks) / 10000; //除10000调整为13位
return t;
}

}
}
Binary file added EVE_Central/Basis/bin/Debug/Basis.dll
Binary file not shown.
Binary file added EVE_Central/Basis/bin/Debug/Basis.pdb
Binary file not shown.
Binary file added EVE_Central/Basis/bin/Debug/Newtonsoft.Json.dll
Binary file not shown.
Binary file added EVE_Central/Basis/bin/Debug/Newtonsoft.Json.pdb
Binary file not shown.
Loading

0 comments on commit 0c35a2f

Please sign in to comment.