コード例 #1
0
ファイル: MsgService.cs プロジェクト: ngochoanhbr/dahuco
        public void SendOrderPay2Mger(OrdersInfo order, decimal decPayAmout)
        {
            MessageSet messageSet = MessageSet.Get("PayTheOrder");

            if (messageSet != null && order != null)
            {
                this.SendSystemMsg2Mger(messageSet, new Dictionary <string, string>
                {
                    {
                        "${username}",
                        MsgService.user.UserName
                    },
                    {
                        "${orderno}",
                        order.OrderNo
                    },
                    {
                        "${totalfee}",
                        order.OrderTotalAmount.ToString("f2")
                    },
                    {
                        "${payamount}",
                        decPayAmout.ToString("f2")
                    },
                    {
                        "${sitename}",
                        ConfigProvider.Configs.SiteName
                    }
                });
            }
        }
コード例 #2
0
ファイル: MsgService.cs プロジェクト: ngochoanhbr/dahuco
        public void SendRegMsg2Mger()
        {
            MessageSet messageSet = MessageSet.Get("RegNewUser");

            if (messageSet != null)
            {
                this.SendSystemMsg2Mger(messageSet, new Dictionary <string, string>
                {
                    {
                        "${username}",
                        MsgService.user.UserName
                    },
                    {
                        "${email}",
                        MsgService.user.Email
                    },
                    {
                        "${mobile}",
                        MsgService.user.Mobile
                    },
                    {
                        "${sitename}",
                        ConfigProvider.Configs.SiteName
                    }
                });
            }
        }
コード例 #3
0
ファイル: MsgService.cs プロジェクト: ngochoanhbr/dahuco
        public void SendNewOrder2Mger(OrdersInfo order)
        {
            MessageSet messageSet = MessageSet.Get("CreateNewOrder");

            if (messageSet != null && order != null)
            {
                this.SendSystemMsg2Mger(messageSet, new Dictionary <string, string>
                {
                    {
                        "${username}",
                        MsgService.user.UserName
                    },
                    {
                        "${orderno}",
                        order.OrderNo
                    },
                    {
                        "${totalfee}",
                        order.OrderTotalAmount.ToString("f2")
                    },
                    {
                        "${consignee}",
                        order.Consignee
                    },
                    {
                        "${shippingaddr}",
                        string.Concat(new string[]
                        {
                            order.Country,
                            ",",
                            order.Province,
                            ",",
                            order.City,
                            ",",
                            order.County,
                            " ",
                            order.Address
                        })
                    },
                    {
                        "${contactphone}",
                        order.Mobile
                    },
                    {
                        "${expire}",
                        "24"
                    },
                    {
                        "${sitename}",
                        ConfigProvider.Configs.SiteName
                    }
                });
            }
        }
コード例 #4
0
ファイル: MsgService.cs プロジェクト: ngochoanhbr/dahuco
        public void SendGoodsFH(OrdersInfo order, string kuaidiCompany, string kuaidiNo)
        {
            MessageSet messageSet = MessageSet.Get("GoodsFHMsgSetting");

            if (MsgService.user != null && messageSet != null && order != null)
            {
                this.SendSystemMsg2User(messageSet, new Dictionary <string, string>
                {
                    {
                        "${username}",
                        MsgService.user.UserName
                    },
                    {
                        "${orderno}",
                        order.OrderNo
                    },
                    {
                        "${kuaidicompany}",
                        kuaidiCompany
                    },
                    {
                        "${kuaidino}",
                        kuaidiNo
                    },
                    {
                        "${consignee}",
                        order.Consignee
                    },
                    {
                        "${shippingaddr}",
                        string.Concat(new string[]
                        {
                            order.Country,
                            ",",
                            order.Province,
                            ",",
                            order.City,
                            ",",
                            order.County,
                            " ",
                            order.Address
                        })
                    },
                    {
                        "${contactphone}",
                        order.Mobile
                    },
                    {
                        "${sitename}",
                        ConfigProvider.Configs.SiteName
                    }
                });
            }
        }
コード例 #5
0
ファイル: MsgService.cs プロジェクト: ngochoanhbr/dahuco
        public void SendFindPwdMsg()
        {
            MessageSet messageSet = MessageSet.Get("FindPwdMsgSetting");

            if (MsgService.user != null && messageSet != null)
            {
                this.SendSystemMsg2User(messageSet, new Dictionary <string, string>
                {
                    {
                        "${username}",
                        MsgService.user.UserName
                    },
                    {
                        "${sitename}",
                        ConfigProvider.Configs.SiteName
                    }
                });
            }
        }