public JsonResult BindInvCust(string Cust_Nm) { int Comp_Id = int.Parse(Session [" Comp_Id"]。ToString());
using (ClientUserServiceClient.ClientUserServiceClient c = new ClientUserServiceClient.ClientUserServiceClient())
{
// var AirOrigin = c.BindInvCustomer(Comp_Id);
var result = from t in c.BindInvCustomer(Comp_Id, Cust_Nm).ToList()
select new
{
id = Convert.ToString(t.Cust_Id),
cell = Convert.ToString(t.Cust_Nm)
// code=Convert.ToString(c.IATA_Code)
};
return Json( result.ToArray() , JsonRequestBehavior.AllowGet);
//IEnumerable<SelectListItem> Origin = new SelectList(AirOrigin, "Cust_Id", "Cust_Nm");
//ViewData["CustNm"] = Origin;
}
答案 0 :(得分:-1)
我得到了这个问题的答案。
我使用了Break point(调试)。这就是为什么汽车完全不起作用。