private void CP_PersonLeave_Load(object sender, EventArgs e) { LeaveInfo = new LeaveInfo(); gridControlLEAVES.DataSource = LeaveInfo.GetPersonLeavesTable(); personInfo = new PersonInfo(); gridCtrl_StudentInfo.DataSource = personInfo.GetPersonInfoTable(); }
/// <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(); }
private void buttonCANCEL_Click(object sender, EventArgs e) { LeaveInfo.CancelLeaveRecord(textEditID.Text); gridControlLEAVES.DataSource = LeaveInfo.GetPersonLeavesTable(); }