示例#1
0
        public static List <Level> getLevels(PTMContex contex)
        {
            List <Level> levels = new List <Level>()
            {
                new Level()
                {
                    levelId    = "PRO00101",
                    levelCount = 1,
                    project    = contex.Projects.Find("PRO001"),


                    parts = new List <Part>()
                },
                new Level()
                {
                    levelId    = "PRO00102",
                    levelCount = 2,
                    project    = contex.Projects.Find("PRO001"),

                    parts = new List <Part>()
                },
                new Level()
                {
                    levelId    = "PRO00103",
                    levelCount = 3,
                    project    = contex.Projects.Find("PRO001"),

                    parts = new List <Part>()
                },
                new Level()
                {
                    levelId    = "PRO00201",
                    levelCount = 1,
                    project    = contex.Projects.Find("PRO002"),

                    parts = new List <Part>()
                }
            };

            return(levels);
        }
示例#2
0
        public static List <Part> getParts(PTMContex contex)
        {
            List <Part> parts = new List <Part>()
            {
                new Part()
                {
                    PartId               = "PAR0001",
                    PartName             = "ScrewDriver",
                    PartDescription      = "Triwing Triangle Screw-Driver Repair Fixing Tool for Nintendo Wii DS Lite NDSL",
                    NovenaTecPartNumber  = "NOVSCREW1001",
                    SwissRanksPartNumber = "SWSCREW1001",
                    OEMPartNumber        = "OEMSCREW1001",
                    VendorPartNumber     = "ABCSCREW1001",
                    CreatedBy            = contex.Users.Find("EMP0002"),
                    ApproveBy            = contex.Users.Find("EMP0001"),
                    Status               = "Approved",
                    StockQuantity        = 10,
                },

                new Part()
                {
                    PartId               = "PAR0002",
                    PartName             = "BreadBoard",
                    PartDescription      = "Round Hole Solderless Breadboard 840 Points",
                    NovenaTecPartNumber  = "NOVBBOARD1002",
                    SwissRanksPartNumber = "SWBBOARD1002",
                    OEMPartNumber        = "OEMBBOARD1002",
                    VendorPartNumber     = "FXYBBOARD1002",
                    CreatedBy            = contex.Users.Find("EMP0001"),
                    Status               = "Send for Approve",
                    StockQuantity        = 0
                }
            };

            return(parts);
        }