Exemplo n.º 1
0
        public QW_ViewDuty GetCarDutyView(string timeParams, string unitId)
        {
            HttpRequestBase request = ((HttpContextWrapper)this.Request.Properties["MS_HttpContext"]).Request;

            //查询时间段
            DateTime dt         = DateTime.Now;
            int      timeparams = Convert.ToInt32(timeParams);

            if (timeparams != 0)
            {
                dt = dt.AddDays(timeparams);
            }
            QW_ViewDuty model = new QW_ViewDuty();

            model.GetTableOneMes     = GetTableOneMes(dt);                              //表格日期
            model.GetTableContentMes = GetTableContentMes(dt, Convert.ToInt32(unitId)); //获得表格内容

            return(model);
        }
Exemplo n.º 2
0
        public QW_ViewDuty GetTeamDutyView(string timeParams, string unitId)
        {
            //查询时间段
            DateTime dt         = DateTime.Now;
            int      timeparams = Convert.ToInt32(timeParams);

            if (timeparams != 0)
            {
                dt = dt.AddDays(timeparams);
            }
            QW_ViewDuty model = new QW_ViewDuty();

            if (unitId == "null")
            {
                unitId = "0";
            }
            model.GetTableOneMes     = GetTableOneMes(dt);                              //表格日期
            model.GetTableContentMes = GetTableContentMes(dt, Convert.ToInt32(unitId)); //获得表格内容

            return(model);
        }