private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            FISCA.UDT.AccessHelper ah = new FISCA.UDT.AccessHelper();
            string query = string.Format("ref_student_id={0} and ref_template_id ='{1}'", this.PrimaryKey, this.currentTemplate.UID);
            List <UDT_ABCardDataDef> records = ah.Select <UDT_ABCardDataDef>(query);

            if (records.Count > 0)
            {
                this.card_data = records[0];
            }
            else
            {
                this.card_data = null;
            }
        }
        void BasicInfo_SaveButtonClick(object sender, EventArgs e)
        {
            this.Loading = true;
            if (this.card_data == null)
            {
                this.card_data             = new UDT_ABCardDataDef();
                this.card_data.StudentID   = int.Parse(this.PrimaryKey);
                this.card_data.SubjectName = this.currentTemplate.SubjectName;
                this.card_data.TemplateID  = int.Parse(this.currentTemplate.UID);
                this.card_data.Content     = this.subjUim.GetAnswers();
            }
            else
            {
                this.card_data.Content = this.subjUim.GetAnswers();
            }

            this.backgroundWorker2.RunWorkerAsync();
        }