Exemple #1
0
        private void b_amend_Click(object sender, EventArgs e)
        {
            common_file.common_app.get_czsj();
            if (dg_hyjfbl.CurrentRow != null)
            {
                int         i   = dg_hyjfbl.CurrentRow.Index;
                DataRowView dgr = dg_hyjfbl.CurrentRow.DataBoundItem as DataRowView;
                i = DS_Hhyjfbl.Tables[0].Rows.IndexOf(dgr.Row);


                if (DS_Hhyjfbl.Tables[0].Rows[i]["id"].ToString() != "")
                {
                    Hhygl.Hhyjf_bl_add_edit Hhyjfbl_add_edit_new = new Hhyjf_bl_add_edit(this);
                    Hhyjfbl_add_edit_new.Left           = common_file.common_app.x() - 200;
                    Hhyjfbl_add_edit_new.Top            = common_file.common_app.y() - 100;
                    Hhyjfbl_add_edit_new.judge_add_edit = common_file.common_app.get_edit;
                    Hhyjfbl_add_edit_new.Hhyjfbl_id     = DS_Hhyjfbl.Tables[0].Rows[i]["id"].ToString();
                    Hhyjfbl_add_edit_new.tB_jfbl.Text   = DS_Hhyjfbl.Tables[0].Rows[i]["jfbl"].ToString();
                    Hhyjfbl_add_edit_new.cB_hyrx.Text   = DS_Hhyjfbl.Tables[0].Rows[i]["hyrx"].ToString();
                    Hhyjfbl_add_edit_new.cB_krly.Text   = DS_Hhyjfbl.Tables[0].Rows[i]["krly"].ToString();


                    Hhyjfbl_add_edit_new.ShowDialog();
                }
                Cursor.Current = Cursors.Default;
            }
        }
Exemple #2
0
 private void b_new_Click(object sender, EventArgs e)
 {
     common_file.common_app.get_czsj();
     Hhygl.Hhyjf_bl_add_edit Hhyjf_bl_add_edit_new = new Hhyjf_bl_add_edit(this);
     Hhyjf_bl_add_edit_new.Left = common_file.common_app.x() - 200;
     Hhyjf_bl_add_edit_new.Top  = common_file.common_app.y() - 100;
     Hhyjf_bl_add_edit_new.ShowDialog();
     Cursor.Current = Cursors.Default;
 }