Пример #1
0
        public SellerForm()
        {
            InitializeComponent();
            State = ClassLibrary.JFormState.Insert;
            JSellerTicketTypes types = new JSellerTicketTypes();

            types.SetComboBox(jComType);
        }
Пример #2
0
        private void LoadData(int PCode)
        {
            SellerTicket.JSellerTicket objSeller = new SellerTicket.JSellerTicket();
            _Code = PCode;
            objSeller.GetData(_Code);
            txtStationName.Tag = objSeller.StationCode;
            Station.JStation station = new Station.JStation(objSeller.StationCode);
            Zone.JZone       zone    = new Zone.JZone(station.ZoneCode);
            txtStationName.Text = zone.Name + " - " + station.Name;

            txtAddress.Text = objSeller.Adress;
            txtTel.Text     = objSeller.Tel;
            txtLat.Text     = objSeller.lat.ToString();
            txtLongs.Text   = objSeller.longs.ToString();
            txtTel.Text     = objSeller.Tel;
            JSellerTicketTypes types = new JSellerTicketTypes();

            types.SetComboBox(jComType, objSeller.Type);
            LoadSellers();
        }