|
@@ -43,18 +43,17 @@ namespace wispro.sp.web.Pages.AppCase
|
|
private List<StaffStatistics> MyStatistics;
|
|
private List<StaffStatistics> MyStatistics;
|
|
IEnumerable<PerformanceItem> selectedItems = new List<PerformanceItem>();
|
|
IEnumerable<PerformanceItem> selectedItems = new List<PerformanceItem>();
|
|
private CalMonth HandlingCalMonth;
|
|
private CalMonth HandlingCalMonth;
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
int _pageIndex = 1;
|
|
int _pageIndex = 1;
|
|
int _pageSize = 10;
|
|
int _pageSize = 10;
|
|
int _total;
|
|
int _total;
|
|
bool _loading = false;
|
|
bool _loading = false;
|
|
PerformanceItem EditingItem = null;
|
|
PerformanceItem EditingItem = null;
|
|
- bool _visible = false;
|
|
|
|
- bool _isAdd = false;
|
|
|
|
|
|
+ int DoingOrReview = 0;
|
|
|
|
|
|
List<TabPaneItem> tabList = new List<TabPaneItem>() {
|
|
List<TabPaneItem> tabList = new List<TabPaneItem>() {
|
|
- new TabPaneItem(){ Key ="myList", Tab ="本月待确认绩效" },
|
|
|
|
|
|
+ new TabPaneItem(){ Key ="myListDoing", Tab ="本月待确认绩效" },
|
|
new TabPaneItem(){ Key ="myAll", Tab ="往期已计算绩效"},
|
|
new TabPaneItem(){ Key ="myAll", Tab ="往期已计算绩效"},
|
|
};
|
|
};
|
|
|
|
|
|
@@ -73,7 +72,27 @@ namespace wispro.sp.web.Pages.AppCase
|
|
private Table<PerformanceItem> table;
|
|
private Table<PerformanceItem> table;
|
|
private CurrentUser _user;
|
|
private CurrentUser _user;
|
|
private string strAddProjectJX = "";
|
|
private string strAddProjectJX = "";
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ class SelectItem
|
|
|
|
+ {
|
|
|
|
+ public int Value { get; set; }
|
|
|
|
+ public string Name { get; set; }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ List<SelectItem> _Items = new List<SelectItem>()
|
|
|
|
+ {
|
|
|
|
+ new SelectItem(){Value =0,Name ="我处理的案件"},
|
|
|
|
+ new SelectItem(){Value =1,Name ="我审核的案件"}
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ private void OnSelectedItemChangedHandler(SelectItem value)
|
|
|
|
+ {
|
|
|
|
+ //_selectedItem = value;
|
|
|
|
+ //Console.WriteLine($"selected: ${value?.Name}");
|
|
|
|
+ table.ReloadData();
|
|
|
|
+ StateHasChanged();
|
|
|
|
+ }
|
|
|
|
+
|
|
protected async override Task OnInitializedAsync()
|
|
protected async override Task OnInitializedAsync()
|
|
{
|
|
{
|
|
if (isFirstInit)
|
|
if (isFirstInit)
|
|
@@ -91,6 +110,7 @@ namespace wispro.sp.web.Pages.AppCase
|
|
StateHasChanged();
|
|
StateHasChanged();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
private bool ShowMenu()
|
|
private bool ShowMenu()
|
|
{
|
|
{
|
|
var strlfd = configuration.GetValue<string>("Latest_feedback_date");
|
|
var strlfd = configuration.GetValue<string>("Latest_feedback_date");
|
|
@@ -204,7 +224,7 @@ namespace wispro.sp.web.Pages.AppCase
|
|
{
|
|
{
|
|
_loading = true;
|
|
_loading = true;
|
|
|
|
|
|
- var data = await _ItemService.Query(_user.Userid.Value, jxType.doing, queryModel);
|
|
|
|
|
|
+ var data = await _ItemService.Query(_user.Userid.Value, jxType.doing, queryModel, DoingOrReview);
|
|
|
|
|
|
_Datas = data.Results;
|
|
_Datas = data.Results;
|
|
_total = data.TotalCount;
|
|
_total = data.TotalCount;
|
|
@@ -213,13 +233,15 @@ namespace wispro.sp.web.Pages.AppCase
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
|
|
+
|
|
_loading = true;
|
|
_loading = true;
|
|
- var data = await _ItemService.Query(_user.Userid.Value, jxType.finished, queryModel);
|
|
|
|
|
|
+ var data = await _ItemService.Query(_user.Userid.Value, jxType.finished, queryModel,DoingOrReview);
|
|
|
|
|
|
_Datas = data.Results;
|
|
_Datas = data.Results;
|
|
_total = data.TotalCount;
|
|
_total = data.TotalCount;
|
|
_loading = false;
|
|
_loading = false;
|
|
StateHasChanged();
|
|
StateHasChanged();
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -231,7 +253,7 @@ namespace wispro.sp.web.Pages.AppCase
|
|
private async Task ExportDataAsync(jxType jxType)
|
|
private async Task ExportDataAsync(jxType jxType)
|
|
{
|
|
{
|
|
isDownloading = true;
|
|
isDownloading = true;
|
|
- var fileData =await _ItemService.ExportData(_user.Userid.Value, jxType);
|
|
|
|
|
|
+ var fileData =await _ItemService.ExportData(_user.Userid.Value, jxType,DoingOrReview);
|
|
|
|
|
|
while(!fileData.Finished)
|
|
while(!fileData.Finished)
|
|
{
|
|
{
|
|
@@ -243,8 +265,9 @@ namespace wispro.sp.web.Pages.AppCase
|
|
|
|
|
|
isDownloading = false;
|
|
isDownloading = false;
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ bool _visible = false;
|
|
private void OnsubShensu(PerformanceItem Item)
|
|
private void OnsubShensu(PerformanceItem Item)
|
|
{
|
|
{
|
|
EditingItem = Item;
|
|
EditingItem = Item;
|
|
@@ -319,7 +342,7 @@ namespace wispro.sp.web.Pages.AppCase
|
|
EditingItem = item;
|
|
EditingItem = item;
|
|
}
|
|
}
|
|
|
|
|
|
- string _CurrentKey = "myList";
|
|
|
|
|
|
+ string _CurrentKey = "myListDoing";
|
|
void OnTabChange(string key)
|
|
void OnTabChange(string key)
|
|
{
|
|
{
|
|
_CurrentKey = key;
|
|
_CurrentKey = key;
|