コード例 #1
0
ファイル: ConfigController.cs プロジェクト: baixue001/IPS
        public IActionResult SetOrderStatus_Submit()
        {
            //订单
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Normal, GetParam("OrderNormal_T"));
            //OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Sured, OrderSured_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.OrderFinish, GetParam("OrderFinish_T"));
            //OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.UnitFinish, UnitFinish_T.Text);
            OrderConfig.SetOrderStatus(2, GetParam("OrderDealIng_T"));
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.DrawBack, GetParam("DrawBack_T"));
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.UnDrawBack, GetParam("UnDrawBack_T"));
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.CheckDrawBack, GetParam("CheckDrawBack_T"));
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.CancelOrder, GetParam("CancelOrder_T"));
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Recycle, GetParam("Recycle_T"));
            //物流
            OrderConfig.SetExpStatus(0, GetParam("UnDelivery_T"));
            OrderConfig.SetExpStatus(1, GetParam("Delivery_T"));
            OrderConfig.SetExpStatus(2, GetParam("Signed_T"));
            OrderConfig.SetExpStatus(-1, GetParam("UnSiged_T"));
            //支付状态
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.NoPay, GetParam("NoPay_T"));
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.HasPayed, GetParam("HasPayed_T"));
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.RequestRefund, GetParam("RequestRefund_T"));
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.Refunded, GetParam("Refunded_T"));
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.SurePayed, GetParam("SurePayed_T"));
            //支付方式
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.Normal, GetParam("PayNormal_T"));
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.PrePay, GetParam("PrePay_T"));
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.HelpReceive, GetParam("HelpReceive_T"));

            OrderConfig.Update();
            return(WriteOK("保存成功!"));
        }
コード例 #2
0
        protected void SaveConfig_Btn_Click(object sender, EventArgs e)
        {
            //订单
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Normal, OrderNormal_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Sured, OrderSured_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.OrderFinish, OrderFinish_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.UnitFinish, UnitFinish_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.DrawBack, DrawBack_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.UnDrawBack, UnDrawBack_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.CheckDrawBack, CheckDrawBack_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.CancelOrder, CancelOrder_T.Text);
            OrderConfig.SetOrderStatus((int)M_OrderList.StatusEnum.Recycle, Recycle_T.Text);
            //物流
            OrderConfig.SetExpStatus(0, UnDelivery_T.Text);
            OrderConfig.SetExpStatus(1, Delivery_T.Text);
            OrderConfig.SetExpStatus(2, Signed_T.Text);
            OrderConfig.SetExpStatus(-1, UnSiged_T.Text);
            //支付状态
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.NoPay, NoPay_T.Text);
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.HasPayed, HasPayed_T.Text);
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.RequestRefund, RequestRefund_T.Text);
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.Refunded, Refunded_T.Text);
            OrderConfig.SetPayStatus((int)M_OrderList.PayEnum.SurePayed, SurePayed_T.Text);
            //支付方式
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.Normal, PayNormal_T.Text);
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.PrePay, PrePay_T.Text);
            OrderConfig.SetPayType((int)M_OrderList.PayTypeEnum.HelpReceive, HelpReceive_T.Text);

            OrderConfig.Update();
            function.WriteSuccessMsg("保存成功!");
        }