/// <summary> /// 选择时间 /// </summary> /// <returns>1成功 -1失败</returns> protected virtual int ChooseDateTime() { Neusoft.FrameWork.WinForms.Forms.BaseForm f; f = new Neusoft.FrameWork.WinForms.Forms.BaseForm(); ucChooseTime ucTime = new ucChooseTime(); ucTime.OnEndChooseDateTime += new ucChooseTime.myDelegateGetDateTime(ucTime_OnEndChooseDateTime); ucTime.BeginDate = this.DtBegin; ucTime.EndDate = this.DtEnd; ucTime.IsBeginDateEdit = false; ucTime.Dock = System.Windows.Forms.DockStyle.Fill; f.Controls.Add(ucTime); f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; f.Size = new Size(295, 200); f.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; f.BackColor = this.Parent.BackColor; f.Text = "选择日结时间"; f.ShowDialog(); return(1); }
/// <summary> /// 显示bank控件 /// </summary> private void ShowBank() { Neusoft.FrameWork.WinForms.Forms.BaseForm f; f = new Neusoft.FrameWork.WinForms.Forms.BaseForm(); ucBank Bank = new ucBank(); Bank.Dock = System.Windows.Forms.DockStyle.Fill; f.Controls.Add(Bank); Bank.Bank = this.bank; f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; f.Size = new System.Drawing.Size(295, 240); f.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; f.Text = "选择银行"; f.ShowDialog(); }
/// <summary> /// 显示bank控件 /// </summary> private void ShowBank() { Neusoft.FrameWork.WinForms.Forms.BaseForm f; f = new Neusoft.FrameWork.WinForms.Forms.BaseForm(); ucBank Bank = new ucBank(); Bank.Dock = System.Windows.Forms.DockStyle.Fill; f.Controls.Add(Bank); Bank.Bank = this.bank; f.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; f.Size = new Size(295, 240); // ft.Location = this.PointToScreen(new Point(this.Width/2+this.Left ,this.Height+this.Top)); f.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; f.BackColor = this.Parent.BackColor; f.Text = "选择银行"; f.ShowDialog(); }