Esempio n. 1
0
        private CellValues SetCellValueTypesForCell(string modelName, string fieldName)
        {
            CellValues celltype = CellValues.String;

            if (modelName.Equals("OrderLine"))
            {
                celltype = OrderLine.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("ShoppingCartItem"))
            {
                celltype = ShoppingCartItem.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("ItemUsageReportItemModel"))
            {
                celltype = ItemUsageReportItemModel.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("InvoiceItemModel"))
            {
                celltype = InvoiceItemModel.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("ListItemModel"))
            {
                celltype = ListItemModel.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("Product"))
            {
                celltype = Product.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("InvoiceModel"))
            {
                celltype = InvoiceModel.SetCellValueTypeForCells(fieldName, celltype);
            }
            else if (modelName.Equals("Order"))
            {
                celltype = Order.SetCellValueTypeForCells(fieldName, celltype);
            }
            return(celltype);
        }