Browse Source

客户资料

zhoudw 7 years ago
parent
commit
9d37c0cad3

+ 32 - 0
applications/document/document-server/src/test/java/com/usoftchina/saas/document/service/CustomerTest.java

@@ -0,0 +1,32 @@
+package com.usoftchina.saas.document.service;
+
+
+import com.usoftchina.saas.document.DocumentApplication;
+import com.usoftchina.saas.document.mapper.CustomeraddressMapper;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = DocumentApplication.class)
+@EnableAutoConfiguration
+public class CustomerTest {
+
+    @Autowired
+    private CustomerService customerService;
+    @Autowired
+    private CustomeraddressMapper customeraddressMapper;
+
+    @Test
+    public void test(){
+        System.out.println(customerService.getFormData(new Long(1)));
+    }
+
+    @Test
+    public void test1(){
+        System.out.println(customeraddressMapper.selectByPrimaryKey(1));
+    }
+}

+ 3 - 0
frontend/saas-web/app/view/stock/otherIn/FormPanelModel.js

@@ -1,5 +1,8 @@
 Ext.define('saas.view.stock.otherIn.FormPanelModel', {
 Ext.define('saas.view.stock.otherIn.FormPanelModel', {
     extend: 'saas.view.core.form.FormPanelModel',
     extend: 'saas.view.core.form.FormPanelModel',
     alias: 'viewmodel.stock-otherin-formpanel',
     alias: 'viewmodel.stock-otherin-formpanel',
+    data: {
+        pi_class: '其它入库单'
+     }
 
 
 });
 });

+ 3 - 0
frontend/saas-web/app/view/stock/otherOut/FormPanelModel.js

@@ -1,5 +1,8 @@
 Ext.define('saas.view.stock.otherOut.FormPanelModel', {
 Ext.define('saas.view.stock.otherOut.FormPanelModel', {
     extend: 'saas.view.core.form.FormPanelModel',
     extend: 'saas.view.core.form.FormPanelModel',
     alias: 'viewmodel.stock-otherout-formpanel',
     alias: 'viewmodel.stock-otherout-formpanel',
+    data: {
+        pi_class: '其它出库单'
+     }
 
 
 });
 });