private ConstructionPlanMonthDetail GetCommonProperty(ConstructionPlanMonth item, int month,
                                                              ConstructionPlanImportCommon cpic, AllQuery all, DateTime dtNow, string planDate, ref DataTable dt, ref DataTable dtChart)
        {
            ConstructionPlanMonthDetail c = new ConstructionPlanMonthDetail();

            #region 通用属性
            c.Line         = cpic.Line;
            c.Month        = month;
            c.WorkType     = 112;//默认委外维护
            c.WorkTypeName = all.workType.Where(a => a.ID == c.WorkType).FirstOrDefault().Name;
            c.EqpType      = item.Code;
            c.EqpTypeName  = item.EqpTypeName;
            c.Location     = item.Location;
            c.LocationBy   = item.LocationBy;
            c.LocationName = all.locations.Where(a => a.LocationBy == c.LocationBy && a.ID == c.Location).FirstOrDefault().Name;
            c.Department   = cpic.Department;
            c.Team         = item.Team;
            c.TeamName     = all.team.Where(a => a.ID == c.Team).FirstOrDefault().Name;
            c.PMType       = (int)GetPMTypeByFrequency(item.Frequency, true);
            c.PMTypeName   = all.pmType.Where(a => a.ID == c.PMType).FirstOrDefault().Name;
            c.PMCycle      = item.Cycle;
            c.PMFrequency  = item.Frequency * 12;
            c.Unit         = item.Unit;
            c.PlanQuantity = item.Quantity;
            c.RealQuantity = item.Quantity;
            c.Query        = cpic.ID;
            c.PlanDate     = planDate;
            c.UpdateTime   = dtNow;
            c.UpdateBy     = _userID;

            InsertRow(ref dt, c);
            InsertRow(ref dtChart, c, cpic.Year);
            #endregion
            return(c);
        }
        private List <int> GetDay(ConstructionPlanMonth c, ref List <int> dayMin)
        {
            List <int> ret = new List <int>();

            if (c.One == 1)
            {
                ret.Add(1); dayMin[0] += c.Once;
            }
            if (c.Two == 1)
            {
                ret.Add(2); dayMin[1] += c.Once;
            }
            if (c.Three == 1)
            {
                ret.Add(3); dayMin[2] += c.Once;
            }
            if (c.Four == 1)
            {
                ret.Add(4); dayMin[3] += c.Once;
            }
            if (c.Five == 1)
            {
                ret.Add(5); dayMin[4] += c.Once;
            }
            if (c.Six == 1)
            {
                ret.Add(6); dayMin[5] += c.Once;
            }
            if (c.Seven == 1)
            {
                ret.Add(7); dayMin[6] += c.Once;
            }
            if (c.Eight == 1)
            {
                ret.Add(8); dayMin[7] += c.Once;
            }
            if (c.Nine == 1)
            {
                ret.Add(9); dayMin[8] += c.Once;
            }
            if (c.Ten == 1)
            {
                ret.Add(10); dayMin[9] += c.Once;
            }
            if (c.Eleven == 1)
            {
                ret.Add(11); dayMin[10] += c.Once;
            }
            if (c.Twelve == 1)
            {
                ret.Add(12); dayMin[11] += c.Once;
            }
            if (c.Thirteen == 1)
            {
                ret.Add(13); dayMin[12] += c.Once;
            }
            if (c.Fourteen == 1)
            {
                ret.Add(14); dayMin[13] += c.Once;
            }
            if (c.Fifteen == 1)
            {
                ret.Add(15); dayMin[14] += c.Once;
            }
            if (c.Sixteen == 1)
            {
                ret.Add(16); dayMin[15] += c.Once;
            }
            if (c.Seventeen == 1)
            {
                ret.Add(17); dayMin[16] += c.Once;
            }
            if (c.Eighteen == 1)
            {
                ret.Add(18); dayMin[17] += c.Once;
            }
            if (c.Nineteen == 1)
            {
                ret.Add(19); dayMin[18] += c.Once;
            }
            if (c.Twenty == 1)
            {
                ret.Add(20); dayMin[19] += c.Once;
            }
            if (c.TwentyOne == 1)
            {
                ret.Add(21); dayMin[20] += c.Once;
            }
            if (c.TwentyTwo == 1)
            {
                ret.Add(22); dayMin[21] += c.Once;
            }
            if (c.TwentyThree == 1)
            {
                ret.Add(23); dayMin[22] += c.Once;
            }
            if (c.TwentyFour == 1)
            {
                ret.Add(24); dayMin[23] += c.Once;
            }
            if (c.TwentyFive == 1)
            {
                ret.Add(25); dayMin[24] += c.Once;
            }
            if (c.TwentySix == 1)
            {
                ret.Add(26); dayMin[25] += c.Once;
            }
            if (c.TwentySeven == 1)
            {
                ret.Add(27); dayMin[26] += c.Once;
            }
            if (c.TwentyEight == 1)
            {
                ret.Add(28); dayMin[27] += c.Once;
            }
            if (c.TwentyNine == 1)
            {
                ret.Add(29); dayMin[28] += c.Once;
            }
            if (c.Thirty == 1)
            {
                ret.Add(30); dayMin[29] += c.Once;
            }
            if (c.ThirtyOne == 1)
            {
                ret.Add(31); dayMin[30] += c.Once;
            }
            return(ret);
        }