예제 #1
0
        public static IList <MemberOrderlinessInfo> GetMemberOrderlinessList(int startRowIndexId, int maxNumberRows, string userName, int year, int month, bool isAll)
        {
            if (string.IsNullOrEmpty(userName))
            {
                return(new List <MemberOrderlinessInfo>());
            }
            DateTime today = DateTime.Today;

            if ((year == 0) || (month == 0))
            {
                isAll = true;
            }
            else
            {
                string str = month.ToString();
                if (str.Length == 1)
                {
                    str = "0" + str;
                }
                today = DataConverter.CDate(year.ToString() + "-" + str + "-01");
            }
            return(dal.GetMemberOrderlinessList(startRowIndexId, maxNumberRows, DataSecurity.FilterBadChar(userName), today, isAll));
        }