Пример #1
0
        public ActionResult OrderDetail(string ordernum)
        {
            VIEW_TG_order order = new VIEW_TG_order()
            {
                orderNum = CommonMethod.GetOrderNum(), trade_type = "ONLINE", orderTime = DateTime.Now, ThingNum = CommonMethod.GetCode(18)
            };

            ViewBag.ReturnUrl = Request["returnurl"];
            ViewBag.TYPE      = "Update";
            if (string.IsNullOrEmpty(ordernum))
            {
                ViewBag.TYPE = "Add";
                var list = sys_userlogin.LoadListBy(su => su.LOGIN_ID == OperateContext.Current.UsrId).Select(su => su.SLSORG_CD);
                ViewBag.MEMBERS  = DataSelect.ToListViewModel(VIEW_YX_weiUser.ToListViewModel(userB.GetListBy(u => list.Contains(u.TREE_NODE_ID) && u.isfenxiao != 0, u => u.userRelname)));
                ViewBag.COMPANYS = DataSelect.ToListViewModel(VIEW_MST_SUPPLIER.ToListViewModel(supplierB.GetListBy(u => list.Contains(u.TREE_NODE_ID) && u.SYNCOPERATION != "D", u => u.SUPPLIER_ID)));
            }
            var model = orderB.Get(o => o.orderNum == ordernum);

            if (model != null)
            {
                order          = VIEW_TG_order.ToViewModel(model);
                ViewBag.Things = VIEW_TG_Thing.ToListViewModel(thingB.GetListBy(t => t.orderNum == ordernum, t => t.createTim, false));
            }
            return(View(order));
        }
Пример #2
0
        public ActionResult OrderInfo()
        {
            var list = sys_userlogin.LoadListBy(su => su.LOGIN_ID == OperateContext.Current.UsrId).Select(su => su.SLSORG_CD);

            ViewBag.COMPANYS = DataSelect.ToListViewModel(VIEW_MST_SUPPLIER.ToListViewModel(supplierB.GetListBy(u => list.Contains(u.TREE_NODE_ID) && u.SYNCOPERATION != "D", u => u.SUPPLIER_ID)));
            return(View());
        }
Пример #3
0
        public ActionResult WeChatDetail(string userNum)
        {
            ViewBag.UserType  = DataSelect.ToListViewModel(ConfigSettings.GetSysConfigList("USERTYPE"));
            ViewBag.ReturnUrl = Request["returnurl"];
            ViewDetailPage page = new ViewDetailPage(HttpContext);

            ViewBag.IsView = page.IsView;
            //ViewBag.CurrentID = id;
            ViewBag.TYPE = "Update";
            var list = sys_userlogin.LoadListBy(su => su.LOGIN_ID == OperateContext.Current.UsrId).Select(su => su.SLSORG_CD);

            ViewBag.COMPANYS = DataSelect.ToListViewModel(VIEW_MST_SUPPLIER.ToListViewModel(supplierB.GetListBy(u => list.Contains(u.TREE_NODE_ID), u => u.SUPPLIER_ID)), true);

            var model = wechatUserB.Get(u => u.userNum == userNum);

            if (model == null)
            {
                ViewBag.TYPE = "Add";
                return(View(new VIEW_YX_weiUser()
                {
                }));
            }
            return(View(VIEW_YX_weiUser.ToViewModel(model)));
        }
Пример #4
0
 public ActionResult CompanyList()
 {
     ViewBag.PageFlag     = "CompanyList";
     ViewBag.SupplierList = VIEW_MST_SUPPLIER.ToListViewModel(supplierB.GetListBy(s => s.SYNCOPERATION != "D"));
     return(View());
 }