Exemplo n.º 1
0
 private void dgv_xmjg1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 1)
     {
         dgv_xmjg1.Rows[e.RowIndex].Cells["pyjm1"].Value = xtbiz.Get_Py(dgv_xmjg1.Rows[e.RowIndex].Cells["mc1"].Value.ToString().Trim());
         dgv_xmjg1.Rows[e.RowIndex].Cells["wbjm1"].Value = xtbiz.Get_Wb(dgv_xmjg1.Rows[e.RowIndex].Cells["mc1"].Value.ToString().Trim());
     }
 }
Exemplo n.º 2
0
 private void dgv_zdjy_CellEndEdit(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 1)
     {
         dgv_zdjy.Rows[e.RowIndex].Cells["pyjm"].Value = xtbiz.Get_Py(dgv_zdjy.Rows[e.RowIndex].Cells["keyword"].Value.ToString().Trim());
         dgv_zdjy.Rows[e.RowIndex].Cells["wbjm"].Value = xtbiz.Get_Wb(dgv_zdjy.Rows[e.RowIndex].Cells["keyword"].Value.ToString().Trim());
         dgv_zdjy.Rows[e.RowIndex].Cells["zdym"].Value = dgv_zdjy.Rows[e.RowIndex].Cells["bh"].Value.ToString().Trim();
         dgv_zdjy.Rows[e.RowIndex].Cells["mc"].Value   = dgv_zdjy.Rows[e.RowIndex].Cells["keyword"].Value.ToString().Trim();
     }
 }
Exemplo n.º 3
0
 private void txt_mc_Leave(object sender, EventArgs e)
 {
     txt_pyjm.Text = xtbiz.Get_Py(txt_mc.Text);
     txt_wbjm.Text = xtbiz.Get_Wb(txt_mc.Text);
 }