Browse Source

修改命名

zhoudw 7 years ago
parent
commit
54562b6684

+ 9 - 0
applications/document/document-server/src/main/java/com/usoftchina/saas/document/controller/CustomerController.java

@@ -0,0 +1,9 @@
+package com.usoftchina.saas.document.controller;
+
+/**
+ * Created by zdw
+ * 2018-10-23 11:39.
+ */
+
+public class CustomerController {
+}

+ 0 - 157
frontend/saas-web/app/view/stock/otherIn/FormController.js

@@ -1,157 +0,0 @@
-Ext.define('saas.view.stock.otherIn.FormController', {
-    extend: 'saas.view.core.form.FormPanelController',
-    alias: 'controller.stock-otherIn-formcontroller',
-    init: function (form) {
-        var me = this;
-        this.control({
-            /**放大镜新增demo*/
-            "field[name=combo]":{
-                beforerender:function(f){
-                    f.addHandler=me.addCombo;
-                }
-            },
-            //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pu_vendcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        dataUrl:'http://192.168.253.41:9480/api/document/vendor/getVendorsByCondition',
-                        dbfinds:[{
-                            from:'ve_code',to:'pu_vendcode'
-                        },{
-                            from:'ve_name',to:'pu_vendname'
-                        }],
-                        dbtpls:[{
-                            field:'ve_code',width:100
-                        },{
-                            field:'ve_name',width:100
-                        }],
-                        dbColumns:[{
-                            conditionCode:'ve_id',
-                            "text": "供应商ID",
-                            "flex": 0,
-                            "dataIndex": "ve_id",
-                            "width": 0,
-                            "xtype": "",
-                            "items": null
-                        },{
-                            conditionCode:'ve_code',
-                            "text": "供应商编号",
-                            "flex": 1,
-                            "dataIndex": "ve_code",
-                            "width": 100,
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            conditionCode:'ve_name',
-                            "text": "供应商名称",
-                            "flex": 1,
-                            "dataIndex": "ve_name",
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            conditionCode:'ve_type',
-                            "text": "供应商类型",
-                            "flex": 0,
-                            "dataIndex": "ve_type",
-                            "width": 200,
-                            "xtype": "",
-                            "items": null
-                        }]
-                    }) ;   
-
-                }
-            },
-            //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pd_prodcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        conditionCode:'pr_code',
-                        dataUrl:'http://192.168.253.41:9480/api/document/product/getProductsByCondition',
-                        dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode'
-                        }],
-                        dbtpls:[{
-                            field:'pr_code',width:100
-                        },{
-                            field:'pr_detail',width:100
-                        }],
-                        dbColumns:[{
-                            "text": "物料ID",
-                            "flex": 0,
-                            "dataIndex": "pr_id",
-                            "width": 0,
-                            "xtype": "",
-                            "items": null
-                        },{
-                            "text": "物料编号",
-                            "flex": 1,
-                            "dataIndex": "pr_code",
-                            "width": 100,
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "物料名称",
-                            "flex": 1,
-                            "dataIndex": "pr_detail",
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "物料规格",
-                            "flex": 0,
-                            "dataIndex": "pr_spec",
-                            "width": 200,
-                            "xtype": "",
-                            "items": null
-                        }]
-                    }) ;   
-
-                }
-            }
-        });
-
-    },
-    addCombo:function(){
-        var combo=this.ownerCmp;
-        Ext.create('Ext.window.Window',{
-            layout:'vbox',
-            bodyPadding: 15,
-            width:500,
-            items:[{
-                fieldLabel:'实际值',
-                xtype:'textfield'
-            },{
-                fieldLabel:'显示值',
-                xtype:'textfield'
-            }],
-            buttons:[{
-                text:'确认',
-                handler:function(b){
-                    combo.setValue('ok');
-                    b.up('window').close();
-                }
-            }],
-            renderTo:this.ownerCmp.ownerCt.getEl()
-        }).show();
-
-    },
-
-    turnIn: function() {
-        var me = this,
-        form = me.getView(),
-        id = form.getForm().findField(form._idField);
-        form.BaseUtil.request({
-            url: form._turnInUrl+id.value,
-            method: 'GET',
-        })
-        .then(function(res) {
-            var localJson = new Ext.decode(res.responseText);
-            if(localJson.success){
-                Ext.Msg.alert('提示','转单成功');
-              
-            }
-        })
-        .catch(function() {
-            Ext.Msg.alert('提示','转单失败');
-        });
-     }
-});

+ 0 - 5
frontend/saas-web/app/view/stock/otherIn/FormModel.js

