优化核价相关功能
This commit is contained in:
1 parent
01ba8cba6b
commit
12ea9bebe5
9 files changed
+457
-177
No files matched your search
@@ -31,7 +31,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
List<TemuDBProductSelect> lstAdminTemuDBProductSelect = new List<TemuDBProductSelect>();
|
||||
List<ShopLoginInfo> shopLst = new List<ShopLoginInfo>();
|
||||
List<TemuDBPriceInfo> lstDbPrice = new List<TemuDBPriceInfo>();
|
||||
List<TemuDBExtCodePriceInfo> lstDbPrice = new List<TemuDBExtCodePriceInfo>();
|
||||
List<string> lstCustomImg = new List<string>();
|
||||
Dictionary<string, string> dicCustomImg = new Dictionary<string, string>();
|
||||
|
||||
@@ -1928,9 +1928,9 @@ Content-Disposition: form-data; name=""upload_sign""
|
||||
});
|
||||
}
|
||||
|
||||
public List<TemuDBPriceInfo> GetServerPriceLst(List<string> extCodeList)
|
||||
public List<TemuDBExtCodePriceInfo> GetServerPriceLst(List<string> extCodeList)
|
||||
{
|
||||
List<TemuDBPriceInfo> list = new List<TemuDBPriceInfo>();
|
||||
List<TemuDBExtCodePriceInfo> list = new List<TemuDBExtCodePriceInfo>();
|
||||
|
||||
var url = BaseClass.BuildObjString("price/get_price_list");
|
||||
var data = UserLogin.GetSignaturex();
|
||||
@@ -1954,7 +1954,7 @@ Content-Disposition: form-data; name=""upload_sign""
|
||||
if (jArr.Count() == 0)
|
||||
return list;
|
||||
|
||||
return JsonHelper.DeserializeJsonToList<TemuDBPriceInfo>(jArr.ToString());
|
||||
return JsonHelper.DeserializeJsonToList<TemuDBExtCodePriceInfo>(jArr.ToString());
|
||||
}
|
||||
|
||||
private void btnCustomImg_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -17,8 +17,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
public partial class DbPriceEditForm : LRBaseForm
|
||||
{
|
||||
TemuDBPriceInfo priceInfo = null;
|
||||
public DbPriceEditForm(TemuDBPriceInfo price)
|
||||
TemuDBExtCodePriceInfo priceInfo = null;
|
||||
public DbPriceEditForm(TemuDBExtCodePriceInfo price)
|
||||
{
|
||||
InitializeComponent();
|
||||
if (price != null)
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
{
|
||||
public partial class DbPriceMarkUpForm : Form
|
||||
{
|
||||
List<TemuDBPriceInfo> lstPriceInfo = new List<TemuDBPriceInfo>();
|
||||
List<TemuDBExtCodePriceInfo> lstPriceInfo = new List<TemuDBExtCodePriceInfo>();
|
||||
|
||||
public DbPriceMarkUpForm()
|
||||
{
|
||||
@@ -111,7 +111,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
if (productArr.Length > 3)
|
||||
{
|
||||
count++;
|
||||
TemuDBPriceInfo price = new TemuDBPriceInfo
|
||||
TemuDBExtCodePriceInfo price = new TemuDBExtCodePriceInfo
|
||||
{
|
||||
ext_code = productArr[0],
|
||||
original_price = (productArr[1].ParseToDecimal() * 100).ParseToInt(),
|
||||
@@ -158,7 +158,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
public string AddDbPrice(TemuDBPriceInfo _price, bool isShowErrMsg = true)
|
||||
public string AddDbPrice(TemuDBExtCodePriceInfo _price, bool isShowErrMsg = true)
|
||||
{
|
||||
var url = BaseClass.BuildObjString("price/add_price");
|
||||
var data = UserLogin.GetSignaturex()
|
||||
@@ -270,9 +270,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
return extCodeList;
|
||||
}
|
||||
|
||||
public List<TemuDBPriceInfo> GetServerPriceLst(out int pageCount, int page = 1, int pageSize = 200)
|
||||
public List<TemuDBExtCodePriceInfo> GetServerPriceLst(out int pageCount, int page = 1, int pageSize = 200)
|
||||
{
|
||||
List<TemuDBPriceInfo> list = new List<TemuDBPriceInfo>();
|
||||
List<TemuDBExtCodePriceInfo> list = new List<TemuDBExtCodePriceInfo>();
|
||||
pageCount = 1;
|
||||
|
||||
var url = BaseClass.BuildObjString("price/get_price_list");
|
||||
@@ -313,7 +313,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
if (jArr.Count() == 0)
|
||||
return list;
|
||||
|
||||
return JsonHelper.DeserializeJsonToList<TemuDBPriceInfo>(jArr.ToString());
|
||||
return JsonHelper.DeserializeJsonToList<TemuDBExtCodePriceInfo>(jArr.ToString());
|
||||
}
|
||||
|
||||
private void dgvPrice_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
@@ -351,7 +351,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
||||
|
||||
private void EditForm_SaveCompleteWithDescribe(object arg1, object arg2)
|
||||
{
|
||||
var price = arg1 as TemuDBPriceInfo;
|
||||
var price = arg1 as TemuDBExtCodePriceInfo;
|
||||
if (price != null)
|
||||
{
|
||||
var rows = this.dgvPrice.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colId"].Value.ParseToInt() == price.id);
|
||||
|
||||
Reference in new issue
Block a user