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