Пример #1
0
        public static CodeTableFieldInfoEx CreateSortField()
        {
            var result = new CodeTableFieldInfoEx(DecoderConst.SORT_FIELD_NAME, "排序",
                                                  TkDataType.Int, false, true);

            return(result.SetDefaultShow(PageStyle.None));
        }
Пример #2
0
        public static CodeTableFieldInfoEx CreateActiveField()
        {
            var result = new CodeTableFieldInfoEx(DecoderConst.DEL_FIELD_NAME,
                                                  "删除标志", TkDataType.Short, false, true);

            return(result.SetDefaultShow(PageStyle.List));
        }
Пример #3
0
        public static CodeTableFieldInfoEx CreatePyField(string caption)
        {
            string displayName = string.IsNullOrEmpty(caption) ? "拼音" : caption;
            var    result      = new CodeTableFieldInfoEx(DecoderConst.PY_FIELD_NAME, displayName,
                                                          TkDataType.String, false, true);

            return(result.SetDefaultShow(PageStyle.List | PageStyle.Update));
        }