@@ -1,5 +0,0 @@
-Ext.define('saas.view.stock.otherIn.FormModel', {
-    extend: 'saas.view.core.form.FormPanelModel',
-    alias: 'viewmodel.stock-otherIn-formmodel',
-
-});

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

@@ -1,9 +1,9 @@
 Ext.define('saas.view.stock.otherIn.FormPanel', {
     extend: 'saas.view.core.form.FormPanel',
-    xtype: 'stock-otherIn-formpanel',
+    xtype: 'stock-otherin-formpanel',
 
-    controller: 'stock-otherIn-formcontroller',
-    viewModel: 'stock-otherIn-formmodel',
+    controller: 'stock-otherin-formpanel',
+    viewModel: 'stock-otherin-formpanel',
     
      //字段属性
      _title:'其它入库单',

+ 4 - 4
frontend/saas-web/app/view/stock/otherIn/QueryPanel.js

@@ -1,11 +1,11 @@
 Ext.define('saas.view.stock.otherIn.QueryPanel', {
     extend: 'saas.view.core.query.QueryPanel',
-    xtype: 'stock-otherIn-querypanel',
+    xtype: 'stock-otherin-querypanel',
 
-    controller: 'stock-otherIn-querypanel',
-    viewModel: 'stock-otherIn-querypanel',
+    controller: 'stock-otherin-querypanel',
+    viewModel: 'stock-otherin-querypanel',
 
-    viewName: 'stock-otherIn-querypanel',
+    viewName: 'stock-otherin-querypanel',
 
     queryFormItems: [{
         xtype: 'hidden',

+ 1 - 1
frontend/saas-web/app/view/stock/otherIn/QueryPanelController.js

@@ -1,6 +1,6 @@
 Ext.define('saas.view.stock.otherIn.QueryPanelController', {
     extend: 'saas.view.core.query.QueryPanelController',
-    alias: 'controller.stock-otherIn-querypanel',
+    alias: 'controller.stock-otherin-querypanel',
     init: function (form) {
         var me = this;
         this.control({

+ 1 - 1
frontend/saas-web/app/view/stock/otherIn/QueryPanelModel.js

@@ -1,5 +1,5 @@
 Ext.define('saas.view.stock.otherIn.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.stock-otherIn-querypanel'
+    alias: 'viewmodel.stock-otherin-querypanel'
 
 });

+ 0 - 157
frontend/saas-web/app/view/stock/otherOut/FormController.js

@@ -1,157 +0,0 @@
-Ext.define('saas.view.stock.otherOut.FormController', {
-    extend: 'saas.view.core.form.FormPanelController',
-    alias: 'controller.stock-otherOut-formcontroller',
-    init: function (form) {
-        var me = this;
-        this.control({
-            /**放大镜新增demo*/
-            "field[name=combo]":{
-                beforerender:function(f){
-                    f.addHandler=me.addCombo;
-                }
-            },
-            //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pu_vendcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        dataUrl:'http://192.168.253.41:9480/api/document/vendor/getVendorsByCondition',
-                        dbfinds:[{
-                            from:'ve_code',to:'pu_vendcode'
-                        },{
-                            from:'ve_name',to:'pu_vendname'
-                        }],
-                        dbtpls:[{
-                            field:'ve_code',width:100
-                        },{
-                            field:'ve_name',width:100
-                        }],
-                        dbColumns:[{
-                            conditionCode:'ve_id',
-                            "text": "供应商ID",
-                            "flex": 0,
-                            "dataIndex": "ve_id",
-                            "width": 0,
-                            "xtype": "",
-                            "items": null
-                        },{
-                            conditionCode:'ve_code',
-                            "text": "供应商编号",
-                            "flex": 1,
-                            "dataIndex": "ve_code",
-                            "width": 100,
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            conditionCode:'ve_name',
-                            "text": "供应商名称",
-                            "flex": 1,
-                            "dataIndex": "ve_name",
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            conditionCode:'ve_type',
-                            "text": "供应商类型",
-                            "flex": 0,
-                            "dataIndex": "ve_type",
-                            "width": 200,
-                            "xtype": "",
-                            "items": null
-                        }]
-                    }) ;   
-
-                }
-            },
-            //放大镜赋值关系 以及 tpl模板
-            'dbfindtrigger[name=pd_prodcode]':{
-                beforerender:function(f){
-                    Ext.apply(f,{
-                        conditionCode:'pr_code',
-                        dataUrl:'http://192.168.253.41:9480/api/document/product/getProductsByCondition',
-                        dbfinds:[{
-                            from:'pr_code',to:'pd_prodcode'
-                        }],
-                        dbtpls:[{
-                            field:'pr_code',width:100
-                        },{
-                            field:'pr_detail',width:100
-                        }],
-                        dbColumns:[{
-                            "text": "物料ID",
-                            "flex": 0,
-                            "dataIndex": "pr_id",
-                            "width": 0,
-                            "xtype": "",
-                            "items": null
-                        },{
-                            "text": "物料编号",
-                            "flex": 1,
-                            "dataIndex": "pr_code",
-                            "width": 100,
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "物料名称",
-                            "flex": 1,
-                            "dataIndex": "pr_detail",
-                            "xtype": "",
-                            "items": null
-                        }, {
-                            "text": "物料规格",
-                            "flex": 0,
-                            "dataIndex": "pr_spec",
-                            "width": 200,
-                            "xtype": "",
-                            "items": null
-                        }]
-                    }) ;   
-
-                }
-            }
-        });
-
-    },
-    addCombo:function(){
-        var combo=this.ownerCmp;
-        Ext.create('Ext.window.Window',{
-            layout:'vbox',
-            bodyPadding: 15,
-            width:500,
-            items:[{
-                fieldLabel:'实际值',
-                xtype:'textfield'
-            },{
-                fieldLabel:'显示值',
-                xtype:'textfield'
-            }],
-            buttons:[{
-                text:'确认',
-                handler:function(b){
-                    combo.setValue('ok');
-                    b.up('window').close();
-                }
-            }],
-            renderTo:this.ownerCmp.ownerCt.getEl()
-        }).show();
-
-    },
-
-    turnIn: function() {
-        var me = this,
-        form = me.getView(),
-        id = form.getForm().findField(form._idField);
-        form.BaseUtil.request({
-            url: form._turnInUrl+id.value,
-            method: 'GET',
-        })
-        .then(function(res) {
-            var localJson = new Ext.decode(res.responseText);
-            if(localJson.success){
-                Ext.Msg.alert('提示','转单成功');
-              
-            }
-        })
-        .catch(function() {
-            Ext.Msg.alert('提示','转单失败');
-        });
-     }
-});

+ 0 - 5
frontend/saas-web/app/view/stock/otherOut/FormModel.js

@@ -1,5 +0,0 @@
-Ext.define('saas.view.stock.otherOut.FormModel', {
-    extend: 'saas.view.core.form.FormPanelModel',
-    alias: 'viewmodel.stock-otherOut-formmodel',
-
-});

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

@@ -1,9 +1,9 @@
 Ext.define('saas.view.stock.otherOut.FormPanel', {
     extend: 'saas.view.core.form.FormPanel',
-    xtype: 'stock-otherOut-formpanel',
+    xtype: 'stock-otherout-formpanel',
 
-    controller: 'stock-otherOut-formcontroller',
-    viewModel: 'stock-otherOut-formmodel',
+    controller: 'stock-otherout-formpanel',
+    viewModel: 'stock-otherout-formpanel',
     
      //字段属性
      _title:'其它入库单',

+ 4 - 4
frontend/saas-web/app/view/stock/otherOut/QueryPanel.js

@@ -1,11 +1,11 @@
 Ext.define('saas.view.stock.otherOut.QueryPanel', {
     extend: 'saas.view.core.query.QueryPanel',
-    xtype: 'stock-otherOut-querypanel',
+    xtype: 'stock-otherout-querypanel',
 
-    controller: 'stock-otherOut-querypanel',
-    viewModel: 'stock-otherOut-querypanel',
+    controller: 'stock-otherout-querypanel',
+    viewModel: 'stock-otherout-querypanel',
 
-    viewName: 'stock-otherOut-querypanel',
+    viewName: 'stock-otherout-querypanel',
 
     queryFormItems: [{
         xtype: 'hidden',

+ 1 - 1
frontend/saas-web/app/view/stock/otherOut/QueryPanelController.js

@@ -1,6 +1,6 @@
 Ext.define('saas.view.stock.otherOut.QueryPanelController', {
     extend: 'saas.view.core.query.QueryPanelController',
-    alias: 'controller.stock-otherOut-querypanel',
+    alias: 'controller.stock-otherout-querypanel',
     init: function (form) {
         var me = this;
         this.control({

+ 1 - 1
frontend/saas-web/app/view/stock/otherOut/QueryPanelModel.js

@@ -1,5 +1,5 @@
 Ext.define('saas.view.stock.otherOut.QueryPanelModel', {
     extend: 'saas.view.core.query.QueryPanelModel',
-    alias: 'viewmodel.stock-otherOut-querypanel'
+    alias: 'viewmodel.stock-otherout-querypanel'
 
 });