Example #1
0
        private void 修改交易额度ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var DataRow1 = (this.bindingSource交易额度.Current as DataRowView).Row as AASServiceReference.DbDataSet.额度分配Row;
            ModifyTradeLimitForm ModifyTradeLimitForm1 = new ModifyTradeLimitForm(DataRow1);
            DialogResult         DialogResult1         = ModifyTradeLimitForm1.ShowDialog();

            if (DialogResult1 != DialogResult.OK)
            {
                return;
            }
            this.bindingSource交易额度.DataSource = Program.AASServiceClient.QueryTradeLimit();
        }
Example #2
0
        private void dataGridView交易额度_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            AASServiceReference.DbDataSet.额度分配Row DataRow1 = (this.bindingSource交易额度.Current as DataRowView).Row as AASServiceReference.DbDataSet.额度分配Row;
            ModifyTradeLimitForm ModifyTradeLimitForm1     = new ModifyTradeLimitForm(DataRow1);
            DialogResult         DialogResult1             = ModifyTradeLimitForm1.ShowDialog();

            if (DialogResult1 != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            this.bindingSource交易额度.DataSource = Program.AASServiceClient.QueryTradeLimit();
        }
Example #3
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridView仓位占用详情.SelectedRows != null && dataGridView仓位占用详情.SelectedRows.Count > 0)
            {
                bool hasChanged = false;
                foreach (DataGridViewRow item in dataGridView仓位占用详情.SelectedRows)
                {
                    var dataItem = ((System.Data.DataRowView)item.DataBoundItem).Row as AASServiceReference.DbDataSet.额度分配Row;
                    if (dataItem != null)
                    {
                        //修改需要加入界面
                        var win = new ModifyTradeLimitForm(dataItem);
                        win.ShowDialog();
                        RefreshData(PositionLocked);
                    }
                }

                if (hasChanged)
                {
                    RefreshData(PositionLocked);
                }
            }
        }