public static string EditQQuestions(string action, string q_id, string question_text, string t_id) { string result = null; wcf.parti.Service1 _parti = new wcf.parti.Service1(); string json_str; json_str = _parti.GetQuestion(q_id, t_id); if (json_str == "e0")//code error { result = "e0:ລະບົບຂັດຂ້ອງຕິດຕໍ່ຜູ້ເບີ່ງແຍ່ງດ່ວນ."; } else if (json_str == "e1")//no data found { json_str = _parti.EditQuestions(action, q_id, question_text, t_id, ""); 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 == "e2")//can't connect databbase { result = "e2:ບໍ່ສາມາດເຊື່ອມຕໍ່ຖານຂໍ້ມູນໄດ້."; } else if (json_str == "e3") { if (action != "del") { action = "edit"; } json_str = _parti.EditQuestions(action, q_id, question_text, t_id, ""); 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); }