///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //既往史输血清单表 metachysis_record//////////////////////////////////////////////////////////////////////////////////////// private void button9_Click(object sender, EventArgs e) { metachysis_record hm = new metachysis_record(); if (hm.ShowDialog() == DialogResult.OK) { DataRow drtmp = goodsList2.NewRow(); drtmp["id"] = 0; drtmp["resident_base_info_id"] = id; drtmp["metachysis_reasonn"] = hm.metachysis_reasonn.ToString(); drtmp["metachysis_time"] = hm.metachysis_time.ToString(); goodsList2.Rows.Add(drtmp); } goodsList2Bind(); }
//既往史输血清单表 metachysis_record private void button9_Click(object sender, EventArgs e) { if (goodsList2.Rows.Count >= 2) { MessageBox.Show("不能超过2条数据!"); return; } metachysis_record hm = new metachysis_record(); if (hm.ShowDialog() == DialogResult.OK) { DataRow drtmp = goodsList2.NewRow(); drtmp["id"] = 0; drtmp["resident_base_info_id"] = id; drtmp["metachysis_reasonn"] = hm.metachysis_reasonn.ToString(); drtmp["metachysis_time"] = hm.metachysis_time.ToString(); drtmp["metachysis_code"] = hm.metachysis_code.ToString(); goodsList2.Rows.Add(drtmp); } goodsList2Bind(); }