protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CalendarControlStartPeriod.SelectedDate = Common.CurrentClientDate(Session).AddDays(-31);
                CalendarControlEndPeriod.SelectedDate   = Common.CurrentClientDate(Session);

                MaterialSet.CheckMaterialClosures(ControlObjectContext, Page);
                LedgerSet.CheckLedgerClosures(ControlObjectContext, Page);
                LedgerBookingCodeSet.CheckLedgerBookingCodeClosures(ControlObjectContext, Page);
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CalendarControlStartDate.SelectedDate = Common.CurrentClientDate(Session).AddDays(-31);
                CalendarControlEndDate.SelectedDate   = Common.CurrentClientDate(Session);
                ButtonSearch_Click(null, null);

                // check if we are actual with material closures
                MaterialSet.CheckMaterialClosures(ControlObjectContext, Page);

                // get the parent description
                ModelTMSContainer _ControlObjectContext = new ModelTMSContainer(Session["CustomerConnectString"].ToString(), Session);
                EntityKey         TempKey = new EntityKey("ModelTMSContainer.MaterialSet", "Id", Guid.Parse(Request.Params["Id"]));
                Material          TempObj = _ControlObjectContext.GetObjectByKey(TempKey) as Material;
                LabelObjectName.Text = TempObj.Description;
            }
        }