1更新cef版本到138 2其他一些小改动
This commit is contained in:
1 parent
800ccb857d
commit
c5be88568c
161 files changed
+1670
-6757
No files matched your search
@@ -24,36 +24,36 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
public partial class FreightTemplateAddForm : BaseForm
|
||||
{
|
||||
public static List<string> ids = new List<string>();
|
||||
|
||||
|
||||
public FreightTemplateAddForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string template_name = txtTemplate.Text.ToString();
|
||||
int num =0;
|
||||
int num = 0;
|
||||
decimal price = 0;
|
||||
int addnum = 0;
|
||||
decimal addPrcie = 0;
|
||||
if (rbcost0.Checked)
|
||||
{
|
||||
num = Convert.ToInt32(txtNum.Text);
|
||||
price = Convert.ToDecimal(txtPrice.Text);
|
||||
addnum = Convert.ToInt32(txtAddNum.Text);
|
||||
addPrcie = Convert.ToDecimal(txtAddPrcie.Text);
|
||||
num = Convert.ToInt32(txtNum.Text);
|
||||
price = Convert.ToDecimal(txtPrice.Text);
|
||||
addnum = Convert.ToInt32(txtAddNum.Text);
|
||||
addPrcie = Convert.ToDecimal(txtAddPrcie.Text);
|
||||
}
|
||||
var prov = cobProvince.SelectedItem as ListItem;
|
||||
int pid = int.Parse(prov.Value);
|
||||
var city = cobCity.SelectedItem as ListItem;
|
||||
int cid = int.Parse(city.Value);
|
||||
ids = dgvShop.Rows.Cast<DataGridViewRow>()
|
||||
.Where(r1 => r1.Cells["colSelect"].Value.ToString().ToLower() == "true")
|
||||
.Select(r2 => r2.Cells["colShopId"].Value?.ToString()).ToList();
|
||||
ids = dgvShop.Rows.Cast<DataGridViewRow>()
|
||||
.Where(r1 => r1.Cells["colSelect"].Value.ToString().ToLower() == "true")
|
||||
.Select(r2 => r2.Cells["colShopId"].Value?.ToString()).ToList();
|
||||
|
||||
Task.Run(()=> {
|
||||
Task.Run(() => {
|
||||
for (int i = 0; i < GlobalConfig.ShopLoginList.Count; i++)
|
||||
{
|
||||
var shop = GlobalConfig.ShopLoginList[i];
|
||||
@@ -99,32 +99,32 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
data = HttpUtility.UrlEncode(data, Encoding.UTF8).Replace("%3d", "=").Replace("%26", "&");
|
||||
string html = GetPostTaobaoHtml.UploadFxgPost(url, refere, true, data, shop.Cookies);
|
||||
long template_id = BaseRegex.GetLongJson(ref html, "template_id");
|
||||
if (template_id>0)
|
||||
if (template_id > 0)
|
||||
{
|
||||
RefreshDataGridView(shop, "运费模板设置成功");
|
||||
RefreshLog(shop.ShopAccount+"运费模板设置成功");
|
||||
|
||||
RefreshLog(shop.ShopAccount + "运费模板设置成功");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
RefreshDataGridView(shop, "运费模板设置失败");
|
||||
RefreshLog(shop.ShopAccount + "运费模板设置失败");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
int count = 0;
|
||||
public void RefreshDataGridView(ShopLoginInfo shop,string message)
|
||||
public void RefreshDataGridView(ShopLoginInfo shop, string message)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
count++;
|
||||
for (int i = 0; i < dgvShop.Rows.Count; i++)
|
||||
{
|
||||
if (shop.ShopId== dgvShop.Rows[i].Cells["colShopId"].Value.ToString())
|
||||
if (shop.ShopId == dgvShop.Rows[i].Cells["colShopId"].Value.ToString())
|
||||
{
|
||||
dgvShop.Rows[i].Cells["colStatus"].Value = message;
|
||||
break;
|
||||
@@ -185,7 +185,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
if (rbtype1.Checked)
|
||||
{
|
||||
label5.Text= "件以内,";
|
||||
label5.Text = "件以内,";
|
||||
label7.Text = "件,增加运费";
|
||||
}
|
||||
}
|
||||
@@ -203,7 +203,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
var area = cobProvince.SelectedItem as ListItem;
|
||||
int id = int.Parse(area.Value);
|
||||
var shop = GlobalConfig.ShopLoginList.Where(s=>s.LoginStatus=="登录成功").FirstOrDefault();
|
||||
var shop = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功").FirstOrDefault();
|
||||
if (shop == null)
|
||||
return;
|
||||
List<ListItem> list = new List<ListItem>();
|
||||
@@ -219,7 +219,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
string temp = m[i].Groups[0].Value;
|
||||
long pid = BaseRegex.GetLongJson(ref temp, "city_id");
|
||||
string pname = BaseRegex.GetStringJson(ref temp, "city");
|
||||
list.Add(new ListItem(pname,pid.ToString()));
|
||||
list.Add(new ListItem(pname, pid.ToString()));
|
||||
}
|
||||
cobCity.DisplayMember = "Text";
|
||||
cobCity.ValueMember = "Value";
|
||||
@@ -257,7 +257,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
string item = striparr[i];
|
||||
string pname = item.Split(':')[0];
|
||||
string pid= item.Split(':')[1];
|
||||
string pid = item.Split(':')[1];
|
||||
list.Add(new ListItem(pname, pid));
|
||||
}
|
||||
cobProvince.DisplayMember = "Text";
|
||||
|
||||
Reference in new issue
Block a user