예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Set Page title
            this.Page.Title = "MARS - Vehicles Lease";
            this.UserControlPageInformation.LastUpdateLabel.Visible = false;

            if (!Page.IsPostBack)
            {
                //Set page informtion on usercontrol
                // base.SetPageInformationTitle("VehiclesLease", this.UserControlPageInformation, false);

                SessionHandler.ClearMappingVehiclesLeaseSessions();
                //Settings for pager control
                //Set Default Sort Order
                SessionHandler.MappingVehiclesLeaseSortOrder = "ASC";
                //Set current Page number and size
                SessionHandler.MappingVehiclesLeaseCurrentPageNumber = 1;
                SessionHandler.MappingVehiclesLeasePageSize          = 10;

                //Load Data
                SessionHandler.MappingSelectedCountryOwner     = "-1";
                SessionHandler.MappingSelectedCountryRent      = "-1";
                SessionHandler.MappingSelectedStartDate        = "-1";
                SessionHandler.MappingSelectedModelDescription = "-1";

                RebindModelDescriptions();

                LoadVehiclesLease();
            }

            if (!this.Page.ClientScript.IsClientScriptIncludeRegistered("MappingValidation"))
            {
                this.Page.ClientScript.RegisterClientScriptInclude("MappingValidation", this.ResolveUrl("~/JScript/MappingValidation.js"));
            }
        }
예제 #2
0
        protected void LoadVehiclesLease()
        {
            string country_owner     = SessionHandler.MappingSelectedCountryOwner;
            string country_rent      = SessionHandler.MappingSelectedCountryRent;
            string start_date        = SessionHandler.MappingSelectedStartDate;
            string model_description = SessionHandler.MappingSelectedModelDescription;

            SessionHandler.ClearMappingVehiclesLeaseSessions();
            this.MappingVehiclesLeaseGridview.LoadVehiclesLeaseControl();
            this.UpdatePanelVehiclesLease.Update();
        }
예제 #3
0
        protected void LoadSerials_Filter(object sender, System.EventArgs e)
        {
            string country_owner     = SessionHandler.MappingSelectedCountryOwner;
            string country_rent      = SessionHandler.MappingSelectedCountryRent;
            string start_date        = SessionHandler.MappingSelectedStartDate;
            string model_description = SessionHandler.MappingSelectedModelDescription;

            SessionHandler.ClearMappingVehiclesLeaseSessions();
            this.MappingVehiclesLeaseGridview.LoadVehiclesLeaseControl();
            RebindModelDescriptions();
            this.UpdatePanelVehiclesLease.Update();
        }