Completed PDF report for Cashier.
This commit is contained in:
parent
f6cf49d2d3
commit
c754bcf4ef
@ -75,6 +75,8 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
{
|
{
|
||||||
CheckModel(model);
|
CheckModel(model);
|
||||||
|
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
if (_cashWithdrawalStorage.Insert(model) == null)
|
if (_cashWithdrawalStorage.Insert(model) == null)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Insert operation failed");
|
_logger.LogWarning("Insert operation failed");
|
||||||
@ -82,8 +84,6 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag)
|
|
||||||
{
|
|
||||||
_debitingStorage.Update(new DebitingBindingModel
|
_debitingStorage.Update(new DebitingBindingModel
|
||||||
{
|
{
|
||||||
Id = model.DebitingId,
|
Id = model.DebitingId,
|
||||||
@ -101,7 +101,6 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,7 +266,7 @@ namespace BankYouBankruptClientApp.Controllers
|
|||||||
DateTo = dateTo
|
DateTo = dateTo
|
||||||
});
|
});
|
||||||
|
|
||||||
Response.Redirect("Index");
|
Response.Redirect("CreditingList");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -17,10 +17,12 @@ namespace BankYouBankruptContracts.BusinessLogicsContracts
|
|||||||
|
|
||||||
//Сохранение отчёта по картам в файл-Word
|
//Сохранение отчёта по картам в файл-Word
|
||||||
void SaveCreditingToWordFile(ReportBindingModel model);
|
void SaveCreditingToWordFile(ReportBindingModel model);
|
||||||
|
|
||||||
void SaveDebitingToWordFile(ReportBindingModel model);
|
void SaveDebitingToWordFile(ReportBindingModel model);
|
||||||
|
|
||||||
//Сохранение отчёта по картам в файл-Excel
|
//Сохранение отчёта по картам в файл-Excel
|
||||||
void SaveCreditingToExcelFile(ReportBindingModel model);
|
void SaveCreditingToExcelFile(ReportBindingModel model);
|
||||||
|
|
||||||
void SaveDebitingToExcelFile(ReportBindingModel model);
|
void SaveDebitingToExcelFile(ReportBindingModel model);
|
||||||
|
|
||||||
//Сохранение отчёта по картам в файл-Pdf
|
//Сохранение отчёта по картам в файл-Pdf
|
||||||
|
@ -49,7 +49,7 @@ namespace BankYouBankruptDatabaseImplement.Implements
|
|||||||
{
|
{
|
||||||
return context.Debitings
|
return context.Debitings
|
||||||
.Include(x => x.Card)
|
.Include(x => x.Card)
|
||||||
.Where(x => x.DateOpen <= model.DateFrom && x.DateClose >= model.DateTo)
|
.Where(x => x.DateOpen <= model.DateFrom && x.DateClose >= model.DateTo && x.Status != StatusEnum.Отклонено)
|
||||||
.Select(x => x.GetViewModel)
|
.Select(x => x.GetViewModel)
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user