//Constructor
        public TransactionMngr()
        {
            Factory = new DaoFactory();

            WType = new WmsTypes(Factory);
            LblMngr = new LabelMngr();
            DocMngr = new DocumentMngr();
            ErpMngr = new ErpDataMngr();
            Rules = new Rules(Factory);
        }
Beispiel #2
0
 //Constructor
 public Control()
 {
     Factory = new DaoFactory();
     DocMngr = new DocumentMngr();
     LabelMngr = new LabelMngr();
     TranMngr = new TransactionMngr();
     ErpMngr = new ErpDataMngr();
     RptMngr = new ReportMngr();
     BasicMngr = new BasicMngr();
     MsgMngr = new MessageMngr();
     WType = new WmsTypes();
 }
Beispiel #3
0
        //Imprime en impresora mandando la lineas de comando PCL
        private static void PrintLabelByPL(LabelTemplate template, IList <Label> listLabels, Printer printer)
        {
            LabelMngr lblMngr          = new LabelMngr();
            string    templateReplaced = lblMngr.GetReplacedTemplateForLabels(listLabels, template, "");

            if (string.IsNullOrEmpty(templateReplaced))
            {
                //throw new Exception("Error creating Printer Template.");
                ExceptionMngr.WriteEvent("Error creating Printer Template. " + template.Header, ListValues.EventType.Fatal, null, null, ListValues.ErrorCategory.Printer);
            }

            PrintLabels(templateReplaced, printer.PrinterPath);
        }
        //Imprime en impresora mandando la lineas de comando PCL
        private static void PrintLabelByPL(LabelTemplate template, IList<Label> listLabels, Printer printer )
        {
            LabelMngr lblMngr = new LabelMngr();
            string templateReplaced = lblMngr.GetReplacedTemplateForLabels(listLabels, template, "");

            if (string.IsNullOrEmpty(templateReplaced))
            {
                //throw new Exception("Error creating Printer Template.");
                ExceptionMngr.WriteEvent("Error creating Printer Template. " + template.Header, ListValues.EventType.Fatal, null, null, ListValues.ErrorCategory.Printer);

            }

            PrintLabels(templateReplaced, printer.PrinterPath);
        }