Ejemplo n.º 1
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(FYSOFT.HMIS.Models.Dictionary model)
        {
            object obj = DbHelperOLE.ExecuteSql(DictionarySQLS.InsertString(model));

            if (obj == null)
            {
                return(0);
            }
            else
            {
                return(Convert.ToInt32(obj));
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据类别获取字典列表
 /// </summary>
 /// <returns></returns>
 public DataSet GetDictTableByTypeName(String DictionaryName)
 {
     return(DbHelperOLE.Query(DictionarySQLS.GetDictTableByTypeName(DictionaryName)));
 }