Пример #1
0
        public string UpdateZone(string strDivision, string strIdZone, string strCveZone, string strZone, string strObservations)
        {
            Boolean bRespost = false;
            string  sResp    = "";


            if (!ExistZonaCveID(strDivision, strIdZone, strCveZone, strZone))
            {
                Class.Catalogos.CatZone clsCatZone = new Class.Catalogos.CatZone();
                clsCatZone.strDivision    = strDivision;
                clsCatZone.intIdZone      = int.Parse(strIdZone);
                clsCatZone.strCveZone     = strCveZone;
                clsCatZone.strZone        = strZone;
                clsCatZone.strObservation = strObservations;
                clsCatZone.intActivo      = 1;
                bRespost = clsCatZone.UpdateZone();

                if (bRespost)
                {
                    sResp = "1-La información se guardo exitosamente!";
                }
                else
                {
                    sResp = "0-Ocurrio un error al intentar guardar la información de la zona!";
                }
            }
            else
            {
                sResp = "0-La descripción o clave ya existen para otra zona!";
            }
            return(sResp);
        }