Exemple #1
0
        public ArrayList getPrintersOfKitchen(string store_ID, string station_ID)
        {
            ArrayList printers = new ArrayList();
            DataTable record   = getGui.GetPrintersOfKitchen(store_ID, station_ID);

            for (int i = 0; i < record.Rows.Count; i++)
            {
                string  PrinterName = record.Rows[i]["PrinterName"].ToString();
                string  NetworkPort = record.Rows[i]["NetworkPort"].ToString();
                string  Localport   = record.Rows[i]["LocalPort"].ToString();
                string  detail      = record.Rows[i]["Details"].ToString();
                bool    disable     = Convert.ToBoolean(record.Rows[i]["Disabled"]);
                bool    twoColor    = Convert.ToBoolean(record.Rows[i]["Two_Color_Printing"]);
                bool    cutPrint    = Convert.ToBoolean(record.Rows[i]["CutReceipt"]);
                Printer printer     = new Printer(PrinterName, Localport, NetworkPort, detail, disable, twoColor, cutPrint);
                printers.Add(printer);
            }
            return(printers);
        }