﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.02" type="Net" application="StiReport">
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <BusinessObjects isList="true" count="0" />
    <Databases isList="true" count="0" />
    <DataSources isList="true" count="0" />
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Variables isList="true" count="7">
      <value>,dt,dt,System.DateTime,_x0039__x002F_21_x002F_2010_x0020_12:26:59_x0020_PM,False,False</value>
      <value>,baseDate,baseDate,System.DateTime,_x0039__x002F_1_x002F_2010_x0020_12:44:57_x0020_PM,False,False</value>
      <value>,basebaseDate,basebaseDate,Текущая_x0020_дата,System.DateTime,new_x0020_DateTime_x0028_DateTime.Now.Year_x002C__x0020_DateTime.Now.Month_x002C__x0020_1_x0029__x003B__x000D__x000A__x002F__x002F_new_x0020_DateTime_x0028_2012_x002C__x0020_12_x002C__x0020_1_x0029__x003B_,False,True,True</value>
      <value>,counter,counter,Количество_x0020_месяцев,System.Int32,_x0033_,False,False,True</value>
      <value>,comp,comp,Store_x0020_previous_x0020_text-box,System.Object,,False,False,False</value>
      <value>,data,data,Store_x0020_value_x0020_of_x0020_text-box,System.String,,False,False,False</value>
      <value>,expand,expand,System.Boolean,false,False,False</value>
    </Variables>
  </Dictionary>
  <EngineVersion>EngineV2</EngineVersion>
  <GlobalizationStrings isList="true" count="0" />
  <MetaTags isList="true" count="0" />
  <Pages isList="true" count="1">
    <Page1 Ref="2" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="4">
        <DataBand2 Ref="3" type="DataBand" isKey="true">
          <BeforePrintEvent>baseDate = new DateTime(basebaseDate.Year, basebaseDate.Month, 1).AddMonths(DataBand2.Position);</BeforePrintEvent>
          <BeginRenderEvent>DataBand2.CountData = counter;</BeginRenderEvent>
          <Brush>Transparent</Brush>
          <ClientRectangle>0,0.4,19,0.4</ClientRectangle>
          <Components isList="true" count="0" />
          <Conditions isList="true" count="0" />
          <CountData>3</CountData>
          <DataRelationName isNull="true" />
          <Filters isList="true" count="0" />
          <Name>DataBand2</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <Sort isList="true" count="0" />
        </DataBand2>
        <HeaderBand1 Ref="4" type="HeaderBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,1.6,19,1.6</ClientRectangle>
          <Components isList="true" count="1">
            <Text1 Ref="5" type="Text" isKey="true">
              <Brush>Transparent</Brush>
              <ClientRectangle>0,0,19,1.6</ClientRectangle>
              <Conditions isList="true" count="0" />
              <Font>Comic Sans MS,18</Font>
              <HorAlignment>Center</HorAlignment>
              <Margins>0,0,0,0</Margins>
              <Name>Text1</Name>
              <Page isRef="2" />
              <Parent isRef="4" />
              <Text>{baseDate.ToString("yyyy")}   {baseDate.ToString("MMMM")}</Text>
              <TextBrush>Black</TextBrush>
              <Type>Expression</Type>
              <VertAlignment>Center</VertAlignment>
            </Text1>
          </Components>
          <Conditions isList="true" count="0" />
          <Name>HeaderBand1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </HeaderBand1>
        <DataBand1 Ref="6" type="DataBand" isKey="true">
          <BeginRenderEvent>dt = baseDate;
while (dt.DayOfWeek != DayOfWeek.Monday)
{
	dt = dt.AddDays(-1);
}

</BeginRenderEvent>
          <Brush>Transparent</Brush>
          <ClientRectangle>0,4,19,1.6</ClientRectangle>
          <Components isList="true" count="1">
            <CrossDataBand1 Ref="7" type="CrossDataBand" isKey="true">
              <Brush>[118:146:60]</Brush>
              <CanGrow>False</CanGrow>
              <ClientRectangle>0,0,1.6,1.6</ClientRectangle>
              <Components isList="true" count="2">
                <Text2 Ref="8" type="Text" isKey="true">
                  <AfterPrintEvent>dt = dt.AddDays(1);
