Example #1
0
 /// <summary>
 /// 选择一标一类后,开始具体信息解析处理。
 /// </summary>
 /// <param name="tm_loc_info"></param>
 private void Tm_loc_info_View_OnSelectTmLocInfo(Models.Tm_loc_info tm_loc_info)
 {
     this.Tm_loc_info           = tm_loc_info;
     this.label2_applicant.Text = tm_loc_info.Applicant;
     this.label3_tmName.Text    = tm_loc_info.TmName;
     this.label5_ictm.Text      = tm_loc_info.TmIctm.ToString();
     this.label3_tmNum.Text     = tm_loc_info.TmNum.Replace("-", "");
     AutoWriteTmNum();
     AutoWriteApplicantInfo();
     GetGroupInfoList();
     AutoSelectItem();
 }
Example #2
0
        /// <summary>
        /// 确定按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            Tm_loc_info t = new Models.Tm_loc_info();

            t.Applicant = this.dataGridView1.SelectedRows[0].Cells["Applicant"].Value.ToString();
            t.Phone     = this.dataGridView1.SelectedRows[0].Cells["Phone"].Value.ToString();
            t.TmIctm    = (int)this.dataGridView1.SelectedRows[0].Cells["TmIctm"].Value;
            t.TmId      = this.dataGridView1.SelectedRows[0].Cells["TmId"].Value.ToString();
            t.TmName    = this.dataGridView1.SelectedRows[0].Cells["TmName"].Value.ToString();
            t.TmNum     = this.dataGridView1.SelectedRows[0].Cells["TmNum"].Value.ToString();
            if (OnSelectTmLocInfo != null)
            {
                this.Hide();
                OnSelectTmLocInfo(t);
            }

            this.Close();
        }