public static bool ChkAlreadyPrented(int ChId, int Empl) { try { AlohaTSClass.InitAlohaCom(); return(!AlohaTSClass.ChkCanPrint(ChId, Empl)); } catch (Exception e) { Utils.ToLog("[Error] ChkAlreadyPrented() " + e.Message); return(false); } }
public static void PrindChkToPrinter(int ChId, int Printer, int Empl) { try { Utils.ToLog("PrindChkToPrinter() "); AlohaTSClass.InitAlohaCom(); if (AlohaTSClass.ChkCanPrint(ChId, Empl)) { AlohaTSClass.PrintPredCheckByXml(ChId, Printer); AlohaTSClass.SetPrintChkAttr(ChId, 1); //AlohaTSClass.PrintPredCheck(ChId, true); } else { throw new Exception("Чек уже напечатан"); } } catch (Exception e) { Utils.ToLog("[Error] PrindChkToPrinter() " + e.Message); } }