Exemplo n.º 1
0
        private void BaseButtonSaveAccount_Click(object sender, EventArgs e)
        {
            WholesaleBeginningSaveCostumeForm form = new WholesaleBeginningSaveCostumeForm(PfCustomeID);

            form.SaveClick += EarlyStageCostumeStoreRecordSaveCostumeForm_SaveClick;
            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (!DataGridViewUtil.CheckPerrmisson(this, sender, e))
            {
                return;
            }
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }
            try
            {
                switch (this.dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value)
                {
                case "编辑":
                    PfCustomerStore store = this.dataGridView1.Rows[e.RowIndex].DataBoundItem as PfCustomerStore;

                    WholesaleBeginningSaveCostumeForm form = new WholesaleBeginningSaveCostumeForm(store);
                    if (form.ShowDialog() == DialogResult.OK)
                    {
                        this.BaseButton_Search_Click(null, null);
                    }
                    break;

                case "删除":
                    DialogResult dialogResult = GlobalMessageBox.Show("确定删除该行数据吗?", "提示", MessageBoxButtons.OKCancel);
                    if (dialogResult != DialogResult.OK)
                    {
                        return;
                    }
                    //GlobalCache.ServerProxy.HideCreatePfStore()
                    this.curInboundDetailList.RemoveAt(e.RowIndex);
                    this.BindingInboundDetailSource();
                    break;
                }
            }
            catch (Exception ee)
            {
                GlobalUtil.ShowError(ee);
            }
        }