protected override IJsonField ConvertJson(string jsonTypeName, string jsonData) { IJsonField deaultJsonObj = null; try { if (jsonTypeName == typeof(JExamItemInfo).FullName) { deaultJsonObj = new JExamItemInfo(); return(JsonHelper.DeserializeObject <JExamItemInfo>(jsonData)); } else if (jsonTypeName == typeof(JExamBindExpense).FullName) { deaultJsonObj = new JExamBindExpense(); return(JsonHelper.DeserializeObject <JExamBindExpense>(jsonData)); } return(null); } catch (Exception ex) { MsgBox.ShowException(ex, null); return(deaultJsonObj); } }
protected override void InitJsonInstance() { 项目信息 = new JExamItemInfo(); 绑费信息 = new JExamBindExpense(); }