Commit afa5550f by zoushenggui

zsg

parent 01adeadf
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>API.Services</RootNamespace>
<AssemblyName>API.Services</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
......@@ -145,7 +145,7 @@ namespace API.Services.HqygManageServices
string resStrJson = HttpGetOrPost.httpGet("https://oa.bailuntec.com/api/Currency/GetCurrency");
string resStrJson = HttpGetOrPost.httpGet("http://oa.bailuntec.com/api/Currency/GetCurrency");
List<SetCategoryCurrencysByOADto> resultList = JsonConvert.DeserializeObject<List<SetCategoryCurrencysByOADto>>(resStrJson);
ProductBaseDto result = new ProductBaseDto();
result.response = true;
......
......@@ -262,6 +262,10 @@ namespace API.Services.ProductManageServices
{
tempBase.s_category_simple = objBase.s_category_simple;
}
if (objBase.s_category_bailun_id > 0)
{
tempBase.s_category_bailun_id = objBase.s_category_bailun_id;
}
tempBase = ExChangeBatchToEntity(item, dicModel);
tempBase.s_updatename = batchProduct.updateName;
myBaseList.Add(tempBase);
......@@ -477,7 +481,8 @@ namespace API.Services.ProductManageServices
{
var myCateList = yt_category_bailun.GetMyParentCategories(item.s_category_bailun_id);
var objMyCate = myCateList.FirstOrDefault(m => m.c_id == item.s_category_bailun_id);
item.s_category_bailun_name = yt_category_bailun.GetFullNameByList(myCateList);
item.s_category_bailun_name = yt_category_bailun.GetFullNameByID(item.s_category_bailun_id, "cn");
//item.s_category_bailun_name = yt_category_bailun.GetFullNameByList(myCateList,1,"cn");
}
}
//if (item.s_category_simple == 1 && objModel.s_category_simple > 0)
......
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data></configuration>
\ No newline at end of file
</system.data><startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ApiControl</RootNamespace>
<AssemblyName>ApiControl</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data></configuration>
\ No newline at end of file
</system.data><startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
......@@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BailunRedis</RootNamespace>
<AssemblyName>BailunRedis</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CommonControl</RootNamespace>
<AssemblyName>CommonControl</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<!--<add name="DbConn" connectionString="server=192.168.6.140;port=3306;database=bailundb;uid=root;password=123456;" providerName="MySql.Data.MySqlClient" />-->
<add name="DbConn" connectionString="server=gz-cdb-lnrmt5zh.sql.tencentcdb.com;database=bailundb;uid=root;password=#7kfnymAM$Y9-Ntf;port=61369;Convert Zero Datetime=True;Allow User Variables=True" providerName="MySql.Data.MySqlClient" />
<add name="DbConn" connectionString="server=gz-cdb-lnrmt5zh.sql.tencentcdb.com;database=bailundb;uid=root;password=#7kfnymAM$Y9-Ntf;port=61369;Convert Zero Datetime=True;Allow User Variables=True" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data></configuration>
......@@ -32,6 +32,10 @@ namespace PetaPoco.Custom.ProductData
///百伦分类
///</summary>
public int s_category_bailun_id { get; set; }
/// <summary>
/// 百伦分类
/// </summary>
public int? pd_category_bailun_id { get; set; }
///<summary>
///简易分类
......
......@@ -2,25 +2,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
......@@ -29,7 +10,6 @@ using PetaPoco;
namespace DbConn
{
public partial class DbConnDB : Database
{
public DbConnDB()
......@@ -77,7 +57,6 @@ namespace DbConn
_instance=null;
}
public class Record<T> where T:new()
{
/// <summary>
......@@ -140,11 +119,9 @@ namespace DbConn
public static DbConnDB repo { get { return DbConnDB.GetInstance(); } }
public bool IsNew() { return repo.IsNew(this); }
public object Insert() { return repo.Insert(this); }
public void Save() { repo.Save(this); }
public int Update() { return repo.Update(this); }
/// <summary>
/// add by model
/// </summary>
......@@ -199,9 +176,7 @@ namespace DbConn
public static Page<T> Page(long page, long itemsPerPage, Sql sql) { return repo.Page<T>(page, itemsPerPage, sql); }
public static IEnumerable<T> Query(string sql, params object[] args) { return repo.Query<T>(sql, args); }
public static IEnumerable<T> Query(Sql sql) { return repo.Query<T>(sql); }
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PetaPoco</RootNamespace>
<AssemblyName>PetaPoco</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
......@@ -203,6 +203,7 @@ namespace WebApi.Areas.ProductManage.Controllers
if (pare.state)
{
var model = CommonBaseLib.GetJsonToObject<BatchProductInfo>(pare.data.data);
model.pd_category_bailun_id = model.s_category_bailun_id > 0 ? model.s_category_bailun_id : model.pd_category_bailun_id;
result = ProductServices.BatchProductInfo(model);
}
else
......
......@@ -9,13 +9,13 @@
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>F:\IIS Project\ApiCenter</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>True</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<ExcludeApp_Data>false</ExcludeApp_Data>
<publishUrl>D:\pamsApi</publishUrl>
<DeleteExistingFiles>true</DeleteExistingFiles>
<PrecompileBeforePublish>true</PrecompileBeforePublish>
<EnableUpdateable>true</EnableUpdateable>
<DebugSymbols>false</DebugSymbols>
<WDPMergeOption>DonotMerge</WDPMergeOption>
</PropertyGroup>
<ItemGroup>
......
......@@ -15,7 +15,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WebApi</RootNamespace>
<AssemblyName>WebApi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
......@@ -93,17 +93,14 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Abstractions" />
<Reference Include="System.Web.Routing" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
......@@ -150,6 +147,7 @@
<Private>True</Private>
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WebGrease">
<Private>True</Private>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment