private IEnumerable<ValidationResult> ValidateEan(Barcode barcode)
        {
            var length = barcode.EanCode != null
                                 ? barcode.EanCode.Length
                                 : 0;

            if (length != 13)
            {
                yield return new ValidationResult
                             {
                                 Error = string.Format("Ean Code muss 13 Stellen besitzen, hat aber {0} Stellen.", length),
                                 Property = "EanCode",
                                 Value = barcode.EanCode
                             };
            }
            else
            {
                if (!Ean13.HasValidChecksum(barcode.EanCode))
                {
                    yield return new ValidationResult
                    {
                        Error = "Ean nicht gültig, da Prüfziffer inkorrekt.",
                        Property = "EanCode",
                        Value = barcode.EanCode
                    };
                }
            }
        }
        public Account_change(string _rec_money, ListView _rec_points, string _rec_items)
        {
            InitializeComponent();

            this.MaximizeBox = !this.MaximizeBox;
            this.MinimizeBox = !this.MinimizeBox;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            reg_goods_sum.Text = Form1.reg_item_price_sum.ToString();
            received_money.Text = _rec_money;
            change.Text =   (int.Parse(received_money.Text) - int.Parse(reg_goods_sum.Text)).ToString();
            practice_status.Text = (Form1.isPractice) ? "練習モードなので売上は記録されません。" : "";

            item_list = _rec_points;

            if (!Form1.isPractice)
            {
                Barcode bc = new Barcode(BarCode_Prefix.SALE,Form1.store_num,atsumi_pos.read_count_num(Form1.db_file_item, "sales_list").ToString("D5"));
                barcode = bc.show();
                Insert(new SalesTable(bc.show(),
                    (Unix_Time.ToUnixTime(DateTime.Now)).ToString(),
                    _rec_points.Items.Count.ToString(),
                    Form1.reg_item_price_sum.ToString(),
                    _rec_items));
            }
            Form1.change_form_text(this, form_name);
        }
 public static byte[] BarCodeWrite(int left, int top, int height, ElementDrawRotation rotation, Barcode barcode, bool readable, 
     string barcodeData, PrinterSettings settings)
 {
     string encodedReadable = readable ? "B" : "N";
     return Encoding.GetEncoding(437).GetBytes(string.Format("B{0},{1},{2},{3},{4},{5},{6},{7},\"{8}\"\n", left + settings.AlignLeft,
         top + settings.AlignTop, (int)rotation, barcode.P4Value, barcode.BarWidthNarrow, barcode.BarWidthWide, height, encodedReadable,
         barcodeData));
 }
        public bool do_load(ArrayList csv)
        {
            int item_position = -1;
            for (int i = 0; i < csv.Count; i++)
            {
                if (csv[i].ToString().StartsWith("##商品リスト"))
                {
                    item_position = i;
                    break;
                }
            }
            if (item_position == -1)
            {
                MessageBox.Show(
                    "ファイルがおかしいよ"+Environment.NewLine+
                    "・CSV形式であるか"+Environment.NewLine+
                    "・しっかりフォーマットに沿っているか"+Environment.NewLine+
                    "を確認してください","読み込みエラー",MessageBoxButtons.OK,MessageBoxIcon.Question
                    );
                return false;
            }

            int column_count = 0;
            for (int i = item_position + 1; i < csv.Count; i++)
            {
                if (!csv[i].ToString().StartsWith("#")) continue;
                column_count++;
            }

            if (column_count == 0)
            {
                MessageBox.Show(
                    "ファイルがおかしいよ" + Environment.NewLine +
                    "・しっかりフォーマットに沿っているか" + Environment.NewLine +
                    "を確認してください", "読み込みエラー", MessageBoxButtons.OK, MessageBoxIcon.Question
                    );
                return false;
            }

            for (int i = item_position + column_count + 1; i < csv.Count; i += column_count)
            {
                Barcode bar = new Barcode(
                    BarCode_Prefix.ITEM,
                    Form1.store_num, atsumi_pos.read_count_num(Form1.db_file_item, "item_list").ToString("D5"));

                if (atsumi_pos.Insert(new atsumi_pos.ItemTable(bar.show(), csv[i].ToString(), csv[i + 2].ToString(), Form1.store_num.ToString())))
                {
                    MessageBox.Show("アイテムの登録が出来田っぽい");
                }
                else
                {
                    MessageBox.Show("アイテムの登録は出来て内っぽい");
                }
            }

            return true;
        }
Example #5
0
        public BarcodePrintTemplate GetPrintTemplate(Barcode barcode)
        {
            dynamic printData = new ExpandoObject();
            printData.ProductCode = barcode.ProductCode;
            printData.Image = CreateBarcodeImage(barcode.EanCode);

            var template = new BarcodePrintTemplate();
            template.DataContext = printData;
            template.Margin = new Thickness(Settings.CodeMarginLR, Settings.CodeMarginTB, Settings.CodeMarginLR, Settings.CodeMarginTB);
            return template;
        }
    /// <summary>
    /// Generates a GiftCard Object
    /// </summary>
    /// <param name="issuerId"> </param>
    /// <param name="classId"> </param>
    /// <param name="objectId"> </param>
    /// <returns> GiftCardObject </returns>
    public static GiftCardObject generateGiftCardObject(string issuerId, string classId, string objectId)
    {
      // Define Barcode
      Barcode barcode = new Barcode() {
        Type = "qrCode",
        Value = "28343E3",
        AlternateText = "12345"
      };

      Money balance = new Money {
        CurrencyCode = "USD",
        Micros = 20000000L
      };

      // TODO(samstern): balanceUpdateTime

      // Define Text Module Data
      IList<TextModuleData> textModulesData = new List<TextModuleData>();
      TextModuleData textModuleData = new TextModuleData() {
        Header = "Earn double points",
        Body = "Jane, don't forget to use your Baconrista Rewards when " +
            "paying with this gift card to earn additional points"
      };
      textModulesData.Add(textModuleData);

      // Define Links Module Data
      IList<Uri> uris = new List<Uri>();
      Uri uri1 = new Uri() {
        Description = "My Baconrista Gift Card Purchases",
        UriValue = "http://www.baconrista.com/mybalance?id=1234567890"
      };
      uris.Add(uri1);

      LinksModuleData linksModuleData = new LinksModuleData() {
        Uris = uris
      };

      // Define Wallet Instance
      GiftCardObject GiftCardObj = new GiftCardObject() {
        ClassId = issuerId + "." + classId,
        Id = issuerId + "." + objectId,
        State = "active",
        Version = 1,
        Barcode = barcode,
        TextModulesData = textModulesData,
        LinksModuleData = linksModuleData,
        Balance = balance,
        EventNumber = "123456",
        CardNumber = "123jkl4889",
        Pin = "1111"
      };

      return GiftCardObj;
    }
 private IEnumerable<ValidationResult> ValidateQuantity(Barcode barcode)
 {
     if (barcode.Quantity <= 0)
     {
         yield return new ValidationResult
                      {
                          Error = "Anzahl muss >= 1 sein",
                          Property = "Quantity",
                          Value = barcode.EanCode
                      };
     }
 }
        public ValidationResult[] Validate(Barcode barcode)
        {
            var results = new List<ValidationResult>();

            foreach (var validationResult in ValidateEan(barcode))
            {
                results.Add(validationResult);
            }
            foreach (var validationResult in ValidateQuantity(barcode))
            {
                results.Add(validationResult);
            }

            return results.ToArray();
        }
 public void BarcodeLogic(Barcode barcode)
 {
     switch (barcode.Command)
     {
         case "TP":
             this.textBoxNameType.Text = barcode.Value;
             break;
         case "SN":
             this.textBoxNameAsset.Text = barcode.Value;
             break;
         case "NM":
             this.textBoxName.Text = barcode.Value;
             break;
     }
 }
        public Item_Regist_OK(string _category, string _name, string _price)
        {
            InitializeComponent();
            reg_item_name = _name;
            reg_item_price = _price;

            Barcode bar = new Barcode(BarCode_Prefix.ITEM, Form1.store_num, atsumi_pos.read_count_num(Form1.db_file_item, "item_list").ToString("D5"));

            reg_barcode = bar.show();

            ireg_ok_name.Text = _name;
            ireg_ok_price.Text = _price;
            this.MaximizeBox = !this.MaximizeBox;
            this.MinimizeBox = !this.MinimizeBox;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
        }
Example #11
0
        public byte[] DownloadResults(Barcode barcode)
        {
            var stream = new MemoryStream();

            // zip up the files and return them
            using (var zip = new ZipFile())
            {
                foreach(var file in Directory.EnumerateFiles(string.Format(@"{0}\raw\{1}", _storageLocation, barcode.Id), "*"))
                {
                    zip.AddFile(file, string.Empty);
                }

                zip.Save(stream);
            }

            return stream.ToArray();
        }
Example #12
0
    public static OfferObject generateOfferObject(string issuerId, string classId, string objectId)
    {
      Barcode barcode = new Barcode() {
        Type = "upcA",
        Value = "123456789012",
        AlternateText = "12345",
        Label = "Offer Code"
      };

      // Define Wallet Object
      OfferObject offerObj = new OfferObject() {
        ClassId = issuerId + "." + classId,
        Id = issuerId + "." + objectId,
        Version = 1,
        Barcode = barcode,
        State = "active"
      };

      return offerObj;
    }
        private void BarcodeLogic(string strBarcode)
        {
            Barcode barcode = new Barcode(strBarcode);

            // It's a general command
            if (barcode.Command == "CM")
            {
                switch (barcode.Value)
                {
                    case "CLS":
                        activeControl.Clear();
                        break;
                    case "PRN":
                        activeControl.Print();
                        break;
                }
            }

            // It's a mode-selection command
            else if (barcode.Command == "MD")
            {
                switch (barcode.Value)
                {
                    case "SELECTION":
                        ChangeMode(new ModeSelectionControl());
                        break;
                    case "WIP":
                        ChangeMode(new ModeRequestControl());
                        break;
                    case "KITTING":
                        ChangeMode(new ModeKittingControl());
                        break;
                }
            }

            // Pass it on the the Active ModeControl
            else
            {
                activeControl.BarcodeLogic(barcode);
            }
        }
 public static byte[] BarCodeWrite(int left, int top, int height, ElementDrawRotation rotation, Barcode barcode, bool readable, string barcodeData)
 {
     string encodedReadable = readable ? "Y" : "N";
     char encodedRotation = Rotation.ZPLRotationMap[(int)rotation];
     switch (barcode.Type)
     {
         case BarcodeType.CODE39_STD_EXT:
             return Encoding.GetEncoding(850).GetBytes(string.Format("^FO{0},{1}^BY{2}^B3{3},,{4},{5}^FD{6}^FS", left, top,
                 barcode.BarWidthNarrow, encodedRotation, height, encodedReadable, barcodeData));
         case BarcodeType.CODE128_AUTO:
             return Encoding.GetEncoding(850).GetBytes(string.Format("^FO{0},{1}^BY{2}^BC{3},{4},{5}^FD{6}^FS", left, top,
                 barcode.BarWidthNarrow, encodedRotation, height, encodedReadable, barcodeData));
         case BarcodeType.UPC_A:
             return Encoding.GetEncoding(850).GetBytes(string.Format("^FO{0},{1}^BY{2}^BU{3},{4},{5}^FD{6}^FS", left, top,
                 barcode.BarWidthNarrow, encodedRotation, height, encodedReadable, barcodeData));
         case BarcodeType.EAN13:
             return Encoding.GetEncoding(850).GetBytes(string.Format("^FO{0},{1}^BY{2}^BE{3},{4},{5}^FD{6}^FS", left, top,
                 barcode.BarWidthNarrow, encodedRotation, height, encodedReadable, barcodeData));
         default:
             throw new ApplicationException("Barcode not yet supported by SharpZebra library.");
     }
 }
Example #15
0
        public void AcceptQualityControl(IRepositoryFactory repositoryFactory, Barcode barcode)
        {
            barcode.Done = true;
            barcode.AllowDownload = true;

            var plate = barcode.UserJobPlate;
            plate.Completed = true;
            plate.DateTimeCompleted = DateTime.Now;
            repositoryFactory.UserJobPlateRepository.EnsurePersistent(plate);

            var userJob = barcode.UserJobPlate.UserJob;
            userJob.LastUpdate = DateTime.Now;
            if (userJob.UserJobPlates.All(a => a.Completed))
            {
                userJob.IsOpen = false;
                userJob.LastUpdate = DateTime.Now;
            }

            repositoryFactory.UserJobRepository.EnsurePersistent(userJob);

            // 2013-04-09 by kjt: Added client email notification:
            EmailService.SendMessage(userJob);
        }
Example #16
0
        public static void AddBarcode(decimal?skuid, string barcodeValue, IUnitOfWork uow)
        {
            if (!skuid.HasValue || string.IsNullOrEmpty(barcodeValue))
            {
                return;
            }

            var barcodeEntity = new Barcode
            {
                BarcodeEntity = SkuEntityName,
                BarcodeValue  = barcodeValue,
                BarcodeKey    = skuid.ToString()
            };

            using (var mgr = IoC.Instance.Resolve <IBaseManager <Barcode> >())
            {
                if (uow != null)
                {
                    mgr.SetUnitOfWork(uow);
                }

                mgr.Insert(ref barcodeEntity);
            }
        }
Example #17
0
        /// <summary>
        /// Creates the barcode.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="value">The value.</param>
        /// <param name="format">The format.</param>
        /// <param name="returnAsBase64">if set to <c>true</c> [return as base64].</param>
        public HttpResponseMessage CreateBarcode(string type, string value, string format = "png", bool returnAsBase64 = false)
        {
            // Next create the barcode
            Barcode barcode = new Barcode();
            var generate128 = barcode.GenerateBarcode(type, value);

            HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK);

            // Should we return as a base 64 string?
            if (!returnAsBase64)
            {
                //result.Content = new ByteArrayContent(generate128.ImageBytes);

                // Then decide the format
                switch (format)
                {
                    case "jpg":
                        format = string.Format("image/{0}", format);
                        break;
                    case "gif":
                        format = string.Format("image/{0}", format);
                        break;
                    default:
                        format = "image/png";
                        break;
                }

                result.Content.Headers.ContentType = new MediaTypeHeaderValue(format);
            }
            else
            {
                result.Content = new StringContent("");//new StringContent(new {generate128.Base64Image, DateCreated = DateTime.Now.ToShortDateString()}.ToJSON());
            }

            return result;
        }
Example #18
0
        static public void PlaceBarcode(string input, string output, int page, string type, string code, float offsetX, float offsetY, float width, float rotateDegrees = 0, float barHeight = 0, bool displayText = true)
        {
            if (!File.Exists(input))
            {
                throw new FileNotFoundException(FILE_NOT_FOUND, input);
            }

            System.IO.FileStream fs = new FileStream(output, FileMode.Create);

            // По умолчанию страница 1
            if (page <= 0)
            {
                page = 1;
            }

            Barcode barcode = CreateBarcode(type, code, displayText, barHeight);

            // Установим дополнительные параметры
            if (barHeight > 0)
            {
                barcode.BarHeight = barHeight; // Высота одной полоски
            }
            if (displayText == false)
            {
                barcode.Font = null; // no text
            }
            // barcode.X = 5; // длина 1-й полоски
            // barcode.Size = 8; // размер шрифта

            using (PdfReader pdfReader = new PdfReader(input))
            {
                PdfStamper stamper = new PdfStamper(pdfReader, fs);
                PlaceBarcode(stamper, barcode, page, offsetX, offsetY, width, rotateDegrees, barHeight, displayText);
                stamper.Close();
            }
        }
            public void ReceiveDetections(Detector.Detections detections)
            {
                var qrcodes = detections.DetectedItems;

                if (qrcodes.Size() != 0)
                {
                    if (Configuration.IsScanning)
                    {
                        Configuration.IsScanning = false;
                        if (_vibrationOnDetected)
                        {
                            Vibrator vib = (Vibrator)_context.GetSystemService(Context.VibratorService);
                            vib.Vibrate(200);
                        }
                        List <BarcodeResult> barcodeResults = new List <BarcodeResult>();
                        for (int i = 0; i < qrcodes.Size(); i++)
                        {
                            Barcode barcode = qrcodes.ValueAt(i) as Barcode;
                            if (barcode == null)
                            {
                                continue;
                            }
                            var type     = Methods.ConvertBarcodeResultTypes(barcode.ValueFormat);
                            var value    = barcode.DisplayValue;
                            var rawValue = barcode.RawValue;
                            barcodeResults.Add(new BarcodeResult
                            {
                                BarcodeType  = type,
                                DisplayValue = value,
                                RawValue     = rawValue
                            });
                        }
                        OnDetected?.Invoke(barcodeResults);
                    }
                }
            }
        static void Main(string[] args)
        {
            // Create Barcode component instance
            using (Barcode barcode = new Barcode())
            {
                barcode.RegistrationName = "demo";
                barcode.RegistrationKey  = "demo";

                // Set barcode type
                barcode.Symbology = SymbologyType.QRCode;

                // Sample byte array to use as value
                byte[] byteArray = new byte[] { 0, 10, 11, 12, 13, 14, 15, 0xFF };

                // Set value by converting byte array to string
                barcode.Value = Encoding.Default.GetString(byteArray);

                // Save barcode image
                barcode.SaveImage("result.png");

                // Open output image in default associated application
                Process.Start("result.png");
            }
        }
        public async Task <List <BarcodeResult> > ScanFromImage(byte[] imageArray)
        {
            BarcodeDetector detector = new BarcodeDetector.Builder(Android.App.Application.Context)
                                       .SetBarcodeFormats(Configuration.BarcodeFormats)
                                       .Build();
            Bitmap bitmap = BitmapFactory.DecodeByteArray(imageArray, 0, imageArray.Length);

            Android.Gms.Vision.Frame frame      = new Android.Gms.Vision.Frame.Builder().SetBitmap(bitmap).Build();
            SparseArray          qrcodes        = detector.Detect(frame);
            List <BarcodeResult> barcodeResults = new List <BarcodeResult>();

            for (int i = 0; i < qrcodes.Size(); i++)
            {
                Barcode barcode = qrcodes.ValueAt(i) as Barcode;
                var     type    = Methods.ConvertBarcodeResultTypes(barcode.ValueFormat);
                var     value   = barcode.DisplayValue;
                barcodeResults.Add(new BarcodeResult
                {
                    BarcodeType  = type,
                    DisplayValue = value
                });
            }
            return(barcodeResults);
        }
Example #22
0
        public AddProductForm()
        {
            InitializeComponent();
            cmd       = new SqlCommand();
            imagePath = null;
            con.Open();
            cmd.Connection  = con;
            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "SELECT DISTINCT Model From Models";
            SqlDataReader reader = cmd.ExecuteReader();

            while (reader.Read())
            {
                modelTxt.Items.Add(reader.GetString(0));
            }
            reader.Close();
            con.Close();

            // BARCODE
            pictureBox2         = new PictureBox();
            pictureBox2.Visible = false;
            characters          = "0123456789".ToCharArray();
            randomBarcode       = "";
            k       = 12;
            r       = new Random();
            barcode = new Barcode();
            font    = new Font("Arial", 9);
            point1  = new Point(30, 30); // code
            point2  = new Point(92, 42); // type
            point3  = new Point(70, 55); // typeTxt
            point4  = new Point(12, 42); // model
            point5  = new Point(0, 55);  // modelTxt
            point6  = new Point(52, 68); // price
            point7  = new Point(52, 80); // priceTxt
            generateBarcode();
        }
Example #23
0
        /// <summary>
        /// Encode the raw data using the EAN-8 algorithm.
        /// </summary>
        private string Encode_EAN8()
        {
            //check length
            if (Raw_Data.Length != 8 && Raw_Data.Length != 7)
            {
                throw new System.Exception("EEAN8-1: Invalid data length. (7 or 8 numbers only)");
            }

            //check numeric only
            if (!Barcode.CheckNumericOnly(Raw_Data))
            {
                throw new System.Exception("EEAN8-2: Numeric only.");
            }

            //encode the data
            string result = "101";

            //first half (Encoded using left hand / odd parity)
            for (int i = 0; i < Raw_Data.Length / 2; i++)
            {
                result += EAN_CodeA[Int32.Parse(Raw_Data[i].ToString())];
            }//for

            //center guard bars
            result += "01010";

            //second half (Encoded using right hand / even parity)
            for (int i = Raw_Data.Length / 2; i < Raw_Data.Length; i++)
            {
                result += EAN_CodeC[Int32.Parse(Raw_Data[i].ToString())];
            }//for

            result += "101";

            return(result);
        }//Encode_EAN8
Example #24
0
        static void Main(string[] args)
        {
            // Create new barcode
            Barcode barcode = new Barcode();

            // Set symbology
            barcode.Symbology = SymbologyType.GS1_DataMatrix;

            // Set GS1 barcode value
            barcode.Value = "(01)03453120000011(17)291030(10)ABC123";

            // you may also set the value without brackets and the SDK will automatically add brackets where needed
            // also some values may include "|" character as the additional separator (for example, GS1 Australian Post)
            // barcode.Value = "01034531200000111729103010ABC123"; // it will be converted into "(01)03453120000011(17)291030(10)ABC123" automatically

            // you may also optionally check if this value is valid according to GS1 subtype rules
            // bool isValidValue = barcode.ValueIsValidGS1(barcode.Value));

            // Save barcode to image
            barcode.SaveImage("result.png");

            // Show image in default image viewer
            Process.Start("result.png");
        }
 /// <summary>
 /// Required method for telerik Reporting designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Invoice));
     Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter();
     Telerik.Reporting.ReportParameter reportParameter2 = new Telerik.Reporting.ReportParameter();
     Telerik.Reporting.ReportParameter reportParameter3 = new Telerik.Reporting.ReportParameter();
     this.OrderNumbersDataSource = new Telerik.Reporting.SqlDataSource();
     this.detail = new Telerik.Reporting.DetailSection();
     this.panel4 = new Telerik.Reporting.Panel();
     this.textBox14 = new Telerik.Reporting.TextBox();
     this.textBox10 = new Telerik.Reporting.TextBox();
     this.textBox9 = new Telerik.Reporting.TextBox();
     this.textBox8 = new Telerik.Reporting.TextBox();
     this.textBox6 = new Telerik.Reporting.TextBox();
     this.textBox4 = new Telerik.Reporting.TextBox();
     this.textBox12 = new Telerik.Reporting.TextBox();
     this.textBox13 = new Telerik.Reporting.TextBox();
     this.textBox11 = new Telerik.Reporting.TextBox();
     this.textBox16 = new Telerik.Reporting.TextBox();
     this.textBox17 = new Telerik.Reporting.TextBox();
     this.textBox18 = new Telerik.Reporting.TextBox();
     this.textBox19 = new Telerik.Reporting.TextBox();
     this.textBox21 = new Telerik.Reporting.TextBox();
     this.textBox28 = new Telerik.Reporting.TextBox();
     this.textBox29 = new Telerik.Reporting.TextBox();
     this.textBox30 = new Telerik.Reporting.TextBox();
     this.textBox31 = new Telerik.Reporting.TextBox();
     this.textBox32 = new Telerik.Reporting.TextBox();
     this.panel1 = new Telerik.Reporting.Panel();
     this.textBox24 = new Telerik.Reporting.TextBox();
     this.textBox23 = new Telerik.Reporting.TextBox();
     this.textBox25 = new Telerik.Reporting.TextBox();
     this.textBox26 = new Telerik.Reporting.TextBox();
     this.textBox27 = new Telerik.Reporting.TextBox();
     this.panel2 = new Telerik.Reporting.Panel();
     this.textBox7 = new Telerik.Reporting.TextBox();
     this.textBox2 = new Telerik.Reporting.TextBox();
     this.textBox3 = new Telerik.Reporting.TextBox();
     this.group1 = new Telerik.Reporting.Group();
     this.groupFooterSection1 = new Telerik.Reporting.GroupFooterSection();
     this.groupHeaderSection1 = new Telerik.Reporting.GroupHeaderSection();
     this.panel5 = new Telerik.Reporting.Panel();
     this.Text1 = new Telerik.Reporting.TextBox();
     this.Field6 = new Telerik.Reporting.TextBox();
     this.Text12 = new Telerik.Reporting.TextBox();
     this.Id1 = new Telerik.Reporting.TextBox();
     this.barcode2 = new Telerik.Reporting.Barcode();
     this.pictureBox1 = new Telerik.Reporting.PictureBox();
     this.textBox1 = new Telerik.Reporting.TextBox();
     this.panel3 = new Telerik.Reporting.Panel();
     this.Text8 = new Telerik.Reporting.TextBox();
     this.InvoicesDataSource = new Telerik.Reporting.SqlDataSource();
     this.pageFooterSection1 = new Telerik.Reporting.PageFooterSection();
     this.textBox5 = new Telerik.Reporting.TextBox();
     this.textBox22 = new Telerik.Reporting.TextBox();
     this.subReport1 = new Telerik.Reporting.SubReport();
     this.salesOrderDetails1 = new Telerik.Reporting.SalesOrderDetails();
     ((System.ComponentModel.ISupportInitialize)(this.salesOrderDetails1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // OrderNumbersDataSource
     //
     this.OrderNumbersDataSource.ConnectionString = "Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString";
     this.OrderNumbersDataSource.Name = "OrderNumbers";
     this.OrderNumbersDataSource.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
     new Telerik.Reporting.SqlDataSourceParameter("@ForYear", System.Data.DbType.String, "=Parameters.ForYear.Value"),
     new Telerik.Reporting.SqlDataSourceParameter("@ForMonth", System.Data.DbType.String, "=Parameters.ForMonth.Value")});
     this.OrderNumbersDataSource.SelectCommand = resources.GetString("OrderNumbersDataSource.SelectCommand");
     //
     // detail
     //
     this.detail.Height = new Telerik.Reporting.Drawing.Unit(3.2780463695526123D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.panel4,
     this.subReport1});
     this.detail.KeepTogether = false;
     this.detail.Name = "detail";
     //
     // panel4
     //
     this.panel4.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.textBox14,
     this.textBox10,
     this.textBox9,
     this.textBox8,
     this.textBox6,
     this.textBox4,
     this.textBox12,
     this.textBox13,
     this.textBox11,
     this.textBox16,
     this.textBox17,
     this.textBox18,
     this.textBox19,
     this.textBox21,
     this.textBox28,
     this.textBox29,
     this.textBox30,
     this.textBox31,
     this.textBox32,
     this.panel1,
     this.panel2,
     this.textBox2,
     this.textBox3});
     this.panel4.KeepTogether = false;
     this.panel4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.0833333358168602D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel4.Name = "panel4";
     this.panel4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.5D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.7000000476837158D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel4.Style.BorderColor.Default = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(221)))), ((int)(((byte)(252)))));
     this.panel4.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
     //
     // textBox14
     //
     this.textBox14.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38954368233680725D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox14.Name = "textBox14";
     this.textBox14.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox14.Value = "=Fields.Store";
     //
     // textBox10
     //
     this.textBox10.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.8120609521865845D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox10.Name = "textBox10";
     this.textBox10.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox10.Value = "=Fields.CustPhone";
     //
     // textBox9
     //
     this.textBox9.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.5259628295898438D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox9.Name = "textBox9";
     this.textBox9.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.993710994720459D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox9.Value = "=Fields.CustFirstName + \" \" + Fields.CustLastName";
     //
     // textBox8
     //
     this.textBox8.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.5259628295898438D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox8.Name = "textBox8";
     this.textBox8.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.72496062517166138D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox8.Style.Font.Bold = true;
     this.textBox8.Style.Font.Name = "Verdana";
     this.textBox8.Value = "Contact:";
     //
     // textBox6
     //
     this.textBox6.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.1898593902587891D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox6.Name = "textBox6";
     this.textBox6.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox6.Value = "=Fields.BillCountryRegion";
     //
     // textBox4
     //
     this.textBox4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.98978042602539062D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox4.Name = "textBox4";
     this.textBox4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox4.Value = "=Fields.BillPostalCode + \" \" + Fields.BillCity";
     //
     // textBox12
     //
     this.textBox12.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.78970146179199219D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox12.Name = "textBox12";
     this.textBox12.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox12.Value = "=IsNull(Fields.BillAddress2, \'No secondary Address\')";
     //
     // textBox13
     //
     this.textBox13.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.0103377103805542D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.58962249755859375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox13.Name = "textBox13";
     this.textBox13.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9937108755111694D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox13.Value = "=Fields.BillAddress1";
     //
     // textBox11
     //
     this.textBox11.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.8120609521865845D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox11.Name = "textBox11";
     this.textBox11.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.72496062517166138D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox11.Style.Font.Bold = true;
     this.textBox11.Style.Font.Name = "Verdana";
     this.textBox11.Value = "Phone:";
     //
     // textBox16
     //
     this.textBox16.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.7736506462097168D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.389543741941452D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox16.Name = "textBox16";
     this.textBox16.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6291275024414062D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox16.Value = "=Fields.Store";
     //
     // textBox17
     //
     this.textBox17.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.7736506462097168D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.58962267637252808D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox17.Name = "textBox17";
     this.textBox17.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6291275024414062D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox17.Value = "=Fields.ShipAddress1";
     //
     // textBox18
     //
     this.textBox18.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.7736506462097168D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.78970146179199219D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox18.Name = "textBox18";
     this.textBox18.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6291275024414062D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox18.Value = "=IsNull(Fields.ShipAddress2, \'No secondary Address\')";
     //
     // textBox19
     //
     this.textBox19.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.7736506462097168D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.98978042602539062D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox19.Name = "textBox19";
     this.textBox19.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6291275024414062D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox19.Value = "=Fields.ShipPostalCode + \" \" + Fields.ShipCity + \", \" + Fields.ShipStateProvince " +
         "";
     //
     // textBox21
     //
     this.textBox21.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.7736506462097168D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.18985915184021D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox21.Name = "textBox21";
     this.textBox21.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6291275024414062D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox21.Value = "=Fields.ShipCountryRegion";
     //
     // textBox28
     //
     this.textBox28.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.7430548667907715D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.332122802734375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox28.Name = "textBox28";
     this.textBox28.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.6736117601394653D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox28.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox28.Value = "=Fields.ShipMethod";
     //
     // textBox29
     //
     this.textBox29.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.3639674186706543D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.332122802734375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox29.Name = "textBox29";
     this.textBox29.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.3790086507797241D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox29.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox29.Value = "=Fields.PurchaseOrderNumber";
     //
     // textBox30
     //
     this.textBox30.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.3792455196380615D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.332122802734375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox30.Name = "textBox30";
     this.textBox30.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9846428632736206D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox30.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox30.Value = "=Fields.SalesFirstName + \" \" + Fields.SalesLastName";
     //
     // textBox31
     //
     this.textBox31.Format = "{0:d}";
     this.textBox31.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.332122802734375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox31.Name = "textBox31";
     this.textBox31.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.1395833492279053D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox31.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox31.Value = "=Now()";
     //
     // textBox32
     //
     this.textBox32.Format = "{0:d}";
     this.textBox32.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.2395831346511841D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.332122802734375D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox32.Name = "textBox32";
     this.textBox32.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.1395833492279053D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox32.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox32.Value = "=Fields.OrderDate";
     //
     // panel1
     //
     this.panel1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.textBox24,
     this.textBox23,
     this.textBox25,
     this.textBox26,
     this.textBox27});
     this.panel1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.05200457572937D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel1.Name = "panel1";
     this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.316746711730957D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800394594669342D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel1.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(245)))), ((int)(((byte)(255)))));
     //
     // textBox24
     //
     this.textBox24.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox24.Name = "textBox24";
     this.textBox24.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.1395833492279053D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox24.Style.Font.Bold = true;
     this.textBox24.Style.Font.Name = "Verdana";
     this.textBox24.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point);
     this.textBox24.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox24.Value = "Date";
     //
     // textBox23
     //
     this.textBox23.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.1396621465682983D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox23.Name = "textBox23";
     this.textBox23.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.1395833492279053D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox23.Style.Font.Bold = true;
     this.textBox23.Style.Font.Name = "Verdana";
     this.textBox23.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox23.Value = "Order Date";
     //
     // textBox25
     //
     this.textBox25.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(2.2793638706207275D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox25.Name = "textBox25";
     this.textBox25.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9846034049987793D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox25.Style.Font.Bold = true;
     this.textBox25.Style.Font.Name = "Verdana";
     this.textBox25.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox25.Value = "Sales Person";
     //
     // textBox26
     //
     this.textBox26.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.2640457153320312D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox26.Name = "textBox26";
     this.textBox26.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.3790086507797241D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox26.Style.Font.Bold = true;
     this.textBox26.Style.Font.Name = "Verdana";
     this.textBox26.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox26.Value = "Purchase Order";
     //
     // textBox27
     //
     this.textBox27.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.6431331634521484D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox27.Name = "textBox27";
     this.textBox27.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.6736125946044922D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.2800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox27.Style.Font.Bold = true;
     this.textBox27.Style.Font.Name = "Verdana";
     this.textBox27.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox27.Value = "Shipment Method";
     //
     // panel2
     //
     this.panel2.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.textBox7});
     this.panel2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.099464893341064453D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel2.Name = "panel2";
     this.panel2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.3028569221496582D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.29003939032554626D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel2.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(245)))), ((int)(((byte)(255)))));
     //
     // textBox7
     //
     this.textBox7.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox7.Name = "textBox7";
     this.textBox7.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.9041273593902588D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.28999999165534973D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox7.Style.Font.Bold = true;
     this.textBox7.Style.Font.Name = "Verdana";
     this.textBox7.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
     this.textBox7.Value = "Customer Details";
     //
     // textBox2
     //
     this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.099921144545078278D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.38958317041397095D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox2.Name = "textBox2";
     this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox2.Style.Font.Bold = true;
     this.textBox2.Style.Font.Name = "Verdana";
     this.textBox2.Value = "Address:";
     //
     // textBox3
     //
     this.textBox3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(4.0519428253173828D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.389543741941452D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox3.Name = "textBox3";
     this.textBox3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.72162878513336182D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.19999997317790985D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox3.Style.Font.Bold = true;
     this.textBox3.Style.Font.Name = "Verdana";
     this.textBox3.Value = "Ship to:";
     //
     // group1
     //
     this.group1.GroupFooter = this.groupFooterSection1;
     this.group1.GroupHeader = this.groupHeaderSection1;
     this.group1.Name = "group1";
     //
     // groupFooterSection1
     //
     this.groupFooterSection1.Height = new Telerik.Reporting.Drawing.Unit(0.23541705310344696D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.groupFooterSection1.Name = "groupFooterSection1";
     this.groupFooterSection1.Style.Visible = false;
     //
     // groupHeaderSection1
     //
     this.groupHeaderSection1.Height = new Telerik.Reporting.Drawing.Unit(1.2865371704101563D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.groupHeaderSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.panel5});
     this.groupHeaderSection1.Name = "groupHeaderSection1";
     //
     // panel5
     //
     this.panel5.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.Text1,
     this.Field6,
     this.Text12,
     this.Id1,
     this.barcode2,
     this.pictureBox1,
     this.textBox1,
     this.panel3,
     this.Text8});
     this.panel5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.010456085205078125D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(3.9339065551757812E-05D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel5.Name = "panel5";
     this.panel5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(19.023441314697266D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(3.2677044868469238D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.panel5.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(216)))), ((int)(((byte)(240)))), ((int)(((byte)(255)))));
     this.panel5.Style.BorderColor.Default = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(221)))), ((int)(((byte)(252)))));
     this.panel5.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
     //
     // Text1
     //
     this.Text1.CanGrow = false;
     this.Text1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.0309247970581055D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.9893181324005127D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text1.Name = "Text1";
     this.Text1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(4.852510929107666D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.523809552192688D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text1.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.Text1.Style.BorderColor.Default = System.Drawing.Color.Black;
     this.Text1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
     this.Text1.Style.Color = System.Drawing.Color.Black;
     this.Text1.Style.Font.Bold = false;
     this.Text1.Style.Font.Italic = false;
     this.Text1.Style.Font.Name = "Verdana";
     this.Text1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(8D, Telerik.Reporting.Drawing.UnitType.Point);
     this.Text1.Style.Font.Strikeout = false;
     this.Text1.Style.Font.Underline = false;
     this.Text1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
     this.Text1.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Top;
     this.Text1.Style.Visible = true;
     this.Text1.Value = "275 Grove St., Suite 2-400, Newton, MA 02466\r\nPhone: +1.888.365.2779\r\nFax: +1.617" +
         ".249.2116";
     //
     // Field6
     //
     this.Field6.CanGrow = false;
     this.Field6.Format = "{0:d}";
     this.Field6.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(16.280376434326172D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.2130587100982666D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Field6.Name = "Field6";
     this.Field6.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.7429654598236084D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Field6.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.Field6.Style.BorderColor.Default = System.Drawing.Color.Black;
     this.Field6.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
     this.Field6.Style.Color = System.Drawing.Color.OrangeRed;
     this.Field6.Style.Font.Bold = true;
     this.Field6.Style.Font.Italic = false;
     this.Field6.Style.Font.Name = "Verdana";
     this.Field6.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point);
     this.Field6.Style.Font.Strikeout = false;
     this.Field6.Style.Font.Underline = false;
     this.Field6.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
     this.Field6.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
     this.Field6.Style.Visible = true;
     this.Field6.Value = "=Now()";
     //
     // Text12
     //
     this.Text12.CanGrow = false;
     this.Text12.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(10.177068710327148D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.2130589485168457D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text12.Name = "Text12";
     this.Text12.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.6963250637054443D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text12.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.Text12.Style.BorderColor.Default = System.Drawing.Color.Black;
     this.Text12.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
     this.Text12.Style.Color = System.Drawing.Color.Black;
     this.Text12.Style.Font.Bold = true;
     this.Text12.Style.Font.Italic = false;
     this.Text12.Style.Font.Name = "Verdana";
     this.Text12.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point);
     this.Text12.Style.Font.Strikeout = false;
     this.Text12.Style.Font.Underline = false;
     this.Text12.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
     this.Text12.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
     this.Text12.Style.Visible = true;
     this.Text12.Value = "Sales Order:";
     //
     // Id1
     //
     this.Id1.CanGrow = false;
     this.Id1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(12.8735933303833D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.2130589485168457D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Id1.Name = "Id1";
     this.Id1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.0355603694915771D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Id1.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.Id1.Style.BorderColor.Default = System.Drawing.Color.Black;
     this.Id1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
     this.Id1.Style.Color = System.Drawing.Color.OrangeRed;
     this.Id1.Style.Font.Bold = true;
     this.Id1.Style.Font.Italic = false;
     this.Id1.Style.Font.Name = "Verdana";
     this.Id1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(11D, Telerik.Reporting.Drawing.UnitType.Point);
     this.Id1.Style.Font.Strikeout = false;
     this.Id1.Style.Font.Underline = false;
     this.Id1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
     this.Id1.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
     this.Id1.Style.Visible = true;
     this.Id1.Value = "=Fields.SalesOrderID";
     //
     // barcode2
     //
     this.barcode2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(12.792195320129395D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.24975340068340302D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.barcode2.Name = "barcode2";
     this.barcode2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6.2312464714050293D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(1.7093372344970703D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.barcode2.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center;
     this.barcode2.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
     this.barcode2.Value = "=Fields.PurchaseOrderNumber";
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.18954388797283173D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.078749977052211761D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.pictureBox1.MimeType = "image/jpeg";
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.6123565435409546D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.71079403162002563D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.pictureBox1.Style.BorderColor.Default = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(221)))), ((int)(((byte)(252)))));
     this.pictureBox1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
     this.pictureBox1.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Point);
     this.pictureBox1.Value = ((object)(resources.GetObject("pictureBox1.Value")));
     //
     // textBox1
     //
     this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.9809513092041016D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.0983281135559082D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.9106760025024414D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.29121589660644531D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox1.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(90)))), ((int)(((byte)(184)))));
     this.textBox1.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(16D, Telerik.Reporting.Drawing.UnitType.Point);
     this.textBox1.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
     this.textBox1.Value = "AdventureWorks";
     //
     // panel3
     //
     this.panel3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(3.9418537198798731E-05D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(1.0682121515274048D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel3.Name = "panel3";
     this.panel3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.4895052909851074D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.21828572452068329D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.panel3.Style.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(229)))), ((int)(((byte)(255)))));
     //
     // Text8
     //
     this.Text8.CanGrow = false;
     this.Text8.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(14.909354209899902D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(2.2130589485168457D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text8.Name = "Text8";
     this.Text8.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.3708218336105347D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Cm));
     this.Text8.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.Text8.Style.BorderColor.Default = System.Drawing.Color.Black;
     this.Text8.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.None;
     this.Text8.Style.Color = System.Drawing.Color.Black;
     this.Text8.Style.Font.Bold = true;
     this.Text8.Style.Font.Italic = false;
     this.Text8.Style.Font.Name = "Verdana";
     this.Text8.Style.Font.Size = new Telerik.Reporting.Drawing.Unit(10D, Telerik.Reporting.Drawing.UnitType.Point);
     this.Text8.Style.Font.Strikeout = false;
     this.Text8.Style.Font.Underline = false;
     this.Text8.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
     this.Text8.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Bottom;
     this.Text8.Style.Visible = true;
     this.Text8.Value = "Date:";
     //
     // InvoicesDataSource
     //
     this.InvoicesDataSource.ConnectionString = "Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString";
     this.InvoicesDataSource.Name = "Invoices";
     this.InvoicesDataSource.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
     new Telerik.Reporting.SqlDataSourceParameter("@SalesOrderNumber", System.Data.DbType.String, "=Parameters.OrderNumber.Value")});
     this.InvoicesDataSource.SelectCommand = resources.GetString("InvoicesDataSource.SelectCommand");
     //
     // pageFooterSection1
     //
     this.pageFooterSection1.Height = new Telerik.Reporting.Drawing.Unit(0.1875D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.pageFooterSection1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.textBox5,
     this.textBox22});
     this.pageFooterSection1.Name = "pageFooterSection1";
     this.pageFooterSection1.Style.BorderColor.Default = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(221)))), ((int)(((byte)(252)))));
     this.pageFooterSection1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
     this.pageFooterSection1.Style.BorderWidth.Default = new Telerik.Reporting.Drawing.Unit(1D, Telerik.Reporting.Drawing.UnitType.Pixel);
     //
     // textBox5
     //
     this.textBox5.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox5.Name = "textBox5";
     this.textBox5.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(3.40625D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.1875D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox5.Style.BackgroundColor = System.Drawing.Color.Empty;
     this.textBox5.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(90)))), ((int)(((byte)(184)))));
     this.textBox5.Style.Font.Italic = false;
     this.textBox5.Value = "=PageExec(\"lineTotalDataTextBox\",Count(Fields.ProductNumber)) + \" products, \" + P" +
         "ageExec(\"lineTotalDataTextBox\",Sum(Fields.OrderQty)) + \" items on page  \" + Page" +
         "Number";
     //
     // textBox22
     //
     this.textBox22.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(5.2715086936950684D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(3.9418537198798731E-05D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox22.Name = "textBox22";
     this.textBox22.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2.1312694549560547D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.18742115795612335D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.textBox22.Style.Color = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(90)))), ((int)(((byte)(184)))));
     this.textBox22.Style.Font.Italic = false;
     this.textBox22.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Right;
     this.textBox22.Value = "=PageExec(\"lineTotalDataTextBox\",sum(LineTotal))";
     this.textBox22.Format = "{0:C2}";
     //
     // subReport1
     //
     this.subReport1.KeepTogether = false;
     this.subReport1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(7.8837074397597462E-05D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(2.8858587741851807D, Telerik.Reporting.Drawing.UnitType.Inch));
     this.subReport1.Name = "subReport1";
     this.subReport1.Parameters.Add(new Telerik.Reporting.Parameter("SaledOrderID", "=Fields.SalesOrderID"));
     this.subReport1.ReportSource = this.salesOrderDetails1;
     this.subReport1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(7.4999217987060547D, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.27500006556510925D, Telerik.Reporting.Drawing.UnitType.Inch));
     //
     // salesOrderDetails1
     //
     this.salesOrderDetails1.Name = "salesOrderDetails1";
     //
     // Invoice
     //
     this.DataSource = this.InvoicesDataSource;
     this.Filters.AddRange(new Telerik.Reporting.Data.Filter[] {
     new Telerik.Reporting.Data.Filter("=Fields.SalesOrderNumber", Telerik.Reporting.Data.FilterOperator.Equal, "=Parameters.OrderNumber.Value")});
     this.Groups.AddRange(new Telerik.Reporting.Group[] {
     this.group1});
     this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
     this.groupHeaderSection1,
     this.groupFooterSection1,
     this.detail,
     this.pageFooterSection1});
     this.PageSettings.Landscape = false;
     this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(0.5D, Telerik.Reporting.Drawing.UnitType.Inch);
     this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
     reportParameter1.AutoRefresh = true;
     reportParameter1.AvailableValues.DataSource = this.OrderNumbersDataSource;
     reportParameter1.AvailableValues.DisplayMember = "SalesOrderNumber";
     reportParameter1.AvailableValues.Sortings.AddRange(new Telerik.Reporting.Data.Sorting[] {
     new Telerik.Reporting.Data.Sorting("=Fields.SalesOrderNumber", Telerik.Reporting.Data.SortDirection.Asc)});
     reportParameter1.AvailableValues.ValueMember = "SalesOrderNumber";
     reportParameter1.Name = "OrderNumber";
     reportParameter1.Text = "Order #";
     reportParameter1.Value = "=First(Fields.SalesOrderNumber)";
     reportParameter1.Visible = true;
     reportParameter2.Name = "ForYear";
     reportParameter2.Type = Telerik.Reporting.ReportParameterType.Integer;
     reportParameter2.Value = "=2003";
     reportParameter3.Name = "ForMonth";
     reportParameter3.Type = Telerik.Reporting.ReportParameterType.Integer;
     reportParameter3.Value = "=7";
     this.ReportParameters.Add(reportParameter1);
     this.ReportParameters.Add(reportParameter2);
     this.ReportParameters.Add(reportParameter3);
     this.Style.BackgroundColor = System.Drawing.Color.White;
     this.Width = new Telerik.Reporting.Drawing.Unit(7.5000009536743164D, Telerik.Reporting.Drawing.UnitType.Inch);
     ((System.ComponentModel.ISupportInitialize)(this.salesOrderDetails1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
        static void Main(string[] args)
        {
            // Create Barcode instance and set it up
            Barcode barcode = new Barcode("demo", "demo");

            barcode.Symbology      = SymbologyType.Code39;
            barcode.Value          = "00090112";
            barcode.DrawCaption    = true;
            barcode.CaptionFont    = new Font("Courier", 12f, FontStyle.Bold, GraphicsUnit.Point);
            barcode.DrawQuietZones = false;
            barcode.ResolutionX    = barcode.ResolutionY = 300; // High resolution for better quality on document scaling and printing.

            // Compute barcode image dimension from inches to pixels at 300 DPI:

            int barHeight     = (int)(3f / 8 * 300);                              // = 3/8" * 300 DPI = height of bars
            int captionHeight = (int)barcode.CaptionFont.GetHeight(barcode.ResolutionY);
            int captionGap    = (int)(1f / 8 * 300);                              // = 1/8" gap

            int barcodeImageWidth  = 2 * 300;                                     // = 2" * 300 DPI = width of barcode
            int barcodeImageHeight = barHeight + captionGap + captionHeight + 28; // 28 = height of watermark text (painted in Trial version only)

            // Get final barcode image:

            barcode.BarHeight = barHeight;
            barcode.FitInto(barcodeImageWidth, barcodeImageHeight, UnitOfMeasure.Pixel);
            Image barcodeImage = barcode.GetImage();


            // Arrays of images and points to apply to PDF document
            Image[] images = new Image[3];
            Point[] points = new Point[3];

            // Compute coordinates of barcode image and target marks ar 72 DPI
            // (page size is 8.5" x 11", PDF document resolution is always 72 DPI):

            int x = (int)(8.5f * 72 - 2 * 72 - barcodeImageWidth / 300f * 72); // = page width - 2" - barcodeImageWidth at 72 DPI = X coordinate to put the barcode image
            int y = 2 * 72;                                                    // = 2" - Y coordinate to put the barcode image

            // Put barcode image into array
            images[0] = barcodeImage;
            points[0] = new Point(x, y);

            // Load target mark image.
            // TargetMark.png is 1/8" 300 DPI image (38x38 pixels)
            Image targetMarkImage = Image.FromFile("TargetMark.png");

            // Coordinates of top-right target mark
            x = (int)(8.5f * 72 - 1 * 72 - 1f / 8 * 72); // = pageWidth - 1" - target mark width (1/8") at 72DPI = X coordinate to put the barcode image
            y = 1 * 72;                                  // = 1" - Y coordinate to put the barcode image

            // Put first target mark image into array
            images[1] = targetMarkImage;
            points[1] = new Point(x, y);

            // Coordinates of bottom-left target mark
            x = 1 * 72;                                 // = 1"
            y = (int)(11f * 72 - 1 * 72 - 1f / 8 * 72); // = page height - 1" - target mark height (1/8") at 72DPI

            // Put second target mark image into array
            images[2] = targetMarkImage;
            points[2] = new Point(x, y);

            // Draw images on all PDF document pages.
            barcode.DrawImagesToPDF("wikipedia.pdf", -1 /*all pages*/, images, points, "result.pdf");

            // Cleanup
            barcodeImage.Dispose();
            targetMarkImage.Dispose();
            barcode.Dispose();

            // Open the result document in default associated application
            Process.Start("result.pdf");
        }
Example #27
0
        private static Barcode GetBarcodeObj(string mBarcodeData)
        {
            var result = new Barcode
                       {
                           DataToEncode = mBarcodeData,
                           Resolution = Barcode.Resolutions.Printer, /*..Custom,*/
                           //ResolutionCustomDPI = "600", /*"203",*/
                           SymbologyID = Barcode.Symbologies.Code128
                       };

            result.RefreshPrinterDPI();

            return result;
        }
        public static OfferObject generateOfferObject(string issuerId, string classId, string objectId)
        {
            Barcode barcode = new Barcode();
              barcode.Type = "upcA";
              barcode.Value ="123456789012";
              barcode.AlternateText = "12345";
              barcode.Label = "User Id";

              // Define Wallet Object
              OfferObject offobj = new OfferObject();
              offobj.ClassId = issuerId + "." + classId;
              offobj.Id = issuerId + "." + objectId;
              offobj.Version = "1";
              offobj.Barcode = barcode;
              offobj.State = "active";

              return offobj;
        }
Example #29
0
        // GET: api/Info/5
        public IHttpActionResult GetEncryption(string Correo, string Value, bool ValueEncript)
        {
            string email = String.Empty;
            string code  = String.Empty;

            if (Correo == null || Correo == "\"\"" || Value == null || Value == "\"\"")
            {
                if (Correo == null || Correo == "\"\"")
                {
                    email = "Porfavor introduzca un valor para el parametro (Correo)";
                    code  = "";
                }
                else if (Value == null || Value == "\"\"")
                {
                    email = "";
                    code  = "Porfavor introduzca un valor para el parametro (Value)";
                }
            }
            else
            {
                email = Regex.Replace(Correo, @"\""", "");
                code  = Regex.Replace(Value, @"\""", "");

                if (!IsValidEmail(email))
                {
                    email = "Por favor introduzca una dirección de correo válida";
                    code  = "";
                }
                else
                {
                    code = $"-{code}";

                    if (ValueEncript)
                    {
                        code = code.Substring(1);
                        code = ConvertStringToHex(code, Encoding.Unicode);
                    }

                    Barcode barcode = new Barcode();

                    barcode.IncludeLabel = true;
                    barcode.Alignment    = AlignmentPositions.CENTER;
                    barcode.Width        = 600;
                    barcode.Height       = 150;
                    Image img = barcode.Encode(TYPE.CODE39Extended, code);

                    img.Save($"{rute}\\{code}.png", ImageFormat.Png);
                    MailCode(email, code);

                    //if (!File.Exists($"{rute}\\{code}.png"))
                    //{
                    //    img.Save($"{rute}\\{code}.png", ImageFormat.Png);
                    //    MailCode(email, code);
                    //}
                    //else
                    //{
                    //    email = "";
                    //    code = "El valor ya existe, por favor vuelva a intentarlo con otro valor";
                    //}
                }
            }

            InicializerEnc encrypt = new InicializerEnc
            {
                ObjectEncrypts = new List <ObjectEncrypt>
                {
                    new ObjectEncrypt
                    {
                        Email      = email,
                        CodeEncryp = code
                    }
                }
            };

            return(Ok(encrypt));
        }
Example #30
0
        /// <summary>
        /// Draws Label for Generic barcodes
        /// </summary>
        /// <param name="img">Image representation of the barcode without the labels</param>
        /// <returns>Image representation of the barcode with labels applied</returns>
        public static Image Label_Generic(Barcode Barcode, Bitmap img)
        {
            try
            {
                Font font = Barcode.LabelFont;

                using (Graphics g = Graphics.FromImage(img))
                {
                    g.DrawImage(img, (float)0, (float)0);

                    g.SmoothingMode      = SmoothingMode.HighQuality;
                    g.InterpolationMode  = InterpolationMode.HighQualityBicubic;
                    g.PixelOffsetMode    = PixelOffsetMode.HighQuality;
                    g.CompositingQuality = CompositingQuality.HighQuality;
                    g.TextRenderingHint  = TextRenderingHint.AntiAliasGridFit;

                    StringFormat f = new StringFormat();
                    f.Alignment     = StringAlignment.Near;
                    f.LineAlignment = StringAlignment.Near;
                    int LabelX = 0;
                    int LabelY = 0;

                    switch (Barcode.LabelPosition)
                    {
                    case LabelPositions.BOTTOMCENTER:
                        LabelX      = img.Width / 2;
                        LabelY      = img.Height - (font.Height);
                        f.Alignment = StringAlignment.Center;
                        break;

                    case LabelPositions.BOTTOMLEFT:
                        LabelX      = 0;
                        LabelY      = img.Height - (font.Height);
                        f.Alignment = StringAlignment.Near;
                        break;

                    case LabelPositions.BOTTOMRIGHT:
                        LabelX      = img.Width;
                        LabelY      = img.Height - (font.Height);
                        f.Alignment = StringAlignment.Far;
                        break;

                    case LabelPositions.TOPCENTER:
                        LabelX      = img.Width / 2;
                        LabelY      = 0;
                        f.Alignment = StringAlignment.Center;
                        break;

                    case LabelPositions.TOPLEFT:
                        LabelX      = img.Width;
                        LabelY      = 0;
                        f.Alignment = StringAlignment.Near;
                        break;

                    case LabelPositions.TOPRIGHT:
                        LabelX      = img.Width;
                        LabelY      = 0;
                        f.Alignment = StringAlignment.Far;
                        break;
                    }//switch

                    //color a background color box at the bottom of the barcode to hold the string of data
                    using (SolidBrush backBrush = new SolidBrush(Barcode.BackColor))
                    {
                        g.FillRectangle(backBrush, new RectangleF((float)0, (float)LabelY, (float)img.Width, (float)font.Height));
                    }

                    //draw datastring under the barcode image
                    using (SolidBrush foreBrush = new SolidBrush(Barcode.ForeColor))
                    {
                        g.DrawString(Barcode.AlternateLabel == null ? Barcode.RawData : Barcode.AlternateLabel, font, foreBrush, new RectangleF((float)0, (float)LabelY, (float)img.Width, (float)font.Height), f);
                    }

                    g.Save();
                } //using
                return(img);
            }     //try
            catch (Exception ex)
            {
                throw new Exception("ELABEL_GENERIC-1: " + ex.Message);
            } //catch
        }     //Label_Generic
Example #31
0
        public static void PrintOne(bool Quick, int patientId, string testId, string vBarcodeData)
        {
            try
            {
                var dtForPrinting = new DataTable();
                dtForPrinting = SPs.SpGetTestResultForPrintV2(patientId, "ABC", testId).GetDataSet().Tables[0];
                if (dtForPrinting.Rows.Count <= 0)
                {
                    Utility.ShowMsg("Không có kết quả để in");
                    return;
                }

                if (!dtForPrinting.Columns.Contains("BarcodeImg"))
                {
                    dtForPrinting.Columns.Add("BarcodeImg", typeof(byte[]));
                }

                //Dim arrImage As Byte() = GenerateBarCode(Barcode1)

                //ProcessNormalResult(dtForPrinting);

                var vBarcode = new Barcode();
                vBarcode.Data      = vBarcodeData;
                vBarcode.Size      = new Size(100, 50);
                vBarcode.Symbology = Barcode.BarcodeSymbologies.Code128;
                byte[] dataBarcode = Utility.GenerateBarCode(vBarcode);
                foreach (DataRow dr in dtForPrinting.Rows)
                {
                    dr["BarcodeImg"] = dataBarcode;
                }
                dtForPrinting.AcceptChanges();

                //ReportDocument crpt = globalModule.GetCrystalReport(vReportType);
                String[]       strAsm    = SysPara.LabReportAsm.Split(',');
                Assembly       vAssembly = Assembly.LoadFrom(strAsm[0]);
                ReportDocument crpt;
                object         instance = vAssembly.CreateInstance(strAsm[1]);
                crpt = (ReportDocument)instance;
                // Kiểm tra thông số kết quả bất thường thì sẽ bôi đậm trong phiếu in kq cho lão khoa
                //if (SysPara.IsNormalResult == 1)
                //{
                //    ProcessNormalResult(dtForPrinting);
                //}
                //lablinkhelper.Utilities.UpdateLogotoDatatable(dtForPrinting)
                Utility.UpdateLogotoDatatable(ref dtForPrinting);
                crpt.SetDataSource(dtForPrinting);
                //crpt.DataDefinition.FormulaFields.Item("Formula_1").Text = " ";
                //crpt.SetDataSource(_testAllResult);
                crpt.SetParameterValue("ShowSubReport", 1);
                crpt.SetParameterValue("ShowMainReport", 0);
                crpt.SetParameterValue("ParentBranchName", ManagementUnit.gv_sParentBranchName);
                crpt.SetParameterValue("BranchName", ManagementUnit.gv_sBranchName);
                crpt.SetParameterValue("Address", ManagementUnit.gv_sAddress);
                crpt.SetParameterValue("sPhone", ManagementUnit.gv_sPhone);

                // crpt.SetParameterValue("BSThucHien",globalVariables.Doctors)
                //crpt.SetParameterValue("PhongXN",globalVariables.AssName)
                //thực hiện in phiếu xét nghiệm cho JCLV
                //if (vReportType == 4)
                //{
                //    UpdateData(dtForPrinting);
                //    crpt.SetParameterValue("sCurrentDate", Utility.GetFormatDateTime(DateTime.Now, "dd/MM/yyyy"));
                //    crpt.SetParameterValue("DMY", sGetCurrentDay);
                //}
                //if (vReportType == 2)
                //{
                //    crpt.SetParameterValue("sCurrentDate",Utility.FormatDateTime(System.DateTime.Now));
                //}

                if (!Quick)
                {
                    //Dim objForm As New frmPrintPreview("In kết quả xét nghiệm", crpt, True, True)
                    var objForm = new VietBaIT.LABLink.Reports.frmPrintPreview("In kết quả xét nghiệm", crpt, true, true);
                    objForm.crptViewer.ReportSource = crpt;
                    objForm.ShowDialog();
                    objForm.Dispose();
                }
                else
                {
                    //objForm.crptViewer.ReportSource = crpt;
                    crpt.PrintToPrinter(1, false, 0, 0);
                }
                //mv_DTPatientInfor.AcceptChanges()
                //Utility.DefaultNow(Me)
                //UpdatePrintStatus(testId);
            }
            catch (Exception ex)
            {
                Utility.ShowMsg(ex.Message);
            }
        }
Example #32
0
 /// <summary>
 /// Make any alterations necessary (i.e. for DB check constraints, special test cases, etc.)
 /// </summary>
 /// <param name="mock">Object to be modified</param>
 static private void SetSpecialTestData(Barcode mock)
 {
     //Code your changes to the data object here.
 }
        public Task <bool> AddAsync(Barcode barcode)
        {
            _barcodeList.Add(barcode);

            return(Task.FromResult(true));
        }
        static void Main(string[] args)
        {
            object optional         = Missing.Value;
            object endOfDocBookmark = "\\endofdoc";             /* \endofdoc is a predefined bookmark */

            // start Word
            _Application word = new Application();

            word.Visible = false;

            // create new document
            _Document document = word.Documents.Add(ref optional, ref optional, ref optional, ref optional);

            // insert a paragraph at the beginning of the document
            Paragraph paragraph1 = document.Content.Paragraphs.Add(ref optional);

            paragraph1.Range.Text        = "Heading 1";
            paragraph1.Range.Font.Bold   = 1;
            paragraph1.Format.SpaceAfter = 24;             // 24 pt spacing after paragraph
            paragraph1.Range.InsertParagraphAfter();

            // insert another paragraph
            object    range      = document.Bookmarks.get_Item(ref endOfDocBookmark).Range;
            Paragraph paragraph2 = document.Content.Paragraphs.Add(ref range);

            paragraph2.Range.Text        = "This is a sentence of normal text. Now here is a table:";
            paragraph2.Range.Font.Bold   = 0;
            paragraph2.Format.SpaceAfter = 24;
            paragraph2.Range.InsertParagraphAfter();


            // insert a 5 x 2 table, make the first header row bold and italic
            range = document.Bookmarks.get_Item(ref endOfDocBookmark).Range;
            Table table = document.Tables.Add((Range)range, 5, 2, ref optional, ref optional);

            table.Cell(1, 1).Range.Text     = "Value";           // 1st column header
            table.Cell(1, 2).Range.Text     = "Barcode";         // 2nd column header
            table.Rows[1].Range.Font.Bold   = 1;
            table.Rows[1].Range.Font.Italic = 1;
            AddBorders(table.Cell(1, 1).Range);
            AddBorders(table.Cell(1, 2).Range);

            Random random    = new Random();
            string tempImage = Path.Combine(Path.GetTempPath(), "tempImage.png");

            // create barcode object
            Barcode barcode = new Barcode("demo", "demo");

            barcode.Symbology   = SymbologyType.Code128;
            barcode.DrawCaption = false;

            // fill the table with random data and add barcode images
            for (int row = 2; row <= 5; row++)
            {
                string randomValue = random.Next().ToString(CultureInfo.InvariantCulture);
                Range  cell        = table.Cell(row, 1).Range;
                cell.Text = randomValue;

                AddBorders(cell);

                // generate barcode and save it to temporary image file
                barcode.Value = randomValue;
                barcode.SaveImage(tempImage);

                // put barcode image to second column
                cell = table.Cell(row, 2).Range;
                cell.InlineShapes.AddPicture(tempImage, ref optional, ref optional, ref optional);

                AddBorders(cell);
            }


            // save document
            object fileName = @"sample.doc";             // use full file path in your app

            document.SaveAs(ref fileName, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);

            // quit Word
            object saveChanges = true;

            word.Quit(ref saveChanges, ref optional, ref optional);

            System.Diagnostics.Process.Start((string)fileName);
        }
Example #35
0
 private void EmbiggenBarcode_Up(object sender, EventArgs e)
 {
     if (EmbiggenBarcode.IsEnabled == false)
     {
         return;
     }
     EmbiggenBarcode.IsEnabled = false;
     if (BarcodeEmbiggened)
     {
         EmbiggenBarcode.Source = new BitmapImage(new Uri("Expand-76.png", UriKind.Relative));
         PowerEase pe = new PowerEase();
         pe.Power = 2.5;
         Size            bigSize           = new Size(Barcode.Width / 2.25, Barcode.Height / 3);
         Duration        animationDuration = new Duration(TimeSpan.FromSeconds(0.5));
         DoubleAnimation dw = new DoubleAnimation();
         dw.EasingFunction = pe;
         dw.From           = Barcode.Width;
         dw.To             = bigSize.Width;
         dw.Duration       = animationDuration;
         DoubleAnimation dh = new DoubleAnimation();
         dh.EasingFunction = pe;
         dh.From           = Barcode.Height;
         dh.To             = bigSize.Height;
         dh.Duration       = animationDuration;
         ThicknessAnimation dm = new ThicknessAnimation();
         dm.EasingFunction = pe;
         dm.From           = Barcode.Margin;
         dm.To             = BarcodeMargin;
         dm.Duration       = animationDuration;
         ColorAnimation pc = new ColorAnimation();
         pc.EasingFunction = pe;
         Color blackFrom = Colors.Black;
         blackFrom.A = 153;
         pc.From     = blackFrom;
         blackFrom.A = 0;
         pc.To       = blackFrom;
         pc.Duration = animationDuration;
         DelayCall(500, new Action(() => { BarcodeSplash.Visibility = Visibility.Hidden; }));
         BarcodeSplash.Background.BeginAnimation(SolidColorBrush.ColorProperty, pc);
         Barcode.BeginAnimation(Grid.HeightProperty, dh);
         Barcode.BeginAnimation(Grid.WidthProperty, dw);
         Barcode.BeginAnimation(Grid.MarginProperty, dm);
     }
     else
     {
         EmbiggenBarcode.Source = new BitmapImage(new Uri("Retract-76.png", UriKind.Relative));
         BarcodeMargin          = Barcode.Margin;
         PowerEase pe = new PowerEase();
         pe.Power = 2.5;
         Size            bigSize = new Size(Barcode.Width * 2.25, Barcode.Height * 3);
         DoubleAnimation dw      = new DoubleAnimation();
         dw.EasingFunction = pe;
         dw.From           = Barcode.Width;
         dw.To             = bigSize.Width;
         dw.Duration       = AnimationDuration;
         DoubleAnimation dh = new DoubleAnimation();
         dh.EasingFunction = pe;
         dh.From           = Barcode.Height;
         dh.To             = bigSize.Height;
         dh.Duration       = AnimationDuration;
         ThicknessAnimation dm = new ThicknessAnimation();
         dm.EasingFunction = pe;
         dm.From           = Barcode.Margin;
         dm.To             = new Thickness((this.Width - bigSize.Width) / 2, Barcode.Margin.Top, Barcode.Margin.Right, (this.Height - bigSize.Height) / 2);
         dm.Duration       = AnimationDuration;
         ColorAnimation pc = new ColorAnimation();
         pc.EasingFunction = pe;
         Color blackFrom = Colors.Black;
         blackFrom.A = 0;
         pc.From     = blackFrom;
         blackFrom.A = 153;
         pc.To       = blackFrom;
         pc.Duration = AnimationDuration;
         BarcodeSplash.Visibility = Visibility.Visible;
         BarcodeSplash.Background.BeginAnimation(SolidColorBrush.ColorProperty, pc);
         Barcode.BeginAnimation(Grid.HeightProperty, dh);
         Barcode.BeginAnimation(Grid.WidthProperty, dw);
         Barcode.BeginAnimation(Grid.MarginProperty, dm);
     }
     DelayCall(510, new Action(() => { EmbiggenBarcode.IsEnabled = true; }));
     BarcodeEmbiggened = !BarcodeEmbiggened;
 }
Example #36
0
            private static void LoadPriceInfo(ProcessMaskSegmentsServiceRequest serviceRequest, Barcode barcode, int position, BarcodeMaskSegment segment)
            {
                string strBarCodePrice = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);

                decimal barCodePrice;

                if (decimal.TryParse(strBarCodePrice, out barCodePrice))
                {
                    barCodePrice = barCodePrice / (decimal)Math.Pow(10, segment.Decimals);
                }
                else
                {
                    throw new DataValidationException(
                              DataValidationErrors.Microsoft_Dynamics_Commerce_Runtime_InvalidFormat,
                              string.Format("Cannot Parse to decimal, Invalid format {0}", strBarCodePrice));
                }

                barcode.BarcodePrice = barCodePrice == 0 ? (decimal?)null : barCodePrice;
                barcode.Decimals     = segment.Decimals;
            }
Example #37
0
        public JsonResult Save(LoyalityCardViewModel model)
        {
            Response response;
            var      currentUser = GetAuthenticatedUser();

            try
            {
                using (var db = new KiaGalleryContext())
                {
                    if (model.id > 0)
                    {
                    }
                    else
                    {
                        List <string> codeList = new List <string>();
                        for (int i = 1; i <= model.count; i++)
                        {
                            string code;
                            while (true)
                            {
                                code = RandomString(8);
                                LoyalityCard loyalityCard = db.LoyalityCard.FirstOrDefault(x => x.Code == code);
                                if (loyalityCard == null && codeList.Count(x => x == code) == 0)
                                {
                                    break;
                                }
                            }
                            codeList.Add(code);
                            var entity = new LoyalityCard()
                            {
                                Code         = code,
                                CardType     = model.cardType,
                                CardStatus   = LoyalityCardStatus.Register,
                                CreateUserId = currentUser.Id,
                                ModifyUserId = currentUser.Id,
                                CreateDate   = DateTime.Now,
                                ModifyDate   = DateTime.Now,
                                Ip           = Request.UserHostAddress
                            };
                            var log = new LoyalityCardLog()
                            {
                                LoyalityCard = entity,
                                CardStatus   = LoyalityCardStatus.Register,
                                CreateUserId = currentUser.Id,
                                CreateDate   = DateTime.Now,
                                Ip           = Request.UserHostAddress
                            };
                            db.LoyalityCardLog.Add(log);
                            db.LoyalityCard.Add(entity);
                            var barcode = new Barcode(code, TypeBarcode.Code128C);
                            var bar128  = barcode.Encode(TypeBarcode.Code128C, code, 886, 142);

                            string serverPath = Server.MapPath("~/Upload/LoyalityCard/");
                            if (!Directory.Exists(serverPath))
                            {
                                Directory.CreateDirectory(serverPath);
                            }
                            bar128.Save(serverPath + code + ".jpg");
                        }
                    }
                    db.SaveChanges();
                }
                response = new Response()
                {
                    status  = 200,
                    message = "کارت با موفقیت ایجاد شد."
                };
            }
            catch (Exception ex)
            {
                response = Core.GetExceptionResponse(ex);
            }
            return(Json(response, JsonRequestBehavior.AllowGet));
        }
        //bool F_key_check = false;
        //バーコードが入力されたとき
        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (key_check(e) || input_count == BarCode_Prefix.BARCODE_NUM) init_input();

            input[input_count] = e.KeyCode.ToString();
            input_count++;

            if (input_count == BarCode_Prefix.BARCODE_NUM)
            {
                string temp_barcode = comb_input_barcode();

                switch (temp_barcode[BarCode_Prefix.PREFIX.Length].ToString()+
                    temp_barcode[BarCode_Prefix.PREFIX.Length+1].ToString())
                {

                    case BarCode_Prefix.ITEM:
                        scan_goods(temp_barcode);
                        break;

                    case BarCode_Prefix.SALE:

                        Sales sl = new Sales(temp_barcode);
                        sl.ShowDialog(this);
                        sl.Dispose();

                        break;

                    //従業員のバーコードを読み込んだとき
                    case BarCode_Prefix.STAFF:
                        string[,] ret = atsumi_pos.find_user(Form1.db_file_staff, temp_barcode);
                        if (ret[0, 0] != "")
                        {
                            reg_user.Text = ret[0, 2];
                            shop_person = ret[0, 2];
                        }
                        else
                        {
                            Staff_Regist unreg_str = new Staff_Regist(temp_barcode);
                            unreg_str.ShowDialog(this);
                            unreg_str.Dispose();
                        }
                        break;

                    //商品登録を読み込んだ時
                    case BarCode_Prefix.ITEM_REGIST:

                        Item_Regist win = new Item_Regist();
                        win.ShowDialog(this);
                        win.Dispose();
                        break;

                    //商品リストを読み込んだ時
                    case BarCode_Prefix.ITEM_LIST:

                        Item_List il = new Item_List();
                        il.ShowDialog(this);
                        il.Dispose();

                        break;

                    //売上リストを読み込んだ時
                    case BarCode_Prefix.SALE_LIST:

                        Sales_List sll = new Sales_List();
                        sll.ShowDialog(this);
                        sll.Dispose();

                        break;

                    //会計を読み込んだ時
                    case BarCode_Prefix.ACCOUNT:
                        if (reg_goods_sum.Text != "" && reg_goods_sum.Text != "0")
                        {
                            for (int i = 0; i < reg_goods_list.Items.Count; i++)
                            {
                                item_list += reg_goods_list.Items[i].SubItems[0].Text + ((i != reg_goods_list.Items.Count - 1) ? "," : "");
                            }

                            Account ac = new Account(reg_goods_list);
                            ac.ShowDialog(this);
                            ac.Dispose();

                        }
                        //売上テーブルにインサート処理

                        InitializeREG();
                        break;

                    //スタッフリストを読み込んだ時
                    case BarCode_Prefix.STAFF_LIST:

                        Staff_List stf = new Staff_List();
                        stf.ShowDialog(this);
                        stf.Dispose();

                        break;

                    //スタッフ登録を読み込んだ時
                    case BarCode_Prefix.STAFF_REGIST:

                        Staff_Regist str = new Staff_Regist();
                        str.ShowDialog(this);
                        str.Dispose();

                        break;

                    //ツールバー表示を読み込んだ時
                    case BarCode_Prefix.SHOW_TOOLBAR:
                            top_menu.Visible = true;
                        break;

                    //ツールバー非表示を読み込んだ時
                    case BarCode_Prefix.HIDE_TOOLBAR:
                        top_menu.Visible = false;
                        break;

                    //ダミーアイテムを読み込んだ時
                    case BarCode_Prefix.DUMMY_ITEM:
                        Barcode bc = new Barcode(BarCode_Prefix.ITEM, Form1.store_num, "00000");
                        string[] data = read_items(bc.show());
                        if (data[0] == "")
                        {
                            atsumi_pos.Insert(new atsumi_pos.ItemTable(bc.show(), "十文字のダミーデータ", "100", "デパート"));
                        }
                        break;

                    //ダミーユーザーを読み込んだ時
                    case BarCode_Prefix.DUMMY_USER:
                        atsumi_pos.regist_user("千葉 商太郎");
                        break;

                    //商品リストEditを読み込んだとき
                    case BarCode_Prefix.ITEM_LIST_EDIT:

                        Item_List ile = new Item_List(true);
                        ile.ShowDialog(this);
                        ile.Dispose();

                        break;

                    case BarCode_Prefix.MODE_PRACTICE:
                        isPractice = true;
                        practice_mode.Enabled = false;
                        take_mode.Enabled = true;
                        change_form_text(this,form_name,debug_Test);
                        break;

                    case BarCode_Prefix.MODE_TAKE:
                        isPractice = false;
                        take_mode.Enabled = false;
                        practice_mode.Enabled = true;
                        change_form_text(this, form_name, debug_Test);
                        break;

                    default:
                        break;
                }
            }
        }
Example #39
0
        /// <summary>
        /// Encode the raw data using the UPC-A algorithm.
        /// </summary>
        private string Encode_UPCA()
        {
            //check length of input
            if (Raw_Data.Length != 12)
            {
                throw new System.Exception("EUPCA-1: Data length invalid. (Length must be 12)");
            }

            if (!Barcode.CheckNumericOnly(Raw_Data))
            {
                throw new System.Exception("EUPCA-2: Numeric Data Only");
            }

            string result      = "101"; //start with guard bars
            string patterncode = UPC_Pattern[Int32.Parse(Raw_Data[0].ToString())];

            //first number
            result += UPC_CodeA[Int32.Parse(Raw_Data[0].ToString())];

            //second (group) of numbers
            int pos = 0;

            while (pos < 5)
            {
                if (patterncode[pos + 1] == 'a')
                {
                    result += UPC_CodeA[Int32.Parse(Raw_Data[pos + 1].ToString())];
                }
                if (patterncode[pos + 1] == 'b')
                {
                    result += UPC_CodeB[Int32.Parse(Raw_Data[pos + 1].ToString())];
                }
                pos++;
            }//while

            //add divider bars
            result += "01010";

            //third (group) of numbers
            pos = 0;
            while (pos < 5)
            {
                result += UPC_CodeC[Int32.Parse(Raw_Data[(pos++) + 6].ToString())];
            }//while

            //forth
            result += UPC_CodeC[Int32.Parse(Raw_Data[Raw_Data.Length - 1].ToString())];

            //add ending guard bars
            result += "101";

            //get the manufacturer assigning country
            this.init_CountryCodes();
            string twodigitCode = "0" + Raw_Data.Substring(0, 1);

            try
            {
                _Country_Assigning_Manufacturer_Code = CountryCodes[twodigitCode].ToString();
            }//try
            catch
            {
                throw new System.Exception("EUPCA-3: Country assigning manufacturer code not found.");
            }//catch
            finally { CountryCodes.Clear(); }

            return(result);
        }//Encode_UPCA
 private void 商品ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Barcode bc = new Barcode(BarCode_Prefix.ITEM, Form1.store_num, "00000");
     string[] data = read_items(bc.show());
     if (data[0] == "")
     {
         atsumi_pos.Insert(new atsumi_pos.ItemTable(bc.show(), "十文字のダミーデータ", "100", "デパート"));
     }
 }
        static void Main(string[] args)
        {
            // Create and activate Barcode object instance
            Barcode barcode = new Barcode();

            barcode.RegistrationName = "demo";
            barcode.RegistrationKey  = "demo";

            // Set barcode symbology (type)
            barcode.Symbology = SymbologyType.MaxiCode;
            // Set MaxiCode mode
            barcode.Options.MaxiCodeMode = 2;             // 2 or 3 depending on the postal code

            // Make barcode dots larger (5 pixels)
            barcode.NarrowBarWidth = 5;


            // Prepare barcode value:

            // Special data signatures
            string mode23Signature = "[)>" + '\x1E' + "01" + '\x1D' + "96";
            char   separator       = '\x1D';
            string endingSignature = "\x1E" + '\x04';

            // Mandatory data part.
            string postalCode     = "123456789";    // 5 or 9 digits in the USA (Mode 2); 1-6 alphanumeric characters in other countries (Mode 3)
            string countryCode    = "840";          // 3 digits (840 for USA)
            string classOfService = "001";          // 3 digits
            string trackingNumber = "S1Z12345678G"; // 10-character alphanumeric
            string upsStandardCarrierAlphaCode = "UPSN";

            // Optional data part.
            // Note, you can use empty strings for unneeded field values like `packageInShipment` or `weightInPounds`
            // but they should delimited with the separator anyway.
            string upsShipperNumber  = "S06X610";      // 6-character alphanumeric
            string julianDayOfPickup = "159";          // 3 digits
            string shipmentIdNumber  = "1234567";      // 1-30 character alphanumeric
            string packageInShipment = "1/2";          // 1-4 digits “/” 1-4 digits
            string weightInPounds    = "3.1";          // 1-5 digits
            string addressValidation = "Y";            // “Y” or “N”
            string shipToAddress     = "S123 MAIN ST"; // 1-35 alphanumeric
            string shipToCity        = "YORK";         // 1 - 35 alphanumeric
            string shipToState       = "PA";           // 2-character alpha


            // Generate minimal postal code:

            string minimalValue = mode23Signature +
                                  postalCode + separator +
                                  countryCode + separator +
                                  classOfService + separator +
                                  trackingNumber + separator +
                                  upsStandardCarrierAlphaCode +
                                  endingSignature;

            barcode.Value = minimalValue;
            barcode.SaveImage("postal-maxicode-min.png");


            // Generate full postal code:

            string fullValue = mode23Signature +
                               postalCode + separator +
                               countryCode + separator +
                               classOfService + separator +
                               trackingNumber + separator +
                               upsStandardCarrierAlphaCode + separator +
                               upsShipperNumber + separator +
                               julianDayOfPickup + separator +
                               shipmentIdNumber + separator +
                               packageInShipment + separator +
                               weightInPounds + separator +
                               addressValidation + separator +
                               shipToAddress + separator +
                               shipToCity + separator +
                               shipToState +
                               endingSignature;

            barcode.Value = fullValue;
            barcode.SaveImage("postal-maxicode-full.png");

            // Cleanup
            barcode.Dispose();
        }
Example #42
0
 /// <summary>
 /// Displaying current cell's data as a Barcode.
 /// </summary>
 /// <param name="barcode">An instance of iTextSharp.text.pdf.BarcodeXYZ</param>
 public BarcodeField(Barcode barcode)
 {
     _barcode = barcode;
 }
Example #43
0
 public void SetBarcode(BarcodeType type, string message, string encoding, string alternateText = null)
 {
     Barcode = new Barcode(type, message, encoding, alternateText);
 }
 public BarcodeManagerViewModel()
 {
     Barcodes = new BindableCollection<Barcode>();
     Editable = new Barcode();
 }
Example #45
0
 private void MainForm_Closed(object sender, EventArgs e)
 {
     ServiceHelper.MobileServicesDispose();
     Barcode.FreeModule();
     Application.Exit();
 }
        public void AddBarcode()
        {
            Barcodes.Insert(0, Editable);

            Editable = new Barcode() { Quantity = 1 };
        }
Example #47
0
        }     //Label_EAN13

        /// <summary>
        /// Draws Label for UPC-A barcodes
        /// </summary>
        /// <param name="img">Image representation of the barcode without the labels</param>
        /// <returns>Image representation of the barcode with labels applied</returns>
        public static Image Label_UPCA(Barcode Barcode, Bitmap img)
        {
            try
            {
                int    iBarWidth    = (int)(Barcode.Width / Barcode.EncodedValue.Length);
                int    halfBarWidth = (int)(iBarWidth * 0.5);
                string defTxt       = Barcode.RawData;

                using (Font labFont = new Font("Arial", getFontsize(Barcode, (int)((Barcode.Width - Barcode.Width % Barcode.EncodedValue.Length) * 0.9f), img.Height, defTxt) * Barcode.DotsPerPointAt96Dpi, FontStyle.Regular, GraphicsUnit.Pixel))
                {
                    int shiftAdjustment;
                    switch (Barcode.Alignment)
                    {
                    case AlignmentPositions.LEFT:
                        shiftAdjustment = 0;
                        break;

                    case AlignmentPositions.RIGHT:
                        shiftAdjustment = (Barcode.Width % Barcode.EncodedValue.Length);
                        break;

                    case AlignmentPositions.CENTER:
                    default:
                        shiftAdjustment = (Barcode.Width % Barcode.EncodedValue.Length) / 2;
                        break;
                    }//switch

                    using (Graphics g = Graphics.FromImage(img))
                    {
                        g.DrawImage(img, (float)0, (float)0);

                        g.SmoothingMode      = SmoothingMode.HighQuality;
                        g.InterpolationMode  = InterpolationMode.HighQualityBicubic;
                        g.PixelOffsetMode    = PixelOffsetMode.HighQuality;
                        g.CompositingQuality = CompositingQuality.HighQuality;
                        g.TextRenderingHint  = TextRenderingHint.AntiAliasGridFit;

                        StringFormat f = new StringFormat();
                        f.Alignment     = StringAlignment.Near;
                        f.LineAlignment = StringAlignment.Near;
                        int LabelY = 0;

                        //Default alignment for UPCA
                        LabelY      = img.Height - labFont.Height;
                        f.Alignment = StringAlignment.Near;

                        float w1 = iBarWidth * 4;  //Width of first block
                        float w2 = iBarWidth * 34; //Width of second block
                        float w3 = iBarWidth * 34; //Width of third block

                        float s1 = shiftAdjustment - iBarWidth;
                        float s2 = s1 + (iBarWidth * 12);     //Start position of block 2
                        float s3 = s2 + w2 + (iBarWidth * 5); //Start position of block 3
                        float s4 = s3 + w3 + (iBarWidth * 8) - halfBarWidth;

                        //Draw the background rectangles for each block
                        using (SolidBrush backBrush = new SolidBrush(Barcode.BackColor))
                        {
                            g.FillRectangle(backBrush, new RectangleF(s2, (float)LabelY, w2, (float)labFont.Height));
                            g.FillRectangle(backBrush, new RectangleF(s3, (float)LabelY, w3, (float)labFont.Height));
                        }

                        //draw data string under the barcode image
                        using (SolidBrush foreBrush = new SolidBrush(Barcode.ForeColor))
                        {
                            using (Font smallFont = new Font(labFont.FontFamily, labFont.SizeInPoints * 0.5f * Barcode.DotsPerPointAt96Dpi, labFont.Style, GraphicsUnit.Pixel))
                            {
                                g.DrawString(defTxt.Substring(0, 1), smallFont, foreBrush, new RectangleF(s1, (float)img.Height - smallFont.Height, (float)img.Width, (float)labFont.Height), f);
                                g.DrawString(defTxt.Substring(1, 5), labFont, foreBrush, new RectangleF(s2 - iBarWidth, (float)LabelY, (float)img.Width, (float)labFont.Height), f);
                                g.DrawString(defTxt.Substring(6, 5), labFont, foreBrush, new RectangleF(s3 - iBarWidth, (float)LabelY, (float)img.Width, (float)labFont.Height), f);
                                g.DrawString(defTxt.Substring(11), smallFont, foreBrush, new RectangleF(s4, (float)img.Height - smallFont.Height, (float)img.Width, (float)labFont.Height), f);
                            }
                        }

                        g.Save();
                    }
                } //using
                return(img);
            }     //try
            catch (Exception ex)
            {
                throw new Exception("ELABEL_UPCA-1: " + ex.Message);
            } //catch
        }     //Label_UPCA
 public void Import(Barcode barcode)
 {
     Barcodes.Add(barcode);
 }
