public NewContractRequestDTO GetDummyData()
        {
            var now      = DateTime.Now;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Sales Admin",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile juga!",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 2
                }
            };

            var routings = new List <NewContractRoutingInfoBaseDTO>
            {
                new NewContractLaptopRoutingInfoDTO
                {
                    Contract = new NewContractLaptopContractDTO
                    {
                        AssetNumber         = "AN-2343432",
                        CipNumber           = "CIP-234324",
                        DeviceSn            = "SN-23432432",
                        Device              = "Laptop General",
                        DeliveryOrderToUser = "******",
                        EquipDesc           = "Laptop General Bapuk",
                        Equipment           = "E-2343242",
                        HolderName          = "Randa Victor",
                        LineNumber          = "23",
                        NotificationNumber  = "NOT-23432432",
                        Number              = "234324324",
                        QuotationNumber     = "QUOT-234324",
                        SalaryNumber        = "SAL-2343432",
                        SoDeliveryNumber    = "SOD-34234234"
                    },
                    CreateDate   = now,
                    CurrentStep  = 1,
                    IdrWebNumber = "MX-12312312",
                    RoutingMemo  = "Tolong diurusin",
                    Routings     = workflow,
                    SubScenario  = ESubScenario.LDP
                },
                new NewContractExtLineRoutingInfoDTO
                {
                    Contract = new NewContractExtLineContractDTO
                    {
                        ExtensionLineNumber = "2345",
                        HolderName          = "Rommy Romoaldus",
                        LineNumber          = "23",
                        Number          = "123123",
                        QuotationNumber = "QU-324324234",
                        SalaryNumber    = "SAL-24324324"
                    },
                    CreateDate   = now,
                    CurrentStep  = 1,
                    IdrWebNumber = "MX-12312312",
                    RoutingMemo  = "Tolong diurusin",
                    Routings     = workflow,
                    SubScenario  = ESubScenario.EXT_LINE
                },
                new NewContractIpPhoneRoutingInfoDTO
                {
                    Contract = new NewContractIpPhoneContractDTO
                    {
                        AssetNumber         = "AN-2343432",
                        CipNumber           = "CIP-234324",
                        DeviceSn            = "SN-23432432",
                        Device              = "IP Phone Conference",
                        DeliveryOrderToUser = "******",
                        EquipDesc           = "IP Phone and Extension Line",
                        Equipment           = "E-2343242",
                        HolderName          = "Randa Victor",
                        LineNumber          = "23",
                        NotificationNumber  = "NOT-23432432",
                        Number              = "234324324",
                        QuotationNumber     = "QUOT-234324",
                        SalaryNumber        = "SAL-2343432",
                        SoDeliveryNumber    = "SOD-34234234",
                        ExtensionLineNumber = "234"
                    },
                    CreateDate   = now,
                    CurrentStep  = 1,
                    IdrWebNumber = "MX-12312312",
                    RoutingMemo  = "Tolong diurusin",
                    Routings     = workflow,
                    SubScenario  = ESubScenario.IP_PHONE
                },
                new NewContractSoftwareRoutingInfoDTO
                {
                    Contract = new NewContractSoftwareContractDTO
                    {
                        HolderName          = "Rommy Romoaldus",
                        LineNumber          = "23",
                        Number              = "123123",
                        QuotationNumber     = "QU-324324234",
                        SalaryNumber        = "SAL-24324324",
                        ServiceDeliveryDate = "234324",
                        SoftwareType        = "DBS ID"
                    },
                    CreateDate   = now,
                    CurrentStep  = 1,
                    IdrWebNumber = "MX-12312312",
                    RoutingMemo  = "Tolong diurusin",
                    Routings     = workflow,
                    SubScenario  = ESubScenario.SOFTWARE,
                }
            };

            var req = new NewContractRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                IssuedBy    = "Sales Admin",
                IssuedDate  = now,
                RequestInfo = new NewContractRequestInfoDTO
                {
                    Company       = "PT. Maju Kena Mundur Kena",
                    Id            = _indexDao.NewRequestInfoId(),
                    Location      = "Jakarta",
                    RequestMemo   = "Harap kontrak - kontrak ini segera diproses",
                    RequestedBy   = "Donan Febrianto",
                    RequestedDate = now,
                    SnOrIdNumber  = "SN-324324242"
                },
                Routings = routings,
                Scenario = EScenario.NEW_CONTRACT,
                State    = EServiceRequestState.DRAFT
            };

            return(req);
        }
