public AddEditCaseViewModel(CaseInfo caseInfo, bool isEditMode = false) : base("案件", isEditMode) { OldCase = caseInfo; NewCase = (CaseInfo)caseInfo.Clone(); IsEditMode = isEditMode; if (isEditMode) { Caption = string.Format("修改案件【{0}】", NewCase.CaseName); } else { NewCase.UserGroupId = Framework.Container.Instance.AuthenticationService.CurrUser.UserGroupID; Caption = "新增案件"; } }