// 1s 冉龙军 /// <summary> /// 初始化窗口状态 /// </summary> private void InitFormControl() { //窗口状态 switch ((int)FormType) { case 0: //NEW // 检查是否可以申诉 client.CheckRecordIsSummarizeAsync(kpiRecordID); break; case 1: //EDIT break; case 2: //BROWE SetNextButtonIsVisable(true); //获取所有申诉信息 client.GetKPIRecordComplainByRecordAsync(kpiRecordID); break; case 3: //ADUIT SetReviewIsEnable(true); if (complainId != "") { client.GetKPIRecordComplainByIDAsync(complainId); } else if (kpiRecordID != "") { client.GetKPIRecordComplainByRecordAsync(kpiRecordID); } break; } }