Esempio n. 1
0
    public static List <TableClassEquipmentStandingBook> RandomClassData(int listCount)
    {
        List <TableClassEquipmentStandingBook> rs = new List <TableClassEquipmentStandingBook>();

        for (int i = 0; i < listCount; i++)
        {
            TableClassEquipmentStandingBook temp = new TableClassEquipmentStandingBook();
            temp.No                  = (i + 1).ToString();
            temp.equipmentType       = StaticGloableVariable.RandomFromList(DataEnums(DataType.equipmentType));
            temp.type                = StaticGloableVariable.RandomFromList(DataEnums(DataType.type));
            temp.technical           = StaticGloableVariable.RandomFromList(DataEnums(DataType.technical));
            temp.brand               = StaticGloableVariable.RandomFromBrand();
            temp.supplier            = temp.brand;
            temp.enterTime           = StaticGloableVariable.RandomFromDate();
            temp.enterResponsePerson = StaticGloableVariable.RandomFromPerson();
            temp.debugStatus         = StaticGloableVariable.RandomFromList(DataEnums(DataType.debugStatus));
            temp.checkTime           = StaticGloableVariable.RandomFromDate();
            temp.checkResponsePerson = StaticGloableVariable.RandomFromPerson();
            temp.setupLocation       = StaticGloableVariable.RandomFromList(DataEnums(DataType.setupLocation));
            temp.guaranteePeriod     = StaticGloableVariable.RandomFromList(DataEnums(DataType.guaranteePeriod));
            temp.transferTime        = StaticGloableVariable.RandomFromDate();
            rs.Add(temp);
        }
        testData = rs;
        return(rs);
    }
Esempio n. 2
0
    public static List <TableClassEquipmentMaintenance> RandomClassData(int listCount)
    {
        List <TableClassEquipmentMaintenance> rs = new List <TableClassEquipmentMaintenance>();

        for (int i = 0; i < listCount; i++)
        {
            TableClassEquipmentMaintenance temp = new TableClassEquipmentMaintenance();
            temp.No   = (i + 1).ToString();
            temp.name = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "立柜式空调", "壁式空调", "水表", "电表", "温度表"
            });
            temp.type = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "KFR-72LW/(72596)FNAa-A3", "KFR-72LW/(72596)FNAa-A2", "KFR-72LW/(72596)FNAa-A1", "KFR-72LW/(72596)FNAa-B3"
            });
            temp.technical = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "1匹", "2匹", "3匹", "4匹"
            });
            temp.useLocation = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "11F13#病房", "4F23#病房", "15F7#病房", "12F3#病房", "13F1#病房", "9F17#病房",
            });
            temp.supplier      = StaticGloableVariable.RandomFromBrand();
            temp.beginTime     = StaticGloableVariable.RandomFromDate();
            temp.intervalMonth = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "30天", "180天", "60天", "90天"
            });
            temp.checkPerson       = StaticGloableVariable.RandomFromPerson();
            temp.checkTime         = StaticGloableVariable.RandomFromDate();
            temp.maintenanceRecord = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "已有"
            });
            temp.maintenanceTime    = StaticGloableVariable.RandomFromDate();
            temp.maintenanceContent = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "日常维护", "损坏物件更换", "故常排除"
            });
            temp.maintenanceLevel = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "一级", "二级", "三级"
            });
            temp.maintenancePrice = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "100", "50", "1000", "3000"
            });
            rs.Add(temp);
        }
        return(rs);
    }
    public static List <TableClassEquipmentWarehousing> RandomClassData(int listCount)
    {
        List <TableClassEquipmentWarehousing> rs = new List <TableClassEquipmentWarehousing>();

        for (int i = 0; i < listCount; i++)
        {
            TableClassEquipmentWarehousing temp = new TableClassEquipmentWarehousing();
            temp.No   = "DH" + (2141563 + i).ToString();
            temp.type = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "工程用品", "日常用品", "电子用品"
            });
            temp.useStatus = StaticGloableVariable.RandomFromList(new List <string>()
            {
                "一般", "良好"
            });
            temp.usePerson = StaticGloableVariable.RandomFromPerson();
            temp.useTime   = StaticGloableVariable.RandomFromDate();
            temp.buyTime   = StaticGloableVariable.RandomFromDate();
            rs.Add(temp);
        }
        return(rs);
    }