|
@@ -173,37 +173,38 @@ namespace wispro.sp.winClient
|
|
|
|
|
|
private async void button3_Click(object sender, EventArgs e)
|
|
private async void button3_Click(object sender, EventArgs e)
|
|
{
|
|
{
|
|
- CreateAppealModel model = new CreateAppealModel();
|
|
|
|
- HttpClient http = new HttpClient();
|
|
|
|
- PerformanceItem item = await http.GetFromJsonAsync<wispro.sp.entity.PerformanceItem>($"http://localhost:39476/api/PerformanceItem/Get?Id=7341");
|
|
|
|
- List<AppealType> appealTypes = await http.GetFromJsonAsync<List<AppealType>>($"http://localhost:39476/api/Appeal/GetAppealTypes");
|
|
|
|
- var appealType = appealTypes.Where<AppealType>(a => a.Id == 1).FirstOrDefault();
|
|
|
|
- await model.Init(item, appealType);
|
|
|
|
- //await TestQueryFilter();
|
|
|
|
- List<PerformanceItem> retList = new List<PerformanceItem>();
|
|
|
|
- var test= retList.Where<PerformanceItem>(p => p.isDanger());
|
|
|
|
|
|
+ wispro.sp.utility.MailUtil.SendEmail("测试邮件标题","测试邮件内容","罗才洋","luocaiyang@139.com");
|
|
|
|
+ //CreateAppealModel model = new CreateAppealModel();
|
|
|
|
+ //HttpClient http = new HttpClient();
|
|
|
|
+ //PerformanceItem item = await http.GetFromJsonAsync<wispro.sp.entity.PerformanceItem>($"http://localhost:39476/api/PerformanceItem/Get?Id=7341");
|
|
|
|
+ //List<AppealType> appealTypes = await http.GetFromJsonAsync<List<AppealType>>($"http://localhost:39476/api/Appeal/GetAppealTypes");
|
|
|
|
+ //var appealType = appealTypes.Where<AppealType>(a => a.Id == 1).FirstOrDefault();
|
|
|
|
+ //await model.Init(item, appealType);
|
|
|
|
+ ////await TestQueryFilter();
|
|
|
|
+ //List<PerformanceItem> retList = new List<PerformanceItem>();
|
|
|
|
+ //var test= retList.Where<PerformanceItem>(p => p.isDanger());
|
|
|
|
|
|
- await InitRules(true);
|
|
|
|
|
|
+ //await InitRules(true);
|
|
|
|
|
|
- //return;
|
|
|
|
|
|
+ ////return;
|
|
|
|
|
|
- await ImportUsers();
|
|
|
|
- await InputPerformanceItem("ExcelFiles\\21.01-21.06 工程师绩效报表-总表.xlsx", true, false, 0);
|
|
|
|
|
|
+ //await ImportUsers();
|
|
|
|
+ //await InputPerformanceItem("ExcelFiles\\21.01-21.06 工程师绩效报表-总表.xlsx", true, false, 0);
|
|
|
|
|
|
- //CalMonth cal = new CalMonth()
|
|
|
|
- //{
|
|
|
|
- // Year = 2021,
|
|
|
|
- // Month = 9,
|
|
|
|
- // Status = 0
|
|
|
|
- //};
|
|
|
|
|
|
+ ////CalMonth cal = new CalMonth()
|
|
|
|
+ ////{
|
|
|
|
+ //// Year = 2021,
|
|
|
|
+ //// Month = 9,
|
|
|
|
+ //// Status = 0
|
|
|
|
+ ////};
|
|
|
|
|
|
- //await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--发客户超过一个月未完成案件.xlsx", true,false,1, cal);
|
|
|
|
|
|
+ ////await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--发客户超过一个月未完成案件.xlsx", true,false,1, cal);
|
|
|
|
|
|
- //await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--上个月递交完成案件.xlsx", true, false, 1, cal);
|
|
|
|
|
|
+ ////await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--上个月递交完成案件.xlsx", true, false, 1, cal);
|
|
|
|
|
|
- //await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--中国一次OA授权表.xlsx", true, false, 1, cal,true);
|
|
|
|
|
|
+ ////await InputPerformanceItem(@"C:\Users\luowen\Downloads\每月绩效统计--中国一次OA授权表.xlsx", true, false, 1, cal,true);
|
|
|
|
|
|
- MessageBox.Show("导入完成!");
|
|
|
|
|
|
+ //MessageBox.Show("导入完成!");
|
|
}
|
|
}
|
|
|
|
|
|
private PerformanceItem Row2Item_1(DataRow row, List<Staff> Staffs, CalMonth calMonth)
|
|
private PerformanceItem Row2Item_1(DataRow row, List<Staff> Staffs, CalMonth calMonth)
|