public override void DataSelect(int intKbn, object objList) { switch ((ExWebService.geWebServiceCallKbn)intKbn) { case _GetWebServiceCallKbn: if (objList != null) { _entity = (ObservableCollection <EntityCondition>)objList; EntityCondition entity = new EntityCondition(); // 明細初期設定 InitDetail(ref entity); _entity.Add(entity); SetDetailRecNo(); this.dg.ItemsSource = _entity; if (ExCast.zCInt(_entity[0]._lock_flg) == 0) { this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Upd; ExBackgroundWorker.DoWork_Focus(this.dg, 100); ExBackgroundWorker.DoWork_SelectedIndex(this.dg, 400, 0); ExBackgroundWorker.DoWork_DataGridColum(this.dg, 500, dg.Columns[0]); } else { this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Sel; } } else { _entity = new ObservableCollection <EntityCondition>(); EntityCondition entity = new EntityCondition(); // 明細初期設定 InitDetail(ref entity); _entity.Add(entity); SetDetailRecNo(); this.dg.ItemsSource = _entity; this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Upd; ExBackgroundWorker.DoWork_Focus(this.dg, 100); ExBackgroundWorker.DoWork_SelectedIndex(this.dg, 400, 0); ExBackgroundWorker.DoWork_DataGridColum(this.dg, 500, dg.Columns[0]); } break; default: break; } }