Esempio n. 1
0
        private uint SetStyleForCell(string modelName, string fieldName)
        {
            uint styleInd = OpenXmlSpreadsheetUtilities.DEFAULT_CELL;

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