Exemple #1
0
        public void GetMemoRemarksByOwnerKeyAndType()
        {
            var service = new ARResearchService();
            var remark  = service.GetMemoRemarksByTypeAndOwnerKeyAsync(40343, "Cust.AR.Coll").Result;

            Assert.IsTrue(remark != null);
        }
        public void TestGetCreditCardByOP()
        {
            var repo = new ARResearchService();
            var cc   = repo.GetCreditCardByOP(4216430).Result;

            Assert.IsNotNull(cc);
            Assert.IsNotNull(cc.CrCardNoDecrypted);
        }
Exemple #3
0
        public void TestInvoiceToCustomerRelationship()
        {
            var service  = new ARResearchService();
            var invoices = service.GetInvoicesByTranNoAsync("0000010085").Result;

            Assert.IsTrue(invoices.Count > 0);
            Assert.IsNotNull(invoices[0].Customer);
        }
Exemple #4
0
        public void TestCustPmtToCustomerRelationship()
        {
            var service  = new ARResearchService();
            var payments = service.GetCustPaymentsByTranNoAsync("022253").Result;

            Assert.IsTrue(payments.Count > 0);
            Assert.IsNotNull(payments[0].Customer);
        }
Exemple #5
0
        public void GetShipmentBatchesMPK()
        {
            var service = new ARResearchService();
            var batches = service.GetShipmentBatchesAsync(23).Result;


            Assert.IsTrue(batches.Count > 0);
        }
Exemple #6
0
        public void GetShipmentCheckMPK()
        {
            var service = new ARResearchService();
            var batches = service.GetShipmentBatchesAsync(23).Result;

            var shipmentChecks = service.GetShipmentCheckAsync(batches[1].CreateDate, 23, batches[1].TypeKey, batches[1].PackStation).Result;


            Assert.IsTrue(shipmentChecks.Count > 0);
        }
Exemple #7
0
        public void TestInvoiceRepositoryMethods()
        {
            var service        = new ARResearchService();
            var tranNoInvoices = service.GetInvoicesByTranNoAsync("0000010085").Result;
            var poNoInvoices   = service.GetInvoicesByPONumberAsync("DONALDS").Result;
            var amtInvoices    = service.GetInvoicesByTranAmtAsync(100).Result;

            Assert.IsTrue(tranNoInvoices.Count > 0);
            Assert.IsTrue(poNoInvoices.Count > 0);
            Assert.IsTrue(amtInvoices.Count > 0);
        }
Exemple #8
0
        private void ResearchControl_Load(object sender, EventArgs e)
        {
            service = new ARResearchService();
            var preloadEF = service.GetCreditCardByOP(0);

            foreach (Control control in Controls)
            {
                control.KeyUp += KeyUpEventHandler;

                if (control.Controls.Count > 0)
                {
                    foreach (Control childControl in control.Controls)
                    {
                        childControl.KeyUp += KeyUpEventHandler;
                    }
                }
            }
        }