Exemplo n.º 1
0
        private void date_Update_EditValueChanged(object sender, EventArgs e)
        {
            if (adapter != null)
            {
                adapter.NotifyClearTable();
                adapter.NotifyDestoryTable();
            }

            adapter.Initial(controller.QueryEntryByDate(this.date_Update.DateTime.Date), builder);
            if (adapter.ItemCount == 0)
            {
                MessageBoxHelper.ShowDialog("提示", "当前日期没有打卡记录");
                return;
            }

            adapter.NotifyfreshDataTable();
            this.gridControl_Sign.DataSource = adapter.ResultTable;

            gridHelper.SetAllColumnVisible(false);
            gridHelper.SetColunmOption(builder.CatalogID, false, true);
            gridHelper.HighLightRowByCommand(new DailySignFinishStateHighlightCommand());
        }