Exemple #1
0
        private void ViewOut()
        {
            TabPage tb = this.tabControl1.TabPages[2];

            if (tb.Controls.Count == 0)
            {
                CarOutSearch outs = new CarOutSearch();
                outs.AllowCustomeSearch = false;
                outs.Dock           = DockStyle.Fill;
                outs.InitBeforeAdd += new ProcessObjectDelegate(outs_InitBeforeAdd);
                tb.Controls.Add(outs);
                outs.ClearColumns();
                outs.CreateColumn("号码号牌", 80);
                outs.CreateColumn("出车时间", 140);
                outs.CreateColumn("出车原因");
                // this.Width += 30;
                outs.SetConditions("c_hmhp='" + this.txtHmhp.Text.Trim() + "'");
            }
        }
Exemple #2
0
 private void ViewOut()
 {
     TabPage tb = this.tabControl1.TabPages[2];
     if (tb.Controls.Count == 0)
     {
         CarOutSearch outs = new CarOutSearch();
         outs.AllowCustomeSearch = false;
         outs.Dock = DockStyle.Fill;
         outs.InitBeforeAdd += new ProcessObjectDelegate(outs_InitBeforeAdd);
         tb.Controls.Add(outs);
         outs.ClearColumns();
         outs.CreateColumn("�������", 80);
         outs.CreateColumn("����ʱ��", 140);
         outs.CreateColumn("����ԭ��");
         // this.Width += 30;
         outs.SetConditions("c_hmhp='" + this.txtHmhp.Text.Trim() + "'");
     }
 }