Ejemplo n.º 1
0
        public void LoadPriterMapp()
        {
            UCPrinterMapping map = new UCPrinterMapping();

            map.Width = flpPriterMap.Width - 5;
            flpPriterMap.Controls.Add(map);
        }
Ejemplo n.º 2
0
        public void LoadPriterMappByPrinteJobID(int PrinteJobID)
        {
            flpPriterMap.Controls.Clear();
            var data = PrinterService.GetPrintJobDetailList(PrinteJobID).ToList();
            foreach (var item in data)
            {

                UCPrinterMapping map = new UCPrinterMapping();
                map.Width = flpPriterMap.Width - 5;
                flpPriterMap.Controls.Add(map);

                map.Tag = item;

                foreach (KeyValueModel category in map.cbGroupItem.Items)
                {
                    if (category.Key == item.CategoryID)
                    {
                        map.cbGroupItem.Text = category.Value;
                    }
                }

                foreach (KeyValueModel product in map.cbItem.Items)
                {
                    if (product.Key == item.ProductID)
                    {
                        map.cbItem.Text = product.Value;
                    }
                }

                foreach (KeyValueModel printe in map.cbPrinter.Items)
                {
                    if (printe.Key == item.PrinterID)
                    {
                        map.cbPrinter.Text = printe.Value;
                    }
                }

            }
        }
Ejemplo n.º 3
0
        public void LoadPriterMappByPrinteJobID(int PrinteJobID)
        {
            flpPriterMap.Controls.Clear();
            var data = PrinterService.GetPrintJobDetailList(PrinteJobID).ToList();

            foreach (var item in data)
            {
                UCPrinterMapping map = new UCPrinterMapping();
                map.Width = flpPriterMap.Width - 5;
                flpPriterMap.Controls.Add(map);

                map.Tag = item;

                foreach (KeyValueModel category in map.cbGroupItem.Items)
                {
                    if (category.Key == item.CategoryID)
                    {
                        map.cbGroupItem.Text = category.Value;
                    }
                }

                foreach (KeyValueModel product in map.cbItem.Items)
                {
                    if (product.Key == item.ProductID)
                    {
                        map.cbItem.Text = product.Value;
                    }
                }

                foreach (KeyValueModel printe in map.cbPrinter.Items)
                {
                    if (printe.Key == item.PrinterID)
                    {
                        map.cbPrinter.Text = printe.Value;
                    }
                }
            }
        }
Ejemplo n.º 4
0
 public void LoadPriterMapp()
 {
     UCPrinterMapping map = new UCPrinterMapping();
     map.Width = flpPriterMap.Width-5;
     flpPriterMap.Controls.Add(map);
 }