Ejemplo n.º 1
0
        private List <string> GetRows()
        {
            List <string> returnValue = new List <string>();

            string columnString = UCGroupConditions1.GetGroupFieldAliasList(preferredTable, "Y");

            if (columnString.Trim().Length > 0)
            {
                returnValue.AddRange(columnString.Split(','));

                for (int i = 0; i < returnValue.Count; i++)
                {
                    returnValue[i] = DomainObjectUtility.GetPropertyNameByFieldName(typeof(NewReportDomainObject), returnValue[i]);
                }
            }

            return(returnValue);
        }
        private List <string> GetRows(string byTimeType)
        {
            List <string> returnValue = new List <string>();

            if (byTimeType == NewReportByTimeType.ShiftDay)
            {
                returnValue.Add("ShiftDay");
            }

            if (byTimeType == NewReportByTimeType.Week)
            {
                returnValue.Add("Week");
            }

            if (byTimeType == NewReportByTimeType.Month)
            {
                returnValue.Add("Month");
            }

            if (byTimeType == NewReportByTimeType.Year)
            {
                returnValue.Add("Year");
            }

            string columnString = UCGroupConditions1.GetGroupFieldAliasList(preferredTable, "Y");

            if (columnString.Trim().Length > 0)
            {
                returnValue.AddRange(columnString.Split(','));

                for (int i = 1; i < returnValue.Count; i++)
                {
                    returnValue[i] = DomainObjectUtility.GetPropertyNameByFieldName(typeof(NewReportDomainObject), returnValue[i]);
                }
            }

            returnValue.Add("RPTGOODQTY");
            returnValue.Add("RPTNGQty");
            returnValue.Add("ALLIQCQTY");

            return(returnValue);
        }