private void btn_Check_KM_FFD12_Click(object sender, EventArgs e)
    {


      Driver.CheckType = 0;
      Driver.OpenCheck();

/*      Driver.TagNumber = 1261;   //Доп. реквизит пользователя
      Driver.FNBeginSTLVTag();

      int my_TagID = Driver.TagID;

      Driver.TagID = my_TagID;
      Driver.TagNumber = 1262;
      Driver.TagType = 7;
      Driver.TagValueStr = "020";
      Driver.FNAddTag();

      Driver.TagID = my_TagID;
      Driver.TagNumber = 1263;
      Driver.TagType = 7;
      Driver.TagValueStr = "14.12.2018";
      Driver.FNAddTag();

      Driver.TagID = my_TagID;
      Driver.TagNumber = 1264;
      Driver.TagType = 7;
      Driver.TagValueStr = "1556";
      Driver.FNAddTag();

      Driver.TagID = my_TagID;
      Driver.TagNumber = 1265;
      Driver.TagType = 7;
      Driver.TagValueStr = "tm=mdlp&sid00000000113101";
      Driver.FNAddTag();

         Driver.FNSendSTLVTag();
*/
      Driver.BarCode = "010460702776893521000000013JBSF91FFD092dGVzdGifC5FkjETjJhotf7m8rsjQHeoNyxcpaEIZfDQ=";
      Driver.ItemStatus = 2;
      Driver.CheckItemMode = 0;
      //организация работы с мерным кол-вом (теги 1291, 1292, 1293 и 1294)

      String TLVData;
      Driver.TLVDataHex = "";
      Driver.TagNumber = 2108;
      Driver.TagType = 0; // тип ttByte
      Driver.TagValueInt = 0;
      Driver.GetTagAsTLV();

      TLVData = Driver.TLVDataHex;
      Driver.TagNumber = 1023;
      Driver.TagType = 4; // тип FVLN
      Driver.TagValueFVLN = 1;
      Driver.GetTagAsTLV();

      TLVData = TLVData + Driver.TLVDataHex;
      Driver.TagNumber = 1291;
      Driver.TagType = 8; // тип ttSTLV
      Driver.FNBeginSTLVTag();

      Driver.TagNumber = 1293;
      Driver.TagType = 3; // тип ttVLN
      Driver.TagValueVLN = "1";
      Driver.FNAddTag();

      Driver.TagNumber = 1294;
      Driver.TagType = 3; // тип ttVLN
      Driver.TagValueVLN = "7";
      Driver.FNAddTag();

      Driver.TagNumber = 1291;
      Driver.TagType = 8; // тип ttSTLV
      Driver.GetTagAsTLV();

      TLVData = TLVData + Driver.TLVDataHex;
      //
      Driver.TLVDataHex = TLVData;
      Driver.FNCheckItemBarcode();

      Driver.FNAcceptMakringCode();

      Driver.Quantity = 1;
      Driver.MeasureUnit = 0;
      Driver.DivisionalQuantity = true;
      Driver.Numerator = Convert.ToString(1);
      Driver.Denominator = Convert.ToString(7);
      Driver.Price = 90;
      Driver.Summ1Enabled = false;
      Driver.Tax1 = 1;
      Driver.Department = 1;
      Driver.PaymentTypeSign = 4; //Признак способа расчета для ФФД 1.05: "Полный расчет"
      Driver.PaymentItemSign = 33; //Признак предмета расчета: "Подакцизный товар"
      //организация передачи наименования товарной позиции. Мах длинна не более 128 сим.
      Driver.StringForPrinting = "Л-тироксин 50 Берлин-Хеми тб 50мкг N 50"; // данное наименование товара на чеке печатается и передается в ОФД.
      Driver.FNOperation();

      Driver.TagNumber = 1262;
      Driver.TagType = 7;
      Driver.TagValueStr = "020";
      Driver.FNSendTagOperation();

      Driver.TagNumber = 1263;
      Driver.TagType = 7;
      Driver.TagValueStr = "14.12.2018";
      Driver.FNSendTagOperation();

      Driver.TagNumber = 1264;
      Driver.TagType = 7;
      Driver.TagValueStr = "1556";
      Driver.FNSendTagOperation();

      Driver.TagNumber = 1265;
      Driver.TagType = 7;
      Driver.TagValueStr = "tm=mdlp&sid00000000113101";
      Driver.FNSendTagOperation();

      Driver.BarCode = "010460702776893521000000013JBSF91FFD092dGVzdGifC5FkjETjJhotf7m8rsjQHeoNyxcpaEIZfDQ=";
      Driver.FNSendItemBarcode();
      Driver.Summ1 = 2000;
      Driver.Summ2 = 0;
      Driver.Summ3 = 0;
      Driver.Summ4 = 0;
      Driver.Summ5 = 0;
      Driver.Summ6 = 0;
      Driver.Summ7 = 0;
      Driver.Summ8 = 0;
      Driver.Summ9 = 0;
      Driver.Summ10 = 0;
      Driver.Summ11 = 0;
      Driver.Summ12 = 0;
      Driver.Summ13 = 0;
      Driver.Summ14 = 0;
      Driver.Summ15 = 0;
      Driver.Summ16 = 0;
      Driver.RoundingSumm = 0;
//      Driver.TaxType = 1;
      Driver.StringForPrinting = "=================================================================";
      Driver.FNCloseCheckEx();