Exemplo n.º 1
0
        private void bt_add_Click(object sender, EventArgs e)
        {
            if (str_tjlx == "")
            {
                return;
            }
            DataRow dr = dt_TJ_SUGGESTION.NewRow();

            dr["bh"]    = ywszbiz.Get_MaxStr("TJ_SUGGESTION", "bh");
            dr["tjlx"]  = str_tjlx;
            dr["lclx"]  = str_lclx;
            dr["jbbh"]  = "1";
            dr["sfcjb"] = "0";
            dt_TJ_SUGGESTION.Rows.Add(dr);
            rtb_jynl.Text = "";
            rtb_kpsm.Text = "";
            if (dgv_zdjy.Rows.Count > 0)
            {
                dgv_zdjy.CurrentCell = dgv_zdjy.Rows[dgv_zdjy.Rows.Count - 1].Cells[0];
            }
            else
            {
                dgv_zdjy.CurrentCell = dgv_zdjy.Rows[0].Cells[0];
            }
        }
Exemplo n.º 2
0
 private void bt_add_Click(object sender, EventArgs e)
 {
     ClearControl();
     txt_lclx.Text = ywszbiz.Get_MaxStr("tj_lclxb", "lclx");
     str_state     = "Insert";
 }