private void b_new_Click(object sender, EventArgs e) { common_file.common_app.get_czsj(); Ffjzt.Fwx_other_add_edit Fwx_other_add_edit_new = new Fwx_other_add_edit(this, ""); Fwx_other_add_edit_new.zyzt = zyzt; Fwx_other_add_edit_new.Left = b_new.Left + 200; Fwx_other_add_edit_new.Top = b_new.Top; Fwx_other_add_edit_new.tB_fjrb.Text = get_fjrb; Fwx_other_add_edit_new.tB_fjbh.Text = get_fjbh; Fwx_other_add_edit_new.ShowDialog(); Cursor.Current = Cursors.Default; }
private void b_amend_Click(object sender, EventArgs e) { common_file.common_app.get_czsj(); int i = dg_wx_other.CurrentRow.Index; if (dg_wx_other.CurrentRow != null) { DataRowView dgr = dg_wx_other.CurrentRow.DataBoundItem as DataRowView; i = DS_Fwx_other.Tables[0].Rows.IndexOf(dgr.Row); if (i > -1 && i < dg_count)//当前行为内容行 { Ffjzt.Fwx_other_add_edit Fwx_other_add_edit_new = new Fwx_other_add_edit(this, DS_Fwx_other.Tables[0].Rows[i]["id"].ToString()); Fwx_other_add_edit_new.Left = b_new.Left + 200; Fwx_other_add_edit_new.Top = b_new.Top; Fwx_other_add_edit_new.tB_fjrb.Text = get_fjrb; Fwx_other_add_edit_new.tB_fjbh.Text = get_fjbh; Fwx_other_add_edit_new.judge_add_edit = common_file.common_app.get_edit; Fwx_other_add_edit_new.ShowDialog(); Cursor.Current = Cursors.Default; } } }