Example #49
0
            private static ProcessMaskSegmentsServiceResponse ProcessMaskSegments(ProcessMaskSegmentsServiceRequest serviceRequest)
            {
                GetBarcodeMaskSegmentDataRequest getBarcodeMaskSegmentDataRequest = new GetBarcodeMaskSegmentDataRequest(serviceRequest.BarcodeMask.MaskId, QueryResultSettings.AllRecords);
                IEnumerable <BarcodeMaskSegment> barCodeMaskSegments = serviceRequest.RequestContext.Runtime.Execute <EntityDataServiceResponse <BarcodeMaskSegment> >(getBarcodeMaskSegmentDataRequest, serviceRequest.RequestContext).PagedEntityCollection.Results;

                int position = serviceRequest.BarcodeMask.Prefix.Length;

                Barcode barcodeInfo = serviceRequest.Barcode;

                foreach (BarcodeMaskSegment segment in barCodeMaskSegments)
                {
                    var segmentType = (BarcodeSegmentType)segment.MaskType;

                    switch (segmentType)
                    {
                    case BarcodeSegmentType.Item:
                    {
                        LoadItemInfo(serviceRequest, barcodeInfo, position, segment);
                        break;
                    }

                    case BarcodeSegmentType.AnyNumber:
                    case BarcodeSegmentType.CheckDigit:     // Check Digit is not implemented yet functionality in RetailServer.
                    {
                        break;
                    }

                    case BarcodeSegmentType.Price:
                    {
                        LoadPriceInfo(serviceRequest, barcodeInfo, position, segment);

                        if (barcodeInfo.BarcodePrice != null && barcodeInfo.ItemBarcode.ItemId != null)
                        {
                            ProductPrice productPrice        = GetItemPrice(serviceRequest.RequestContext, barcodeInfo.ItemBarcode.ItemId, barcodeInfo.ItemBarcode.InventoryDimensionId, barcodeInfo.ItemBarcode.UnitId, string.Empty);
                            decimal      defaultProductPrice = productPrice.AdjustedPrice;

                            var calculateQuantityRequest = new CalculateQuantityFromPriceServiceRequest(barcodeInfo.BarcodePrice.Value, defaultProductPrice, barcodeInfo.ItemBarcode.UnitId);
                            CalculateQuantityFromPriceServiceResponse calculateQuantityResponse = serviceRequest.RequestContext.Execute <CalculateQuantityFromPriceServiceResponse>(calculateQuantityRequest);

                            barcodeInfo.BarcodeQuantity = calculateQuantityResponse.BarcodeQuantity;
                        }

                        break;
                    }

                    case BarcodeSegmentType.Quantity:
                    {
                        LoadQuantityInfo(serviceRequest, barcodeInfo, position, segment);
                        break;
                    }

                    case BarcodeSegmentType.DiscountCode:
                    {
                        barcodeInfo.DiscountCode = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length).TrimStart('0');
                        break;
                    }

                    case BarcodeSegmentType.GiftCard:
                    {
                        barcodeInfo.GiftCardNumber = serviceRequest.BarcodeMask.Prefix + serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.LoyaltyCard:
                    {
                        barcodeInfo.LoyaltyCardNumber = serviceRequest.BarcodeMask.Prefix + serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.SizeDigit:
                    case BarcodeSegmentType.ColorDigit:
                    case BarcodeSegmentType.StyleDigit:
                    {
                        // Not used.
                        break;
                    }

                    case BarcodeSegmentType.EANLicenseCode:
                    {
                        barcodeInfo.EANLicenseId = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.Employee:
                    {
                        barcodeInfo.EmployeeId = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.Salesperson:
                    {
                        barcodeInfo.SalespersonId = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.Customer:
                    {
                        barcodeInfo.CustomerId = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    case BarcodeSegmentType.DataEntry:
                    {
                        barcodeInfo.DataEntry = serviceRequest.Barcode.BarcodeId.Substring(position, segment.Length);
                        break;
                    }

                    default:
                    {
                        break;
                    }
                    }

                    position = position + segment.Length;
                }

                return(new ProcessMaskSegmentsServiceResponse(barcodeInfo));
            }
 public void RemoveBarcode(Barcode barcode)
 {
     Barcodes.Remove(barcode);
 }
Example #51
0
            private static void LoadItemInfo(ProcessMaskSegmentsServiceRequest serviceRequest, Barcode barcode, int position, BarcodeMaskSegment segment)
            {
                if (barcode.ItemBarcode != null && !string.IsNullOrWhiteSpace(barcode.ItemBarcode.ItemId))
                {
                    // Skip item barcode lookup if it is already set.
                    return;
                }

                string barcodeText = serviceRequest.Barcode.BarcodeId.Substring(0, position + segment.Length);

                barcodeText += '%';

                GetProductBarcodeDataRequest dataRequest = new GetProductBarcodeDataRequest(barcodeText);
                ItemBarcode itemBarcode = serviceRequest.RequestContext.Runtime.Execute <GetProductBarcodeDataResponse>(dataRequest, serviceRequest.RequestContext).Barcode;

                if (itemBarcode == null)
                {
                    barcodeText  = barcodeText.Substring(0, barcodeText.Length - 1);
                    barcodeText += Convert.ToString(CalculateCheckDigit(barcodeText), CultureInfo.CurrentCulture);

                    dataRequest = new GetProductBarcodeDataRequest(barcodeText);
                    itemBarcode = serviceRequest.RequestContext.Runtime.Execute <GetProductBarcodeDataResponse>(dataRequest, serviceRequest.RequestContext).Barcode;
                }

                if (itemBarcode != null)
                {
                    barcode.ItemBarcode   = itemBarcode;
                    barcode.Mask.MaskType = BarcodeMaskType.Item;
                }
            }
Example #52
0
        private void PrintPage(object sender, PaintEventArgs e1)
        {
            Barcode bc2 = new Barcode(new Code128Symbology(), new SizeF(barcodeSizeX, barcodeSizeY)); // useNumericCompression

            ///////////////////// Print Barcode ///////////////////////////////////
            Bitmap image2 = new Bitmap(ticketTemplatePath);
            e1.Graphics.DrawImage(image2, 0, 0);

            Graphics eg = e1.Graphics;
            eg.PageUnit = GraphicsUnit.Inch;

            PointF pt = new PointF(ticketBaseX, ticketBaseY);
            bc2.Draw(eg, pt, strBarCode);
            Brush brush = Brushes.Black;
            pt = new PointF(ticketBaseX + BaseOffX, ticketBaseY + BaseOffY);
            FontFamily ff = new FontFamily(ticketFontFamily);
            Font ft = new Font(ff, barCodeFontSize, FontStyle.Regular);
            eg.DrawString(strBarCode, ft, brush, pt);

            StringFormat sf = new StringFormat();
            sf.Alignment = ticketAligment;
            ////////////////////////////////////////////////////////////////////////////

            Font ftitle = new Font(ff, ticketFontSize, FontStyle.Bold);
            Font fdata = new Font(ff, ticketFontSize, FontStyle.Regular);
            RectangleF rcf = new RectangleF(ticketBaseX + NeighborOffX, ticketTitleBaseY, 1.2f, entryHeight);
            eg.DrawString(Neighborhood, fdata, brush, rcf, sf);
            ////////////////////////////////////////////////////////////////////////////
            rcf = new RectangleF(ticketBaseX + SectionOffX, ticketTitleBaseY, 1.0f, entryHeight);
            eg.DrawString(Section, fdata, brush, rcf, sf);
            ////////////////////////////////////////////////////////////////////////////
            rcf = new RectangleF(ticketBaseX + RowOffX, ticketTitleBaseY, 1.0f, entryHeight);
            eg.DrawString(RowVal, fdata, brush, rcf, sf);
            ////////////////////////////////////////////////////////////////////////////
            rcf = new RectangleF(ticketBaseX + SeatOffX, ticketTitleBaseY, 1.0f, entryHeight);
            eg.DrawString(SeatVal, fdata, brush, rcf, sf);
            ////////////////////////////////////////////////////////////////////////////

            rcf = new RectangleF(ticketBaseX + NoNameOffX, ticketTitleBaseY, 1.0f, entryHeight);
            eg.DrawString(dnoname, fdata, brush, rcf, sf);
            ///////////// Event Code ////////////////////////////////////////////////////
            float xwide = 2.3f;
            float SideOffY = 0.7f;
            rcf = new RectangleF(ticketBaseX, ticketSideBaseY + SideOffY, xwide, entryHeight);
            eg.DrawString(EventCode, fdata, brush, rcf, sf);
            ///////////// price ////////////////////////////////////////////////////
            float ticketTitleOffY = 1.05f;
            rcf = new RectangleF(ticketBaseX, ticketSideBaseY + ticketTitleOffY, xwide, entryHeight);
            eg.DrawString(Price_TAX, fdata, brush, rcf, sf);
            ///////////// section row seat ////////////////////////////////////////////////////
            ticketTitleOffY = 1.42f;
            rcf = new RectangleF(ticketBaseX, ticketSideBaseY + ticketTitleOffY, xwide, entryHeight);
            eg.DrawString(SectionRowSeat, fdata, brush, rcf, sf);
            ///////////// price code ////////////////////////////////////////////////////
            float ticketPriceOffY = 1.8f;
            rcf = new RectangleF(ticketBaseX, ticketSideBaseY + ticketPriceOffY, xwide, entryHeight);
            eg.DrawString(PriceCode, fdata, brush, rcf, sf);
            ///////////// Event Line 1 - 6 ////////////////////////////////////////////////////
            float ticketLineBaseY = 0.68f;
            float ticketLineBaseX = 2.0f;
            xwide = 5.0f;
            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY, xwide, entryHeight);
            eg.DrawString(EventLine1, fdata, brush, rcf, sf);
            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight, xwide, entryHeight);
            eg.DrawString(EventLine2, fdata, brush, rcf, sf);
            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight * 2, xwide, entryHeight);
            eg.DrawString(EventLine3, fdata, brush, rcf, sf);

            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight * 3, xwide, entryHeight);
            eg.DrawString(EventLine4, fdata, brush, rcf, sf);

            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight * 4, xwide, entryHeight);
            eg.DrawString(EventLine5, fdata, brush, rcf, sf);

            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight * 5, xwide, entryHeight);
            eg.DrawString(EventLine6, fdata, brush, rcf, sf);

            rcf = new RectangleF(ticketLineBaseX, ticketLineBaseY + entryHeight * 5 + 0.27f, xwide, entryHeight);
            eg.DrawString(DateTimeLine, fdata, brush, rcf, sf);

            ////////////// Rotate Barcode //////////////////////////////////
            eg.RotateTransform(90);

            PointF ptf = new PointF(RotateOffX, RotateOffY);
            bc2.Draw(eg, ptf, strBarCode);
            ptf = new PointF(RotateOffX + RotateBarcodeOffX, RotateOffY + RotateBarcodeOffY);
            eg.DrawString(strBarCode, ft, brush, ptf);
        }
 /// <summary>
 /// Displaying current cell's data as a Barcode.
 /// </summary>
 /// <param name="value">An instance of iTextSharp.text.pdf.BarcodeXYZ</param>
 public void Barcode(Barcode value)
 {
     _columnItemsTemplate = new BarcodeField(value);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BarcodeHtmlBuilder" /> class.
 /// </summary>
 /// <param name="component">The Barcode component.</param>
 public BarcodeHtmlBuilder(Barcode component)
 {
     Barcode = component;
 }
Example #55
0
 /// <summary>
 /// Adds a new barcode to the section.
 /// </summary>
 public void Add(Barcode barcode)
 {
     this.Elements.Add(barcode);
 }
Example #56
0
        public static void PrintOne(bool Quick, int patientId, string testId, string vBarcodeData)
        {
            try
            {
                var dtForPrinting = new DataTable();
                dtForPrinting = SPs.SpGetTestResultForPrintV2(patientId, "ABC", testId).GetDataSet().Tables[0];
                if (dtForPrinting.Rows.Count <= 0)
                {
                    Utility.ShowMsg("Không có kết quả để in");
                    return;
                }

                if (!dtForPrinting.Columns.Contains("BarcodeImg"))
                    dtForPrinting.Columns.Add("BarcodeImg", typeof (byte[]));

                //Dim arrImage As Byte() = GenerateBarCode(Barcode1)

                //ProcessNormalResult(dtForPrinting);

                var vBarcode = new Barcode();
                vBarcode.Data = vBarcodeData;
                vBarcode.Size = new Size(100, 50);
                vBarcode.Symbology = Barcode.BarcodeSymbologies.Code128;
                byte[] dataBarcode = Utility.GenerateBarCode(vBarcode);
                foreach (DataRow dr in dtForPrinting.Rows)
                {
                    dr["BarcodeImg"] = dataBarcode;
                }
                dtForPrinting.AcceptChanges();

                //ReportDocument crpt = globalModule.GetCrystalReport(vReportType);
                String[] strAsm = SysPara.LabReportAsm.Split(',');
                Assembly vAssembly = Assembly.LoadFrom(strAsm[0]);
                ReportDocument crpt;
                object instance = vAssembly.CreateInstance(strAsm[1]);
                crpt = (ReportDocument) instance;
                // Kiểm tra thông số kết quả bất thường thì sẽ bôi đậm trong phiếu in kq cho lão khoa
                //if (SysPara.IsNormalResult == 1)
                //{
                //    ProcessNormalResult(dtForPrinting);
                //}
                //lablinkhelper.Utilities.UpdateLogotoDatatable(dtForPrinting)
                Utility.UpdateLogotoDatatable(ref dtForPrinting);
                crpt.SetDataSource(dtForPrinting);
                //crpt.DataDefinition.FormulaFields.Item("Formula_1").Text = " ";
                //crpt.SetDataSource(_testAllResult);
                crpt.SetParameterValue("ShowSubReport", 1);
                crpt.SetParameterValue("ShowMainReport", 0);
                crpt.SetParameterValue("ParentBranchName", ManagementUnit.gv_sParentBranchName);
                crpt.SetParameterValue("BranchName", ManagementUnit.gv_sBranchName);
                crpt.SetParameterValue("Address", ManagementUnit.gv_sAddress);
                crpt.SetParameterValue("sPhone", ManagementUnit.gv_sPhone);

                // crpt.SetParameterValue("BSThucHien",globalVariables.Doctors)
                //crpt.SetParameterValue("PhongXN",globalVariables.AssName)
                //thực hiện in phiếu xét nghiệm cho JCLV
                //if (vReportType == 4)
                //{
                //    UpdateData(dtForPrinting);
                //    crpt.SetParameterValue("sCurrentDate", Utility.GetFormatDateTime(DateTime.Now, "dd/MM/yyyy"));
                //    crpt.SetParameterValue("DMY", sGetCurrentDay);
                //}
                //if (vReportType == 2)
                //{
                //    crpt.SetParameterValue("sCurrentDate",Utility.FormatDateTime(System.DateTime.Now));
                //}

                if (!Quick)
                {
                    //Dim objForm As New frmPrintPreview("In kết quả xét nghiệm", crpt, True, True)
                    var objForm =new VietBaIT.LABLink.Reports.frmPrintPreview("In kết quả xét nghiệm", crpt, true, true);
                    objForm.crptViewer.ReportSource = crpt;
                    objForm.ShowDialog();
                    objForm.Dispose();
                }
                else
                {
                    //objForm.crptViewer.ReportSource = crpt;
                    crpt.PrintToPrinter(1, false, 0, 0);
                }
                //mv_DTPatientInfor.AcceptChanges()
                //Utility.DefaultNow(Me)
                //UpdatePrintStatus(testId);
            }
            catch (Exception ex)
            {
                Utility.ShowMsg(ex.Message);
            }
        }
Example #57
0
        private void GenerateBarcode(string inputData)
        {
            if (this.Rdo_Linear.IsChecked.GetValueOrDefault())
            {
                try
                {
                    TYPE type = (TYPE)Enum.Parse(typeof(TYPE), this.Cbo_L_E_Type.SelectedItem.ToString());

                    if (type == TYPE.UNSPECIFIED)
                    {
                        return;
                    }

                    _linearEncoder     = new Barcode();
                    this.TextBox1.Text = _linearEncoder.Country_Assigning_Manufacturer_Code;

                    if (!String.IsNullOrEmpty(this.Txt_label.Text))
                    {
                        _linearEncoder.AlternateLabel = this.Txt_label.Text;
                    }

                    _linearEncoder.BackColor    = System.Drawing.Color.White;
                    _linearEncoder.ForeColor    = System.Drawing.Color.Black;
                    _linearEncoder.IncludeLabel = this.CheckBox1.IsChecked.GetValueOrDefault();
                    //_linearEncoder.LabelPosition = EnumUtility.Convert<LabelPositions>(this.Cbo_L_LPosition.SelectedItem.ToString());
                    _linearEncoder.RotateFlipType = (RotateFlipType)Enum.Parse(typeof(RotateFlipType), this.Cbo_L_Rotate.SelectedItem.ToString());
                    _linearEncoder.EncodedType    = (TYPE)Enum.Parse(typeof(TYPE), this.Cbo_L_E_Type.SelectedItem.ToString());
                    //_linearEncoder.Alignment = EnumUtility.Convert<AlignmentPositions>(this.Cbo_L_Alignment.SelectedItem.ToString());
                    Image image = _linearEncoder.Encode(type, inputData);
                    _bitmap           = new Bitmap(image);
                    this.Image.Width  = _bitmap.Width;
                    this.Image.Height = _bitmap.Height;
                    this.Image.Source = ConvertImage(_bitmap);
                    this.ChildWindow2.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error");
                }
            }

            if (this.Rdo_QR.IsChecked.GetValueOrDefault())
            {
                try
                {
                    var qrEncoder = new QRCodeEncoder();
                    qrEncoder.QRCodeBackgroundColor = System.Drawing.Color.White;
                    qrEncoder.QRCodeForegroundColor = System.Drawing.Color.Black;
                    qrEncoder.QRCodeScale           = Convert.ToInt32(Cbo_QR_Scale.SelectedItem);
                    qrEncoder.QRCodeVersion         = Convert.ToInt32(Cbo_QR_Version.SelectedItem);
                    qrEncoder.QRCodeEncodeMode      = (QRCodeEncoder.ENCODE_MODE)Enum.Parse(typeof(QRCodeEncoder.ENCODE_MODE),
                                                                                            this.Cbo_QR_Mode.SelectedItem.ToString());
                    qrEncoder.QRCodeErrorCorrect = (QRCodeEncoder.ERROR_CORRECTION)Enum.Parse(typeof(QRCodeEncoder.ERROR_CORRECTION),
                                                                                              this.Cbo_QR_ErrorC.SelectedItem.ToString());
                    var image = qrEncoder.Encode(inputData);
                    _bitmap           = new Bitmap(image);
                    this.Image.Width  = _bitmap.Width;
                    this.Image.Height = _bitmap.Height;
                    this.Image.Source = ConvertImage(_bitmap);
                    this.ChildWindow2.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error");
                }
            }

            if (this.Rdo_DataM.IsChecked.GetValueOrDefault())
            {
                try
                {
                    var dataEncoder        = new DmtxImageEncoder();
                    var dataEncoderOptions = new DmtxImageEncoderOptions();
                    dataEncoderOptions.SizeIdx = (DmtxSymbolSize)Enum.Parse(typeof(DmtxSymbolSize),
                                                                            this.Cbo_D_Size.SelectedItem.ToString());
                    dataEncoderOptions.Scheme = (DmtxScheme)Enum.Parse(typeof(DmtxScheme),
                                                                       this.Cbo_D_Scheme.SelectedItem.ToString());
                    dataEncoderOptions.ModuleSize = Convert.ToInt32(Cbo_D_Module.SelectedItem);
                    dataEncoderOptions.MarginSize = Convert.ToInt32(this.Cbo_D_Margin.SelectedItem);
                    dataEncoderOptions.ForeColor  = System.Drawing.Color.Black;
                    dataEncoderOptions.BackColor  = System.Drawing.Color.White;
                    Image image = dataEncoder.EncodeImage(inputData, dataEncoderOptions);
                    _bitmap           = new Bitmap(image);
                    this.Image.Width  = _bitmap.Width;
                    this.Image.Height = _bitmap.Height;
                    this.Image.Source = ConvertImage(_bitmap);
                    this.ChildWindow2.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "Error");
                }
            }
        }
