Example #1
0
 private void ViewCars()
 {
     if (this.lbId.Text.Trim().Length > 0 && this.lbId.Text.Trim() != "0")
     {
         TabPage tb = this.tabControl1.TabPages[1];
         if (tb.Controls.Count == 0)
         {
             CarSearch cars = new CarSearch();
             cars.AllowCustomeSearch = false;
             cars.Dock           = DockStyle.Fill;
             cars.InitBeforeAdd += new ProcessObjectDelegate(cars_InitBeforeAdd);
             tb.Controls.Add(cars);
             cars.ClearColumns();
             cars.CreateColumn("号码号牌", 80);
             cars.CreateColumn("车辆类型", 80);
             cars.CreateColumn("车辆品牌", 80);
             cars.CreateColumn("车辆状态", 80);
             cars.CreateColumn("是否教练车");
             cars.CreateColumn("是否考试车");
             // this.Width += 30;
             cars.SetConditions("i_ownerid='" + this.lbId.Text + "'");
         }
     }
 }
Example #2
0
        private void ViewCars()
        {
            if (this.lbId.Text.Trim().Length > 0 && this.lbId.Text.Trim() != "0")
            {
                TabPage tb = this.tabControl1.TabPages[1];
                if (tb.Controls.Count == 0)
                {
                    CarSearch cars = new CarSearch();
                    cars.AllowCustomeSearch = false;
                    cars.Dock = DockStyle.Fill;
                    cars.InitBeforeAdd += new ProcessObjectDelegate(cars_InitBeforeAdd);
                    tb.Controls.Add(cars);
                    cars.ClearColumns();
                    cars.CreateColumn("�������", 80);
                    cars.CreateColumn("��������", 80);
                    cars.CreateColumn("����Ʒ��", 80);
                    cars.CreateColumn("����״̬",80);
                    cars.CreateColumn("�Ƿ������");
                    cars.CreateColumn("�Ƿ��Գ�");
                   // this.Width += 30;
                    cars.SetConditions("i_ownerid='" + this.lbId.Text + "'");

                }
            }
        }