Browse Source

财务端支持

qianyi
shanji 3 years ago
parent
commit
ae0144db92
  1. 3
      BBWY.Client/Models/Enums.cs
  2. 22
      BBWY.Client/Models/FinancialTerminal/ProcurementAudit/AuditPayBill.cs
  3. 12
      BBWY.Client/ViewModels/FinancialTerminal/ProcurementAuditViewModel.cs
  4. 10
      BBWY.Client/Views/FinancialTerminal/ProcurementAudit.xaml
  5. 2
      BBWY.Client/Views/MainWindow.xaml
  6. 3
      BBWY.Server.Model/Enums.cs
  7. 9
      BBWY.Test/Program.cs

3
BBWY.Client/Models/Enums.cs

@ -149,7 +149,8 @@
= 15,
= 16,
= 17,
= 18
= 18,
= 19
}
/// <summary>

22
BBWY.Client/Models/FinancialTerminal/ProcurementAudit/AuditPayBill.cs

@ -1,14 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace BBWY.Client.Models
{
public class AuditPayBill : NotifyObject
{
public void Init()
public void Init(IList<Shop> shopList)
{
isInited = true;
if (!string.IsNullOrEmpty(CustomAuditCapitalType))
AuditCapitalTypeInputMode = 1;
if (!string.IsNullOrEmpty(BelongShop))
BelongShopModel = shopList.FirstOrDefault(s => s.ShopName == BelongShop);
}
private AuditCapitalType? auditCapitalType;
@ -16,6 +20,8 @@ namespace BBWY.Client.Models
private string errorMessage;
private int auditCapitalTypeInputMode;
private bool isInited;
private Shop belongShopModel;
/// <summary>
/// 是否发生过变化
@ -80,6 +86,8 @@ namespace BBWY.Client.Models
///
public string BelongShop { get; set; }
public string BelongFileName { get; set; }
/// <summary>
@ -167,5 +175,17 @@ namespace BBWY.Client.Models
}
}
public Shop BelongShopModel
{
get => belongShopModel;
set
{
if (Set(ref belongShopModel, value) && value != null)
{
BelongShopId = value.ShopId;
BelongShop = value.ShopName;
}
}
}
}
}

12
BBWY.Client/ViewModels/FinancialTerminal/ProcurementAuditViewModel.cs

@ -172,7 +172,7 @@ namespace BBWY.Client.ViewModels
{
foreach (var b in list)
{
b.Init();
b.Init(SelectedDepartment.ShopList);
AuditPayBillList.Add(b);
}
SearchLocal();
@ -276,8 +276,14 @@ namespace BBWY.Client.ViewModels
payBill.RelationPurchaseOrderId = relationPurchaseOrder.PurchaseOrderId;
payBill.RelationShopOrderId = relationPurchaseOrder.OrderId;
payBill.BelongShopId = relationPurchaseOrder.ShopId;
payBill.BelongShop = shopList.FirstOrDefault(s => s.ShopId == relationPurchaseOrder.ShopId)?.ShopName;
var belongShop = shopList.FirstOrDefault(s => s.ShopId == relationPurchaseOrder.ShopId);
if (belongShop != null)
{
//payBill.BelongShopId = relationPurchaseOrder.ShopId;
//payBill.BelongShop = belongShop?.ShopName;
payBill.BelongShopModel = belongShop;
}
payBill.PurchasePlatform = relationPurchaseOrder.PurchasePlatform;
payBill.OrderStartTime = relationPurchaseOrder.OrderStartTime;

10
BBWY.Client/Views/FinancialTerminal/ProcurementAudit.xaml

@ -253,7 +253,15 @@
</DataGridTemplateColumn>
<!--<DataGridTextColumn Header="商户订单号" Width="200" Binding="{Binding SourceMerchantOrderNo}" ElementStyle="{StaticResource verticalCenterTextBlock}"/>-->
<DataGridTextColumn Header="归属店铺" Width="100" Binding="{Binding BelongShop}" ElementStyle="{StaticResource verticalCenterTextBlock}"/>
<DataGridTemplateColumn Header="归属店铺" Width="100">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<ComboBox ItemsSource="{Binding DataContext.SelectedDepartment.ShopList,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGrid}}}"
SelectedItem="{Binding BelongShopModel,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
VerticalContentAlignment="Center"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="关联采购单" Width="140">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>

2
BBWY.Client/Views/MainWindow.xaml

@ -26,7 +26,7 @@
<!--<TextBlock Text="{Binding GlobalContext.User.TeamName}" Margin="5,0,0,0"/>
<TextBlock Text="{Binding GlobalContext.User.Shop.Platform}" Margin="5,0,0,0"/>-->
<TextBlock Text="{Binding GlobalContext.User.Shop.ShopName}" Margin="5,0,0,0"/>
<TextBlock Text="v10051" Margin="5,0,0,0"/>
<TextBlock Text="v10052" Margin="5,0,0,0"/>
</StackPanel>
</Border>
<Grid Grid.Row="1">

3
BBWY.Server.Model/Enums.cs

@ -193,7 +193,8 @@
= 15,
= 16,
= 17,
= 18
= 18,
= 19
}
}
}

9
BBWY.Test/Program.cs

@ -62,7 +62,16 @@ namespace BBWY.Test
AdsIbgUniversalJosServiceCampaignQueryResponse response6 = client.Execute(req6, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response6));
//Console.WriteLine("----------------------客服接待 2---------------------------");
//var req = new ImPopReplystatGetRequest();
//req.waiter = "布莱特玩具";
//req.startTime = DateTime.Parse("2022-10-04");
//req.endTime = DateTime.Now;
//ImPopReplystatGetResponse imResponse = client.Execute(req, "2ace3023200c4ea9aa682bbf8bffee18jztm", DateTime.Now.ToLocalTime());
//Console.WriteLine(JsonConvert.SerializeObject(imResponse));
Console.ReadKey();
}
}

Loading…
Cancel
Save