Example #58
0
 public static Barcode CreateNewBarcode(string vBarcodeData)
 {
     try
     {
         var vBarcode = new Barcode();
         vBarcode.Data = vBarcodeData;
         vBarcode.Size = new Size(600, 300);
         //vBarcode.Font = new Font("Arial", 44, FontStyle.Regular, GraphicsUnit.Point, 0);
         vBarcode.Font = new Font("Arial", 44, FontStyle.Regular, GraphicsUnit.Point, 0);
         vBarcode.Symbology = Barcode.BarcodeSymbologies.Code128;
         return vBarcode;
     }
     catch (Exception)
     {
         var vBarcode = new Barcode();
         vBarcode.Data = "0000000000";
         vBarcode.Size = new Size(600, 300);
         vBarcode.Font = new Font("Arial", 44, FontStyle.Regular, GraphicsUnit.Point, 0);
         vBarcode.Symbology = Barcode.BarcodeSymbologies.Code128;
         return vBarcode;
     }
 }
Example #59
0
        /// <summary>
        /// 打印页面的设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void pd_PrintPage(object sender, PrintPageEventArgs e)
        {
            Point           ptS;
            Point           ptE;
            List <Myselect> mylist2 = new List <Myselect>(mylist.ToArray()); //复制到另一个集合
            List <Myselect> dic     = new List <Myselect>();
            List <string>   pac     = new List <string>();

            //打印条码  201510270066
            //Barcode bar = new Barcode();
            e.Graphics.DrawString("配货拣选单", new System.Drawing.Font("黑体", 15f), System.Drawing.Brushes.Black, new System.Drawing.PointF(350f, 50f));
            ptS = new Point(70, 100);
            ptE = new Point(730, 100);
            //先画标题
            e.Graphics.DrawLine(Pens.Black, ptS, ptE);
            e.Graphics.DrawLine(Pens.Black, new Point(ptS.X, ptS.Y + 30), new Point(ptE.X, ptE.Y + 30));
            e.Graphics.DrawString("包裹号", new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(115, 110));
            e.Graphics.DrawString("SKU", new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(300, 110f));
            e.Graphics.DrawString("数量", new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(420, 110f));
            e.Graphics.DrawString("货位号", new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(500, 110f));
            e.Graphics.DrawString("备注", new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(650f, 110f));
            //e.Graphics.DrawString(time, new System.Drawing.Font("黑体", 7f), System.Drawing.Brushes.Black, new System.Drawing.PointF(280f, 135f));

            int    y     = 135;
            int    objY  = 130; //整体对象高度
            int    LineY = 130;
            int    codeY = 175;
            Image  Image = null;
            string code  = string.Empty;

            for (int j = 0; j < mylist.Count; j++)                                      //(Myselect select in mylist)
            {
                if (mylist2.Contains(mylist[j]) && !pac.Contains(mylist[j].Packgecode)) //
                {
                    //2.查询包裹号相同的行

                    var result = mylist2.Where(p => p.Packgecode == mylist[j].Packgecode);
                    foreach (Myselect dr in result)
                    {
                        dic.Add(dr);
                        pac.Add(dr.Packgecode);
                        //mylist2.Remove(dr);
                    }
                    if (3 < dic.Count)//超过条码高度的处理
                    {
                        for (int h = 0; h < dic.Count; h++)
                        {
                            code = dic[h].Packgecode;
                            Barcode bar = new Barcode();
                            Image = bar.Encode(TYPE.CODE128, dic[h].Packgecode, 130, 40);
                            //2.先画一行SKU信息
                            e.Graphics.DrawString(dic[h].Skus, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(280f, y));
                            e.Graphics.DrawString(dic[h].Number, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(420f, y));
                            e.Graphics.DrawString(dic[h].Position, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(500f, y));
                            e.Graphics.DrawString(dic[h].Remarks1, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(640f, y));
                            e.Graphics.DrawLine(Pens.Black, new Point(260, LineY + 20), new Point(730, LineY + 20));
                            y     = y + 20;
                            LineY = LineY + 20;
                        }
                        e.Graphics.DrawLine(Pens.Black, new Point(70, objY + 20 * dic.Count), new Point(270, objY + 20 * dic.Count));
                        System.Drawing.Point pt = new System.Drawing.Point(80, codeY - 40);
                        e.Graphics.DrawImage(Image, pt);
                        e.Graphics.DrawString(code, new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(105f, codeY));
                        objY  = objY + 20 * dic.Count;
                        codeY = codeY + 20 * dic.Count;
                        LineY = objY;
                        y     = LineY + 5;
                    }
                    else if (3 >= dic.Count)//小于等于三个
                    {
                        for (int h = 0; h < dic.Count; h++)
                        {
                            code = dic[h].Packgecode;
                            Barcode bar = new Barcode();
                            Image = bar.Encode(TYPE.CODE128, dic[h].Packgecode, 130, 40);
                            //2.先画一行SKU信息
                            e.Graphics.DrawString(dic[h].Skus, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(280f, y));
                            e.Graphics.DrawString(dic[h].Number, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(420f, y));
                            e.Graphics.DrawString(dic[h].Position, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(500f, y));
                            e.Graphics.DrawString(dic[h].Remarks1, new System.Drawing.Font("黑体", 9f), System.Drawing.Brushes.Black, new System.Drawing.PointF(640f, y));
                            e.Graphics.DrawLine(Pens.Black, new Point(260, LineY + 20), new Point(730, LineY + 20));
                            y     = y + 20;
                            LineY = LineY + 20;
                        }
                        e.Graphics.DrawLine(Pens.Black, new Point(70, objY + 60), new Point(730, objY + 60));
                        System.Drawing.Point pt = new System.Drawing.Point(80, codeY - 40);
                        e.Graphics.DrawImage(Image, pt);
                        //打印条码代号
                        e.Graphics.DrawString(code, new System.Drawing.Font("黑体", 10f), System.Drawing.Brushes.Black, new System.Drawing.PointF(105f, codeY));
                        objY  = objY + 60;
                        codeY = codeY + 60;
                        LineY = objY;
                        y     = LineY + 5;
                    }

                    dic.Clear();
                }
                else
                {
                }
            }
            e.HasMorePages = false;
        }
 private void HandleDeleteBarcodeCommand(Barcode barcode)
 {
     this.Product.Barcodes.Remove(barcode);
 }