public ActionResult OrderCancel(int OrderID) { DataAPI.BasicDataController apiBasecData = new DataAPI.BasicDataController(); DataAPI.CustomerController apiCust = new DataAPI.CustomerController(); ViewBag.GradeList = apiBasecData.GetCustomerGrade(); ViewBag.OrderList = apiCust.GetOrderDetail(OrderID); return(View()); }
// GET: Customer/Create public ActionResult Create() { //获取基本数据 DataAPI.BasicDataController apiBasecData = new DataAPI.BasicDataController(); ViewBag.SourceList = apiBasecData.GetCustomerSource(""); ViewBag.CarList = apiBasecData.GetCar(); ViewBag.ColorList = apiBasecData.GetColor(CurrentUserInfo.CompanyID); ViewBag.GradeList = apiBasecData.GetCustomerGrade(); return(View()); }
// GET: Customer/Details/5 public ActionResult Details(int id, string editPermission = "YES") { DataAPI.BasicDataController apiBasecData = new DataAPI.BasicDataController(); DataAPI.CustomerController apiCust = new DataAPI.CustomerController(); ViewBag.SourceList = apiBasecData.GetCustomerSource(""); ViewBag.CarList = apiBasecData.GetCar(); ViewBag.ColorList = apiBasecData.GetColor(CurrentUserInfo.CompanyID); ViewBag.GradeList = apiBasecData.GetCustomerGrade(); ViewBag.CustInfo = apiCust.GetCustomerObj(id); ViewBag.editPermission = editPermission; return(View()); }
// GET: Customer/BusinessEdit/5 public ActionResult CreateBusiness(int id) { DataAPI.BasicDataController apiBasecData = new DataAPI.BasicDataController(); DataAPI.CustomerController apiCust = new DataAPI.CustomerController(); ViewBag.SourceList = apiBasecData.GetCustomerSource(""); ViewBag.CarList = apiBasecData.GetCar(); ViewBag.ColorList = apiBasecData.GetColor(CurrentUserInfo.CompanyID); ViewBag.GradeList = apiBasecData.GetCustomerGrade(); ViewBag.CustInfo = apiCust.GetCustomerObj(id); // ViewBag.BusinessList = apiCust.GetBusinessList(id); ViewBag.NextPlanDate = apiCust.GetCustNextPlanDate(id); return(View()); }
public ActionResult Business(int id, string BusinessType = "") { DataAPI.BasicDataController apiBasecData = new DataAPI.BasicDataController(); DataAPI.CustomerController apiCust = new DataAPI.CustomerController(); ViewBag.SourceList = apiBasecData.GetCustomerSource(""); ViewBag.CarList = apiBasecData.GetCar(); ViewBag.ColorList = apiBasecData.GetColor(CurrentUserInfo.CompanyID); ViewBag.GradeList = apiBasecData.GetCustomerGrade(); ViewBag.CustInfo = apiCust.GetCustomerObj(id); ViewBag.BusinessList = apiCust.GetBusinessList(id); ViewBag.OrderList = apiCust.GetOrderList(id); ViewBag.BusinessType = BusinessType; return(View()); }