示例#1
0
文件: Global.cs 项目: amon0424/SWLHMS
 ���~�~��ViewTableAdapter.Instance.FillBy�t�C�s��(DatabaseSet.Instance.���~�~��View, �t�C�s��);
示例#2
0
        public int GetWorkingDays(int year, int month, DatabaseSet.����ViewDataTable table)
        {
            //int holidays = table.Rows.Count;
            DataRow[] rows = table.Select(null, null, DataViewRowState.CurrentRows);
            int holidays = rows.Length;
            int days = DateTime.DaysInMonth(year, month);

            return days - holidays;
        }