/// <summary> /// 选择仓库 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repositoryItemComboBoxOStockHouse_SelectedIndexChanged(object sender, EventArgs e) { try { ComboBoxEdit combo = sender as ComboBoxEdit; gvOtherInProduct.BeginUpdate(); DataRow row = gvOtherInProduct.GetFocusedDataRow(); row[gcStockHouse.FieldName] = combo.Properties.Items[combo.SelectedIndex]; Hashtable table = repositoryItemComboBoxOStockHouse.Tag as Hashtable; row["HouseCode"] = table[combo.SelectedIndex]; gvOtherInProduct.BestFitColumns(); gvOtherInProduct.EndUpdate(); //加载库位 inoutHelper.LoadLayout(repositoryItemComboBoxOStockLayout, table[combo.SelectedIndex].ToString()); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, Constants.SYSTEM_PROMPT, MessageBoxButtons.OK, MessageBoxIcon.Information); } }