예제 #1
0
 private void b_new_Click(object sender, EventArgs e)
 {
     common_file.common_app.get_czsj();
     Ffjzt.Ffjrb_krly_add_edit Ffjrb_krly_adit_new = new Ffjrb_krly_add_edit(this);
     Ffjrb_krly_adit_new.StartPosition = FormStartPosition.CenterScreen;
     Ffjrb_krly_adit_new.ShowDialog();
     Cursor.Current = Cursors.Default;
 }
예제 #2
0
        private void b_amend_Click(object sender, EventArgs e)
        {
            common_file.common_app.get_czsj();
            int i = dg_fjrbkrly.CurrentRow.Index;

            if (DS_Ffjrb_krly.Tables[0].Rows[i]["id"].ToString() != "")
            {
                Ffjzt.Ffjrb_krly_add_edit Ffjrb_krly_adit_new = new Ffjrb_krly_add_edit(this);
                Ffjrb_krly_adit_new.StartPosition  = FormStartPosition.CenterScreen;
                Ffjrb_krly_adit_new.judge_add_edit = common_file.common_app.get_edit;
                Ffjrb_krly_adit_new.Hhyfj_id       = DS_Ffjrb_krly.Tables[0].Rows[i]["id"].ToString();
                Ffjrb_krly_adit_new.tB_fjrb.Text   = DS_Ffjrb_krly.Tables[0].Rows[i]["fjrb"].ToString();
                Ffjrb_krly_adit_new.tB_hyfj.Text   = DS_Ffjrb_krly.Tables[0].Rows[i]["sjjg"].ToString();
                Ffjrb_krly_adit_new.tB_krly.Text   = DS_Ffjrb_krly.Tables[0].Rows[i]["krly"].ToString();
                Ffjrb_krly_adit_new.fjrb_code      = DS_Ffjrb_krly.Tables[0].Rows[i]["fjrb_code"].ToString();
                Ffjrb_krly_adit_new.ShowDialog();
            }
            Cursor.Current = Cursors.Default;
        }