示例#2
0
        public TerminationRequestDTO GetDummyData()
        {
            var now      = DateTime.Today;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Workshop",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = true,
                    Step           = 1
                }
            };

            var terminations = new List <TerminationItemDTO>
            {
                new TerminationItemDTO
                {
                    Application     = "Email ID",
                    Branch          = "Jakarta",
                    Company         = "PT. Trakindo Utama",
                    ExtNumber       = "1234",
                    HolderName      = "Pandu Dhamar Langit",
                    RejectionReason = "Ngga ada alasan",
                    RequestedBy     = "Bromo Kunto Adji",
                    RequestedDate   = now,
                    SalaryNumber    = "23432434",
                    Status          = "Resign",
                    UserId          = "bromokun"
                },
                new TerminationItemDTO
                {
                    Application        = "VPN ID",
                    Branch             = "Jakarta",
                    Company            = "PT. Trakindo Utama",
                    ExtNumber          = "1234",
                    HolderName         = "Gema Mahdi pamungkas",
                    RejectionReason    = "Ngga ada alasan",
                    RequestedBy        = "Yunia Maharani",
                    RequestedDate      = now,
                    SalaryNumber       = "234324",
                    Status             = "Resign",
                    UserId             = "pandudhamar",
                    TerminatedContract = new TerminatedContractDTO
                    {
                        Charges         = 205000,
                        Currency        = "IDR",
                        EndDate         = now,
                        ItemCategory    = "Condom",
                        LineNumber      = "23",
                        Material        = "Alat kontrasepsi",
                        MaterialDesc    = "Condom 25",
                        MaterialPricing = "Koperasi",
                        Number          = "324324232",
                        PoNumber        = "PO-32432",
                        PriceGroup      = "Klub 69",
                        PurchaseOrder   = "PO-2343432",
                        Quantity        = 20,
                        StartDate       = now,
                        Unit            = "Ton",
                        WbsElement      = "WBS_232424234"
                    }
                }
            };

            var requestInfo = new TerminationRequestInfoDTO
            {
                Id           = _indexDao.NewRequestInfoId(),
                RequestMemo  = "Tolong segera semua diterminasi",
                RequestedVia = "Email",
                Terminations = terminations
            };
            var routingInfo = new TerminationRoutingInfoDTO
            {
                CreateDate   = DateTime.Now,
                CurrentStep  = 1,
                RoutingMemo  = "Tolong segera di terminasi",
                Routings     = workflow,
                Terminations = terminations
            };
            var req = new TerminationRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                IssuedBy    = "Helpdesk",
                IssuedDate  = DateTime.Now,
                Scenario    = EScenario.TERMINATION,
                State       = EServiceRequestState.DRAFT,
                RequestInfo = requestInfo,
                Routing     = routingInfo,
            };

            return(req);
        }
