protected void SaveLine()
        {
            PLANT plant = (PLANT)SessionManager.EffLocation.Plant;
            bool  success;

            if (uclAdminEdit.IsNew)
            {
                PLANT_LINE lineNew = new PLANT_LINE();
                lineNew = uclAdminEdit.ReadPlantLine(lineNew);
                SQMModelMgr.CreatePlantLine(entities, plant, lineNew, SessionManager.UserContext.UserName());
                // plant.PLANT_LINE.Load();
            }
            else
            {
                PLANT_LINE line = (PLANT_LINE)LocalOrg().EditObject;
                line = SQMModelMgr.LookupPlantLine(entities, line.PLANT_ID, line.PLANT_LINE_ID, "", false);
                line = uclAdminEdit.ReadPlantLine(line);
                PLANT_LINE lineExisting = SQMModelMgr.UpdatePlantLine(entities, line, SessionManager.UserContext.UserName());
                //PLANT_LINE lineExisting = SQMModelMgr.FindPlantLine(entities, plant, line.PLANT_LINE_ID, "", false);
                lineExisting.PLANT_LINE_NAME = line.PLANT_LINE_NAME;
                lineExisting.DOWNTIME_RATE   = line.DOWNTIME_RATE;
                lineExisting.STATUS          = line.STATUS;
            }

            SessionManager.EffLocation.Plant = plant;
            LocalOrg().EditObject            = null;
            DoLineList();
            pnlAdminEdit.Visible = false;
        }