Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        _log = new ClsChangeLog("MasterSchedule");
        // FIX for hiding calendar when a date is selected
        Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "hideCalendar", "function hideCalendar(cb) { cb.hide(); }", true);

        // FIX for css not loading when a calendar is inside of an updatepanel+multiview (+tabcontrol?)
        string   url        = Page.ClientScript.GetWebResourceUrl(typeof(ClientCssResourceAttribute), "AjaxControlToolkit.Calendar.Calendar.css");
        HtmlLink myHtmlLink = new HtmlLink();

        myHtmlLink.Href = url;
        myHtmlLink.Attributes.Add("rel", "stylesheet");
        myHtmlLink.Attributes.Add("type", "text/css");
        Page.Header.Controls.Add(myHtmlLink);
        rowFilter = "Select * From ChangeLog_Report ORDER BY DateSubmitted";

        if (!Page.IsPostBack)
        {
            DataSet ds = _log.FillDs();
            //gvNeedsApproval.DataSource = ds.Tables[0].DefaultView;
            //lblRecordCount.Text = ds.Tables[0].Rows.Count.ToString();
            //gvNeedsApproval.DataBind();

            BindLists(ds);
            CreateFilteredReport();
            currentPageNumber = 1;
        }
    }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            log        = new ClsChangeLog("MasterSchedule");
            logProcess = new ClsChangeLogProcessing("MasterSchedule");
            ClsUserControl userControl = new ClsUserControl("MasterSchedule");

            this._isVisible = userControl.UserInProcess((string)Session["deltaid"], this.ProcessName);
            SetVisibility();
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        ClsChangeLog log = new ClsChangeLog("MasterSchedule");

        log.LogId = int.Parse(Request.QueryString["changelogid"]);
        DataView view = log.FillDs().Tables[0].DefaultView;

        view.RowFilter = "LogID = " + Request.QueryString["changelogid"];

        this.gvNeedsApproval.DataSource = view;
        this.gvNeedsApproval.DataBind();
    }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        log = new ClsChangeLog("MasterSchedule");

        if (!Page.IsPostBack)
        {
            ViewState["rowfilter"] = string.Empty;
            DataSet ds = new DataSet();
            BindGvNeedsApproval(ds);
            BindLists(ds);
        }
    }
Ejemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        section = new ClsTempSection("MasterSchedule");
        log     = new ClsChangeLog("MasterSchedule");
        Session["usepreview"] = false;
        //if (divchairoption.Visible) { Session["usepreview"] = radSubmitOptions.SelectedIndex == 1; }

        btnAddNewCourse.Attributes.Add("OnClick", "getList();");
        if (!IsPostBack)
        {
            if (string.IsNullOrEmpty(Request.QueryString["NewSectionID"]))
            {
                divchairoption.Visible     = Helpers.UserIsDivisionChair();
                MultiView1.ActiveViewIndex = 0;
                section.AddRecord();

                Response.Redirect(string.Format("~/add.aspx?NewSectionID={0}", section.SectionId.ToString()));
                //Session["NewSectionID"] = section.SectionID;
                SectionID.Value      = section.SectionId.ToString();
                Faculty1.sectionGUID = section.SectionId;
            }
            else
            {
                Guid tempGuid = new Guid(Request.QueryString["NewSectionID"]);
                section.SectionId       = tempGuid;
                Session["NewSectionID"] = section.SectionId;
                Faculty1.sectionGUID    = tempGuid;
            }
        }
        else
        {
            section.SectionId = (Guid)Session["NewSectionID"];
            section.GetRecord();
            Guid tempGuid = new Guid(Request.QueryString["NewSectionID"]);
            Faculty1.sectionGUID = tempGuid;
        }

        if (Request.Form["__EVENTTARGET"] != null)
        {
            if (Request.Form["__EVENTTARGET"] == "TargetItem")
            {
                btnAddNewCourse_Click();
            }
        }
    }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     section = new ClsTempSection("MasterSchedule");
     log     = new ClsChangeLog("MasterSchedule");
     Session["usepreview"] = false;
     if (divchairoption.Visible)
     {
         Session["usepreview"] = radSubmitOptions.SelectedIndex == 1;
     }
     if (!IsPostBack)
     {
         divchairoption.Visible     = Helpers.UserIsDivisionChair();
         MultiView1.ActiveViewIndex = 0;
         section.AddRecord();
         Session["NewSectionID"] = section.SectionId;
     }
     else
     {
         section.SectionId = (Guid)Session["NewSectionID"];
         section.GetRecord();
     }
 }
Ejemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        section = new ClsTempSection("MasterSchedule");
        log     = new ClsChangeLog("MasterSchedule");
        Session["usepreview"] = false;
        //if (divchairoption.Visible) { Session["usepreview"] = radSubmitOptions.SelectedIndex == 1; }

        if (!IsPostBack)
        {
            if (string.IsNullOrEmpty(Request.QueryString["NewSectionID"]))
            {
                divchairoption.Visible           = Helpers.UserIsDivisionChair();
                mvSubmissionForm.ActiveViewIndex = 0;
                section.AddRecord();

                Response.Redirect(string.Format("~/add.aspx?NewSectionID={0}", section.SectionId.ToString()));
                //Session["NewSectionID"] = section.SectionID;
                SectionID.Value      = section.SectionId.ToString();
                Faculty1.sectionGUID = section.SectionId;
            }
            else
            {
                Guid tempGuid = new Guid(Request.QueryString["NewSectionID"]);
                section.SectionId       = tempGuid;
                Session["NewSectionID"] = section.SectionId;
                Faculty1.sectionGUID    = tempGuid;
            }
        }
        else
        {
            section.SectionId = (Guid)Session["NewSectionID"];
            section.GetRecord();
            Guid tempGuid = new Guid(Request.QueryString["NewSectionID"]);
            Faculty1.sectionGUID = tempGuid;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     log         = new ClsChangeLog("MasterSchedule");
     logProcess  = new ClsChangeLogProcessing("MasterSchedule");
     nextProcess = new ClsChangeLogProcessing("MasterSchedule");
 }
Ejemplo n.º 9
0
 /// <summary>
 ///     Use this constructor to initialize the event arguments
 ///     object with the custom event fields
 /// </summary>
 public RecordAddEventArgs(ClsChangeLog changeLog)
 {
     _changeLog = changeLog;
 }