/// <summary> /// 获取收货地址 /// </summary> public object GetConsigneeInfo() { BLL.ConsigneeInfoBase conInfoBase = new BLL.ConsigneeInfoBase(); ViewData["ConsigneeInfo"] = null; var list = conInfoBase.GetModelList(" c_StatusCode = 0 and c_IsDel = 0 and m_ID = " + mimodel.m_ID); if (list.Count > 0) { var model = list.Where(m => m.c_Moren == 1).FirstOrDefault(); if (model == null) { model = list.FirstOrDefault(); } ViewData["DefaultCI"] = model; ViewData["cID"] = model.c_ID; ViewData["ConsigneeInfo"] = list; } return ViewData["ConsigneeInfo"]; }
/// <summary> /// 收货人信息 /// </summary> public void GetConsigneeInfo() { //根据登录用户ID获取收货人列表 BLL.ConsigneeInfoBase conInfoBase = new BLL.ConsigneeInfoBase(); var list = conInfoBase.GetModelList(" c_StatusCode = 0 and c_IsDel = 0 and m_ID = " + LoginMember.m_ID); ViewData["ConsigneeInfo"] = list; }