示例#1
0
        private void  除供应商_Click(object sender, EventArgs e)
        {
            QC_BD_CUBASDOC gongyingshang = (QC_BD_CUBASDOC)this.qCBDCUBASDOCBindingSource.Current;

            this.qCBDCUBASDOCBindingSource.RemoveCurrent();
            gyss.Save();
        }
示例#2
0
 private void 确定_Click(object sender, EventArgs e)
 {
     int[] sels = this.gridView1.GetSelectedRows();
     if (sels.Length > 0)
     {
         int selId = sels[0];
         _SelectedGys = this.gridView1.GetRow(selId) as QC_BD_CUBASDOC;
         if (_SelectedGys != null)
         {
             DialogResult = DialogResult.OK;
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("没有选中数据");
     }
 }
示例#3
0
        private void 添加供应商_Click(object sender, EventArgs e)
        {
            DlgSupplier    dlg = new DlgSupplier();
            QC_BD_CUBASDOC gys = new QC_BD_CUBASDOC();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.SelectedSupplier != null)
                {
                    gys.PK_CUBASDOC   = dlg.SelectedSupplier.PK_CUBASDOC;
                    gys.CUSTCODE      = dlg.SelectedSupplier.CUSTCODE;
                    gys.CUSTSHORTNAME = dlg.SelectedSupplier.CUSTSHORTNAME;
                    gyss.Add(gys);
                    gyss.Save();
                }
            }

            else
            {
                MessageBox.Show("没有选中数据", "提示");
            }
        }