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