public override void DescribeColumns(DataTable T, string ListingType) { base.DescribeColumns(T, ListingType); if (ListingType == "dettaglio") { int pos = 1; foreach (DataColumn C in T.Columns) { DescribeAColumn(T, C.ColumnName, "", -1); } QueryCreator.SetExpression(T.Columns["!assetdescription"], null); //DescribeAColumn(T, "!numeroriga", "Numero"); DescribeAColumn(T, "!ninventory", "Inventario", pos++); QueryCreator.SetExpression(T.Columns["!ninventory"], null); DescribeAColumn(T, "lifestart", "Data Acq. Cespite", pos++); DescribeAColumn(T, "!location", "Ubicazione", pos++); DescribeAColumn(T, "!manager", "Responsabile", pos++); DescribeAColumn(T, "!submanager", "Subconsegnatario", pos++); DescribeAColumn(T, "rfid", "rfid", pos++); HelpForm.SetAlignForColumn(T.Columns["!ninventory"], "R"); ComputeRowsAs(T, ListingType); } if (ListingType == "accessorio") { foreach (DataColumn C in T.Columns) { DescribeAColumn(T, C.ColumnName, "", -1); } int pos = 1; //DescribeAColumn(T, "!numeroriga", "#"); DescribeAColumn(T, "!ninventory", "Num. Inv.", "assetview1.ninventory", pos++); //DescribeAColumn(T, "!ninventory", "Num. Inv."); DescribeAColumn(T, "!assetdescription", "Cespite principale", "assetview1.description", pos++); QueryCreator.SetExpression(T.Columns["!location"], null); QueryCreator.SetExpression(T.Columns["!manager"], null); DescribeAColumn(T, "lifestart", "Data Acq. Cespite", pos++); HelpForm.SetAlignForColumn(T.Columns["!ninventory"], "R"); ComputeRowsAs(T, ListingType); } if (ListingType == "scaricobeni") { foreach (DataColumn C in T.Columns) { DescribeAColumn(T, C.ColumnName, ""); } //DescribeAColumn(T, "!numeroriga", "Numero"); DescribeAColumn(T, "!idinventory", "Tipo invent.", "assetload.idinventory"); DescribeAColumn(T, "ninventory", "Numero inv."); DescribeAColumn(T, "!description", "Descrizione", "assetload.description"); ComputeRowsAs(T, ListingType); FilterRows(T); } }