예제 #1
0
        public void LoadPriterMapp()
        {
            UCPrinterMapping map = new UCPrinterMapping();

            map.Width = flpPriterMap.Width - 5;
            flpPriterMap.Controls.Add(map);
        }
예제 #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;
                    }
                }

            }
        }
예제 #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;
                    }
                }
            }
        }
예제 #4
0
 public void LoadPriterMapp()
 {
     UCPrinterMapping map = new UCPrinterMapping();
     map.Width = flpPriterMap.Width-5;
     flpPriterMap.Controls.Add(map);
 }