Пример #1
0
        public static string EditExperiance(string action, string id, string experience_id, string responsibility, string office, string years)
        {
            string result = null;

            wcf.parti.Service1 _parti = new wcf.parti.Service1();
            if ((experience_id != "" && responsibility != "" && office != "" && years != "") || (action == "del"))
            {
                string json_str = _parti.EditExperience(action, id, experience_id, responsibility, office, years);
                if (json_str == "e0")//code error
                {
                    result = "e0:ລະບົບຂັດຂ້ອງຕິດຕໍ່ຜູ້ເບີ່ງແຍ່ງດ່ວນ.";
                }
                else if (json_str == "e1")//no data found
                {
                    result = "e1:ບໍ່ມີຂໍ້ມູນທີ່ຈະສະແດງ.";
                }
                else if (json_str == "e2")//can't connect databbase
                {
                    result = "e2:ບໍ່ສາມາດເຊື່ອມຕໍ່ຖານຂໍ້ມູນໄດ້.";
                }
                else if (json_str == "e5")
                {
                    result = "e5";
                }
                else if (json_str == "e3")
                {
                    result = "e3";
                }
            }
            return(result);
        }