Ejemplo n.º 1
0
        public ActionResult Search(GroundedMatrixModel postModel)
        {
            PopulateSecurityExtended();
            GroundedMatrixModel groundedMatrixModel = new GroundedMatrixModel();
            int? locationTypeCS  = Convert.ToInt32(postModel.HfSelectedSection);
            bool includeBlank    = false;
            int? majorLocationID = SecurityExtended.LocationId;

            groundedMatrixModel.DataTableLocationDDl    = GetLocationDDL(false, locationTypeCS, majorLocationID);
            groundedMatrixModel.DataTableGroundedMatrix = GetTankGroundedMatrix(majorLocationID, locationTypeCS);
            return(View("Index", groundedMatrixModel));
        }
Ejemplo n.º 2
0
        // GET: /Grounded Matrix/
        public ActionResult Index()
        {
            PopulateSecurityExtended();

            GroundedMatrixModel groundedMatrixModel = new GroundedMatrixModel();

            bool includeBlank     = false;
            int? majorLocationID  = SecurityExtended.LocationId;
            int? locationTypeCS   = 7;
            int? selectedLocation = null;

            groundedMatrixModel.DataTableLocationDDl = GetLocationDDL(includeBlank, locationTypeCS, majorLocationID);

            if (groundedMatrixModel.DataTableLocationDDl.Rows.Count > 0)
            {
                selectedLocation = Convert.ToInt32(groundedMatrixModel.DataTableLocationDDl.Rows[0]["LocationID"]);
            }

            groundedMatrixModel.DataTableGroundedMatrix = GetTankGroundedMatrix(majorLocationID, selectedLocation);

            return(View(groundedMatrixModel));
        }