示例#1
0
 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());
 }
示例#2
0
        // 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());
        }
示例#3
0
 // 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());
 }
示例#4
0
 // 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());
 }
示例#5
0
 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());
 }