|
|
@ -30648,18 +30648,20 @@ namespace TradeManageNew
|
|
|
|
public JsonModel<List<TemuShopGoodActive>> GetListTemuShopGoodActive(string cs, int PageIndex, int PageSize, string sku, string skuid)
|
|
|
|
public JsonModel<List<TemuShopGoodActive>> GetListTemuShopGoodActive(string cs, int PageIndex, int PageSize, string sku, string skuid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//PagesNew.Login(this.Session);
|
|
|
|
//PagesNew.Login(this.Session);
|
|
|
|
string where = CustomIO.Base64StringToString(cs);
|
|
|
|
string shopid = CustomIO.Base64StringToString(cs);
|
|
|
|
string Sku = CustomIO.Base64StringToString(sku);
|
|
|
|
string Sku = CustomIO.Base64StringToString(sku);
|
|
|
|
string SkuId = CustomIO.Base64StringToString(skuid);
|
|
|
|
string SkuId = CustomIO.Base64StringToString(skuid);
|
|
|
|
if (where != "") where = "where " + where.Substring(4);
|
|
|
|
//if (where != "") where = "where " + where.Substring(4);
|
|
|
|
var resultModel = new JsonModel<List<TemuShopGoodActive>>();
|
|
|
|
var resultModel = new JsonModel<List<TemuShopGoodActive>>();
|
|
|
|
int RowCount = 0;
|
|
|
|
int RowCount = 0;
|
|
|
|
resultModel.DataSource = DataNew.GetListTemuShopGoodActive(where, PageIndex, PageSize, "", out RowCount);
|
|
|
|
resultModel.DataSource = DataNew.GetListTemuShopGoodActive_Test(shopid, Sku, SkuId);
|
|
|
|
resultModel.RowCount = RowCount;
|
|
|
|
//resultModel.RowCount = RowCount;
|
|
|
|
|
|
|
|
|
|
|
|
string ids = "";
|
|
|
|
string ids = "";
|
|
|
|
if (resultModel.DataSource != null)
|
|
|
|
if (resultModel.DataSource != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
RowCount = resultModel.DataSource.Count();
|
|
|
|
|
|
|
|
resultModel.DataSource = resultModel.DataSource.Take(PageSize).Skip(PageSize * (PageIndex - 1)).ToList();
|
|
|
|
var Active= DataNew.GetListTemuShopGoodActive();
|
|
|
|
var Active= DataNew.GetListTemuShopGoodActive();
|
|
|
|
//foreach (var omd in resultModel.DataSource)
|
|
|
|
//foreach (var omd in resultModel.DataSource)
|
|
|
|
//{
|
|
|
|
//{
|
|
|
@ -30710,8 +30712,8 @@ namespace TradeManageNew
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
resultModel.RowCount = RowCount;
|
|
|
|
return resultModel;
|
|
|
|
return resultModel;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|