{k = height / 44.01}
{x = length / 76.01}
{x = 0.86 * x}
{k = 0.86 * k}
CLEAR
NASC 1251
XORMODE OFF
{z = 25*x/0.86:N0}
{zz = 55*x:N0}
{(oldPrice!=null)&&(CopEnable==True):{oldPriceString = oldPrice.ToString("N2", new global::System.Globalization.CultureInfo("ru-RU"))};}
{(oldPrice!=null)&&(CopEnable==False):{oldPriceString = oldPrice.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))};}
{(Price!=null)&&(CopEnable==True):{PriceString = Price.ToString("N2", new global::System.Globalization.CultureInfo("ru-RU"))};}
{(Price!=null)&&(CopEnable==False):{PriceString = Price.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))};}
{Name!=null:{NameCollection = global::System.Split.SplitString(Name, z, k < 0.9 ? 1 : 2)};}
{descr!=null:{descrCollection = global::System.Split.SplitString(descr, zz, 2)};}
{marking!=null:{markingCollection = global::System.Split.SplitString(marking, zz, 1)};}
{kk = 325*(k-1)}
{kkk = (k-0.73)/0.27}
{xx = x < 0.8 || x > 1 ? 20 : 20+20*(x-0.8)/0.2}
{EnableBorder!=null:{EnableBorder:PP 0,0;};}
{EnableBorder!=null:{EnableBorder:PRLINE {575*x:N0},5;};}
{EnableBorder!=null:{EnableBorder:PP 0,{325*k:N0};};}
{EnableBorder!=null:{EnableBorder:PRLINE {575*x:N0},5;};}
{EnableBorder!=null:{EnableBorder:DIR 4;};}
{EnableBorder!=null:{EnableBorder:PP 5,0;};}
{EnableBorder!=null:{EnableBorder:PRLINE {325*k:N0},5;};}
{EnableBorder!=null:{EnableBorder:PP {575*x:N0},5;};}
{EnableBorder!=null:{EnableBorder:PRLINE {325*k:N0},5;};}
DIR 1
{sellerName:NASC 1251
FONT "MyriadPro-Cond",8,1,100
PP 15,{(325*k-25):N0}
PRTXT "(0)"}
PP {575*x-90:N0},{(325*k-25):N0}
PRTXT "{data:dd.MM.yyyy}"
NASC1251
{Name!=null:FONT "MyriadPro-BoldCond",14,1,100
{NameCollection:PP 15,{((325*k-70)-#*29):N0}
PRTXT "{Item}"
};}
{b = (325*k-100)}
{h = (325*k-125)}
{b = b.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
{h = h.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
{marking!=null:NASC 1251
FONT "MyriadPro-Cond",9,1,100
{markingCollection:PP 15,{k < 0.9 ? b : h}
PRTXT "{Item}"
};}
{b = (325*k-110)}
{h = (325*k-125)}
{bb = b.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
{hh = h.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
{b = b-30}
{h = h-30}
{descr!=null:NASC 1251
FONT "MyriadPro-Cond",8,1,100
{descrCollection:{bbb = b-#*19}
{hhh = h-#*19}
{bb = bbb.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
{hh = hhh.ToString("N0", new global::System.Globalization.CultureInfo("ru-RU"))}
PP 15,{k < 0.9 ? bb : hh}
PRTXT "{Item}"
};}
{producerCountry:
PP 15,10
PRTXT "Производство:(0)"}
FONT "MyriadPro-BoldCond",20,1,100
PP 10,20
PRTXT "{PriceString}-"
{oldPrice!=null:
FONT "MyriadPro-BoldCond",16,1,100
PP 40,65
PRTXT "{oldPriceString}";}
{oldPrice!=null:
PP 35,90
PRLINE {20*oldPriceString.Length},5;}
{isEAN = global::Cleverence.Barcoding.EANUPC.IsEAN13orUPC(Barcode)}
NASC 1252
BARTYPE {isEAN:"EAN13";"CODE128"}
PP {isEAN:{(575*x-195):N0};{(575*x-145):N0}},{isEAN:25;15}
BARRATIO 2,1
BARHEIGHT 50
BARMAG {isEAN:2;1}
BARFONT "Swiss 721 BT",6,0,5,1,1
BARFONT ON
{Barcode=="":;PRBAR  {isEAN:"{Barcode.Substring(0,Barcode.Length-1)}";"{Barcode}"}}
PRINTFEED