Beispiel #1
0
        public void PrintResult(bool consoleOut, bool party)
        {
            excel.AddWorkbook();
            int gg = 1;

            excel.Write(gg, 1, !party ? "мх" : "партия");
            excel.Write(gg, 2, "нп");
            excel.Write(gg, 3, "комтех");
            excel.Write(gg, 4, "амм");

            foreach (var u in mergedList)
            {
                gg++;
                excel.Write(gg, 1, !party ? u.store : u.party);
                excel.Write(gg, 2, u.name);
                excel.Write(gg, 3, u.cQuantity.ToString("0.#####"));
                excel.Write(gg, 4, u.aQuantity.ToString("0.#####"));
                if (consoleOut)
                {
                    ConsoleOut(gg);
                }
            }
        }