/// <summary>
 /// Çë¼Ùʼþ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void buttonTAKINGLEAVE_Click(object sender, EventArgs e)
 {
     LeaveInfo            = new LeaveInfo();
     LeaveInfo.nID        = textEditID.Text;
     LeaveInfo.tLEAVEDATE = dateTimePickerFROM.Value;
     LeaveInfo.tDUEDATE   = dateTimePickerTO.Value;
     LeaveInfo.strReason  = radioGroupREASON.Properties.Items[radioGroupREASON.SelectedIndex].Description;
     LeaveInfo.InsertLeaveRecord(LeaveInfo);
     gridControlLEAVES.DataSource = LeaveInfo.GetPersonLeavesTable();
 }
        /// <summary>
        ///  //批量请假
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonCONFIRM_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();
                        leaveInfo.nID        = gridView2007.GetRowCellDisplayText(i, gridColumn11);
                        leaveInfo.tLEAVEDATE = dateTimePickerFROM.Value;
                        leaveInfo.tDUEDATE   = dateTimePickerTO.Value;
                        leaveInfo.strReason  = comboBoxMARK.Text;
                        leaveInfo.InsertLeaveRecord(leaveInfo);
                    }
                }
                UpdateStayPersonDataTable();
            }
        }