示例#3
0
        public ErrorChargesRequestDTO GetDummyData()
        {
            var now      = DateTime.Now;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Sales Admin",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile juga!",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 2
                }
            };

            var billings = new List <ContractBillingDTO>
            {
                new ContractBillingDTO
                {
                    Actual    = 10000,
                    Charges   = 20000,
                    Currency  = "USD",
                    Deduction = 4000,
                    PlanDate  = now,
                    SubItem   = "30.1"
                },
                new ContractBillingDTO
                {
                    Actual    = 20000,
                    Charges   = 20000,
                    Currency  = "USD",
                    Deduction = 3400,
                    PlanDate  = now,
                    SubItem   = "30.2"
                }
            };

            var req = new ErrorChargesRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                RequestInfo = new ErrorChargesRequestInfoDTO
                {
                    Id            = _indexDao.NewRequestInfoId(),
                    Company       = "PT. Klub Malam 1001",
                    Email         = "*****@*****.**",
                    Location      = "Mangga Besar",
                    RequestMemo   = "Tolong agar semua kesalahan charges diganti!",
                    RequestedBy   = "Dadan Germo",
                    RequestedDate = now,
                    RequestedVia  = "Wassap",
                    SnOrIdNumber  = "SN-32432424"
                },
                IssuedBy   = "Sales Admin",
                IssuedDate = DateTime.Now,
                Scenario   = EScenario.ERROR_CHARGES,
                State      = EServiceRequestState.DRAFT,
                Routing    = new ErrorChargesRoutingInfoDTO
                {
                    CreateDate  = now,
                    CurrentStep = 1,
                    RoutingMemo = "Harap segera diselesaikan",
                    Routings    = workflow,
                    SoldToParty = "PT. Klub Malam 1001",
                    Contracts   = new List <ContractWithBillingsDTO>
                    {
                        new ContractWithBillingsDTO
                        {
                            Charges           = 20000,
                            Currency          = "IDR",
                            EndDate           = now,
                            HolderName        = "Dadan Germo",
                            ItemCategory      = "MV4",
                            LineNumber        = "34",
                            Material          = "SIM-23432",
                            MaterialDesc      = "Email Service",
                            MaterialPricing   = "Software",
                            Number            = "234324",
                            PoNumber          = "345345",
                            PriceGroup        = "TMT Price",
                            PurchaseOrder     = "PO234324",
                            Quantity          = 23,
                            ReasonForRjection = "Completion of Contract",
                            StartDate         = now,
                            Unit       = "Kg",
                            WbsElement = "234324",
                            Billings   = billings
                        },
                        new ContractWithBillingsDTO
                        {
                            Charges           = 3242442,
                            Currency          = "USD",
                            EndDate           = now,
                            HolderName        = "Jimmy Jangkrek",
                            ItemCategory      = "MVP4324",
                            LineNumber        = "35",
                            Material          = "SIM-23432",
                            MaterialDesc      = "Phone Service",
                            MaterialPricing   = "Hardware",
                            Number            = "234324",
                            PoNumber          = "345345",
                            PriceGroup        = "TMT Price",
                            PurchaseOrder     = "PO234324",
                            Quantity          = 23,
                            ReasonForRjection = "Completion of Contract",
                            StartDate         = now,
                            Unit       = "Kg",
                            WbsElement = "234324",
                            Billings   = billings
                        },
                    }
                }
            };

            return(req);
        }
