添加项目文件。

This commit is contained in:
杨皓
2020-04-03 11:55:02 +08:00
parent f8a6829e30
commit d4e7a559f2
178 changed files with 20595 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using XXCpzs.helper;
using XXCpzs.Models;
namespace XXCpzs.ViewModels
{
class HuanHuoViewModel : BaseViewModel
{
public ObservableCollection<CauseItem> CauseItems { set; get; } = new ObservableCollection<CauseItem>();
public ObservableCollection<ResultModel> Items { set; get; }
public HuanHuoViewModel(int Uid)
{
Title = "产品换货登记";
Items = new ObservableCollection<ResultModel> { };
List<CauseItem> dt = HttpHelper.RefreshData<CauseItem>(17,
RestSharp.Method.POST,
new Dictionary<string, string>{
{ "Uid", Uid.ToString() },
{ "Type", "3" }
});
if (dt != null)
{
foreach (var item in dt)
{
CauseItems.Add(item);
}
}
}
}
}