Exemplo n.º 1
0
        private void bt_save_Click(object sender, EventArgs e)
        {
            string tjmxxm  = txt_tjxtbh.Text.Trim();
            LisBiz lisbiz1 = new LisBiz();

            lisbiz1.str_Delete_TJ_JGXMDZB(tjmxxm);
            dt_TJ_JGXMDZB.AcceptChanges();
            foreach (DataRow dr in dt_TJ_JGXMDZB.Rows)
            {
                string jyjx = dr["jyjx"].ToString().Trim();
                string gjc  = dr["gjc"].ToString().Trim();
                string sm   = dr["sm"].ToString().Trim();
                if (jyjx != "" && gjc != "")
                {
                    lisbiz1.str_Insert_TJ_JGXMDZB(tjmxxm, jyjx, gjc, sm);
                }
            }
            lisbiz1.Exec_ArrayList();
            MessageBox.Show("保存成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }