using DevExpress.XtraEditors; using DevExpress.XtraLayout; using DevExpress.XtraTab; namespace ${NameSpace}.Form { partial class Frm${tableName} { /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { #set($count = 0) #foreach($info in $EntityList) #set($count = $count + 1) this.gridColumn$count = new DevExpress.XtraGrid.Columns.GridColumn(); #end this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); this.tabDataList = new DevExpress.XtraTab.XtraTabPage(); this.tabDataDetail = new DevExpress.XtraTab.XtraTabPage(); this.grdList = new DevExpress.XtraGrid.GridControl(); this.grdListView = new DevExpress.XtraGrid.Views.Grid.GridView(); this.panelControl2 = new DevExpress.XtraEditors.PanelControl(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) #if(${info.controlType}=="LookUpEdit") this.repositoryItem${info.controlName} = new DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit(); #elseif(${info.controlType}=="TreeListLookUpEdit") this.${info.controlName}TreeList = new DevExpress.XtraTreeList.TreeList(); this.repositoryItemTreeList${info.controlName} = new DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit(); this.repositoryItemTreeList${info.controlName}TreeList = new DevExpress.XtraTreeList.TreeList(); #elseif(${info.controlType}=="CheckedComboBoxEdit") this.repositoryItem${info.controlName} = new DevExpress.XtraEditors.Repository.RepositoryItemCheckedComboBoxEdit(); #else ////////////////////// #end this.${info.controlName}=new DevExpress.XtraEditors.${info.controlType}(); this.layoutControlItem$count = new DevExpress.XtraLayout.LayoutControlItem(); #end #end ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) #if(${info.controlType}=="DateEdit") ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}.Properties.CalendarTimeProperties)).BeginInit(); #elseif(${info.controlType}=="LookUpEdit") ((System.ComponentModel.ISupportInitialize)(this.repositoryItem${info.controlName})).BeginInit(); #elseif(${info.controlType}=="TreeListLookUpEdit") ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}TreeList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeList${info.controlName})).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeList${info.controlName}TreeList)).BeginInit(); #elseif(${info.controlType}=="CheckedComboBoxEdit") ((System.ComponentModel.ISupportInitialize)(this.repositoryItem${info.controlName})).BeginInit(); #else ///////////////////////// #end ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem$count)).BeginInit(); #end #end ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); this.xtraTabControl1.SuspendLayout(); this.tabDataList.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).BeginInit(); this.tabDataDetail.SuspendLayout(); this.SuspendLayout(); // layoutControl1 // this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(12, 8); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; layoutControl1.AutoScroll=true; this.layoutControl1.Size = new System.Drawing.Size(605, 363); this.layoutControl1.TabIndex = 6; this.layoutControl1.Text = "layoutControl1"; #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) this.layoutControl1.Controls.Add(this.${info.controlName}); #end #end //TextEdit //DateEdit //SimpleButton //CheckEdit //MemoEdit //PictureEdit //LookUpEdit //ComboBoxEdit #set($count = 0) #set($ylocation = 12) #set($ylocation2 = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) #if(${info.controlType}=="DateEdit") // // txt${ColumnInfo.Name.Alias.ToCapit()} // this.${info.controlName}.EditValue = null; this.${info.controlName}.ImeMode = System.Windows.Forms.ImeMode.Off; this.${info.controlName}.Location = new System.Drawing.Point(112, $ylocation); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Properties.DisplayFormat.FormatString = "G"; this.${info.controlName}.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.${info.controlName}.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.${info.controlName}.Properties.VistaTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton()}); this.${info.controlName}.Size = new System.Drawing.Size(481, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; #elseif(${info.controlType}=="ComboBoxEdit") // // txt${ColumnInfo.Name.Alias.ToCapit()} // this.${info.controlName}.Location = new System.Drawing.Point(112, $ylocation); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.${info.controlName}.Size = new System.Drawing.Size(481, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; #elseif(${info.controlType}=="CheckedComboBoxEdit") // // txt${ColumnInfo.Name.Alias.ToCapit()} // this.${info.controlName}.Location = new System.Drawing.Point(112, $ylocation); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.${info.controlName}.Properties.DisplayMember = "Name"; this.${info.controlName}.Properties.ValueMember = "ID"; this.${info.controlName}.Size = new System.Drawing.Size(932, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; #elseif(${info.controlType}=="LookUpEdit") // // lookUpEdit1 // this.${info.controlName}.Location = new System.Drawing.Point(120, 60); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.${info.controlName}.Properties.DisplayMember = "Name"; this.${info.controlName}.Properties.PopupFilterMode = DevExpress.XtraEditors.PopupFilterMode.Contains; this.${info.controlName}.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.${info.controlName}.Properties.ValueMember = "ID"; this.${info.controlName}.Size = new System.Drawing.Size(932, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; this.${info.controlName}.EditValue = ""; #elseif(${info.controlType}=="TreeListLookUpEdit") // // treeListLookUpEdit1 // this.${info.controlName}.EditValue = ""; this.${info.controlName}.Location = new System.Drawing.Point(120, 84); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.${info.controlName}.Properties.DisplayMember = "Name"; this.${info.controlName}.Properties.TreeList = this.${info.controlName}TreeList; this.${info.controlName}.Properties.ValueMember = "ID"; this.${info.controlName}.Size = new System.Drawing.Size(932, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; // // treeListLookUpEdit1TreeList // this.${info.controlName}TreeList.Location = new System.Drawing.Point(0, 0); this.${info.controlName}TreeList.Name = "${info.controlName}TreeList"; this.${info.controlName}TreeList.OptionsView.ShowIndentAsRowStyle = true; this.${info.controlName}TreeList.ParentFieldName = "PID"; this.${info.controlName}TreeList.Size = new System.Drawing.Size(400, 200); this.${info.controlName}TreeList.TabIndex = 0; #elseif(${info.controlType}=="CheckEdit") // // txt${ColumnInfo.Name.Alias.ToCapit()} // this.${info.controlName}.EditValue = null; this.${info.controlName}.Text ="${info.controlLabelName}" ; this.${info.controlName}.Location = new System.Drawing.Point(112, $ylocation); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Default; this.${info.controlName}.Properties.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; this.${info.controlName}.Size = new System.Drawing.Size(481, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; #else // // txt${ColumnInfo.Name.Alias.ToCapit()} // this.${info.controlName}.Location = new System.Drawing.Point(112, $ylocation); this.${info.controlName}.Name = "${info.controlName}"; this.${info.controlName}.Size = new System.Drawing.Size(481, 20); this.${info.controlName}.StyleController = this.layoutControl1; this.${info.controlName}.TabIndex = $count; #end // // layoutControlItem$count // this.layoutControlItem${count}.Control = this.${info.controlName}; this.layoutControlItem${count}.CustomizationFormText = "${info.controlLabelName}"; this.layoutControlItem${count}.Location = new System.Drawing.Point(0, $ylocation2); this.layoutControlItem${count}.Name = "layoutControlItem${count}"; this.layoutControlItem${count}.Size = new System.Drawing.Size(585, 24); this.layoutControlItem${count}.Text = "${info.controlLabelName}"; this.layoutControlItem${count}.TextSize = new System.Drawing.Size(96, 14); #if(${info.controlType}=="CheckEdit") this.layoutControlItem${count}.TextToControlDistance = 0; this.layoutControlItem${count}.TextVisible = false; #end #set($ylocation = $ylocation + 24) #set($ylocation2 = $ylocation2 + 24) #end #end // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { #set($count = 0) #set($itemString="") #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) #if($count == 1) this.layoutControlItem$count #else ,this.layoutControlItem$count #end #end #end }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(605, 363); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // xtraTabControl1 // this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.xtraTabControl1.Location = new System.Drawing.Point(0, 34); this.xtraTabControl1.Name = "xtraTabControl1"; this.xtraTabControl1.SelectedTabPage = this.tabDataList; this.xtraTabControl1.Size = new System.Drawing.Size(585, 436); this.xtraTabControl1.TabIndex = 1; this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { this.tabDataList, this.tabDataDetail}); // // tabDataList // this.tabDataList.Controls.Add(this.grdList); this.tabDataList.Name = "tabDataList"; this.tabDataList.Size = new System.Drawing.Size(579, 407); this.tabDataList.Text = "数据列表"; // // tabDataDetail // this.tabDataDetail.Controls.Add(this.panelControl2); this.tabDataDetail.Name = "tabDataDetail"; this.tabDataDetail.Size = new System.Drawing.Size(579, 407); this.tabDataDetail.Text = "数据编辑"; // // grdList // this.grdList.Dock = System.Windows.Forms.DockStyle.Fill; this.grdList.Location = new System.Drawing.Point(0, 0); this.grdList.MainView = this.grdListView; this.grdList.Name = "grdList"; this.grdList.Size = new System.Drawing.Size(579, 407); this.grdList.TabIndex = 0; this.grdList.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.grdListView}); // // grdListView // this.grdListView.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { #set($count = 0) #foreach($info in $EntityList) #set($count = $count + 1) this.gridColumn$count, #end }); this.grdListView.OptionsBehavior.Editable = false; this.grdListView.GridControl = this.grdList; this.grdListView.Name = "grdListView"; this.grdListView.OptionsView.ColumnAutoWidth=false; this.grdListView.BestFitColumns(); // // panelControl2 // this.panelControl2.Controls.Add(this.layoutControl1); this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl2.Location = new System.Drawing.Point(0, 0); this.panelControl2.Name = "panelControl2"; this.panelControl2.Size = new System.Drawing.Size(579, 407); this.panelControl2.TabIndex = 0; #set($count = 0) #foreach($info in $EntityList) #if(true) #set($count = $count + 1) #if(${info.controlType}=="LookUpEdit") (this.gridColumn$count).ColumnEdit = this.repositoryItem${info.controlName}; this.repositoryItem${info.controlName}.AutoHeight = false; this.repositoryItem${info.controlName}.DisplayMember = "Name"; this.repositoryItem${info.controlName}.ValueMember = "ID"; this.repositoryItem${info.controlName}.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.repositoryItem${info.controlName}.Name = "repositoryItem${info.controlName}"; #elseif(${info.controlType}=="TreeListLookUpEdit") // repositoryItemTreeListLookUpEdit1 // (this.gridColumn$count).ColumnEdit = this.repositoryItemTreeList${info.controlName}; this.repositoryItemTreeList${info.controlName}.AutoHeight = false; this.repositoryItemTreeList${info.controlName}.DisplayMember = "Name"; this.repositoryItemTreeList${info.controlName}.ValueMember = "ID"; this.repositoryItemTreeList${info.controlName}.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.repositoryItemTreeList${info.controlName}.Name = "repositoryItemTreeList${info.controlName}"; this.repositoryItemTreeList${info.controlName}.TreeList = this.repositoryItemTreeList${info.controlName}TreeList; // // repositoryItemTreeListLookUpEdit1TreeList // this.repositoryItemTreeList${info.controlName}TreeList.Location = new System.Drawing.Point(0, 0); this.repositoryItemTreeList${info.controlName}TreeList.ParentFieldName = "PID"; this.repositoryItemTreeList${info.controlName}TreeList.Name = "repositoryItemTreeList${info.controlName}TreeList"; this.repositoryItemTreeList${info.controlName}TreeList.OptionsView.ShowIndentAsRowStyle = true; this.repositoryItemTreeList${info.controlName}TreeList.Size = new System.Drawing.Size(400, 200); this.repositoryItemTreeList${info.controlName}TreeList.TabIndex = 0; #elseif(${info.controlType}=="DateEdit") (this.gridColumn$count).DisplayFormat.FormatString = "G"; (this.gridColumn$count).DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; #elseif(${info.controlType}=="CheckedComboBoxEdit") (this.gridColumn$count).ColumnEdit = this.repositoryItem${info.controlName}; this.repositoryItem${info.controlName}.AutoHeight = false; this.repositoryItem${info.controlName}.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); this.repositoryItem${info.controlName}.DisplayMember = "Name"; this.repositoryItem${info.controlName}.Name = "repositoryItem${info.controlName}"; this.repositoryItem${info.controlName}.ValueMember = "ID"; #else //////////////////////////////// #end (this.gridColumn$count).Caption = "${info.controlLabelName}"; (this.gridColumn$count).Name = "gridColumn$count"; (this.gridColumn$count).FieldName = "${info.CSharpFieldName}"; #if(${info.isVisible}) (this.gridColumn$count).Visible = true; (this.gridColumn$count).VisibleIndex = $count; #end #end #end // // XtraForm1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1300, 800); this.Controls.Add(this.xtraTabControl1); this.Name = "Frm${tableName}"; this.Text = "Frm${tableName}"; this.Load += new System.EventHandler(this.Frm${tableName}_Load); this.Controls.SetChildIndex(this.xtraTabControl1, 0); #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) #if(${info.controlType}=="DateEdit") ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}.Properties.CalendarTimeProperties)).EndInit(); #elseif(${info.controlType}=="LookUpEdit") ((System.ComponentModel.ISupportInitialize)(this.repositoryItem${info.controlName})).EndInit(); #elseif(${info.controlType}=="TreeListLookUpEdit") ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}TreeList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeList${info.controlName})).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemTreeList${info.controlName}TreeList)).EndInit(); #elseif(${info.controlType}=="CheckedComboBoxEdit") ((System.ComponentModel.ISupportInitialize)(this.repositoryItem${info.controlName})).EndInit(); #else ///////////////////////// #end ((System.ComponentModel.ISupportInitialize)(this.${info.controlName}.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem$count)).EndInit(); #end #end ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); this.xtraTabControl1.ResumeLayout(false); this.tabDataList.ResumeLayout(false); this.tabDataDetail.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.grdList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grdListView)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); this.ResumeLayout(false); } #endregion private XtraTabControl xtraTabControl1; private XtraTabPage tabDataList; private XtraTabPage tabDataDetail; private DevExpress.XtraGrid.GridControl grdList; private DevExpress.XtraGrid.Views.Grid.GridView grdListView; private PanelControl panelControl2; private DevExpress.XtraLayout.LayoutControl layoutControl1; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; #set($count = 0) #foreach($info in $EntityList) #set($count = $count + 1) private DevExpress.XtraGrid.Columns.GridColumn gridColumn$count; #end #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit} ) #set($count = $count + 1) #if(${info.controlType}=="LookUpEdit") private DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit repositoryItem${info.controlName}; #elseif(${info.controlType}=="TreeListLookUpEdit")CheckedComboBoxEdit private DevExpress.XtraTreeList.TreeList ${info.controlName}TreeList; private DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit repositoryItemTreeList${info.controlName}; private DevExpress.XtraTreeList.TreeList repositoryItemTreeList${info.controlName}TreeList; #elseif(${info.controlType}=="CheckedComboBoxEdit") private DevExpress.XtraEditors.Repository.RepositoryItemCheckedComboBoxEdit repositoryItem${info.controlName}; #else /////////////////////////////// #end private DevExpress.XtraEditors.${info.controlType} ${info.controlName}; #end #end #set($count = 0) #foreach($info in $EntityList) #if(${info.isEdit}) #set($count = $count + 1) private DevExpress.XtraLayout.LayoutControlItem layoutControlItem$count; #end #end } }