Example #1
0
        private void btnAdd()
        {
            Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit();

            f.ShowDialog();

            btnSel();
        }
Example #2
0
        private void btnEdit()
        {
            int iRow = 0;

            if (gridView1.FocusedRowHandle > 0)
            {
                iRow = gridView1.FocusedRowHandle;
            }

            string scVenCode = gridView1.GetRowCellValue(iRow, gridColcVenCode).ToString().Trim();

            Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit(scVenCode);

            f.ShowDialog();

            btnSel();
        }
Example #3
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                int iRow = 0;
                if (gridView1.FocusedRowHandle > 0)
                {
                    iRow = gridView1.FocusedRowHandle;
                }

                string scVenCode = gridView1.GetRowCellValue(iRow, gridColcVenCode).ToString().Trim();
                if (scVenCode != "")
                {
                    Frm杜乐耗材供应商Edit f = new Frm杜乐耗材供应商Edit(scVenCode);
                    f.ShowDialog();

                    btnSel();
                }
            }
            catch { }
        }