private void button1_Click(object sender, EventArgs e) { decimal kk = 1; EsiToField[] Meta = MM.GetCateMeta(kk).Result; ucd1.Config(Meta); }
private void FrmItemMode_Shown(object sender, EventArgs e) { EsiToField[] Meta = MM.GetCateMeta(cate.CateID).Result; if (Meta.Count() > 0) { ucGridView1.SetSchema(Meta, MM.STM); var dddd = Meta[0].FieldType; EsiToItem[] items = MM.GetGateItems(cate.CateID).Result; DataTable pivotArray = items.ToPivotTable( item => item.EsiFieldId, item => item.EsiObjId, item => item.First().EsiStrVal); ucGridView1.EsiGV.DataSource = pivotArray; } }