Esempio n. 1
0
        public string AddAliasName()
        {
            AliasNameManager manager = new AliasNameManager();
            AliasNameModel   model   = new AliasNameModel();

            model.BOId      = Request["BOID"];
            model.Name      = Request["NAME"];
            model.AppDomain = Request["APPDOMAIN"];
            if (manager.Exist(model))
            {
                return("NO");
            }
            else
            {
                try
                {
                    manager.Add(model);
                    return("OK");
                }
                catch
                {
                    return("false");
                }
            }
        }
Esempio n. 2
0
        public string UpdateAliasName()
        {
            AliasNameManager manager = new AliasNameManager();
            AliasNameModel   model   = new AliasNameModel();

            model.BOId       = Request["BOID"];
            model.Name       = Request["NAME"];
            model.AppDomain  = Request["APPDOMAIN"];
            model.CreatUser  = Request["CREATUSER"];
            model.UploadDate = System.DateTime.Parse(Request["UPLOADDATE"]);
            if (manager.Exist(model))
            {
                return("NO");
            }
            else
            {
                try
                {
                    manager.Update(model);
                    return("OK");
                }
                catch
                {
                    return("false");
                }
            }
        }
Esempio n. 3
0
        public string DelAliasNameByID()
        {
            AliasNameManager manager = new AliasNameManager();
            AliasNameModel   model   = new AliasNameModel();

            try
            {
                model.BOId      = Request["BOID"];
                model.AppDomain = Request["AppDomain"];
                manager.Delete(model);
                return("OK");
            }
            catch
            {
                return("false");
            }
        }