示例#4
0
        public NewScenarioRequestDTO GetDummyData()
        {
            var now      = DateTime.Now;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Sales Admin",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile juga!",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 2
                }
            };

            var routings = new List <NewScenarioRoutingInfoDTO>
            {
                new NewScenarioRoutingInfoDTO
                {
                    Routings = workflow,
                    Contract = new NewScenarionContractDTO
                    {
                        Device    = "Laptop",
                        DeviceSn  = "343234",
                        EquipDesc = "Laptop Lenovo i3",
                        Equipment = "234324",
                    },
                    CreateDate           = now,
                    CurrentStep          = 1,
                    IdrWebNumber         = "IDR-23432442",
                    RoutingMemo          = "Tolong dong diurus segera!",
                    AttributeDescription = "Pleaseeee deeegh..."
                },
                new NewScenarioRoutingInfoDTO
                {
                    Routings = workflow,
                    Contract = new NewScenarionContractDTO
                    {
                        Device    = "Desktop PC",
                        DeviceSn  = "343234",
                        EquipDesc = "PC Jangkrik Bhineka",
                        Equipment = "234324",
                    },
                    CreateDate           = now,
                    CurrentStep          = 1,
                    IdrWebNumber         = "IDR-5345435",
                    RoutingMemo          = "Tolong dong diurus segera!",
                    AttributeDescription = "Pleaseeee deeegh..."
                }
            };

            var req = new NewScenarioRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                RequestInfo = new NewScenarioRequestInfoDTO()
                {
                    Id            = _indexDao.NewRequestInfoId(),
                    Company       = "PT. Gulung Tikar",
                    Email         = "*****@*****.**",
                    Location      = "Mbantul Yogya",
                    RequestMemo   = "Rek sak karepmu",
                    RequestedBy   = "Arek Malang",
                    RequestedDate = now,
                    RequestedVia  = "Yahoo Messenger",
                    SnOrIdNumber  = "SN-34534534"
                },
                IssuedBy   = "Sales Admin",
                IssuedDate = DateTime.Now,
                Scenario   = EScenario.NEW_SCENARIO,
                State      = EServiceRequestState.DRAFT,
                Routings   = routings
            };

            return(req);
        }
        public BrokenDeviceRequestDTO GetDummyData()
        {
            var now      = DateTime.Today;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Workshop",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = true,
                    Step           = 1
                }
            };
            var contract = new BrokenDeviceContractDTO
            {
                BackupEquipment = "BAK-234234324",
                Device          = "DIV-2343242",
                DeviceSn        = "SN-2423424",
                EquipDesc       = "Laptop Bapuk",
                Equipment       = "EQ-324234234",
                HolderName      = "Mohammad Romdan",
                LineNumber      = "23",
                Number          = "234324",
                SalaryNumber    = "SAL-346353"
            };
            var requestInfo = new BrokenDeviceRequestInfoDTO
            {
                Branch        = "Mampang",
                Company       = "PT. Trakindo",
                CustomerId    = "CUS-234234",
                Id            = _indexDao.NewRequestInfoId(),
                RequestMemo   = "Segera diurus hinggga beres!",
                RequestedBy   = "Bromo Kunto Adji",
                RequestedDate = now,
                SnOrIdNumber  = "23432"
            };
            var routingInfo = new BrokenDeviceRoutingInfoDTO
            {
                CreateDate   = now,
                CurrentStep  = 1,
                IdrWebNumber = "IDRW-234324324",
                RoutingMemo  = "Tolong diurus segera!",
                Routings     = workflow,
                Contract     = contract
            };
            var req = new BrokenDeviceRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                IssuedBy    = "Workshop",
                IssuedDate  = now,
                Scenario    = EScenario.BROKEN_DEVICE,
                State       = EServiceRequestState.DRAFT,
                RequestInfo = requestInfo,
                Routing     = routingInfo
            };

            return(req);
        }
        public ReturnDeviceRequestDTO GetDummyData()
        {
            var now      = DateTime.Now;
            var workflow = new List <RoutingItemDTO>
            {
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Warehouse",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile...",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 1
                },
                new RoutingItemDTO
                {
                    ActualDate     = now,
                    BaseDate       = now,
                    Division       = "Sales Admin",
                    DivisionStatus = false,
                    Instruction    = "Fixed the information please!",
                    PlanDate       = now,
                    Response       = "Muke gile juga!",
                    RoutingStatus  = ERoutingStatus.IN_PROGRESS,
                    SaStatus       = false,
                    Step           = 2
                }
            };

            var routings = new List <ReturnDeviceRoutingInfoDTO>
            {
                new ReturnDeviceRoutingInfoDTO
                {
                    Routings     = workflow,
                    CreateDate   = now,
                    CurrentStep  = 1,
                    IdrWebNumber = "IDR-234234",
                    OldContract  = new ReturnDeviceOldContractDTO
                    {
                        Device          = "Laptop",
                        DeviceSn        = "343234",
                        EquipDesc       = "Laptop Lenovo i3",
                        Equipment       = "234324",
                        OldHolderName   = "Indra Birowo",
                        OldLineNumber   = "32",
                        OldNumber       = "OLD-54534534",
                        OldSalaryNumber = "SAL-4323423",
                    },
                    RoutingMemo = "Mohon segera diganti sama Laptop baru",
                    UpdContract = new ReturnDeviceUpdatedContractDTO
                    {
                        Device               = "Laptop",
                        DeviceSn             = "343234",
                        EquipDesc            = "Laptop Lenovo i3",
                        Equipment            = "234324",
                        OldHolderName        = "Indra Birowo",
                        OldLineNumber        = "32",
                        OldNumber            = "OLD-54534534",
                        OldSalaryNumber      = "SAL-4323423",
                        UpdLocation          = "Tangerang",
                        ReturnDeliveryNumber = "RET-532424234"
                    }
                }
            };

            var req = new ReturnDeviceRequestDTO
            {
                Id          = _indexDao.NewServiceRequestId(),
                RequestInfo = new ReturnDeviceRequestInfoDTO
                {
                    Company       = "PT. Maju Mundur Wenak",
                    Email         = "*****@*****.**",
                    Location      = "Jakarta",
                    Id            = _indexDao.NewRequestInfoId(),
                    RequestMemo   = "Tolong diganti dong Laptopnyeee!",
                    RequestedBy   = "Donan Febrianto",
                    RequestedDate = now,
                    RequestedVia  = "Wassap",
                    SnOrIdNumber  = "SN-1221312"
                },
                IssuedBy   = "Warehouse",
                IssuedDate = now,
                Scenario   = EScenario.RETURN_DEVICE,
                State      = EServiceRequestState.DRAFT,
                Routings   = routings
            };

            return(req);
        }