internal static void ShowTotalSumm() { string Name = ""; int Id = 0; string str = "Итого: " + AlohaTSClass.GetCurentCheckSumm().ToString("0.00") + " руб." + Environment.NewLine; if (AlohaTSClass.CheckWindow()) { if (AlohaTSClass.AlohaCurentState.CompIsAppled) { str += AlohaTSClass.GetCompName(AlohaTSClass.AlohaCurentState.CompId) + Environment.NewLine; str += "Скидка: " + AlohaTSClass.AlohaCurentState.CompSumm.ToString("0.00") + " руб." + Environment.NewLine; if ((AlohaTSClass.AlohaCurentState.CompId > 10) && (AlohaTSClass.AlohaCurentState.CompId < 25)) { if (AlohaTSClass.GetManagerDiscountAttr((int)AlohaTSClass.AlohaCurentState.CheckId, out Name, out Id)) { if (Id > 0) { str += Id.ToString() + " "; } str += Name; } } } int P = 0; int V = 0; string PreCard = AlohaTSClass.GetDiscountAttr((int)AlohaTSClass.AlohaCurentState.CheckId, out P, out V); if (PreCard.Length > 4) { if (PreCard.Substring(0, 3).ToUpper() == "PRE") { str += "Проведена карта друга " + PreCard + Environment.NewLine; str += "Отсталось посещений " + V.ToString() + " Осталось дней: " + P.ToString(); } } } AlohaTSClass.ShowMessage(str); }
internal static void DeleteComp(int ChId, int CompTypeId) { if (iniFile.SendToVideoEnable) { try { string Mess = "Терм: " + Utils.GetTermNum().ToString() + " Чек: " + Check.GetCheckShortNum(ChId) + " Удалил скидку: " + AlohaTSClass.GetCompName(CompTypeId); Send(Mess); } catch (Exception e) { Utils.ToCardLog("[Error] SendToVideo.ApplyComp " + e.Message); } } }
void ShowEndQuestion() { btnOk.Width = (this.Width - 6) / 2; btnOk.Visible = true; btnCancel.Text = "Отмена"; pnlButtons.Visible = false; ctrlDegustationsManagers1.Visible = false; ctrlDegustationsWithKeys1.Visible = false; ctrlHotelBreakfastCount1.Visible = false; if (DType == 20) { lblEndQuestion.Text = "Наложить компенсацию " + Environment.NewLine + AlohaTSClass.GetCompName(DType) + " c комментарием " + Environment.NewLine + CurrentComment + Environment.NewLine + "Количество гостей: " + ctrlHotelBreakfastCount1.GuestCount.ToString() + "?"; } else { if (CurrentEmp == null) { if (CurrentComment == "") { lblEndQuestion.Text = "Наложить компенсацию " + Environment.NewLine + AlohaTSClass.GetCompName(DType) + "?"; } else { lblEndQuestion.Text = "Наложить компенсацию " + Environment.NewLine + AlohaTSClass.GetCompName(DType) + " c комментарием " + Environment.NewLine + CurrentComment + "?"; } } else { if (CurrentComment == "") { lblEndQuestion.Text = "Наложить компенсацию " + Environment.NewLine + AlohaTSClass.GetCompName(DType) + " Сотрудник: " + Environment.NewLine + CurrentEmp.Id.ToString() + " " + CurrentEmp.Name + "?"; } else { lblEndQuestion.Text = "Наложить компенсацию " + Environment.NewLine + AlohaTSClass.GetCompName(DType) + " Сотрудник: " + Environment.NewLine + CurrentEmp.Id.ToString() + " " + CurrentEmp.Name + " c комментарием " + Environment.NewLine + CurrentComment + "?"; } } } //lblEndQuestion.BringToFront(); lblEndQuestion.Visible = true; }