コード例 #1
0
		private void getSystemConfig ()
		{
			TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostCouldNotGetData, new TCSelector(notGetDataConfig));
			TCGlobals.getInstance.isAtScreenConfig = true;
			TCGlobals.getInstance.isNoGetConfiged = true;

			TCConfigHelper configHelper = new TCConfigHelper (this);
			configHelper.Delegate = this;
			configHelper.getSystemConfig ();
		}
コード例 #2
0
		public void getConfigFail (TCConfigHelper helper)
		{
			TCGlobals.getInstance.isAtScreenConfig = false;
			noticeNotRetrieveData ();
		}
コード例 #3
0
		public void finishGetConfigRequest (TCConfigHelper helper)
		{
			this.loadingView.dismiss ();
		}
コード例 #4
0
		public void getConfigSuccess (TCConfigHelper helper, SystemDTO sysConfig)
		{
			MApplication.getInstance ().systemConfig = sysConfig;
			TCGlobals.getInstance.isNoGetConfiged = false;

			string strStartDate = "";
			string strEndDate = "";

			if (MApplication.getInstance ().isConsultant && this.bookingInfo.Status == (int)CoreSystem.Constants.STATUS.Requested && bookingInfo.Type == (int)CoreSystem.Constants.TALKNOWTYPE.ASAP) {
				strStartDate = MUtils.dateTimeToString (CoreSystem.Utils.getDateTimeNow(MApplication.getInstance().timezoneName).AddSeconds(sysConfig.minimumLeadTime * 60), MUtils.kFormatDateTimeDefaultPlatform);
				strEndDate = MUtils.dateTimeToString (CoreSystem.Utils.getDateTimeNow(MApplication.getInstance().timezoneName).AddSeconds((sysConfig.minimumLeadTime + sysConfig.minimumBooking) * 60), MUtils.kFormatDateTimeDefaultPlatform);
			} else {
				strStartDate = MUtils.stringDateToString (bookingInfo.StartTime, MUtils.kFormatDateTimeDefaultPlatform);
				strEndDate = MUtils.stringDateToString (bookingInfo.EndTime, MUtils.kFormatDateTimeDefaultPlatform);
			}
				
			this.lbStartTime.Text = strStartDate;
			this.lbEndTime.Text = strEndDate;
		}
コード例 #5
0
		public void beginGetConfigRequest (TCConfigHelper helper)
		{
			this.loadingView.show ();
		}