/// <summary>
        /// 销假
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonCANCELLEAVES_Click(object sender, EventArgs e)
        {
            int rowcount = gridView2007.RowCount; //获取选中的行标

            if (rowcount > 0)                     //选中所选的行
            {
                for (int i = 0; i < rowcount - 1; i++)
                {
                    string s = gridView2007.GetRowCellDisplayText(i, gridColumn17);
                    if (s == "Checked")//是否被选中
                    {
                        leaveInfo = new LeaveInfo();
                        string text = gridView2007.GetRowCellDisplayText(i, gridColumn11);
                        leaveInfo.CancelLeaveRecord(text);
                    }
                }
                UpdateAwayPersonDataTable();
            }
        }
 private void buttonCANCEL_Click(object sender, EventArgs e)
 {
     LeaveInfo.CancelLeaveRecord(textEditID.Text);
     gridControlLEAVES.DataSource = LeaveInfo.GetPersonLeavesTable();
 }