示例#1
0
		public StateKunde(MainActivity activity)
		{
			// The data
			_mainActivity = activity;
			_person = BusinessLayer.Kunde.Create();
            _fragmentState =  new StateFragmentPersonGeneral (activity,this, 
                new PermissionBundle(
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.READ),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.CREATE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.UPDATE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DELETE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DOWN_UPLOAD )
                ));
            _fragmentState.BtnGeneralFragmentClick ();

			// Set the UI
			GetControlReferences ();
			ResetControls ();
//			_fragmentState.ResetControls ();
            _txtClassName.Text =_mainActivity.Resources.GetString(Resource.String.Kunden)+ ":";
			_list.Adapter = null;
		}
示例#2
0
		public override void BtnGeneralFragmentClick()
		{
			if (_fragmentState.GetType () == typeof(StateFragmentPersonGeneral))
				return;

            _fragmentState = new StateFragmentPersonGeneral (this._mainActivity, this, 
                new PermissionBundle(
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.READ),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.CREATE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.UPDATE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DELETE),
                    MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DOWN_UPLOAD )
                ));

			_fragmentState.BtnGeneralFragmentClick ();

		}
示例#3
0
 public PersonGeneralFragment(int layoutId, MainActivity activity,   StateFragmentPersonGeneral stateFragment)
 {
     this.layoutId = layoutId;
     _stateFragment = stateFragment;
     _activity = activity;
 }
示例#4
0
 public void SetStateFragement (StateFragmentPersonGeneral stateFragment)
 {
     _stateFragment = stateFragment;
 }
示例#5
0
 public PersonGeneralFragment( MainActivity activity,   StateFragmentPersonGeneral stateFragment)
 {
     this.layoutId = UI.Resource.Layout.FrgPersonGeneral;
     _stateFragment = stateFragment;
     _activity = activity;
 }