|
|
@@ -34,11 +34,7 @@ namespace MySystem
|
|
|
string _ExcelPath = dataList[0];
|
|
|
string _Kind = dataList[1];
|
|
|
string checkKey = dataList[2];
|
|
|
- string Operator = "";
|
|
|
- if (_Kind == "UserCashRecord")
|
|
|
- {
|
|
|
- Operator = dataList[3];
|
|
|
- }
|
|
|
+ string Operator = dataList[3];
|
|
|
int SuccessCount = 0;
|
|
|
int DoCount = 0;
|
|
|
string FullExcelPath = function.getPath(_ExcelPath);
|
|
|
@@ -99,6 +95,7 @@ namespace MySystem
|
|
|
StoreStockChange stockchange = db.StoreStockChange.Add(new StoreStockChange()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = storefor.StoreId, //仓库
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ProductName = RelationClass.GetKqProductBrandInfo(BrandId), //产品名称
|
|
|
@@ -129,6 +126,7 @@ namespace MySystem
|
|
|
db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -195,6 +193,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 0, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|
|
|
@@ -293,6 +292,7 @@ namespace MySystem
|
|
|
StoreStockChange stockchange = db.StoreStockChange.Add(new StoreStockChange()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = storefor.StoreId, //仓库
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ProductName = RelationClass.GetKqProductBrandInfo(BrandId), //产品名称
|
|
|
@@ -327,6 +327,7 @@ namespace MySystem
|
|
|
db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -348,6 +349,7 @@ namespace MySystem
|
|
|
db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = tostore.UserId, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -427,6 +429,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 1, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|
|
|
@@ -465,6 +468,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 0, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|
|
|
@@ -565,6 +569,7 @@ namespace MySystem
|
|
|
StoreStockChange stockchange = db.StoreStockChange.Add(new StoreStockChange()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = storefor.StoreId, //仓库
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ProductName = RelationClass.GetKqProductBrandInfo(BrandId), //产品名称
|
|
|
@@ -603,6 +608,7 @@ namespace MySystem
|
|
|
UserStoreChange userstore = db.UserStoreChange.Add(new UserStoreChange()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -629,6 +635,7 @@ namespace MySystem
|
|
|
db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -650,6 +657,7 @@ namespace MySystem
|
|
|
db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
UserId = touser.Id, //创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
@@ -737,6 +745,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 1, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|
|
|
@@ -902,6 +911,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 1, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|
|
|
@@ -937,6 +947,7 @@ namespace MySystem
|
|
|
StoreBalance balance = db.StoreBalance.Add(new StoreBalance()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|
|
|
+ CreateMan = Operator,
|
|
|
StoreId = StoreId, //仓库
|
|
|
TransType = 0, //交易类型
|
|
|
BrandId = BrandId, //产品类型
|