#region
|
|
using System;
|
using System.ComponentModel;
|
using System.Drawing;
|
using System.Windows.Forms;
|
using CSFrameworkV5.Business;
|
using CSFrameworkV5.Business.BLL_Permission;
|
using CSFrameworkV5.Common;
|
using CSFrameworkV5.Library;
|
using CSFrameworkV5.Library.CommonClass;
|
using DevExpress.Data;
|
using DevExpress.Utils;
|
using DevExpress.XtraEditors;
|
using DevExpress.XtraEditors.Controls;
|
using DevExpress.XtraEditors.Repository;
|
using DevExpress.XtraGrid;
|
using DevExpress.XtraGrid.Columns;
|
using DevExpress.XtraGrid.Views.Base;
|
using DevExpress.XtraGrid.Views.Grid;
|
using DevExpress.XtraTab;
|
|
#endregion
|
|
namespace CSFrameworkV5.GSTEST {
|
public class FrmtestT : frmBaseDataDictionary {
|
private blltest _BLLInstance;
|
|
//private RoleActionsView _RoleActionsView;
|
private bllPermission _Permission;
|
private GridColumn colDHA001;
|
private GridColumn colDHA002;
|
private GridColumn colDHA003;
|
private GridColumn colDHA004;
|
private GridColumn colDHA007;
|
private GridControl gcRoleUsers;
|
private GridControl gcSummary;
|
private GridColumn gridDHB002;
|
private GridColumn gridDHB003;
|
private GridView gridView1;
|
private GridView gridView2;
|
private GridView gridView3;
|
private GridView gvRoleUsers;
|
private GridView gvSummary;
|
private LabelControl labelControl1;
|
private LabelControl labelControl2;
|
private LabelControl labelControl3;
|
private LabelControl labelControl4;
|
private LabelControl labelControl5;
|
private LabelControl labelControl6;
|
private LabelControl labelControl7;
|
private LabelControl labelControl8;
|
private LabelControl lblObjectID;
|
private RepositoryItemLookUpEdit lookUser;
|
private TextEdit textEdit7;
|
private TextEdit textEdit8;
|
private XtraTabPage tpAssignUser;
|
private TextEdit txtCREATEUSER;
|
private TextEdit txtDHA001;
|
private TextEdit txtDHA004;
|
private TextEdit txtDHA007;
|
private TextEdit txtDHA008;
|
private TextEdit txtDHA018;
|
private TextEdit txtDHA019;
|
private XtraTabControl xtraTabControl1;
|
|
private void FrmtestT_Load(object sender, EventArgs e) {
|
InitializeForm();
|
SetLanguage();
|
}
|
|
private void InitializeComponent() {
|
var resources = new ComponentResourceManager(typeof(FrmtestT));
|
gcSummary = new GridControl();
|
gvSummary = new GridView();
|
colDHA001 = new GridColumn();
|
colDHA002 = new GridColumn();
|
colDHA003 = new GridColumn();
|
colDHA004 = new GridColumn();
|
colDHA007 = new GridColumn();
|
textEdit7 = new TextEdit();
|
labelControl7 = new LabelControl();
|
textEdit8 = new TextEdit();
|
labelControl8 = new LabelControl();
|
txtDHA019 = new TextEdit();
|
labelControl5 = new LabelControl();
|
txtDHA004 = new TextEdit();
|
labelControl6 = new LabelControl();
|
txtDHA018 = new TextEdit();
|
labelControl4 = new LabelControl();
|
txtCREATEUSER = new TextEdit();
|
labelControl3 = new LabelControl();
|
txtDHA008 = new TextEdit();
|
labelControl2 = new LabelControl();
|
txtDHA007 = new TextEdit();
|
labelControl1 = new LabelControl();
|
txtDHA001 = new TextEdit();
|
lblObjectID = new LabelControl();
|
gridView1 = new GridView();
|
gridView2 = new GridView();
|
tpAssignUser = new XtraTabPage();
|
gcRoleUsers = new GridControl();
|
gvRoleUsers = new GridView();
|
gridDHB002 = new GridColumn();
|
gridDHB003 = new GridColumn();
|
lookUser = new RepositoryItemLookUpEdit();
|
gridView3 = new GridView();
|
xtraTabControl1 = new XtraTabControl();
|
tpSummary.SuspendLayout();
|
pnlSummary.SuspendLayout();
|
((ISupportInitialize)tcBusiness).BeginInit();
|
tcBusiness.SuspendLayout();
|
tpDetail.SuspendLayout();
|
((ISupportInitialize)gcNavigator).BeginInit();
|
gcNavigator.SuspendLayout();
|
((ISupportInitialize)pictureBox1).BeginInit();
|
((ISupportInitialize)gcSummary).BeginInit();
|
((ISupportInitialize)gvSummary).BeginInit();
|
((ISupportInitialize)textEdit7.Properties).BeginInit();
|
((ISupportInitialize)textEdit8.Properties).BeginInit();
|
((ISupportInitialize)txtDHA019.Properties).BeginInit();
|
((ISupportInitialize)txtDHA004.Properties).BeginInit();
|
((ISupportInitialize)txtDHA018.Properties).BeginInit();
|
((ISupportInitialize)txtCREATEUSER.Properties).BeginInit();
|
((ISupportInitialize)txtDHA008.Properties).BeginInit();
|
((ISupportInitialize)txtDHA007.Properties).BeginInit();
|
((ISupportInitialize)txtDHA001.Properties).BeginInit();
|
((ISupportInitialize)gridView1).BeginInit();
|
((ISupportInitialize)gridView2).BeginInit();
|
tpAssignUser.SuspendLayout();
|
((ISupportInitialize)gcRoleUsers).BeginInit();
|
((ISupportInitialize)gvRoleUsers).BeginInit();
|
((ISupportInitialize)lookUser).BeginInit();
|
((ISupportInitialize)gridView3).BeginInit();
|
((ISupportInitialize)xtraTabControl1).BeginInit();
|
xtraTabControl1.SuspendLayout();
|
SuspendLayout();
|
//
|
// tpSummary
|
//
|
tpSummary.Appearance.PageClient.BackColor = SystemColors.Control;
|
tpSummary.Appearance.PageClient.Options.UseBackColor = true;
|
tpSummary.Controls.Add(gcSummary);
|
tpSummary.ImageOptions.Image = (Image)resources.GetObject("tpSummary.ImageOptions.Image");
|
tpSummary.Size = new Size(1217, 758);
|
//
|
// pnlSummary
|
//
|
pnlSummary.Location = new Point(2, 4);
|
pnlSummary.Size = new Size(1219, 790);
|
//
|
// tcBusiness
|
//
|
tcBusiness.SelectedTabPage = tpSummary;
|
tcBusiness.Size = new Size(1219, 790);
|
//
|
// tpDetail
|
//
|
tpDetail.Appearance.PageClient.BackColor = SystemColors.Control;
|
tpDetail.Appearance.PageClient.Options.UseBackColor = true;
|
tpDetail.Controls.Add(textEdit7);
|
tpDetail.Controls.Add(labelControl7);
|
tpDetail.Controls.Add(textEdit8);
|
tpDetail.Controls.Add(labelControl8);
|
tpDetail.Controls.Add(txtDHA019);
|
tpDetail.Controls.Add(labelControl5);
|
tpDetail.Controls.Add(txtDHA004);
|
tpDetail.Controls.Add(labelControl6);
|
tpDetail.Controls.Add(txtDHA018);
|
tpDetail.Controls.Add(labelControl4);
|
tpDetail.Controls.Add(txtCREATEUSER);
|
tpDetail.Controls.Add(labelControl3);
|
tpDetail.Controls.Add(txtDHA008);
|
tpDetail.Controls.Add(labelControl2);
|
tpDetail.Controls.Add(txtDHA007);
|
tpDetail.Controls.Add(labelControl1);
|
tpDetail.Controls.Add(txtDHA001);
|
tpDetail.Controls.Add(lblObjectID);
|
tpDetail.Controls.Add(xtraTabControl1);
|
tpDetail.ImageOptions.Image = (Image)resources.GetObject("tpDetail.ImageOptions.Image");
|
tpDetail.Size = new Size(1217, 758);
|
//
|
// gcNavigator
|
//
|
gcNavigator.Appearance.BackColor = Color.FromArgb(64, 64, 64);
|
gcNavigator.Appearance.Options.UseBackColor = true;
|
//
|
// controlNavigatorSummary
|
//
|
controlNavigatorSummary.Buttons.Append.Visible = false;
|
controlNavigatorSummary.Buttons.CancelEdit.Visible = false;
|
controlNavigatorSummary.Buttons.Edit.Visible = false;
|
controlNavigatorSummary.Buttons.EndEdit.Visible = false;
|
controlNavigatorSummary.Buttons.NextPage.Visible = false;
|
controlNavigatorSummary.Buttons.PrevPage.Visible = false;
|
controlNavigatorSummary.Buttons.Remove.Visible = false;
|
//
|
// gcSummary
|
//
|
gcSummary.Dock = DockStyle.Fill;
|
gcSummary.EmbeddedNavigator.Margin = new Padding(3, 4, 3, 4);
|
gcSummary.Location = new Point(0, 0);
|
gcSummary.MainView = gvSummary;
|
gcSummary.Margin = new Padding(3, 4, 3, 4);
|
gcSummary.Name = "gcSummary";
|
gcSummary.Size = new Size(1217, 758);
|
gcSummary.TabIndex = 2;
|
gcSummary.ViewCollection.AddRange(new BaseView[] {
|
gvSummary
|
});
|
//
|
// gvSummary
|
//
|
gvSummary.ColumnPanelRowHeight = 32;
|
gvSummary.Columns.AddRange(new[] {
|
colDHA001,
|
colDHA002,
|
colDHA003,
|
colDHA004,
|
colDHA007
|
});
|
gvSummary.DetailHeight = 450;
|
gvSummary.FixedLineWidth = 3;
|
gvSummary.GridControl = gcSummary;
|
gvSummary.Name = "gvSummary";
|
gvSummary.OptionsBehavior.Editable = false;
|
gvSummary.OptionsSelection.EnableAppearanceFocusedCell = false;
|
gvSummary.OptionsView.ColumnAutoWidth = false;
|
gvSummary.OptionsView.ShowFooter = true;
|
gvSummary.OptionsView.ShowGroupPanel = false;
|
gvSummary.OptionsView.ShowIndicator = false;
|
gvSummary.RowHeight = 32;
|
//
|
// colDHA001
|
//
|
colDHA001.Caption = "到货单号";
|
colDHA001.FieldName = "DHA001";
|
colDHA001.MinWidth = 23;
|
colDHA001.Name = "colDHA001";
|
colDHA001.Summary.AddRange(new GridSummaryItem[] {
|
new GridColumnSummaryItem(SummaryItemType.Count, "RoleID", "记录数:{0}")
|
});
|
colDHA001.Visible = true;
|
colDHA001.VisibleIndex = 0;
|
colDHA001.Width = 222;
|
//
|
// colDHA002
|
//
|
colDHA002.Caption = "单据日期";
|
colDHA002.FieldName = "DHA002";
|
colDHA002.MinWidth = 23;
|
colDHA002.Name = "colDHA002";
|
colDHA002.Visible = true;
|
colDHA002.VisibleIndex = 1;
|
colDHA002.Width = 275;
|
//
|
// colDHA003
|
//
|
colDHA003.Caption = "单据类型";
|
colDHA003.FieldName = "DHA003";
|
colDHA003.MinWidth = 23;
|
colDHA003.Name = "colDHA003";
|
colDHA003.Visible = true;
|
colDHA003.VisibleIndex = 2;
|
colDHA003.Width = 118;
|
//
|
// colDHA004
|
//
|
colDHA004.Caption = "到货日期";
|
colDHA004.FieldName = "DHA004";
|
colDHA004.MinWidth = 23;
|
colDHA004.Name = "colDHA004";
|
colDHA004.Visible = true;
|
colDHA004.VisibleIndex = 3;
|
colDHA004.Width = 97;
|
//
|
// colDHA007
|
//
|
colDHA007.Caption = "供应商编号";
|
colDHA007.FieldName = "DHA007";
|
colDHA007.MinWidth = 23;
|
colDHA007.Name = "colDHA007";
|
colDHA007.Visible = true;
|
colDHA007.VisibleIndex = 4;
|
colDHA007.Width = 197;
|
//
|
// textEdit7
|
//
|
textEdit7.EditValue = "";
|
textEdit7.Location = new Point(767, 78);
|
textEdit7.Name = "textEdit7";
|
textEdit7.Size = new Size(125, 24);
|
textEdit7.TabIndex = 103;
|
//
|
// labelControl7
|
//
|
labelControl7.Location = new Point(688, 81);
|
labelControl7.Margin = new Padding(3, 4, 3, 4);
|
labelControl7.Name = "labelControl7";
|
labelControl7.Size = new Size(75, 18);
|
labelControl7.TabIndex = 102;
|
labelControl7.Text = "仓库名称:";
|
//
|
// textEdit8
|
//
|
textEdit8.EditValue = "";
|
textEdit8.Location = new Point(545, 75);
|
textEdit8.Name = "textEdit8";
|
textEdit8.Size = new Size(125, 24);
|
textEdit8.TabIndex = 101;
|
//
|
// labelControl8
|
//
|
labelControl8.Location = new Point(466, 78);
|
labelControl8.Margin = new Padding(3, 4, 3, 4);
|
labelControl8.Name = "labelControl8";
|
labelControl8.Size = new Size(75, 18);
|
labelControl8.TabIndex = 100;
|
labelControl8.Text = "仓库编号:";
|
//
|
// txtDHA019
|
//
|
txtDHA019.EditValue = "";
|
txtDHA019.Location = new Point(319, 72);
|
txtDHA019.Name = "txtDHA019";
|
txtDHA019.Size = new Size(125, 24);
|
txtDHA019.TabIndex = 99;
|
//
|
// labelControl5
|
//
|
labelControl5.Location = new Point(224, 75);
|
labelControl5.Margin = new Padding(3, 4, 3, 4);
|
labelControl5.Name = "labelControl5";
|
labelControl5.Size = new Size(75, 18);
|
labelControl5.TabIndex = 98;
|
labelControl5.Text = "审核时间:";
|
//
|
// txtDHA004
|
//
|
txtDHA004.EditValue = "";
|
txtDHA004.Location = new Point(88, 69);
|
txtDHA004.Name = "txtDHA004";
|
txtDHA004.Size = new Size(125, 24);
|
txtDHA004.TabIndex = 97;
|
//
|
// labelControl6
|
//
|
labelControl6.Location = new Point(16, 72);
|
labelControl6.Margin = new Padding(3, 4, 3, 4);
|
labelControl6.Name = "labelControl6";
|
labelControl6.Size = new Size(75, 18);
|
labelControl6.TabIndex = 96;
|
labelControl6.Text = "来料时间:";
|
//
|
// txtDHA018
|
//
|
txtDHA018.EditValue = "";
|
txtDHA018.Location = new Point(1005, 37);
|
txtDHA018.Name = "txtDHA018";
|
txtDHA018.Size = new Size(125, 24);
|
txtDHA018.TabIndex = 95;
|
//
|
// labelControl4
|
//
|
labelControl4.Location = new Point(924, 40);
|
labelControl4.Margin = new Padding(3, 4, 3, 4);
|
labelControl4.Name = "labelControl4";
|
labelControl4.Size = new Size(75, 18);
|
labelControl4.TabIndex = 94;
|
labelControl4.Text = "审核人员:";
|
//
|
// txtCREATEUSER
|
//
|
txtCREATEUSER.EditValue = "";
|
txtCREATEUSER.Location = new Point(768, 37);
|
txtCREATEUSER.Name = "txtCREATEUSER";
|
txtCREATEUSER.Size = new Size(125, 24);
|
txtCREATEUSER.TabIndex = 93;
|
//
|
// labelControl3
|
//
|
labelControl3.Location = new Point(690, 40);
|
labelControl3.Margin = new Padding(3, 4, 3, 4);
|
labelControl3.Name = "labelControl3";
|
labelControl3.Size = new Size(75, 18);
|
labelControl3.TabIndex = 92;
|
labelControl3.Text = "录入人员:";
|
//
|
// txtDHA008
|
//
|
txtDHA008.EditValue = "";
|
txtDHA008.Location = new Point(544, 34);
|
txtDHA008.Name = "txtDHA008";
|
txtDHA008.Size = new Size(125, 24);
|
txtDHA008.TabIndex = 91;
|
//
|
// labelControl2
|
//
|
labelControl2.Location = new Point(451, 37);
|
labelControl2.Margin = new Padding(3, 4, 3, 4);
|
labelControl2.Name = "labelControl2";
|
labelControl2.Size = new Size(90, 18);
|
labelControl2.TabIndex = 90;
|
labelControl2.Text = "供应商名称:";
|
//
|
// txtDHA007
|
//
|
txtDHA007.EditValue = "";
|
txtDHA007.Location = new Point(319, 31);
|
txtDHA007.Name = "txtDHA007";
|
txtDHA007.Size = new Size(125, 24);
|
txtDHA007.TabIndex = 89;
|
//
|
// labelControl1
|
//
|
labelControl1.Location = new Point(224, 34);
|
labelControl1.Margin = new Padding(3, 4, 3, 4);
|
labelControl1.Name = "labelControl1";
|
labelControl1.Size = new Size(90, 18);
|
labelControl1.TabIndex = 88;
|
labelControl1.Text = "供应商编号:";
|
//
|
// txtDHA001
|
//
|
txtDHA001.EditValue = "";
|
txtDHA001.Location = new Point(88, 28);
|
txtDHA001.Name = "txtDHA001";
|
txtDHA001.Size = new Size(125, 24);
|
txtDHA001.TabIndex = 87;
|
//
|
// lblObjectID
|
//
|
lblObjectID.Location = new Point(16, 31);
|
lblObjectID.Margin = new Padding(3, 4, 3, 4);
|
lblObjectID.Name = "lblObjectID";
|
lblObjectID.Size = new Size(75, 18);
|
lblObjectID.TabIndex = 86;
|
lblObjectID.Text = "到货单号:";
|
//
|
// gridView1
|
//
|
gridView1.Name = "gridView1";
|
//
|
// gridView2
|
//
|
gridView2.Name = "gridView2";
|
//
|
// tpAssignUser
|
//
|
tpAssignUser.Controls.Add(gcRoleUsers);
|
tpAssignUser.ImageOptions.Image = (Image)resources.GetObject("tpAssignUser.ImageOptions.Image");
|
tpAssignUser.Margin = new Padding(3, 4, 3, 4);
|
tpAssignUser.Name = "tpAssignUser";
|
tpAssignUser.Size = new Size(1215, 548);
|
tpAssignUser.Text = "到货明细";
|
//
|
// gcRoleUsers
|
//
|
gcRoleUsers.Dock = DockStyle.Fill;
|
gcRoleUsers.EmbeddedNavigator.Buttons.Append.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.Edit.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.NextPage.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.PrevPage.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Buttons.Remove.Visible = false;
|
gcRoleUsers.EmbeddedNavigator.Margin = new Padding(3, 4, 3, 4);
|
gcRoleUsers.Location = new Point(0, 0);
|
gcRoleUsers.MainView = gvRoleUsers;
|
gcRoleUsers.Margin = new Padding(3, 4, 3, 4);
|
gcRoleUsers.Name = "gcRoleUsers";
|
gcRoleUsers.RepositoryItems.AddRange(new RepositoryItem[] {
|
lookUser
|
});
|
gcRoleUsers.Size = new Size(1215, 548);
|
gcRoleUsers.TabIndex = 6;
|
gcRoleUsers.ViewCollection.AddRange(new BaseView[] {
|
gvRoleUsers,
|
gridView3
|
});
|
//
|
// gvRoleUsers
|
//
|
gvRoleUsers.ColumnPanelRowHeight = 32;
|
gvRoleUsers.Columns.AddRange(new[] {
|
gridDHB002,
|
gridDHB003
|
});
|
gvRoleUsers.DetailHeight = 450;
|
gvRoleUsers.FixedLineWidth = 3;
|
gvRoleUsers.GridControl = gcRoleUsers;
|
gvRoleUsers.Name = "gvRoleUsers";
|
gvRoleUsers.OptionsBehavior.Editable = false;
|
gvRoleUsers.OptionsBehavior.ReadOnly = true;
|
gvRoleUsers.OptionsSelection.EnableAppearanceFocusedCell = false;
|
gvRoleUsers.OptionsView.ColumnAutoWidth = false;
|
gvRoleUsers.OptionsView.ShowFooter = true;
|
gvRoleUsers.OptionsView.ShowGroupPanel = false;
|
//
|
// gridDHB002
|
//
|
gridDHB002.AppearanceCell.BackColor = Color.FromArgb(224, 224, 224);
|
gridDHB002.AppearanceCell.Options.UseBackColor = true;
|
gridDHB002.Caption = "序号";
|
gridDHB002.FieldName = "DHB002";
|
gridDHB002.MinWidth = 23;
|
gridDHB002.Name = "gridDHB002";
|
gridDHB002.Visible = true;
|
gridDHB002.VisibleIndex = 0;
|
gridDHB002.Width = 114;
|
//
|
// gridDHB003
|
//
|
gridDHB003.AppearanceCell.BackColor = Color.FromArgb(224, 224, 224);
|
gridDHB003.AppearanceCell.Options.UseBackColor = true;
|
gridDHB003.Caption = "物料编码";
|
gridDHB003.ColumnEdit = lookUser;
|
gridDHB003.FieldName = "DHB003";
|
gridDHB003.MinWidth = 23;
|
gridDHB003.Name = "gridDHB003";
|
gridDHB003.Summary.AddRange(new GridSummaryItem[] {
|
new GridColumnSummaryItem(SummaryItemType.Count)
|
});
|
gridDHB003.Visible = true;
|
gridDHB003.VisibleIndex = 1;
|
gridDHB003.Width = 184;
|
//
|
// lookUser
|
//
|
lookUser.AutoHeight = false;
|
lookUser.Buttons.AddRange(new[] {
|
new EditorButton(ButtonPredefines.Combo)
|
});
|
lookUser.Columns.AddRange(new[] {
|
new LookUpColumnInfo("Account", "帐号", 80, FormatType.None, "", true, HorzAlignment.Default,
|
ColumnSortOrder.None, DefaultBoolean.Default),
|
new LookUpColumnInfo("UserName", "姓名", 220, FormatType.None, "", true, HorzAlignment.Default,
|
ColumnSortOrder.None, DefaultBoolean.Default)
|
});
|
lookUser.DropDownRows = 20;
|
lookUser.Name = "lookUser";
|
lookUser.NullText = "";
|
lookUser.PopupWidth = 229;
|
//
|
// gridView3
|
//
|
gridView3.GridControl = gcRoleUsers;
|
gridView3.Name = "gridView3";
|
//
|
// xtraTabControl1
|
//
|
xtraTabControl1.Dock = DockStyle.Bottom;
|
xtraTabControl1.Location = new Point(0, 178);
|
xtraTabControl1.Margin = new Padding(3, 4, 3, 4);
|
xtraTabControl1.Name = "xtraTabControl1";
|
xtraTabControl1.SelectedTabPage = tpAssignUser;
|
xtraTabControl1.Size = new Size(1217, 580);
|
xtraTabControl1.TabIndex = 85;
|
xtraTabControl1.TabPages.AddRange(new[] {
|
tpAssignUser
|
});
|
//
|
// FrmtestT
|
//
|
AutoScaleDimensions = new SizeF(8F, 18F);
|
ClientSize = new Size(1223, 798);
|
Name = "FrmtestT";
|
Text = "到货单2";
|
Load += FrmtestT_Load;
|
tpSummary.ResumeLayout(false);
|
pnlSummary.ResumeLayout(false);
|
((ISupportInitialize)tcBusiness).EndInit();
|
tcBusiness.ResumeLayout(false);
|
tpDetail.ResumeLayout(false);
|
tpDetail.PerformLayout();
|
((ISupportInitialize)gcNavigator).EndInit();
|
gcNavigator.ResumeLayout(false);
|
gcNavigator.PerformLayout();
|
((ISupportInitialize)pictureBox1).EndInit();
|
((ISupportInitialize)gcSummary).EndInit();
|
((ISupportInitialize)gvSummary).EndInit();
|
((ISupportInitialize)textEdit7.Properties).EndInit();
|
((ISupportInitialize)textEdit8.Properties).EndInit();
|
((ISupportInitialize)txtDHA019.Properties).EndInit();
|
((ISupportInitialize)txtDHA004.Properties).EndInit();
|
((ISupportInitialize)txtDHA018.Properties).EndInit();
|
((ISupportInitialize)txtCREATEUSER.Properties).EndInit();
|
((ISupportInitialize)txtDHA008.Properties).EndInit();
|
((ISupportInitialize)txtDHA007.Properties).EndInit();
|
((ISupportInitialize)txtDHA001.Properties).EndInit();
|
((ISupportInitialize)gridView1).EndInit();
|
((ISupportInitialize)gridView2).EndInit();
|
tpAssignUser.ResumeLayout(false);
|
((ISupportInitialize)gcRoleUsers).EndInit();
|
((ISupportInitialize)gvRoleUsers).EndInit();
|
((ISupportInitialize)lookUser).EndInit();
|
((ISupportInitialize)gridView3).EndInit();
|
((ISupportInitialize)xtraTabControl1).EndInit();
|
xtraTabControl1.ResumeLayout(false);
|
ResumeLayout(false);
|
PerformLayout();
|
}
|
|
protected override void InitializeForm() {
|
try {
|
base.InitializeForm();
|
|
_SummaryView = new DevGridView(gvSummary);
|
_ActiveEditor = txtDHA001;
|
_DetailGroupControl = tpDetail;
|
gvSummary.DoubleClick += OnGridViewDoubleClick; //主表DoubleClict
|
|
frmGridCustomize.RegisterGrid(gvSummary);
|
DevStyle.SetGridControlLayout(gcSummary, false); //表格设置
|
DevStyle.SetSummaryGridViewLayout(gvSummary);
|
|
_BLLInstance = new blltest();
|
_Permission = new bllPermission();
|
//_RoleActionsView = new RoleActionsView(tvRoleActions);
|
|
ShowSummary(); //下载显示数据.
|
//DataBinder.BindingLookupEditDataSource(lookUser, DataDictCache.Cache.User, PURDHA.UserName, tb_MyUser.Account);
|
|
//BindingSummaryNavigator(controlNavigatorSummary, gcSummary); //Summary导航条.
|
ShowSummaryPage(true); //一切初始化完毕後显示SummaryPage
|
}
|
catch (Exception ex) {
|
Msg.ShowException(ex);
|
}
|
}
|
|
private void ShowSummary() {
|
try {
|
_BLLInstance.GetSummaryData(true); //调用业务逻辑类的GetSummaryData()方法获取数据
|
DoBindingSummaryGrid(_BLLInstance.SummaryTable); //绑定主表的Grid
|
ShowSummaryPage(true); //显示Summary页面.
|
}
|
catch (Exception ex) {
|
Msg.ShowException(ex);
|
}
|
}
|
}
|
}
|