Beispiel #1
0
 void cars_InitBeforeAdd(ref object entity)
 {
     CarInfo tmp = new CarInfo();
     tmp.OwnerId = this.lbId.Text;
     entity= tmp;
     //throw new Exception("The method or operation is not implemented.");
 }
Beispiel #2
0
        public static AbstractPrinterContent PrintCarInfo(CarInfo car)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("col1");
            dt.Columns.Add("col2");
            dt.Columns.Add("col3");
            dt.Columns.Add("col4");
            dt.Columns.Add("col5");
            dt.Columns.Add("col6");
            dt.Rows.Add(new string[] {"�������",car.Hmhp,"����ʶ����",
                car.Identify,"��������",car.Fdjh });
            dt.Rows.Add(new string[] {"����Ʒ��",car.PinPai,"��������",
                car.CarType,"����",car.OwnerName });
            dt.Rows.Add(new string[] {"������ɫ",car.FirstColor+car.SecondColor+car.ThirdColor,"����״̬",
                car.State,"����������",car.InsuranceDate });
            dt.Rows.Add(new string[] {"�������",car.YearCheckDate,"ת������",
                car.ZrDate,"·�ѹ�������",car.RoadFeeBuyDate });
            dt.Rows.Add(new string[] {"��ͬǩ������",car.ContractDate,"��ͬǩ����",
                car.ContractPerson,"�Ƿ������",car.IsTeacherCar });

            dt.Rows.Add(new string[] {"�Ƿ��Գ�",car.IsExamCar,"",
                "","","" });

            return DataTablePrinterContent.BuildAbstractPrinterContent(dt,new int[]{120,80,120,80,120},car.Hmhp+"������Ϣ",false);
        }
Beispiel #3
0
        public static void BindCars(ComboBox cb, bool search)
        {
            cb.DropDownStyle = ComboBoxStyle.DropDownList;
            ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryListAll(typeof(CarInfo));
            if (search)
            {
                CarInfo car = new CarInfo();
                car.Hmhp = "--��ѡ��--";
                lists.Add(car);
            }
            if (lists.Count > 0)
            {

                //this.cbGroup
                cb.DataSource = lists;
                cb.DisplayMember = "�������";
                cb.ValueMember = "�������";
                cb.SelectedIndex = 0;
            }
        }
Beispiel #4
0
        public static void BindCars(ComboBox cb, bool search)
        {
            cb.DropDownStyle = ComboBoxStyle.DropDownList;
            ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryListAll(typeof(CarInfo));

            if (search)
            {
                CarInfo car = new CarInfo();
                car.Hmhp = "--ÇëÑ¡Ôñ--";
                lists.Add(car);
            }
            if (lists.Count > 0)
            {
                //this.cbGroup
                cb.DataSource    = lists;
                cb.DisplayMember = "ºÅÂëºÅÅÆ";
                cb.ValueMember   = "ºÅÂëºÅÅÆ";
                cb.SelectedIndex = 0;
            }
        }