<?xml version="1.0" encoding="utf-8" standalone="yes"?><root type="PerpetuumSoft.Reporting.DOM.Document" id="1" version="2" Name="shipmentunit_95_50" IsTemplate="true" Title="Отгрузочная этикетка" DocumentGuid="ac8f0aa9-6e1b-46f6-8607-fa9b47bc5b89" MetricUnit="Millimeter" DoublePass="true" CommonScript="string pref(string direction)&#xD;&#xA;{&#xD;&#xA;  &#xD;&#xA;  string rez = &quot;&quot;;&#xD;&#xA;  int ind = direction.IndexOf('-');&#xD;&#xA;  if(ind != -1)&#xD;&#xA;  {&#xD;&#xA;    rez = direction.Substring(0, ind).Trim();&#xD;&#xA;    if(rez.Length &gt;4)&#xD;&#xA;    {&#xD;&#xA;      rez=&quot;&quot;;&#xD;&#xA;    }&#xD;&#xA;  }&#xD;&#xA;&#xD;&#xA;  return rez;  &#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;BarCodeType get128Type(string code)&#xD;&#xA;{&#xD;&#xA;  if(code == null || (code.Length%2) != 0)&#xD;&#xA;  {&#xD;&#xA;    return BarCodeType.Code128B;&#xD;&#xA;  }&#xD;&#xA;  for(int i = 0; i &lt; code.Length; i++)&#xD;&#xA;  {&#xD;&#xA;    if(!Char.IsDigit(code[i]))&#xD;&#xA;    {&#xD;&#xA;      return BarCodeType.Code128B;&#xD;&#xA;    }&#xD;&#xA;  }&#xD;&#xA;  return BarCodeType.Code128C;&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;string crcCode(string DocNumber, string boxNumber)&#xD;&#xA;{&#xD;&#xA;   string SubNumber = DocNumber.Substring(DocNumber.Length - 5);&#xD;&#xA;   &#xD;&#xA;   float Num1 = (float)SubNumber[0];&#xD;&#xA;   float Num2 = (float)SubNumber[1];&#xD;&#xA;   float Num3 = (float)SubNumber[2];&#xD;&#xA;   float Num4 = (float)SubNumber[3];&#xD;&#xA;   float Num5 = (float)SubNumber[4];&#xD;&#xA;   &#xD;&#xA;   float mboxNumber = (float)Convert.ToDouble(boxNumber);&#xD;&#xA;   float dNum1Crc = Num1*Num5*mboxNumber/Num3;&#xD;&#xA;   float dNum2Crc = Num2*Num4*mboxNumber/Num3;&#xD;&#xA;&#xD;&#xA;   string strMult = ((int)(dNum1Crc*dNum2Crc)).ToString();&#xD;&#xA;&#xD;&#xA;   string mCRC = &quot;CRC &quot; + strMult[0].ToString()+ strMult[strMult.Length-1].ToString();&#xD;&#xA;   return mCRC;		&#xD;&#xA;   &#xD;&#xA;}" ScriptLanguage="CSharp" GridStep="11.8110237"><Parameters type="PerpetuumSoft.Reporting.DOM.ParameterCollection" id="2" /><PageContent type="PerpetuumSoft.Reporting.DOM.Wrappers.ContentParametersDictionary" id="3" /><Pages type="PerpetuumSoft.Reporting.DOM.PageCollection" id="4"><Item type="PerpetuumSoft.Reporting.DOM.Page" id="5" Margins="23.6220474; 0; 23.6220474; 23.6220474" Size="1122.047;590.5512" StyleName="Normal" CustomSize="1122.047;590.5512" Name="page" Location="0;0" PaperKind="Custom"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="6" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="7"><Item type="PerpetuumSoft.Reporting.DOM.DataBand" id="8" Location="0;-47.244091033935547" Size="1122.047;803.14959716796875" Name="data" ColumnsGap="0" DataSource="DATA.UNITLIST"><Sort type="PerpetuumSoft.Reporting.DOM.DataBandSortCollection" id="9" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="10"><Item type="PerpetuumSoft.Reporting.DOM.Detail" id="11" Location="0;59.055118560791016" Size="1122.047;578.74017333984375" NewPageAfter="true" Name="detail1" StyleName="Header"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="12" /><Controls type="PerpetuumSoft.Reporting.DOM.ReportControlCollection" id="13"><Item type="PerpetuumSoft.Reporting.DOM.BarCode" id="14" Location="70.866142272949219;425.19680786132813" ShowLabel="false" Code="0" Size="980.31488037109375;70.866142272949219" CodeType="Code128B" Name="barCode2" BarPoint="0" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="15" LeftLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="16"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="17" Expression="string.Concat(&quot;22&quot;, data[&quot;CODE&quot;])" PropertyName="Code" /><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="18" Expression="get128Type(string.Concat(&quot;22&quot;, data[&quot;CODE&quot;]))" PropertyName="CodeType" /></DataBindings></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="19" Location="791.338623046875;35.433071136474609" Size="307.08660888671875;47.244091033935547" Name="textBox16" Text="CV1234567890" StyleName="DataMaxBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="20" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="21"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="22" Expression="data[&quot;CODE&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="23" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="24" Location="259.84249877929688;0" Size="377.95278930664063;70.866142272949219" Name="textBox18" StyleName="DataMaxBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="25" TopLine="1 Solid Black" BottomLine="1 Solid Black" LeftLine="1 Solid Black" RightLine="1 Dash Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="26"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="27" Expression="data[&quot;DOCLABEL&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="28" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="29" Location="11.811019897460938;153.54330444335938" Size="1086.614013671875;82.677169799804688" Name="textBox19" StyleName="DataBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="30" TopLine="1 Solid Black" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="31"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="32" Expression="data[&quot;CUSTOMER&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="33" Size="14.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="34" Location="11.811019897460938;318.89761352539063" Size="1086.614013671875;106.29920196533203" Name="textBox21" StyleName="Data" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="30" TopLine="1 Solid Black" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="35"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="36" Expression="data[&quot;DELIVERYDIRECTION&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="37" Size="14.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="38" Location="791.338623046875;70.866142272949219" Size="307.08660888671875;47.244091033935547" Name="textBox17" ExportAsPictureInXaml="false" TextAlign="BottomCenter"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="39" BottomLine="1 Solid Black" LeftLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="40"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="41" Expression="Now" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="42" Size="6.75" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="43" Location="637.7952880859375;0" Size="153.54330444335938;70.866142272949219" Name="textBox34" StyleName="DataMaxBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="44" TopLine="1 Solid Black" BottomLine="1 Solid Black" RightLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="45"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="46" Expression="data[&quot;BOXNUMBER&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="47" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="48" Location="11.811019897460938;507.87399291992188" Size="271.65350341796875;47.244091033935547" Name="textBox11" Text="Исполнитель" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="49" BottomLine="1 Solid Black" RightLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="50" /><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="51" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="52" Location="283.464599609375;507.87399291992188" Size="814.9605712890625;47.244091033935547" Name="textBox12" ExportAsPictureInXaml="false" TextAlign="MiddleLeft"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="53" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="54"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="55" Expression="GetData(&quot;Data.Manager&quot;);" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="56" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="57" Location="259.84249877929688;70.866142272949219" Size="377.95278930664063;47.244091033935547" Name="textBox14" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="53" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="58"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="59" Expression="GetData(&quot;Data.STANDARDROLE&quot;)" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="60" Size="6" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="61" Location="791.338623046875;0" Size="307.08660888671875;47.244091033935547" Name="textBox20" StyleName="DataMaxBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="62" TopLine="1 Solid Black" LeftLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="63"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="64" Expression="data[&quot;DOCCODE&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="65" Size="8.25" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="66" Location="11.811019897460938;236.22050476074219" Size="1086.614013671875;82.677169799804688" Name="textBox22" StyleName="DataBold" ExportAsPictureInXaml="false"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="30" TopLine="1 Solid Black" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="67"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="68" Expression="data[&quot;DELIVERYADDRESS&quot;]" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="69" Size="9" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="70" Location="23.622049331665039;118.11019897460938" Size="1074.802978515625;35.433071136474609" Name="textBox1" ExportAsPictureInXaml="false"><TextFormat type="PerpetuumSoft.Framework.Text.TextFormat" id="71" UseCultureSettings="false" FormatStyle="Number" DecimalPlaces="3" FormatStringMask="n3" UseGroupSeparator="false" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="20" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="72"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="73" Expression="data[&quot;VOLUME&quot;]" PropertyName="Value" /></DataBindings><OriginalTextFormat type="PerpetuumSoft.Framework.Text.TextFormat" id="71" UseCultureSettings="false" FormatStyle="Number" DecimalPlaces="3" FormatStringMask="n3" UseGroupSeparator="false" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="74" Location="11.811019897460938;0" Size="248.031494140625;118.11019897460938" Name="textBox2" Text="2ЕКБ" ExportAsPictureInXaml="false"><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="75"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="76" Expression="pref(data[&quot;DELIVERYDIRECTION&quot;].ToString())" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="77" Size="20" Bold="On" FamilyName="Arial" /></Item><Item type="PerpetuumSoft.Reporting.DOM.TextBox" id="78" Location="637.7952880859375;70.866142272949219" Size="153.54330444335938;47.244091033935547" Name="textBox3" ExportAsPictureInXaml="false" TextAlign="MiddleRight"><Border type="PerpetuumSoft.Framework.Drawing.Border" id="53" BottomLine="1 Solid Black" /><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="79"><Item type="PerpetuumSoft.Reporting.DOM.ReportDataBinding" id="80" Expression="crcCode(data[&quot;DOCLABEL&quot;].ToString(),data[&quot;BOXNUMBER&quot;].ToString())" PropertyName="Value" /></DataBindings><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="81" Size="6" Italic="On" FamilyName="Arial" /></Item></Controls><Aggregates type="PerpetuumSoft.Reporting.DOM.AggregateCollection" id="82" /></Item></Controls><DataBindings type="PerpetuumSoft.Reporting.DOM.ReportDataBindingCollection" id="83" /><Totals type="PerpetuumSoft.Reporting.DOM.DataBandTotalCollection" id="84" /><Aggregates type="PerpetuumSoft.Reporting.DOM.AggregateCollection" id="85" /></Item></Controls></Item></Pages><DataSources type="PerpetuumSoft.Reporting.Data.DocumentDataSourceCollection" id="86" /><StyleSheet type="PerpetuumSoft.Reporting.DOM.StyleSheet" id="87" Title="Normal"><Styles type="PerpetuumSoft.Reporting.DOM.StyleCollection" id="88"><Item type="PerpetuumSoft.Reporting.DOM.Style" id="89" Name="TableHeader"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="90" Size="8.25" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="91" All="1 Solid Black" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Style" id="92" Name="TableData"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="93" Size="8.25" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="91" All="1 Solid Black" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Style" id="94" Name="Header"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="95" Size="8" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="44" TopLine="1 Solid Black" BottomLine="1 Solid Black" RightLine="1 Solid Black" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Style" id="96" Name="DataMaxBold"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="97" Size="15.75" Bold="On" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="98" TopLine="1 Solid Black" BottomLine="1 Solid Black" LeftLine="1 Solid Black" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Style" id="99" Name="DataBold"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="100" Size="9.75" Bold="On" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="98" TopLine="1 Solid Black" BottomLine="1 Solid Black" LeftLine="1 Solid Black" /></Item><Item type="PerpetuumSoft.Reporting.DOM.Style" id="101" Name="Data"><Font type="PerpetuumSoft.Framework.Drawing.FontDescriptor" id="102" Size="9.75" FamilyName="Arial" /><Border type="PerpetuumSoft.Framework.Drawing.Border" id="98" TopLine="1 Solid Black" BottomLine="1 Solid Black" LeftLine="1 Solid Black" /></Item></Styles></StyleSheet></root>