예제 #1
0
        private CostData[] setupCostDataArray(DateTime dateFr, DateTime dateTo, string officeCode, string department, int val)
        {
            if (val == 0)
            {
                dateTo = dateFr;
            }
            if (dateTo.StripTime() < dateFr.StripTime())
            {
                dateTo = dateFr;
            }

            ListFormDataOp lo = new ListFormDataOp();

            return(cost = lo.SelectCostDataFromCostReport(dateFr.StripTime(), dateTo.StripTime(), officeCode, department));
        }