为添加微信小程序支付做准备
This commit is contained in:
@@ -437,6 +437,91 @@ namespace Mtxfw.DAL
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 得到一个对象实体
|
||||
/// </summary>
|
||||
public Mtxfw.Model.Article GetModelbyParentID(int ParentID)
|
||||
{
|
||||
StringBuilder strSql = new StringBuilder();
|
||||
strSql.Append("select top 1 * from Article ");
|
||||
strSql.Append(" where ParentID=@id");
|
||||
SqlParameter[] parameters = {
|
||||
new SqlParameter("@id", SqlDbType.Int,4)
|
||||
};
|
||||
parameters[0].Value = ParentID;
|
||||
|
||||
Mtxfw.Model.Article model = new Mtxfw.Model.Article();
|
||||
DataSet ds = Mtxfw.Utility.SqlDbHelper_U.GetDataSet(strSql.ToString(), parameters);
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
if (ds.Tables[0].Rows[0]["id"].ToString() != "")
|
||||
{
|
||||
model.id = int.Parse(ds.Tables[0].Rows[0]["id"].ToString());
|
||||
}
|
||||
if (ds.Tables[0].Rows[0]["senderid"].ToString() != "")
|
||||
{
|
||||
model.senderid = int.Parse(ds.Tables[0].Rows[0]["senderid"].ToString());
|
||||
}
|
||||
if (ds.Tables[0].Rows[0]["receiverid"].ToString() != "")
|
||||
{
|
||||
model.receiverid = int.Parse(ds.Tables[0].Rows[0]["receiverid"].ToString());
|
||||
}
|
||||
model.Title = ds.Tables[0].Rows[0]["Title"].ToString();
|
||||
if (ds.Tables[0].Rows[0]["AddTime"].ToString() != "")
|
||||
{
|
||||
model.AddTime = DateTime.Parse(ds.Tables[0].Rows[0]["AddTime"].ToString());
|
||||
}
|
||||
model.Author = ds.Tables[0].Rows[0]["Author"].ToString();
|
||||
model.Content = ds.Tables[0].Rows[0]["Content"].ToString();
|
||||
model.Content2 = ds.Tables[0].Rows[0]["Content2"].ToString();
|
||||
model.CategoryId = ds.Tables[0].Rows[0]["CategoryId"].ToString();
|
||||
if (ds.Tables[0].Rows[0]["ParentID"].ToString() != "")
|
||||
{
|
||||
model.ParentID = int.Parse(ds.Tables[0].Rows[0]["ParentID"].ToString());
|
||||
}
|
||||
model.hasRead = int.Parse(ds.Tables[0].Rows[0]["hasRead"].ToString());
|
||||
if (ds.Tables[0].Rows[0]["Seef"].ToString() != "")
|
||||
{
|
||||
model.Seef = int.Parse(ds.Tables[0].Rows[0]["Seef"].ToString());
|
||||
}
|
||||
if (ds.Tables[0].Rows[0]["LinkID"].ToString() != "")
|
||||
{
|
||||
model.LinkID = int.Parse(ds.Tables[0].Rows[0]["LinkID"].ToString());
|
||||
}
|
||||
model.Paths = ds.Tables[0].Rows[0]["Paths"].ToString();
|
||||
model.Paths2 = ds.Tables[0].Rows[0]["Paths2"].ToString();
|
||||
model.KeyWords = ds.Tables[0].Rows[0]["KeyWords"].ToString();
|
||||
model.media_id = ds.Tables[0].Rows[0]["media_id"].ToString();
|
||||
model.thumb_media_id = ds.Tables[0].Rows[0]["thumb_media_id"].ToString();
|
||||
model.jlsecond = Convert.ToInt32(ds.Tables[0].Rows[0]["jlsecond"].ToString());
|
||||
model.xfjmoney = Convert.ToDouble(ds.Tables[0].Rows[0]["xfjmoney"].ToString());
|
||||
model.tfllmoney = Convert.ToDouble(ds.Tables[0].Rows[0]["tfllmoney"].ToString());
|
||||
model.zscs = Convert.ToInt32(ds.Tables[0].Rows[0]["zscs"].ToString());
|
||||
model.gxzmoney = Convert.ToDouble(ds.Tables[0].Rows[0]["gxzmoney"].ToString());
|
||||
model.ltype = Convert.ToInt32(ds.Tables[0].Rows[0]["ltype"].ToString());
|
||||
model.csday = Convert.ToInt32(ds.Tables[0].Rows[0]["csday"].ToString());
|
||||
model.latitude = Convert.ToDecimal(ds.Tables[0].Rows[0]["latitude"].ToString());
|
||||
model.longitude = Convert.ToDecimal(ds.Tables[0].Rows[0]["longitude"].ToString());
|
||||
if (ds.Tables[0].Rows[0]["wtype"].ToString() != "")
|
||||
{
|
||||
model.wtype = int.Parse(ds.Tables[0].Rows[0]["wtype"].ToString());
|
||||
}
|
||||
if (ds.Tables[0].Rows[0]["wtype2"].ToString() != "")
|
||||
{
|
||||
model.wtype2 = int.Parse(ds.Tables[0].Rows[0]["wtype2"].ToString());
|
||||
}
|
||||
model.IFTJ = Convert.ToInt32(ds.Tables[0].Rows[0]["IFTJ"].ToString());
|
||||
model.IFTop = Convert.ToInt32(ds.Tables[0].Rows[0]["IFTop"].ToString());
|
||||
model.gtype = int.Parse(ds.Tables[0].Rows[0]["gtype"].ToString());
|
||||
return model;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取上一条记录
|
||||
/// </summary>
|
||||
|
||||
1766
Mtxfw.DAL/MemberStatistics_huiyuan.cs
Normal file
1766
Mtxfw.DAL/MemberStatistics_huiyuan.cs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23,8 +23,8 @@
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugType>none</DebugType>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
@@ -83,6 +83,7 @@
|
||||
<Compile Include="Guide.cs" />
|
||||
<Compile Include="host.cs" />
|
||||
<Compile Include="Link.cs" />
|
||||
<Compile Include="MemberStatistics_huiyuan.cs" />
|
||||
<Compile Include="MemberStatistics_.cs" />
|
||||
<Compile Include="order_info.cs" />
|
||||
<Compile Include="order_product_info.cs" />
|
||||
|
||||
Reference in New Issue
Block a user