feat: temu活动

master
cmj 3 weeks ago
parent 7f2faa8299
commit 3b9284b9e9

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35327.3
# Visual Studio Version 16
VisualStudioVersion = 16.0.32106.194
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TradeManageNew", "TradeManageNew\TradeManageNew.csproj", "{6D7B8380-17AA-410D-A119-E7A04C2822E3}"
EndProject
@ -23,8 +23,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiNew", "ApiNew\ApiNew.csp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetLibrary", "NetLibrary\NetLibrary.csproj", "{67D6D180-0BE1-46EA-9CFB-FF738E8BC158}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ERPOMS", "ERPOMS\ERPOMS.csproj", "{A0751078-7160-4648-82A4-30E3ADEBAF2B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TradeUsedSale", "TradeUsedSale\TradeUsedSale.csproj", "{F712279E-1070-4865-855C-9EFD7A8345F4}"
EndProject
Global
@ -61,10 +59,6 @@ Global
{67D6D180-0BE1-46EA-9CFB-FF738E8BC158}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67D6D180-0BE1-46EA-9CFB-FF738E8BC158}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67D6D180-0BE1-46EA-9CFB-FF738E8BC158}.Release|Any CPU.Build.0 = Release|Any CPU
{A0751078-7160-4648-82A4-30E3ADEBAF2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0751078-7160-4648-82A4-30E3ADEBAF2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0751078-7160-4648-82A4-30E3ADEBAF2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0751078-7160-4648-82A4-30E3ADEBAF2B}.Release|Any CPU.Build.0 = Release|Any CPU
{F712279E-1070-4865-855C-9EFD7A8345F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F712279E-1070-4865-855C-9EFD7A8345F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F712279E-1070-4865-855C-9EFD7A8345F4}.Release|Any CPU.ActiveCfg = Release|Any CPU

@ -30457,6 +30457,84 @@ namespace TradeManageNew
}
return "";
}
#endregion
#region TemuShopGoodActive页
#region 保存
[WebMethod(EnableSession = true)]
public int Save_TemuShopGoodActive(TemuShopGoodActive Model)
{
Pages.Login(this.Session);
return DataNew.Save_TemuShopGoodActive(Model);
}
#endregion
#region 删除
[WebMethod(EnableSession = true)]
public bool Delete_TemuShopGoodActive(int ID)
{
PagesNew.Login(this.Session);
DataNew.Delete_TemuShopGoodActive(ID);
return true;
}
#endregion
#region 返回Model
[WebMethod(EnableSession = true)]
public TemuShopGoodActive GetModel_TemuShopGoodActive(int ID)
{
Pages.Login(this.Session);
var Model = DataNew.GetModel_TemuShopGoodActive(ID);
return Model;
}
#endregion
#region 分页查询
[WebMethod(EnableSession = true)]
public JsonModel<List<TemuShopGoodActive>> GetListTemuShopGoodActive(DateTime? StartDate, DateTime? StopDate, int State, int PageIndex, int PageSize)
{
PagesNew.Login(this.Session);
RefParameterCollection where = new RefParameterCollection();
if (StartDate != null) where.Add(new RefParameter("InDate", ">=", StartDate, System.Data.DbType.DateTime));
if (StopDate != null) where.Add(new RefParameter("convert(varchar(10), InDate, 120)", "<=", StopDate, System.Data.DbType.DateTime));
if (State > -1) where.Add(new RefParameter("a.State", "=", State, DbType.Int32));
JsonModel<List<TemuShopGoodActive>> resultModel = new JsonModel<List<TemuShopGoodActive>>();
int RowCount = 0;
resultModel.DataSource = DataNew.GetListTemuShopGoodActive(where, PageIndex, PageSize, "", out RowCount);
resultModel.RowCount = RowCount;
return resultModel;
}
#endregion
#region 普通查询列表
[WebMethod(EnableSession = true)]
public List<TemuShopGoodActive> GetListTemuShopGoodActive3()
{
PagesNew.Login(this.Session);
var ListModel = DataNew.GetListTemuShopGoodActive();
return ListModel;
}
#endregion
#region 分页查询
[WebMethod(EnableSession = true)]
public JsonModel<List<TemuShopGoodActive>> GetListTemuShopGoodActive(string cs, int PageIndex, int PageSize)
{
PagesNew.Login(this.Session);
string where = CustomIO.Base64StringToString(cs);
if (where != "") where = "where " + where.Substring(4);
var resultModel = new JsonModel<List<TemuShopGoodActive>>();
int RowCount = 0;
resultModel.DataSource = DataNew.GetListTemuShopGoodActive(where, PageIndex, PageSize, "", out RowCount);
resultModel.RowCount = RowCount;
return resultModel;
}
#endregion
#endregion
}

