订单列表每一行的表头
This commit is contained in:
1 parent
edc7913637
commit
44503f91cf
14 files changed
+186
-59
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using AllBase;
|
||||
using _29WxOrderWpf.BaseWindows;
|
||||
using AllBase;
|
||||
using AllBase.Extension;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model;
|
||||
@@ -48,8 +49,11 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
//dgOrder.Items.Add(1111111);
|
||||
|
||||
//dgOrder.ItemsSource = lstOrder;
|
||||
|
||||
//lbxOrder.ItemsSource = lstOrder;
|
||||
|
||||
dateStart.SelectedDate = DateTime.Now.Date.AddDays(-30);
|
||||
dateEnd.SelectedDate = DateTime.Now.Date.AddDays(1).AddSeconds(-1);
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
while (!MainWindow.Instance.hasReadShop)
|
||||
@@ -78,6 +82,8 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
{
|
||||
int page = 0;
|
||||
int totalPage = 1;
|
||||
int pageSize = 50;
|
||||
|
||||
while (true)
|
||||
{
|
||||
if (page >= totalPage)
|
||||
@@ -88,8 +94,8 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
page++;
|
||||
var url = BaseClass.Build29WxObjString("order/get_order_list");
|
||||
var data = UserLogin.GetSignaturex() + "&page=" + page;
|
||||
data += "&page_size=" + pageSize;
|
||||
var shop_id = string.Join(",", GlobalConfig.ShopLoginList.Select(s => s.ErpShopId).Where(s => !s.IsNullOrEmpty()));
|
||||
data += "&erp_shop_id_in=" + shop_id;
|
||||
Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
if (!string.IsNullOrEmpty(txtShopName.Text.Trim()))
|
||||
@@ -97,6 +103,11 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
var shopNames = txtShopName.Text.Trim().Split(';').Where(s => !s.IsNullOrEmpty()).ToList();
|
||||
shop_id = string.Join(",", GlobalConfig.ShopLoginList.Where(s => shopNames.Contains(s.ShopAccount)).Select(s => s.ErpShopId).Where(s => !s.IsNullOrEmpty()));
|
||||
}
|
||||
var startTime = BaseClass.DateTimeToTimestampSeconds(dateStart.SelectedDate.Value);
|
||||
var endTime = BaseClass.DateTimeToTimestampSeconds(dateEnd.SelectedDate.Value);
|
||||
data += "&erp_shop_id_in=" + shop_id;
|
||||
data += "&start_time=" + startTime;
|
||||
data += "&end_time=" + endTime;
|
||||
}));
|
||||
Thread.Sleep(200);
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
@@ -133,24 +144,13 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
var totalCount = BaseRegex.GetIntJson(ref html, "count");
|
||||
totalPage = Math.Ceiling(1m * totalCount / pageSize).ParseToInt();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void Path_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
var orderId = ((sender as Border)?.Tag).ParseToString();
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(orderId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
private void btnMultiShopChoice_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
MainWindow.Instance.shopListCtrl.IsVisibleChanged -= ShopListCtrl_IsVisibleChanged;
|
||||
@@ -166,9 +166,12 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
if (list != null)
|
||||
this.txtShopName.Text = string.Join(";", list.Where(s => s.IsSelect == true).Select(s => s.ShopAccount));
|
||||
|
||||
|
||||
}
|
||||
MainWindow.Instance.shopListCtrl.IsVisibleChanged -= ShopListCtrl_IsVisibleChanged;
|
||||
}
|
||||
|
||||
private void btnSearch_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user