public static string GetSqlPartWithGroupName(string prefix, GroupInfoQueue groupInfoQueue, List <string> lstHaveExist)
        {
            string result = null;

            foreach (GroupInfo item in groupInfoQueue)
            {
                GroupInfo gdata = item as GroupInfo;
                if (gdata == null)
                {
                    continue;
                }
                string columnName = gdata.Type.ToString();
                if (lstHaveExist.Contains(columnName))
                {
                    continue;
                }

                if (string.IsNullOrEmpty(result) == false)
                {
                    result += ",";
                }
                result += prefix + gdata.Type.ToString();
            }

            if (string.IsNullOrEmpty(result) == false)
            {
                result = "," + result;
            }

            return(result);
        }
Esempio n. 2
0
        //获取默认的分组类型
        private static GroupInfoQueue GetDefaultGroup()
        {
            GroupInfoQueue lstSortInfo = new GroupInfoQueue();

            //lstSortInfo.Add(new GroupInfo() { Type = SortType.CYCMC });
            //lstSortInfo.Add(new GroupInfo() { Type = SortType.YTMC });

            return(lstSortInfo);
        }
Esempio n. 3
0
        public ProjectData(ProjectInfoDto c)
        {
            ID         = c.Id.ToString();
            Text       = c.MC;
            Desciption = c.Remark;
            CreateTime = c.CreateTime;
            UpdateTime = c.UpdateTime;

            GroupList = new GroupInfoQueue();
            SortList  = new SortInfoQueue();

            GroupList.ConvertFrom(c.GroupList);
            SortList.ConvertFrom(c.SortList);
        }
Esempio n. 4
0
 public ProjectData()
 {
     GroupList = new GroupInfoQueue();
     SortList  = new SortInfoQueue();
 }