static void SendRefreshCheck(int CheckId, bool SendTotal, bool CloseCheck) { //Check Ch = AlohaTSClass.GetCheckById(CheckId); Check Ch = AlohaTSClass.GetCheckByIdShort(CheckId); SendRefreshCheck(Ch, SendTotal, CloseCheck); }
public static void SetGuestCount(int checkId) { if (!AlohaTSClass.IsAlohaTS()) { return; } if (!iniFile.AskGuestCountOnPreCheck) { return; } var chk = AlohaTSClass.GetCheckByIdShort(checkId); int tId = chk.TableNumber; if ((tId >= 146 && tId <= 255) || (tId >= 900)) { return; } if (chk.Summ <= 0) { return; } try { Utils.ToCardLog("SetGuestCount "); var ctrl = new CtrlGuestCountAsk(); var mW = PDSystem.ModalWindowsForegraund.GetModalWindow(ctrl); ctrl.SetOwnerWnd(mW); mW.ShowDialog(); } catch (Exception e) { Utils.ToCardLog("Error SetGuestCount " + e.Message); } //wnd.ShowDialog(); }