private void FInvShipImp_Load(object sender, System.EventArgs e) { _infoForm = ApplicationRun.GetInfoForm(); UserControl.UIStyleBuilder.FormUI(this); #region 初始化Grid UserControl.UIStyleBuilder.GridUI(this.ultraGridContent); _tmpTable = new DataTable(); _tmpTable.Columns.Clear(); _tmpTable.Columns.Add("ShipNo", typeof(string)); _tmpTable.Columns.Add("Seq", typeof(string)); _tmpTable.Columns.Add("ShipType", typeof(string)); _tmpTable.Columns.Add("PartnerCode", typeof(string)); _tmpTable.Columns.Add("PartnerDesc", typeof(string)); _tmpTable.Columns.Add("CustomerOrderNo", typeof(string)); _tmpTable.Columns.Add("ShipMethod", typeof(string)); _tmpTable.Columns.Add("ShipDate", typeof(string)); //_tmpTable.Columns.Add( "产品别", typeof( string ) ); _tmpTable.Columns.Add("ItemCode", typeof(string)); _tmpTable.Columns.Add("ShipQty", typeof(string)); _tmpTable.Columns.Add("PrintDate", typeof(string)); ultraGridContent.DataSource = _tmpTable; //this.ultraGridContent.DisplayLayout.Bands[0].Columns["打单日期"].Hidden = true; this.txtFileName.InnerTextBox.Multiline = false; #endregion }
public static FInfoForm GetInfoForm() { if (infoForm == null) { BenQGuru.eMES.Client.Service.ApplicationService.Current().MianWindows.MessageForm.Controls.Clear(); BenQGuru.eMES.Client.Service.ApplicationService.Current().MianWindows.MessageForm.Refresh(); infoForm = new FInfoForm(); infoForm.TopLevel = false; infoForm.Height = BenQGuru.eMES.Client.Service.ApplicationService.Current().MianWindows.MessageForm.Height; infoForm.Width = BenQGuru.eMES.Client.Service.ApplicationService.Current().MianWindows.MessageForm.Width; infoForm.Dock = DockStyle.Fill; BenQGuru.eMES.Client.Service.ApplicationService.Current().MianWindows.MessageForm.Controls.Add(infoForm); infoForm.Show(); } else { //Amoi,Laws Lu,2005/08/01,注释 // if (!infoForm.Visible) // { // infoForm=new FInfoForm(); // infoForm.Show(); // } //EndAmoi infoForm.Focus(); infoForm.Show(); } return(infoForm); }
public static FInfoForm GetInfoForm() { if (infoForm == null) { BenQGuru.eMES.Client.Service.ApplicationService.Current().MainWindows.MessageForm.Controls.Clear(); BenQGuru.eMES.Client.Service.ApplicationService.Current().MainWindows.MessageForm.Refresh(); infoForm = new FInfoForm(); infoForm.TopLevel = false; infoForm.Height = BenQGuru.eMES.Client.Service.ApplicationService.Current().MainWindows.MessageForm.Height; infoForm.Width = BenQGuru.eMES.Client.Service.ApplicationService.Current().MainWindows.MessageForm.Width; infoForm.Dock = DockStyle.Fill; infoForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); BenQGuru.eMES.Client.Service.ApplicationService.Current().MainWindows.MessageForm.Controls.Add(infoForm); infoForm.Show(); } else { //Amoi,Laws Lu,2005/08/01,注释 // if (!infoForm.Visible) // { // infoForm=new FInfoForm(); // infoForm.Show(); // } //EndAmoi infoForm.Focus(); infoForm.Show(); } return(infoForm); }
public FInvRecCheck() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); UserControl.UIStyleBuilder.FormUI(this); _infoForm = ApplicationRun.GetInfoForm(); _domainDataProvider = ApplicationService.Current().DataProvider; this._facade = new InventoryFacade(this.DataProvider); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // }
private void FInvReceive_Load(object sender, System.EventArgs e) { _infoForm = ApplicationRun.GetInfoForm(); UserControl.UIStyleBuilder.FormUI(this); this.txtRecNo.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; #region 初始化Grid UserControl.UIStyleBuilder.GridUI(this.ultraGridContent); _tmpTable = new DataTable(); _tmpTable.Columns.Clear(); _tmpTable.Columns.Add("*", typeof(bool)); _tmpTable.Columns.Add("MoCode", typeof(string)); _tmpTable.Columns.Add("NO", typeof(string)); _tmpTable.Columns.Add("SEQ", typeof(int)); _tmpTable.Columns.Add("ModelCode", typeof(string)); _tmpTable.Columns.Add("ItemCode", typeof(string)); _tmpTable.Columns.Add("ItemDesc", typeof(string)); _tmpTable.Columns.Add("PlayQty", typeof(string)); _tmpTable.Columns.Add("ActQty", typeof(string)); _tmpTable.Columns.Add("MOPlanQty", typeof(string)); _tmpTable.Columns.Add("MOActQty", typeof(string)); BindGrid(); #endregion //入库单类型 this.cbxType.ComboBoxData.Items.Clear(); object[] types = new BenQGuru.eMES.BaseSetting.SystemSettingFacade(this.DataProvider).GetParametersByParameterGroup("INVRECEIVE"); if (types != null && types.Length > 0) { foreach (object obj in types) { BenQGuru.eMES.Domain.BaseSetting.Parameter param = obj as BenQGuru.eMES.Domain.BaseSetting.Parameter; if (obj != null) { this.cbxType.ComboBoxData.Items.Add(param.ParameterCode); } } if (this.cbxType.ComboBoxData.Items.Count > 0) { this.cbxType.ComboBoxData.SelectedIndex = 0; } } //产品别列表 BindModel(this.DataProvider, this.cbxModel); }