</AfterPrintEvent>
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>Transparent</Brush>
                  <ClientRectangle>0,0,1.6,1</ClientRectangle>
                  <Conditions isList="true" count="3">
                    <value>_x007B_dt.DayOfWeek_x0020__x003D__x003D__x0020_DayOfWeek.Sunday_x007D_,Black,LightGreen,Arial_x002C_14.25_x002C_Regular_x002C_Point_x002C_False_x002C_204,True,False,</value>
                    <value>_x007B_dt.DayOfWeek_x0020__x003D__x003D__x0020_DayOfWeek.Saturday_x007D_,Black,LightGoldenrodYellow,Arial_x002C_14.25_x002C_Regular_x002C_Point_x002C_False_x002C_204,True,False,</value>
                    <value>_x007B_dt.Month_x0020__x0021__x003D__x0020_baseDate.Month_x007D_,LightGray,Transparent,Arial_x002C_12_x002C_Regular_x002C_Point_x002C_False_x002C_204,True,False,</value>
                  </Conditions>
                  <Font>Arial,14</Font>
                  <HorAlignment>Center</HorAlignment>
                  <Margins>0,0,0,0</Margins>
                  <Name>Text2</Name>
                  <Page isRef="2" />
                  <Parent isRef="7" />
                  <Text>{dt.Day}</Text>
                  <TextBrush>Black</TextBrush>
                  <Type>Expression</Type>
                  <VertAlignment>Center</VertAlignment>
                </Text2>
                <Text3 Ref="9" type="Text" isKey="true">
                  <AfterPrintEvent>if (expand)
{
    (comp as StiText).Width += (sender as StiText).Width;
};
</AfterPrintEvent>
                  <Border>All;Black;1;Solid;False;4;Black</Border>
                  <Brush>Transparent</Brush>
                  <ClientRectangle>0,1,1.6,0.6</ClientRectangle>
                  <Conditions isList="true" count="0" />
                  <Font>Arial,8</Font>
                  <GetValueEvent>if (data != e.Value || Line == 1)
{
    comp = sender;
    data = e.Value;
    expand = false;
}
else
{
    expand = true;
    (sender as StiText).Enabled = false;
};
</GetValueEvent>
                  <Margins>0,0,0,0</Margins>
                  <Name>Text3</Name>
                  <Page isRef="2" />
                  <Parent isRef="7" />
                  <Text>Your Data</Text>
                  <TextBrush>Black</TextBrush>
                  <Type>Expression</Type>
                </Text3>
              </Components>
              <Conditions isList="true" count="0" />
              <CountData>7</CountData>
              <DataRelationName isNull="true" />
              <Filters isList="true" count="0" />
              <Name>CrossDataBand1</Name>
              <Page isRef="2" />
              <Parent isRef="6" />
              <Sort isList="true" count="0" />
            </CrossDataBand1>
          </Components>
          <Conditions isList="true" count="0" />
          <CountData>6</CountData>
          <DataRelationName isNull="true" />
          <Filters isList="true" count="0" />
          <MasterComponent isRef="3" />
          <Name>DataBand1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
          <Sort isList="true" count="0" />
        </DataBand1>
        <FooterBand1 Ref="10" type="FooterBand" isKey="true">
          <Brush>Transparent</Brush>
          <ClientRectangle>0,6.4,19,0.4</ClientRectangle>
          <Components isList="true" count="0" />
          <Conditions isList="true" count="0" />
          <Name>FooterBand1</Name>
          <Page isRef="2" />
          <Parent isRef="2" />
        </FooterBand1>
      </Components>
      <Conditions isList="true" count="0" />
      <Guid>5e3045baea6e41bfab6b0f7acc83082f</Guid>
      <Margins>1,1,1,1</Margins>
      <Name>Page1</Name>
      <PageHeight>29.7</PageHeight>
      <PageWidth>21</PageWidth>
      <Report isRef="0" />
      <Watermark Ref="11" type="Stimulsoft.Report.Components.StiWatermark" isKey="true">
        <Font>Arial,100</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page1>
  </Pages>
  <PrinterSettings Ref="12" type="Stimulsoft.Report.Print.StiPrinterSettings" isKey="true" />
  <ReferencedAssemblies isList="true" count="8">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Report</ReportAlias>
  <ReportChanged>9/4/2015 12:03:15 PM</ReportChanged>
  <ReportCreated>9/21/2010 12:25:43 PM</ReportCreated>
  <ReportFile>F:\Downloads\Calendar.mrt</ReportFile>
  <ReportGuid>827903f3a0134fec8a1c505b016e6c32</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Centimeters</ReportUnit>
  <ReportVersion>2015.1.16</ReportVersion>
  <Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;

namespace Reports
{
    
    public class Report : Stimulsoft.Report.StiReport
    {
        
        public Report()
        {
            this.InitializeComponent();
        }
        #region StiReport Designer generated code - do not modify
		#endregion StiReport Designer generated code - do not modify
    }
}
</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="0" />
</StiSerializer>