Beispiel #1
0
 public void Init(AASServiceReference.DbDataSet可用仓位DataTable可用仓位Extend item)
 {
     numericUpDown总仓位.Value = item.总仓位;
     textBoxStockID.Text    = item.证券代码;
     textBoxStockName.Text  = item.证券名称;
     textBoxStockID.Enabled = false;
     comboBox组合号.Enabled    = false;
     updateItem             = item;
     this.Text = "可用仓位修改";
 }
Beispiel #2
0
        private void RefreshData(AASServiceReference.DbDataSet可用仓位DataTable可用仓位Extend position)
        {
            //Task.Run(()=> {
            //    var dt = Program.AASServiceClient.GetPositionLockedDetail(position.组合号, position.证券代码);
            //});
            var task = Program.AASServiceClient.GetPositionLockedDetailAsync(position.组合号, position.证券代码);

            //dataGridView仓位占用详情.DataSource = dt.DefaultView;
            if (task.Result.GetPositionLockedDetailResult != null)
            {
                dataGridView仓位占用详情.DataSource = task.Result.GetPositionLockedDetailResult;
            }
        }
Beispiel #3
0
 public void Init(AASServiceReference.DbDataSet可用仓位DataTable可用仓位Extend position)
 {
     PositionLocked = position;
     RefreshData(position);
 }