65 lines
2.2 KiB
C#
65 lines
2.2 KiB
C#
using Sarand.Net.Standard.Proc.Excel;
|
|
using Sarand.Net.Standard.Proc.Procs;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using Saxonite.Net.Standard.Base.Procs;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Saxonite.Net.Core.Web.Admin.Procs
|
|
{
|
|
//=======================================================================
|
|
public abstract class SaxProcess_Admin : SaxProcess_Base
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Definitions.
|
|
public new class Config : SaxProcess_Base.Config
|
|
{
|
|
protected Config(SaxSessionContext sessionContext) : base(sessionContext)
|
|
{ }
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
private Config config;
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
protected SaxProcess_Admin(Config config) : base(config)
|
|
{
|
|
this.config = config;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Excel Spreadsheet utilities.
|
|
//-------------------------------------------------------------------
|
|
protected SaMsExcelColumnHeading_Config GetExcelColumnHeadingConfig()
|
|
{
|
|
SaMsExcelColumnHeading_Config configHeading = new SaMsExcelColumnHeading_Config();
|
|
configHeading.FontAttr.Name = "Arial";
|
|
configHeading.FontAttr.HeightInPoints = 10;
|
|
configHeading.FontAttr.ColourIndex = SaXlColourIndex.DarkBlue;
|
|
configHeading.FontAttr.Bold = true;
|
|
configHeading.HeadingTextWrap = true;
|
|
configHeading.ForegroundColourIndex = SaXlColourIndex.LightYellow;
|
|
configHeading.BorderWeight = SaXlBorderWeight.Medium;
|
|
return configHeading;
|
|
}
|
|
|
|
protected SaMsExcelStyleAttr GetExceldefaultWorkbookStyle()
|
|
{
|
|
SaMsExcelStyleAttr styleAttr = new SaMsExcelStyleAttr();
|
|
styleAttr.FontAttr.Name = "Arial";
|
|
styleAttr.FontAttr.HeightInPoints = 9;
|
|
styleAttr.FontAttr.ColourIndex = SaXlColourIndex.Black;
|
|
styleAttr.HorizontalAlignment = (short)XlHAlign.xlHAlignLeft;
|
|
styleAttr.VerticalAlignment = (short)XlVAlign.xlVAlignTop;
|
|
styleAttr.WrapText = true;
|
|
return styleAttr;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|