public void MyBind() { //订单状态 OrderNormal_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.Normal); OrderSured_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.Sured); OrderFinish_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.OrderFinish); UnitFinish_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.UnitFinish); DrawBack_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.DrawBack); UnDrawBack_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.UnDrawBack); CheckDrawBack_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.CheckDrawBack); CancelOrder_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.CancelOrder); Recycle_T.Text = OrderConfig.GetOrderStatus((int)M_OrderList.StatusEnum.Recycle); //物流状态 UnDelivery_T.Text = OrderConfig.GetExpStatus(0); Delivery_T.Text = OrderConfig.GetExpStatus(1); Signed_T.Text = OrderConfig.GetExpStatus(2); UnSiged_T.Text = OrderConfig.GetExpStatus(-1); //支付状态 NoPay_T.Text = OrderConfig.GetPayStatus((int)M_OrderList.PayEnum.NoPay); HasPayed_T.Text = OrderConfig.GetPayStatus((int)M_OrderList.PayEnum.HasPayed); RequestRefund_T.Text = OrderConfig.GetPayStatus((int)M_OrderList.PayEnum.RequestRefund); Refunded_T.Text = OrderConfig.GetPayStatus((int)M_OrderList.PayEnum.Refunded); SurePayed_T.Text = OrderConfig.GetPayStatus((int)M_OrderList.PayEnum.SurePayed); //支付方式 PayNormal_T.Text = OrderConfig.GetPayType((int)M_OrderList.PayTypeEnum.Normal); PrePay_T.Text = OrderConfig.GetPayType((int)M_OrderList.PayTypeEnum.PrePay); HelpReceive_T.Text = OrderConfig.GetPayType((int)M_OrderList.PayTypeEnum.HelpReceive); }
// 是否应该分离为支付类型与是否已支付? public static string GetPayStatus(int payemntStatus) { try{ return(OrderConfig.GetPayStatus(payemntStatus)); } catch (Exception) { return("<span style='color:orange;'>异常状态</span>"); } }