You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. using Swift.DAL.SwiftDAL;
  2. using System.Data;
  3. namespace Swift.DAL.AccountReportOld
  4. {
  5. public class DayBookReportOldDAO : AccountDao
  6. {
  7. public DataTable GetDayBookReport(string fromDate, string toDate, string vType, string showType = "manual")
  8. {
  9. var sql = "Exec proc_daybook @startdt =" + FilterString(fromDate);
  10. sql += " ,@enddt = " + FilterString(toDate);
  11. sql += " ,@vouchertype = " + FilterString(vType);
  12. sql += " ,@showType = " + FilterString(showType);
  13. sql += " ,@company_id = 1";
  14. return ExecuteDataTable(sql);
  15. }
  16. public DataSet GetDayBookReportUser(string fromDate, string toDate, string vType, string userName)
  17. {
  18. var sql = "Exec procVoucherDetail @flag = 'b'";
  19. sql += ",@StartDate =" + FilterString(fromDate);
  20. sql += ",@EndDate =" + FilterString(toDate);
  21. sql += ",@TranType =" + FilterString(vType);
  22. sql += ",@UserID =" + FilterString(userName);
  23. return ExecuteDataset(sql);
  24. }
  25. public DbResult DeleteAcctDetail(string acct_id, string user)
  26. {
  27. string sql = "Exec [proc_accountStatement]";
  28. sql += " @flag ='d'";
  29. sql += ", @acct_id=" + FilterString(acct_id);
  30. sql += ", @user=" + FilterString(user);
  31. return ParseDbResult(ExecuteDataset(sql).Tables[0]);
  32. }
  33. }
  34. }