⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dc0044.js

📁 extjs+oracle+ erpcrm
💻 JS
📖 第 1 页 / 共 2 页
字号:
  Ext.reg("DC0044G", N21.DataComp.DC0044G);
/** 
 * Data Component: DC0044F, Title: Received invoice payments
 */ 

  Ext.ns("N21.DataComp");
  N21.DataComp.DC0044F = Ext.extend(N21.Base.EditForm, {
     fields: new Ext.util.MixedCollection()
    ,dataRecordMeta : N21.DataComp.DC0044G.prototype.dataRecordMeta
    ,layoutItems: new Ext.util.MixedCollection()
    ,initComponent:function() {
       
       this.fields.add("_p_record_status",new Ext.form.Hidden({xtype: "hidden", allowBlank: true, fieldLabel: "record_status", selectOnFocus: false, style: "", name: "_p_record_status"})   );
       this.fields.add("ID", new Ext.form.Hidden ({xtype: "hidden",name:"ID",id:"DC0044F_ID",dataIndex:"ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.ID||"Id",insert_allowed:true,update_allowed:true})   );
       this.fields.add("CLIENT_ID", new Ext.form.Hidden ({xtype: "hidden",name:"CLIENT_ID",id:"DC0044F_CLIENT_ID",dataIndex:"CLIENT_ID",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.CLIENT_ID||"Client_id",insert_allowed:true,update_allowed:true})   );
       this.fields.add("PAYDOCTYPE_CODE", new N21.DataComp.LOV0012({xtype: "LOV0012",selectOnFocus:true,name:"PAYDOCTYPE_CODE",id:"DC0044F_PAYDOCTYPE_CODE",dataIndex:"PAYDOCTYPE_CODE",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.PAYDOCTYPE_CODE||"Paydoctype_code",insert_allowed:true,update_allowed:true})   );
       this.fields.add("DOC_NO", new Ext.form.TextField ({xtype: "textfield",name:"DOC_NO",id:"DC0044F_DOC_NO",dataIndex:"DOC_NO",width:150,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.DOC_NO||"Doc_no",insert_allowed:true,update_allowed:true})   );
       this.fields.add("DOC_DATE", new Ext.form.DateField ({xtype: "datefield",name:"DOC_DATE",id:"DC0044F_DOC_DATE",dataIndex:"DOC_DATE",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.DOC_DATE||"Doc_date",insert_allowed:true,update_allowed:true,format:Ext.DATE_FORMAT})   );
       this.fields.add("BPARTNER_FROM", new Ext.form.Hidden ({xtype: "hidden",name:"BPARTNER_FROM",id:"DC0044F_BPARTNER_FROM",dataIndex:"BPARTNER_FROM",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.BPARTNER_FROM||"Bpartner_from",insert_allowed:true,update_allowed:true})   );
       this.fields.add("BPARTNER_TO", new Ext.form.Hidden ({xtype: "hidden",name:"BPARTNER_TO",id:"DC0044F_BPARTNER_TO",dataIndex:"BPARTNER_TO",width:100,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.BPARTNER_TO||"Bpartner_to",insert_allowed:true,update_allowed:true})   );
       this.fields.add("IS_PAYABLE", new Ext.form.Hidden ({xtype: "hidden",name:"IS_PAYABLE",id:"DC0044F_IS_PAYABLE",dataIndex:"IS_PAYABLE",width:50,allowBlank:false,labelSeparator:":*" ,fieldLabel: this.resourceBundle.FieldLabel.IS_PAYABLE||"Is_payable",insert_allowed:true,update_allowed:true})   );
       this.fields.add("AMOUNT", new Ext.form.NumberField ({xtype: "numberfield",name:"AMOUNT",id:"DC0044F_AMOUNT",dataIndex:"AMOUNT",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.AMOUNT||"Amount",insert_allowed:true,update_allowed:true,decimalPrecision:2,style: "text-align:right;",fieldClass: "field_important_1"})   );
       this.fields.add("CURRENCY", new Ext.form.TextField ({xtype: "textfield",name:"CURRENCY",id:"DC0044F_CURRENCY",dataIndex:"CURRENCY",width:80,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.CURRENCY||"Currency",insert_allowed:true,update_allowed:true})   );
       this.fields.add("NOTES", new Ext.form.TextField ({xtype: "textfield",name:"NOTES",id:"DC0044F_NOTES",dataIndex:"NOTES",width:200,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.NOTES||"Notes",insert_allowed:true,update_allowed:true})   );
       this.fields.add("PAYMNT_ACCT", new N21.DataComp.LOV0025({xtype: "LOV0025",selectOnFocus:true,name:"PAYMNT_ACCT",id:"DC0044F_PAYMNT_ACCT",dataIndex:"PAYMNT_ACCT",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.PAYMNT_ACCT||"Paymnt_acct",insert_allowed:true,update_allowed:true})   );
       this.fields.add("RINV_ID", new Ext.form.Hidden ({xtype: "hidden",name:"RINV_ID",id:"DC0044F_RINV_ID",dataIndex:"RINV_ID",width:100,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.RINV_ID||"Rinv_id",insert_allowed:true,update_allowed:true})   );
       this.fields.add("IS_MULTI_PAYMENT", new Ext.form.Hidden ({xtype: "hidden",name:"IS_MULTI_PAYMENT",id:"DC0044F_IS_MULTI_PAYMENT",dataIndex:"IS_MULTI_PAYMENT",width:50,allowBlank:true,fieldLabel: this.resourceBundle.FieldLabel.IS_MULTI_PAYMENT||"Is_multi_payment",insert_allowed:true,update_allowed:true})   );



       Ext.apply(this, {
           items:[this.fields.get("_p_record_status"),this.fields.get("_p_record_status")
                 ,this.fields.get("ID")
                 ,this.fields.get("CLIENT_ID")
                 ,this.fields.get("PAYDOCTYPE_CODE")
                 ,this.fields.get("DOC_NO")
                 ,this.fields.get("DOC_DATE")
                 ,this.fields.get("BPARTNER_FROM")
                 ,this.fields.get("BPARTNER_TO")
                 ,this.fields.get("IS_PAYABLE")
                 ,this.fields.get("AMOUNT")
                 ,this.fields.get("CURRENCY")
                 ,this.fields.get("NOTES")
                 ,this.fields.get("PAYMNT_ACCT")
                 ,this.fields.get("RINV_ID")
                 ,this.fields.get("IS_MULTI_PAYMENT")
]
          ,border:false
          ,defaults:{labelWidth:110}
          ,frame:true
          ,width: "100%"
          ,dataComponentName:"DC0044F"
          ,firstFocusFieldName:"PAYDOCTYPE_CODE"
          ,toolbarConfig:"STANDARD"
        });

        
       N21.DataComp.DC0044F.superclass.initComponent.apply(this, arguments);
     }

    ,onRender:function() {
       N21.DataComp.DC0044F.superclass.onRender.apply(this, arguments);
     }

    ,newDataRecord:function() {
       return new this.dataRecordMeta({_p_record_status:"insert"
              ,ID:""
              ,CLIENT_ID:""
              ,PAYDOCTYPE_CODE:""
              ,DOC_NO:""
              ,DOC_DATE:""
              ,BPARTNER_FROM:""
              ,BPARTNER_TO:""
              ,IS_PAYABLE:""
              ,IS_RECEIVABLE:""
              ,AMOUNT:""
              ,CURRENCY:""
              ,NOTES:""
              ,CREATEDON:""
              ,CREATEDBY:""
              ,MODIFIEDON:""
              ,MODIFIEDBY:""
              ,PAYMNT_ACCT:""
              ,IS_INSERTED:""
              ,IS_GENERATED:""
              ,IS_APPROVED:""
              ,IS_POSTED:""
              ,ACCDOC_ID:""
              ,IS_PREPAYMENT:""
              ,PREPAY_ACCT:""
              ,RINV_ID:""
              ,IS_MULTI_PAYMENT:""
              ,IINV_ID:""});
     }


  });
  Ext.reg("DC0044F", N21.DataComp.DC0044F);

/** 
 * DataControl: Grid with Edit Form
 * Code: DC0044
 * Title: Received invoice payments
 */ 

  Ext.ns("N21.DataComp");
  N21.DataComp.DC0044 = Ext.extend(N21.Base.GridEditForm, {

     initComponent:function() {
       Ext.apply(this, {
           autoScroll:false
          ,layout:"border"
          ,dataComponentName:"DC0044"
          ,masterName:"DC0044G"
          ,detailName:"DC0044F"
          ,mdLayout:"row"
          ,border: false
          ,items: [
              {xtype: "DC0044G",id: "DC0044G",region:"west"  ,split:true,width:"40%",minWidth:0}
             ,{xtype: "DC0044F",id: "DC0044F",region:"center",split:true,autoScroll:true}
            ]
          ,tbar: new Array(
          new Ext.Toolbar.Button({  id:"tlb_FILTER"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_src.png" ,tooltip:"Apply filter" ,handler: this.executeQuery ,scope :this})
          ,new Ext.Toolbar.Separator()
          ,new Ext.Toolbar.Button({  id:"tlb_SAVE"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_commit.png" ,tooltip:"Save changes <Ctrl+S>" ,handler: this.commitForm ,scope :this})
          ,new Ext.Toolbar.Button({  id:"tlb_NEW"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_new.png" ,tooltip:"Create new record <Ctrl+N>" ,handler: this.createNewRecord ,scope :this})
          ,new Ext.Toolbar.Button({  id:"tlb_DELETE"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_del.png" ,tooltip:"Delete record <Ctrl+D>" ,handler: this.deleteRecord ,scope :this})
          ,new Ext.Toolbar.Separator()
          ,new Ext.Toolbar.Button({  id:"tlb_LIST_EDITOR_MODE"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_upd.png" ,tooltip:"Editor<Enter>, List<Ctrl+Q>" ,handler: this.toggleEditMode ,scope :this})
          ,new Ext.Toolbar.Button({  id:"tlb_REFRESH_RECORD"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/g_rec_refresh.gif" ,tooltip:"Refresh record" ,handler: this.reloadRecord ,scope :this})
          ,new Ext.Toolbar.Separator()
          ,new Ext.Toolbar.Button({  id:"tlb_PREV_REC"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/f_rec_prev.gif" ,tooltip:"Previous record" ,handler: this.goToPrevRecord ,scope :this})
          ,new Ext.Toolbar.Button({  id:"tlb_NEXT_REC"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/f_rec_next.gif" ,tooltip:"Next record" ,handler: this.goToNextRecord ,scope :this})
          ,new Ext.Toolbar.Separator()
          ,new Ext.Toolbar.Button({  id:"tlb_PRINT"  ,xtype:"button" ,cls:"x-btn-icon" ,icon:"_static/icon/print.png" ,tooltip:"Print list" ,handler: this.exportList ,scope :this})
          )
        }); 

       N21.DataComp.DC0044.superclass.initComponent.apply(this, arguments);
     } 
  });
  Ext.reg("DC0044", N21.DataComp.DC0044);



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -