private bool Changing;                                              // a flag to know if the user is able to change something or just read 
 public TransactionDialog(FragmentActivity activity,BusinessLayer.Person person, BusinessLayer.Transaction transaction, bool ChangePermission): base(activity)
 {
     _context = activity;
     _transaction = transaction;
     _person = person;
     _person.FillAddressen(Utilities.GetCurrentLanguage(MainActivity._mainActivity), MainActivity.User);
     Changing = ChangePermission;
 }
		public void TVMainRowSelected(BusinessLayer.Person person)
		{
			// Fill the main Controls of the page
			_person = person;
			FillControls (person);
			// Fill the childview controls

		}
        public void Initialize(BusinessLayer.Person kunde, BusinessLayer.Transaction transaction)
        {
            _person = kunde;
            _person.FillAddressen(UI.Language.GetLanguageCode(), Application._user);  
            _transaction = transaction;

           
                
        }
        public void Initialize(BusinessLayer.Person kunde, BusinessLayer.Transaction transaction, BusinessLayer.Position position, BusinessLayer.Artikel artikel)
        {
            _kunde = kunde;
            _transaction = transaction;
            _tempPosition = position;
            _article = artikel;

            // set the modus
            if (position == null)
                this._modus = EditMode.INSERT;
            else
                this._modus = EditMode.UPDATE;
            
        }
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////
        ///
        /// Constructors
        ///
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////

        #region Constructors

        /// Purpose: Get the Person want to draw the chart of it ->
        //          -> Get the UmsatzData of the person -> 
        public ShinobiChartDataSource(BusinessLayer.Person person)
        {
            _person = person;
            dataPoints = new List<SChartDataPoint>();
            GetData();
        }
Example #6
0
        public GoogleMapFragment(int layoutId, MainActivity activity,   BusinessLayer.Person person, StateFragmentMap stateFragmentMap)
        {
            this.layoutId = layoutId;
            _person = person;
            _activity = activity;
            _stateFragmentMap = stateFragmentMap;

        }
Example #7
0
        public GoogleMapFragment( MainActivity activity,   BusinessLayer.Person person, StateFragmentMap stateFragmentMap )
        {
            this.layoutId = UI.Resource.Layout.FrgMap;
            _person = person;
            _activity = activity;
            _stateFragmentMap = stateFragmentMap;

        }
Example #8
0
        public ChartFragment(int layoutId, MainActivity activity,   BusinessLayer.Person person,  StateFragmentChart stateFragment , BusinessLayer.User user)
        {

            this.layoutId = layoutId;
            _person = person;
            _activity = activity;
            _user = user;
            _stateFragment = stateFragment;

        }
Example #9
0
        public ChartFragment( MainActivity activity,   BusinessLayer.Person person, ref StateFragmentChart stateFragment , BusinessLayer.User user)
        {
            this.layoutId = UI.Resource.Layout.FrgChart;
            _person = person;
            _activity = activity;
            _user = user;
            _stateFragment = stateFragment;

        }
Example #10
0
 public BestellungFragment(int layoutId, MainActivity activity,   BusinessLayer.Person person, StateFragmentBestellung stateFragment , BusinessLayer.User user, PermissionBundle permission)
 {
     //ansprechpartnern = ansprechpartnern;
     _stateFragment = stateFragment;
     _activity = activity;
     this.layoutId = layoutId;
     _person = person;
     _user = user;
     this.permission = permission;
 }
        /// <summary>
        /// fill Kunde
        /// </summary>
        /// <param name="country">The Country to fill the controls.</param>
        public void UpdateKunde(BusinessLayer.Kunde kunde)
        {
            if (kunde != null)
            {
                TxtKunde.Text = kunde.Name;
                _person = kunde;
            }

        }