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

            if (uclAdminEdit.IsNew)
            {
                LABOR_TYPE laborNew = new LABOR_TYPE();
                laborNew = uclAdminEdit.ReadLaborType(laborNew);
                LocalOrg().LaborList.Add(SQMModelMgr.CreateLaborType(entities, plant, laborNew, SessionManager.UserContext.UserName()));
            }
            else
            {
                LABOR_TYPE labor = (LABOR_TYPE)LocalOrg().EditObject;
                labor = SQMModelMgr.LookupLaborType(entities, (decimal)labor.COMPANY_ID, (decimal)labor.BUS_ORG_ID, (decimal)labor.PLANT_ID, (decimal)labor.LABOR_TYP_ID, "", false);
                labor = uclAdminEdit.ReadLaborType(labor);
                SQMModelMgr.UpdateLaborType(entities, labor, SessionManager.UserContext.UserName());
                LocalOrg().LaborList[LocalOrg().LaborList.FindIndex(d => (d.LABOR_TYP_ID == labor.LABOR_TYP_ID))] = labor;
            }

            LocalOrg().EditObject = null;
            DoLaborList();
            pnlAdminEdit.Visible = false;
        }