protected void OnEnumPrintEnumItemClicked(object sender, QS.Widgets.EnumItemClickedEventArgs e) { if (UoWGeneric.HasChanges) { if (CommonDialogs.SaveBeforePrint(typeof(CarLoadDocument), "талона")) { if (!Save()) { return; } } else { return; } } var reportInfo = new QS.Report.ReportInfo { Title = Entity.Title, Identifier = "Store.CarLoadDocument", Parameters = new System.Collections.Generic.Dictionary <string, object> { { "id", Entity.Id } }, PrintType = ReportInfo.PrintingType.MultiplePrinters }; TabParent.OpenTab( QSReport.ReportViewDlg.GenerateHashName(reportInfo), () => new QSReport.ReportViewDlg(reportInfo), this); }
protected void OnPopupPrintReceipt(object sender, EventArgs Arg) { PrepareSave(); if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(WorkOrder), "товарного чека")) { Save(); } QSProjectsLib.ViewReportExt.Run("receipt", String.Format("id={0}&date={1:d}", Entity.Id, Entity.Date), true); }
protected void OnPopupPrintOrder(object sender, EventArgs Arg) { PrepareSave(); if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(WorkOrder), "заказ-наряда")) { Save(); } QSProjectsLib.ViewReportExt.Run("order", String.Format("id={0}", Entity.Id)); }
protected void OnButtonPrintClicked(object sender, EventArgs e) { if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(Expense), "квитанции")) { Save(); } var reportInfo = new QS.Report.ReportInfo { Title = String.Format("Квитанция №{0} от {1:d}", Entity.Id, Entity.Date), Identifier = "Cash.Expense", Parameters = new Dictionary <string, object> { { "id", Entity.Id } } }; var report = new QSReport.ReportViewDlg(reportInfo); TabParent.AddTab(report, this, false); }
protected void OnButtonPrintClicked(object sender, EventArgs e) { if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(ShiftChangeWarehouseDocument), "акта передачи склада")) { Save(); } var reportInfo = new QS.Report.ReportInfo { Title = String.Format("Акт передачи склада №{0} от {1:d}", Entity.Id, Entity.TimeStamp), Identifier = "Store.ShiftChangeWarehouse", Parameters = new Dictionary <string, object> { { "document_id", Entity.Id } } }; TabParent.OpenTab( QSReport.ReportViewDlg.GenerateHashName(reportInfo), () => new QSReport.ReportViewDlg(reportInfo) ); }
protected void OnButtonPrintClicked(object sender, EventArgs e) { if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(InventoryDocument), "акта инвентаризации")) { Save(); } var reportInfo = new QS.Report.ReportInfo { Title = String.Format("Акт инвентаризации №{0} от {1:d}", Entity.Id, Entity.TimeStamp), Identifier = "Store.InventoryDoc", Parameters = new Dictionary <string, object> { { "inventory_id", Entity.Id } } }; TabParent.OpenTab( QSReport.ReportViewDlg.GenerateHashName(reportInfo), () => new QSReport.ReportViewDlg(reportInfo) ); }
protected void OnRadiobuttonStickerToggled(object sender, EventArgs e) { if (radiobuttonSticker.Active) { if (UoWGeneric.HasChanges) { if (CommonDialogs.SaveBeforePrint(typeof(Equipment), "наклейки")) { UoWGeneric.Save(); } else if (UoWGeneric.IsNew) { radiobuttonInfo.Active = true; return; } } notebook1.CurrentPage = 1; PreparedReport(); } }
protected void OnEnumPrintEnumItemClicked(object sender, EnumItemClickedEventArgs e) { if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(CarLoadDocument), "талона")) { Save(); } var reportInfo = new QS.Report.ReportInfo { Title = Entity.Title, Identifier = CarLoadPrintableDocuments.Common.Equals(e.ItemEnum) ? "Store.CarLoadDoc" : "Store.CarLoadDocPallets", Parameters = new System.Collections.Generic.Dictionary <string, object> { { "id", Entity.Id } } }; TabParent.OpenTab( QSReport.ReportViewDlg.GenerateHashName(reportInfo), () => new QSReport.ReportViewDlg(reportInfo), this); }
protected void OnButtonPrintClicked(object sender, EventArgs e) { if (UoWGeneric.HasChanges && CommonDialogs.SaveBeforePrint(typeof(CarUnloadDocument), "талона")) { Save(); } var reportInfo = new QS.Report.ReportInfo { Title = Entity.Title, Identifier = "Store.CarUnloadDoc", Parameters = new Dictionary <string, object> { { "id", Entity.Id } } }; TabParent.OpenTab( QSReport.ReportViewDlg.GenerateHashName(reportInfo), () => new QSReport.ReportViewDlg(reportInfo), this); }