Beispiel #1
0
        void InitProperties()
        {
            int.TryParse(Request.QueryString["weekid"], out _weekID);
            int.TryParse(Request.QueryString["hallid"], out _hallID);

            if (int.TryParse(Request.QueryString["sid"], out _sessionID))
            {
                if (!IsPostBack)
                {
                    InitStartupData();
                }
            }
            else
            {
                if (!IsPostBack)
                {
                    StartDatePicker.Value = string.IsNullOrEmpty(Request.QueryString["stdate"]) ? null : (Convert.ToDateTime(Request.QueryString["stdate"]) as DateTime?);
                }
            }

            _week.GetSingleWorkWeek(_weekID);

            StartDatePicker.MinDate = _week.StartDate;
            StartDatePicker.MaxDate = _week.EndDate;

            EndDatePicker.MinDate = _week.StartDate;
            EndDatePicker.MaxDate = _week.EndDate;
        }
 void InitStartup()
 {
     ValidateQueryString();
     Master.PermissionCode = "4BBC3ED8-6048-4414-8098-A5CB0E6898C9";
     _workWeek.GetSingleWorkWeek(_workWeekID);
     MenuPlaceHolder.Visible = !_workWeek.IsApproved;
     ConfigurePriceGrid(_workWeek.IsApproved);
 }
Beispiel #3
0
        void InitStartup()
        {
            ValidateQueryString();
            Master.PermissionCode = "E8DC1B5F-502B-44BB-AA13-92FB00F2607A";

            _workWeek.GetSingleWorkWeek(_workWeekID);
            var approves = new WorkWeekApprove().ListWorkWeekApproves(_workWeekID);

            MenuPlaceHolder.Visible = !_workWeek.IsApproved &&
                                      approves.Exists(u => u.UserID == Master.UserObject.ID) &&
                                      !approves.Exists(u => u.UserID == Master.UserObject.ID && u.IsApproved == true);

            ApprovesGridView.DataSource = approves;
            ApprovesGridView.DataBind();
        }
Beispiel #4
0
        void InitStartUp()
        {
            ValidateQueryString();

            Master.PermissionCode = "187D9A2E-E056-4CF6-A7D6-83B7E244A4A0";

            _workWeek.GetSingleWorkWeek(WorkWeekID);

            MovieScheduler.Start = _workWeek.StartDate;

            IsApproved = _workWeek.IsApproved;

            if (IsApproved)
            {
                DisableScheduler();
            }
        }
Beispiel #5
0
        private void InitProperties()
        {
            int.TryParse(Request.QueryString["weekid"], out WID);
            int.TryParse(Request.QueryString["hallid"], out HID);

            if (long.TryParse(Request.QueryString["sid"], out SID))
            {
                if (!IsPostBack)
                {
                    InitStartupData();
                }
            }
            else
            {
                if (!IsPostBack)
                {
                    StartDatePicker.Value = string.IsNullOrEmpty(Request.QueryString["stdate"]) ? null : (Convert.ToDateTime(Request.QueryString["stdate"]) as DateTime?);
                }
            }

            w.GetSingleWorkWeek(WID);

            h = h.ListHalls(HID, null).First();
            var str = new StringBuilder();

            str.AppendFormat("<input type=\"hidden\" id=\"HFWeekStart\" value=\"{0}\"/>", w.StartDate);
            str.AppendFormat("<input type=\"hidden\" id=\"HFWeekEnd\" value=\"{0}\"/>", w.EndDate);
            str.AppendFormat("<input type=\"hidden\" id=\"HFCleanupTime\" value=\"{0}\"/>", h.CleanupTime);
            str.AppendFormat("<input type=\"hidden\" id=\"HFAdvTime\" value=\"{0}\"/>", h.AdvTime);
            str.AppendFormat("<input type=\"hidden\" id=\"HFLanguage\" value=\"{0}\"/>", Resources.RequiredLanguage);
            str.AppendFormat("<input type=\"hidden\" id=\"HFFormat\" value=\"{0}\"/>", Resources.RequiredFormat);

            HeaderHF.Text = str.ToString();

            StartDatePicker.MinDate = w.StartDate;
            StartDatePicker.MaxDate = w.EndDate;

            EndDatePicker.MinDate = w.StartDate;
            EndDatePicker.MaxDate = w.EndDate;
        }
        void InitStartUp()
        {
            ValidateQueryString();

            Master.PermissionCode = "B016DC17-BE06-4CAE-89DE-BC62B3C23486";
            _workWeek.GetSingleWorkWeek(_workWeekID);

            MovieScheduler.LimitInterval.Start = _workWeek.StartDate;
            MovieScheduler.LimitInterval.End   = _workWeek.EndDate.AddDays(1);

            _isApproved = _workWeek.IsApproved;

            if (_isApproved)
            {
                DisableScheduler();
            }

            if (!IsPostBack)
            {
                MovieScheduler.Start = _workWeek.StartDate;
            }
        }