예제 #1
0
        public ActionResult IndexE(long?id)
        {
            busi_purchase list = _service.GetInfoByID(id.Value);

            if (list.purch_id > 0)
            {
                ViewBag.id           = list.purch_id;
                ViewBag.purch_numb   = list.purch_numb.ToString();
                ViewBag.purch_code   = list.purch_code;
                ViewBag.sum_money    = list.sum_money;
                ViewBag.purch_remark = list.purch_remark;
                ViewBag.purch_sum    = list.purch_sum;
                ViewBag.create_time  = list.create_time.ToString("yyyy-MM-dd");
                ViewBag.sum_freight  = list.sum_freight;
                ViewBag.purch_status = list.purch_status == 1 ? "初始" : (list.purch_status == 2 ? "已采购" : (list.purch_status == 3 ? "待收货" : (list.purch_status == 4 ? "已全部到货" : "")));
                ViewBag.express_code = list.express_code;
                ViewBag.express_name = list.express_name;
                ViewBag.purch_type   = list.purch_type == 1 ? "订单采购" : (list.purch_type == 2 ? "库存采购" : "");
            }
            return(View(new busi_purchase()));
        }