예제 #1
0
        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);
            }
        }
예제 #2
0
 protected override void InitJsonInstance()
 {
     项目信息 = new JExamItemInfo();
     绑费信息 = new JExamBindExpense();
 }