コード例 #1
0
        public bool LoadData(int year, int month)
        {
            if (month < 1 || month > 12)
            {
                return(false);
            }
            if (year < 2008 || year > 2030)
            {
                return(false);
            }
            string sql = CreateSql(year, month);

            try
            {
                m_RequestsAdapter.FillBySelectStr(getMoneyDataSet.Requests, "Select * From [Requests] " + sql + " Order by [ListNumber]");
                return(true);
            }
            catch (Exception ex)
            {
                //LastErrorString = ex.Message;
            }
            return(false);
        }