TestDemo.java 3.71 KB
//package com.huaheng.test;
//
//import com.huaheng.api.jindie.InvokeHelper;
//import com.huaheng.api.jindie.domain.login.Login;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import javax.annotation.Resource;
//import java.util.ArrayList;
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class TestDemo {
//    @Resource
//    private InvokeHelper invokeHelper;
//
//    @Test
//    //测试采购入库单
//    public void login() throws Exception {
//        Login login = new Login();
//        login.setAcctID("630b2eb5ee7f8d");
//        login.setUsername("13560088336");
//        login.setPassword("123456789");
//        login.setLcid("2052");
////        if (InvokeHelper.Login(login)) {
////        invokeHelper.Push("CGSL001049");
////        System.out.println("===========Push============");
////        invokeHelper.Select("CGSL001049");
////        System.out.println("===========Select============");
////        invokeHelper.Save("CGSL001049");
////        System.out.println("===========Save============");
////        invokeHelper.Submit("CGSL001049");
////        System.out.println("===========Submit============");
////        invokeHelper.Audit("CGSL001049");
////        System.out.println("===========Audit============");
////        invokeHelper.Delete("CGSL001049");
////        }
//
//    }
//
//    @Test
//    //测试直接调拨单
//    public void allocate() throws Exception {
////        Login login = new Login();
////        login.setAcctID("630b2eb5ee7f8d");
////        login.setUsername("13560088336");
////        login.setPassword("123456789");
////        login.setLcid("2052");
////        if (invokeHelper.Login(login)) {
////            invokeHelper.POSITION_SELECT("CK622001");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622002");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622003");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622004");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622005");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622006");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622007");
////            System.out.println("===========POSITION_SELECT============");
////            invokeHelper.POSITION_SELECT("CK622008");
////            System.out.println("===========POSITION_SELECT============");
//////            invokeHelper.allocateSave("SP2022083000002","CK621001","CK621002");
//////            System.out.println("===========allocateSave============");
//////            invokeHelper.allocateSubmit("SP2022083000002");
//////            System.out.println("===========allocateSubmit============");
//////            invokeHelper.allocateAudit("SP2022083000002");
//////            System.out.println("===========allocateAudit============");
////        }
//
//    }
//    @Test
//    public void testPositionSave() throws Exception {
////        Login login = new Login();
////        login.setAcctID("630b2eb5ee7f8d");
////        login.setUsername("13560088336");
////        login.setPassword("123456789");
////        login.setLcid("2052");
////        if (invokeHelper.Login(login)) {
////            invokeHelper.position_save();
////        }
//    }
//
//
//
//}