@ -30845,5 +30845,175 @@ end
}
#endregion
#region 保存
public static int Save_TemuShopGoodActive(TemuShopGoodActive Model)
{
string tsql = @"
if @ID>0
begin
Update [TemuShopGoodActive] set [Shopid]=@Shopid,[SKU]=@SKU,[SPUID]=@SPUID,[BasePrice]=@BasePrice,[CreateUserId]=@CreateUserId,[CreateTime]=@CreateTime,[PostPrice]=@PostPrice,[State]=@State where ID=@ID
delete from TemuShopGoodActiveDetail where ActiveId=@ID
end
else
begin
INSERT INTO [TemuShopGoodActive]([Shopid],[SKU],[SPUID],[BasePrice],[CreateUserId],[CreateTime],[PostPrice],[State])values(@Shopid,@SKU,@SPUID,@BasePrice,@CreateUserId,@CreateTime,@PostPrice,@State)
set @ID=SCOPE_IDENTITY()
end
select @ID";
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, "@ID", DbType.Int32, Model.ID);
db.AddInParameter(cmd, "@Shopid", DbType.Int32, Model.Shopid);
db.AddInParameter(cmd, "@SKU", DbType.String, Model.SKU);
db.AddInParameter(cmd, "@SPUID", DbType.String, Model.SPUID);
db.AddInParameter(cmd, "@BasePrice", DbType.Decimal, Model.BasePrice);
db.AddInParameter(cmd, "@CreateUserId", DbType.Int32, Model.CreateUserId);
db.AddInParameter(cmd, "@CreateTime", DbType.DateTime, Model.CreateTime);
db.AddInParameter(cmd, "@PostPrice", DbType.Decimal, Model.PostPrice);
db.AddInParameter(cmd, "@State", DbType.Int32, Model.State);
int a = Convert.ToInt32(db.ExecuteScalar(cmd));
tsql = @"INSERT INTO [TemuShopGoodActiveDetail]([ActiveId],[OffNum],[SalePrice],[ActiveNum],[LeftNum])values(@ActiveId,@OffNum,@SalePrice,@ActiveNum,@LeftNum)";
cmd = db.GetSqlStringCommand(tsql);
foreach (var item in Model.ListModel)
{
cmd.Parameters.Clear();
db.AddInParameter(cmd, "@ActiveId", DbType.Int32, a);
db.AddInParameter(cmd, "@OffNum", DbType.Decimal, item.OffNum);
db.AddInParameter(cmd, "@SalePrice", DbType.Decimal, item.SalePrice);
db.AddInParameter(cmd, "@ActiveNum", DbType.Int32, item.ActiveNum);
db.AddInParameter(cmd, "@LeftNum", DbType.Int32, item.LeftNum);
db.ExecuteNonQuery(cmd);
}
return a;
}
#endregion
#region 删除
public static void Delete_TemuShopGoodActive(int ID)
{
string tsql = @"
delete from TemuShopGoodActive where ID=@ID
delete from TemuShopGoodActiveDetail where ActiveId=@ID";
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, "@ID", DbType.Int32, ID);
db.ExecuteNonQuery(cmd);
}
#endregion
#region 删除明细
public static void DeleteDetail_TemuShopGoodActive(int Id)
{
string tsql = @"
delete from TemuShopGoodActiveDetail where Id=@Id";
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, "@Id", DbType.Int32, Id);
db.ExecuteNonQuery(cmd);
}
#endregion
#region 返回Model
public static TemuShopGoodActive GetModel_TemuShopGoodActive(int ID)
{
TemuShopGoodActive model = null;
//string tsql = "select a.ID,a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State from TemuShopGoodActive";
string tsql = @"
select * from TemuShopGoodActive where ID=@ID
select * from TemuShopGoodActiveDetail where ActiveId=@ID";
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, "@ID", DbType.Int32, ID);
DataSet ds = db.ExecuteDataSet(cmd);
if (ds.Tables[0].Rows.Count > 0)
{
model = ds.Tables[0].Rows[0].ToModel<TemuShopGoodActive>();
model.ListModel = ds.Tables[1].ToList<TemuShopGoodActiveDetail>();
}
return model;
}
#endregion
#region 分页查询
public static List<TemuShopGoodActive> GetListTemuShopGoodActive(RefParameterCollection where, int PageIndex, int PageSize, string Sort, out int RowCount)
{
if (where == null) where = new RefParameterCollection();
QueryService ser = new QueryService();
ser.Fields = @"ID=cast(a.ID as int),a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State";
ser.Tables = @"TemuShopGoodActive a";
ser.Filter = where.GetWhere(System.Data.CommandType.Text);
ser.PageIndex = PageIndex;
ser.PageSize = PageSize;
ser.Sort = Sort;
ser.KeyName = "ID";
string tsql = ser.GetText();
where.AddOutParameter("RowCount", System.Data.DbType.Int32); ;
List<TemuShopGoodActive> ListModel = null;
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, where);
DataTable tb = db.ExecuteDataTable(cmd);
RowCount = Convert.ToInt32(cmd.Parameters["@RowCount"].Value);
ListModel = tb.ToList<TemuShopGoodActive>();
return ListModel;
}
#endregion
#region 多条件普通查询
public static List<TemuShopGoodActive> GetListTemuShopGoodActive(RefParameterCollection where, string Sort)
{
if (where == null) where = new RefParameterCollection();
QueryOrdService ser = new QueryOrdService();
//ser.Fields = "a.ID,a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State";
ser.Fields = "a.*";
ser.Tables = @"TemuShopGoodActive a";
ser.Filter = where.GetWhere(System.Data.CommandType.Text);
ser.KeyName = "ID";
ser.Sort = Sort;
string tsql = ser.GetText();
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddInParameter(cmd, where);
DataTable tb = db.ExecuteDataTable(cmd);
List<TemuShopGoodActive> ListModel = tb.ToList<TemuShopGoodActive>();
return ListModel;
}
#endregion
#region 返回列表
public static List<TemuShopGoodActive> GetListTemuShopGoodActive()
{
//string tsql = "select a.ID,a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State from TemuShopGoodActive";
string tsql = "select * from TemuShopGoodActive";
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
DataTable tb = db.ExecuteDataTable(cmd);
List<TemuShopGoodActive> ListModel = tb.ToList<TemuShopGoodActive>();
return ListModel;
}
#endregion
#region 分页动态条件查询
public static List<TemuShopGoodActive> GetListTemuShopGoodActive(string where, int PageIndex, int PageSize, string Sort, out int RowCount)
{
QueryService2 ser = new QueryService2();
ser.Tsql = "select ID=cast(a.ID as int),a.Shopid,a.SKU,a.SPUID,a.BasePrice,a.CreateUserId,a.CreateTime,a.PostPrice,a.State from TemuShopGoodActive a";
ser.Tsql += " " + ser.Filter(where);
ser.PageIndex = PageIndex;
ser.PageSize = PageSize;
if (string.IsNullOrEmpty(Sort) == true) { ser.Sort = "a.ID desc"; }
else { ser.Sort = Sort; }
string tsql = ser.GetText();
List<TemuShopGoodActive> ListModel = null;
Database db = DatabaseFactory.CreateDatabase();
DbCommand cmd = db.GetSqlStringCommand(tsql);
db.AddOutParameter(cmd, "@RowCount", DbType.Int32, 4);
DataTable tb = db.ExecuteDataTable(cmd);
RowCount = Convert.ToInt32(cmd.Parameters["@RowCount"].Value);
ListModel = tb.ToList<TemuShopGoodActive>();
return ListModel;
}
#endregion
}
}

