예제 #1
0
        private string GetFileConfigAlterDDL()
        {
            StringBuilder result = new StringBuilder();

            foreach (var item in this.ToFileFieldList())
            {
                result.AppendLine(DDLHelper.GetFileFieldDDL(item));
            }
            return(result.ToString());
        }
예제 #2
0
        private string GetFileConfigAlterDDL()
        {
            StringBuilder result           = new StringBuilder();
            var           defaultFieldList = S_DOC_Space.DefaultFileAttrArray.Select(a => new Field {
                FieldName = a.FileAttrField, DataType = a.DataType
            }).ToList();

            defaultFieldList.AddRange(S_DOC_Space.DefaultFileAttrArray.Where(a => a.InputType.IndexOf(ControlType.ButtonEdit.ToString()) >= 0).Select(a => new Field {
                FieldName = a.FileAttrField + "Name", DataType = a.DataType
            }).ToList());
            foreach (var item in defaultFieldList)
            {
                result.AppendLine(DDLHelper.GetFileFieldDDL(item));
            }
            foreach (var item in this.ToFileFieldList())
            {
                result.AppendLine(DDLHelper.GetFileFieldDDL(item));
            }
            return(result.ToString());
        }