Example #1
0
 private void btnInsert_Click(object sender, EventArgs e)
 {
     DAO.UDT_CounselCareRecordDef CareRecord = new DAO.UDT_CounselCareRecordDef();
     CareRecord.StudentID = int.Parse(PrimaryKey);
     Forms.StudCareRecordForm scrf = new Forms.StudCareRecordForm(CareRecord, Forms.StudCareRecordForm.accessType.Insert);
     if (scrf.ShowDialog() == DialogResult.OK)
     {
         _BGRun();
     }
 }
Example #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (lvCareRecord.SelectedItems.Count == 1)
     {
         DAO.UDT_CounselCareRecordDef careRec = lvCareRecord.SelectedItems[0].Tag as DAO.UDT_CounselCareRecordDef;
         if (careRec != null)
         {
             Forms.StudCareRecordForm scrf = new Forms.StudCareRecordForm(careRec, Forms.StudCareRecordForm.accessType.Edit);
             if (scrf.ShowDialog() == DialogResult.OK)
             {
                 _BGRun();
             }
         }
     }
     else
     {
         FISCA.Presentation.Controls.MsgBox.Show("請選擇資料.");
     }
 }
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (lvCareRecord.SelectedItems.Count == 1)
     {
         DAO.UDT_CounselCareRecordDef careRec = lvCareRecord.SelectedItems[0].Tag as DAO.UDT_CounselCareRecordDef;
         if (careRec != null)
         {
             Forms.StudCareRecordForm scrf = new Forms.StudCareRecordForm(careRec, Forms.StudCareRecordForm.accessType.Edit);
             if(scrf.ShowDialog()== DialogResult.OK)
                 _BGRun();
         }
     }
     else
         FISCA.Presentation.Controls.MsgBox.Show("請選擇資料.");
 }
 private void btnInsert_Click(object sender, EventArgs e)
 {
     DAO.UDT_CounselCareRecordDef CareRecord = new DAO.UDT_CounselCareRecordDef();
     CareRecord.StudentID = int.Parse(PrimaryKey);
     Forms.StudCareRecordForm scrf = new Forms.StudCareRecordForm(CareRecord,Forms.StudCareRecordForm.accessType.Insert);
     if(scrf.ShowDialog() == DialogResult.OK)
         _BGRun();
 }