@ -0,0 +1,407 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TemuShopGoodPriceNew.aspx.cs" Inherits="TradeManageNew.Huowu.TemuShopGoodPriceNew" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Temu店铺商品售价</title>
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../themes/New.css?a=1" />
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../Scripts/DataGrid.js?a=3445" type="text/javascript"></script>
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
<script src="../Scripts/Global.js" type="text/javascript"></script>
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
<script src="../Scripts/ajaxfileupload.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox2.1/source/jquery.fancybox.css?v=2.1.5"
media="screen" />
<script type="text/javascript" src="../Scripts/fancybox2.1/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="../Scripts/fancybox2.1/source/jquery.fancybox.js?v=2.1.5"></script>
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript" src="../Scripts/highcharts.js"></script>
<script src="../Scripts/kindeditor/kindeditor-min.js" type="text/javascript"></script>
<script src="../Scripts/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
var UserId = "<%=Session["UserId"]%>";
var WindowLoadModel = new WindowLoad();
var Id = 0;
$(document).ready(function () {
WindowLoadModel.ApplicationPath = "../";
WindowLoadModel.ControlID = "WindowLoad";
WindowLoadModel.Isbgiframe = true;
WindowLoadModel.Load();
ajaxInit(WindowLoadModel);
GetTemuShops();
CreateDataGrid();
ReadData();
$("#btn_sch").bind("click", function () {
ReadData();
});
$("#btn_add").bind("click", function () {
Id = 0;
Clear();
fopen();
});
$("#" + datagrid1.TableID + " [CommandName='cmdDelete']").live("click", function () {
var id = $(this).closest('tr').find('td span.shopid').attr('id');
var result = confirm("确定要执行此操作吗?");
if (result) {
WindowLoadModel.Show();
var param = new Object();
param.id = id;
$.ajax({
url: "../HuoWuServiceNew.asmx/DeleteTemuShopGoodPrice",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
if (data.d.Code == 0) {
alert(data.d.Message);
}
else {
ReadData();
}
}
});
}
});
$("#btn_Excel1").click(function () {
ajaxFileUpload();
});
$("#btn_Excel2").click(function () {
var url = '../ServerCookies/TemuGoodsTemplate.xls';
// 创建隐藏的 <a> 元素
var link = document.createElement('a');
link.href = url;
link.download = url.split('/').pop(); // 设置下载文件的名称
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
})
});
//#endregion
//#region 初始化DataGrid
function CreateDataGrid() {
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "店铺名";
col.CellTemplate = "<span class='shopid' id={Bind ID}>{Bind ShopName}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "SKU";
col.CellTemplate = "<a>{Bind SKU}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "SPUID";
col.CellTemplate = "<a>{Bind SPUID}</a>";
Array.add(datagrid1.Columns, col);
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "售价";
col.CellTemplate = "<span>{Bind SalePrice}</span>";
Array.add(datagrid1.Columns, col);
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "预估运费";
col.CellTemplate = "<span>{Bind PostPrice}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "操作";
col.Width = "180px";
col.CellTemplate = "<input CommandName='cmdDelete' class='btnClass dgbtnEdit' type='button' value='Delete'>";
Array.add(datagrid1.Columns, col);
datagrid1.SetPageSize(30);
datagrid1.SetPageIndex(1);
datagrid1.IsFixHeader = false;
datagrid1.ShowIndexColumn = false;
datagrid1.AllowPaging = true;
datagrid1.Width = "100%";
datagrid1.SelectMode = nblf.ui.SelectMode.None;
datagrid1.Init();
datagrid1.add_PageIndexChanged(function () { ReadData(); });
}
//#endregion
//#region 读取数据
function ReadData() {
var param = new Object();
param.shopid = $("#select_shops").val();
param.search = $("#searchTxt").val();
param.PageSize = datagrid1.Get_PageSize();
param.PageIndex = datagrid1.Get_PageIndex();
WindowLoadModel.Show();
$.ajax({
url: "../HuoWuServiceNew.asmx/GetTemuShopGoodPriceDatas",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
datagrid1.Set_RowCount(data.d.RowCount);
datagrid1.DataBind(data.d.DataSource);
}
});
}
//获取temu平台的所有店铺
function GetTemuShops() {
$("#select_shops").append("<option value='0'>全部</option>");
var param = new Object();
param.platid = 23;
WindowLoadModel.Show();
$.ajax({
url: "../DD_OrderServiceNew.asmx/GetAllShopsListByPlat",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
if (data.d != null) {
$(data.d).each(function () {
$("#select_shops").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
$("#add_select_shop").append("<option value='" + this.ShopId + "'>" + this.ShopName + "</option>");
})
}
}
});
}
function Clear() {
$("#addsku").val("");
$("#addsalePrice").val("");
$("#addspuid").val("");
}
function fopen() {
$.fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#test',
'onComplete': function () {
}
});
}
function Save() {
var md = new Object();
var param = new Object();
md.ID = 0;
md.Shopid = $("#add_select_shop").val();
if ($("#addsku").val() == "") {
alert("SKU不能为空");
return;
}
md.SKU = $("#addsku").val();
if ($("#addsalePrice").val() == "") {
alert("价格不能为空");
return;
}
if ($("#addspuid").val() == "") {
alert("SPUID不能为空");
return;
}
if ($("#addPostPrice").val() == "") {
alert("预估运费不能为空");
return;
}
md.PostPrice = $("#addPostPrice").val();
md.SPUID = $("#addspuid").val();
md.SalePrice = $("#addsalePrice").val();
md.CreateUserId = 0;
param.md = md;
WindowLoadModel.Show();
$.ajax({
url: "../HuoWuServiceNew.asmx/SaveTemuShopGoodPrice",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
dataType: "json",
success: function (data) {
WindowLoadModel.Hide();
if (data.d.Code == 0) {
alert(data.d.Message);
} else {
ReadData();
$.fancybox.close();
}
}
});
}
function ajaxFileUpload() {
debugger;
var filename = $("#fileToUpload").val();
if (!filename.endsWith('.xls') && !filename.endsWith('.xlsx')) { alert("文件格式不正确"); return; }
$.ajaxFileUpload({
url: '../GlobalAshx/AjaxFileUpdate.ashx?DirectoryName=ServerCookies',
secureuri: false,
fileElementId: 'fileToUpload',
dataType: 'json',
success: function (data, status) {
ImportGoods("ServerCookies/" + data.FileName);
},
error: function (data, status, e) {
alert(e);
}
});
}
function ImportGoods(FileName) {
var param = new Object();
param.filePath = FileName;
WindowLoadModel.Show();
$.ajax({
url: "../HuoWuServiceNew.asmx/ImportTemuShopGoodPrices",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
if (data.d.Code == 0) { alert(data.d.Message); ReadData(); return; }
else {
ReadData();
}
},
error: function (xhr, status) {
if (status != "success") alert(xhr.responseText);
}
});
}
</script>
</head>
<body class="headbody">
<div class="title_ico">
Temu店铺活动
</div>
<div style="display: none">
<div id="test" title="新增" style="width:600px; height:400px;">
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
<tr>
<td style="width: 110px;" class="f1">
<font color="red" style="font-weight: bolder">*</font>店铺:
</td>
<td><select id="add_select_shop"></select></td>
<td style="width: 110px;" class="f1">
<font color="red" style="font-weight: bolder">*</font>SKU
</td>
<td>
<input id="addsku" class="editTextbox" style="width: 120px;" type="text" autocomplete="off" />
</td>
</tr>
<tr>
<td style="width: 110px;" class="f1">
<font color="red" style="font-weight: bolder">*</font>SPUID
</td>
<td>
<input id="addspuid" class="editTextbox" style="width: 120px;" type="text" autocomplete="off" />
</td>
<td style="width: 110px;" class="f1">
<font color="red" style="font-weight: bolder">*</font>基础价格:
</td>
<td>
<input id="addsalePrice" class="editTextbox" style="width: 120px;" type="text" autocomplete="off" />
</td>
</tr>
<tr>
<td style="width: 110px;" class="f1">
<font color="red" style="font-weight: bolder">*</font>预估运费:
</td>
<td>
<input id="addPostPrice" class="editTextbox" style="width: 120px;" type="text" autocomplete="off" />
</td> <td style="width: 110px;" class="f1">
</td>
<td>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input
id="btn_Save" type="button" class="btnClass btnClassSave" value="Save" onclick="Save();" />
</td>
</tr>
</table>
</div>
</div>
<table id="tb1" class="tableAll" style="width: 100%;">
<tr>
<td class="f1" width="13%">店铺:</td>
<td><select id="select_shops" class="selectClass" style="width: 120px" name="D2"></select></td>
<td class="f1" width="13%">SKU/SPUID</td>
<td><input id="searchTxt" class="editTextbox" style="width: 120px;" type="text" autocomplete="off" /></td>
<td><input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" /></td>
</tr>
<tr>
<td class="f1" width="10%">
<input id="btn_add" class="btnClass btnClassAdd" type="button" value="Add" />
</td>
<td >&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td valign="top" colspan="5">
<div id="DataGrid1" class="DataGridStyle"></div>
</td>
</tr>
</table>
</body>
</html>

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace TradeManageNew.Huowu
{
public partial class TemuShopGoodPriceNew : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}

