Exemplo n.º 1
0
        internal static RTotalSalesViewModel FindReportTotalSales(ReportMenuViewModel vmodel, int language)
        {
            using (IDalReport dal = new DalReport())
            {
                DateTime date;
                int      yearD;
                int      monthD;
                int      dayD = 0;
                if (vmodel.Date != null)
                {
                    date   = DateTime.Parse(vmodel.Date);
                    yearD  = date.Year;
                    monthD = date.Month;
                    dayD   = date.Day;
                }
                else
                {
                    date   = DateTime.Now;
                    yearD  = date.Year;
                    monthD = date.Month;
                }
                // to do --> change statusId = 2   and  isReturn =
                int  status   = 2;
                bool isReturn = false;

                IList <SPP_ReportTotalSalesTransDistinct_Result> list = dal.CreateReportTotalSales(yearD, monthD, dayD, status, isReturn, language);
                RTotalSalesViewModel vm = new RTotalSalesViewModel
                {
                    Reports   = ModifyFormatDisplayDiscount(list),
                    TotReport = CalculateTotalReport(list)
                };
                return(vm);
            }
        }
        public DataTable SelectProductWiseReport()
        {
            DataTable dtbl      = new DataTable();
            DalReport dalReport = new DalReport();

            dtbl      = dalReport.SelectProductWiseReport(this);
            dalReport = null;
            return(dtbl);
        }
Exemplo n.º 3
0
 public static ReportDS.ReportSurveyAverageDataTable GetSurveyAverageReport(TimeZone localZone, Int32 group, DateTime start, DateTime end)
 {
     ReportDS.ReportSurveyAverageDataTable dt = DalReport.GetSurveyAverageReport(start, end);
     return(processData(dt, localZone, group));
 }
Exemplo n.º 4
0
        //=====================================================================================================================



        public static ReportDS.ReportIncidentDSDataTable GetIncidentReport(TimeZone localZone, Int32 group, DateTime start, DateTime end)
        {
            ReportDS.ReportIncidentDSDataTable dt = DalReport.GetIncidentReport(start, end);
            return(processData(dt, localZone, group));
        }