Beispiel #1
0
        private void b_new_Click(object sender, EventArgs e)
        {
            common_file.common_app.get_czsj();
            if (common_file.common_roles.get_user_qx("B_ftcx_xz", common_file.common_app.user_type) == false)
            {
                return;
            }

            Ffjzt.Ffjzt_add_edit Ffjzt_add_edit_new = new Ffjzt_add_edit(this);
            Ffjzt_add_edit_new.Left           = common_file.common_app.x();
            Ffjzt_add_edit_new.Top            = common_file.common_app.y();
            Ffjzt_add_edit_new.judge_add_edit = common_file.common_app.get_add;
            Ffjzt_add_edit_new.ShowDialog();
            Cursor.Current = Cursors.Default;
        }
Beispiel #2
0
        private void b_amend_Click(object sender, EventArgs e)
        {
            common_file.common_app.get_czsj();
            if (common_file.common_roles.get_user_qx("B_ftcx_xg", common_file.common_app.user_type) == false)
            {
                return;
            }
            if (dataGridViewSummary1.CurrentRow != null)
            {
                int         i   = dataGridViewSummary1.CurrentRow.Index;
                DataRowView dgr = dataGridViewSummary1.CurrentRow.DataBoundItem as DataRowView;
                i = DS_Ffjzt.Tables[0].Rows.IndexOf(dgr.Row);



                if (DS_Ffjzt.Tables[0].Rows[i]["id"].ToString() != "")
                {
                    Ffjzt.Ffjzt_add_edit Ffjzt_add_edit_new = new Ffjzt_add_edit(this);
                    Ffjzt_add_edit_new.Left              = common_file.common_app.x();
                    Ffjzt_add_edit_new.Top               = common_file.common_app.y();
                    Ffjzt_add_edit_new.judge_add_edit    = common_file.common_app.get_edit;
                    Ffjzt_add_edit_new.Ffjzt_id          = DS_Ffjzt.Tables[0].Rows[i]["ID"].ToString();
                    Ffjzt_add_edit_new.get_fjrb_code     = DS_Ffjzt.Tables[0].Rows[i]["fjrb_code"].ToString();
                    Ffjzt_add_edit_new.tB_bz.Text        = DS_Ffjzt.Tables[0].Rows[i]["bz"].ToString();
                    Ffjzt_add_edit_new.tB_dhfj.Text      = DS_Ffjzt.Tables[0].Rows[i]["dhfj"].ToString();
                    Ffjzt_add_edit_new.tB_fjbh.Text      = DS_Ffjzt.Tables[0].Rows[i]["fjbh"].ToString();
                    Ffjzt_add_edit_new.tB_fjdh.Text      = DS_Ffjzt.Tables[0].Rows[i]["fjdh"].ToString();
                    Ffjzt_add_edit_new.tB_fjrb.Text      = DS_Ffjzt.Tables[0].Rows[i]["fjrb"].ToString();
                    Ffjzt_add_edit_new.tB_jdcs.Text      = DS_Ffjzt.Tables[0].Rows[i]["jdcs"].ToString();
                    Ffjzt_add_edit_new.tB_jdcs_name.Text = DS_Ffjzt.Tables[0].Rows[i]["jdcs_name"].ToString();
                    Ffjzt_add_edit_new.tB_jdlh.Text      = DS_Ffjzt.Tables[0].Rows[i]["jdlh"].ToString();
                    Ffjzt_add_edit_new.tB_jdlh_name.Text = DS_Ffjzt.Tables[0].Rows[i]["jdlh_name"].ToString();
                    Ffjzt_add_edit_new.ShowDialog();
                }
            }
            Cursor.Current = Cursors.Default;
        }