@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace TradeManageNew.Huowu
{
public partial class TemuShopGoodPriceNew
{
}
}

@ -11264,5 +11264,71 @@ namespace TradeManageNew
}
public class TemuShopGoodActive
{
/// <summary>
/// ID
/// </summary>
public Int32? ID { get; set; }
/// <summary>
/// Shopid
/// </summary>
public Int32? Shopid { get; set; }
/// <summary>
/// SKU
/// </summary>
public String SKU { get; set; }
/// <summary>
/// SPUID
/// </summary>
public String SPUID { get; set; }
/// <summary>
/// 基础价格
/// </summary>
public Decimal? BasePrice { get; set; }
/// <summary>
/// CreateUserId
/// </summary>
public Int32? CreateUserId { get; set; }
/// <summary>
/// 创建日期
/// </summary>
public DateTime? CreateTime { get; set; }
/// <summary>
/// PostPrice
/// </summary>
public Decimal? PostPrice { get; set; }
/// <summary>
/// 1正常0已结束
/// </summary>
public Int32? State { get; set; }
public List<TemuShopGoodActiveDetail> ListModel { get; set; }
}
public class TemuShopGoodActiveDetail
{
/// <summary>
/// Id
/// </summary>
public Int32? Id { get; set; }
/// <summary>
/// ActiveId
/// </summary>
public Int32? ActiveId { get; set; }
/// <summary>
/// OffNum
/// </summary>
public Decimal? OffNum { get; set; }
/// <summary>
/// SalePrice
/// </summary>
public Decimal? SalePrice { get; set; }
/// <summary>
/// ActiveNum
/// </summary>
public Int32? ActiveNum { get; set; }
/// <summary>
/// LeftNum
/// </summary>
public Int32? LeftNum { get; set; }
}
}

@ -1427,6 +1427,7 @@
<Content Include="Huowu\HW_production.aspx" />
<Content Include="Huowu\TemuShopGoodPrice.aspx" />
<Content Include="Huowu\TemuShopGoodPriceCheck.aspx" />
<Content Include="Huowu\TemuShopGoodPriceNew.aspx" />
<Content Include="IndexErp.aspx" />
<Content Include="Indexerpbook.aspx" />
<Content Include="IndexNew.aspx" />
@ -2872,6 +2873,13 @@
<Compile Include="Huowu\TemuShopGoodPriceCheck.aspx.designer.cs">
<DependentUpon>TemuShopGoodPriceCheck.aspx</DependentUpon>
</Compile>
<Compile Include="Huowu\TemuShopGoodPriceNew.aspx.cs">
<DependentUpon>TemuShopGoodPriceNew.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Huowu\TemuShopGoodPriceNew.aspx.designer.cs">
<DependentUpon>TemuShopGoodPriceNew.aspx</DependentUpon>
</Compile>
<Compile Include="ImageCompress.cs" />
<Compile Include="IndexErp.aspx.cs">
<DependentUpon>IndexErp.aspx</DependentUpon>

Loading…
Cancel
Save