// 修改異動紀錄
        private void EditStudentUpdateRecord()
        {
            JHSchool.Data.JHUpdateRecordRecord objUpdate = lstRecord.SelectedItems[0].Tag as JHSchool.Data.JHUpdateRecordRecord;
            DAL.StudUpdateRecordEntity         sure      = DAL.DALTransfer2.SetStudUpdateRecordEntityTrans(objUpdate);
            UpdateRecordItemForm form = new UpdateRecordItemForm(UpdateRecordItemForm.actMode.修改, sure, PrimaryKey);

            form.ShowDialog();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            DAL.StudUpdateRecordEntity sure = DAL.DALTransfer2.AddStudUpdateRecordEntity(PrimaryKey, JHPermrec.UpdateRecord.DAL.DALTransfer2.UpdateType.Empty, DateTime.Now.ToShortDateString());
            if (sure == null)
            {
                return;
            }
            UpdateRecordItemForm form = new UpdateRecordItemForm(UpdateRecordItemForm.actMode.新增, sure, PrimaryKey);

            form.ShowDialog();
        }