public static string SetTraining(string action, string id, string title, string course_id, string int_or_ext, string training_address, string training_district, string training_province, string training_days, string training_date, string description, string date_of_modified_data) { string result = null; wcf.parti.Service1 _parti = new wcf.parti.Service1(); string json_str = _parti.EditTrainings(action, id, title, course_id, int_or_ext, training_address, training_district, training_province, training_days, training_date, description, date_of_modified_data); 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") { json_str = _parti.EditTrainings("edit", id, title, course_id, int_or_ext, training_address, training_district, training_province, training_days, training_date, description, date_of_modified_data); 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:ບັນທຶກຕາລາງການຝຶກອົບຮົມເຂົ້າລະບົບຮຽບຮ້ອຍ!"; } } return(result); }