//人员新增
 private void toolStripLabel添加_Click(object sender, EventArgs e)
 {
     if (Sqlname == "CustomType")
     {
         FrmCustom frm = new FrmCustom(null, null, null);
         frm.ShowDialog();
     }
     else
     {
         FrmProduct frm = new FrmProduct(null, null, null);
         frm.ShowDialog();
     }
 }
        //修改
        private void toolStripLabel修改_Click(object sender, EventArgs e)
        {
            if (((System.Windows.Forms.BaseCollection)(dataGridView1.SelectedRows)).Count > 1)
            {
                MessageBox.Show("请选择一条数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
            else
            {
                barcode = dataGridView1.CurrentRow.Cells[0].Value.ToString();

                if (Sqlname == "CustomType")
                {
                    FrmCustom frm = new FrmCustom("update", barcode, null);
                    frm.ShowDialog();
                }
                else
                {
                    FrmProduct frm = new FrmProduct("update", barcode, null);
                    frm.ShowDialog();
                }
                // frm.getName += new GetState(login_getName);
            }
        }