Пример #1
0
 public static void Send风控分配TableChangedNoticeToFK(string FKUserName, Server.DbDataSet.平台用户DataTable 交易员DataTable1)
 {
     foreach (IClient IClient1 in Program.ClientUserName.Keys)
     {
         if (Program.ClientUserName[IClient1] == FKUserName)
         {
             IClient1.风控分配DataTableChanged(交易员DataTable1);
         }
     }
 }
Пример #2
0
        public static void Send平台用户TableChangedNoticeToTrader(string TradeName, Server.DbDataSet.平台用户DataTable DataTable1)
        {
            StringBuilder sbErr = new StringBuilder(256);

            try
            {
                sbErr.Append("Tool.Send平台用户TableChangedNoticeToTrader Function Start:");

                sbErr.Append("1.平台用户DataTableChanged To User Equals TraderName.");

                foreach (IClient IClient1 in Program.ClientUserName.Keys)
                {
                    if (Program.ClientUserName[IClient1] == TradeName)
                    {
                        IClient1.平台用户DataTableChanged(TradeName, DataTable1);
                    }
                }

                sbErr.Append("2.平台用户DataTableChanged To User belongs 风控");

                foreach (IClient IClient1 in Program.ClientUserName.Keys)
                {
                    //向普通风控员发送
                    string ClientUserName = Program.ClientUserName[IClient1];
                    if (Program.db.风控分配.Exists(TradeName, ClientUserName))
                    {
                        IClient1.平台用户DataTableChanged(TradeName, DataTable1);
                    }

                    //向超级风控发送
                    if (Program.db.平台用户.ExistsUserRole(ClientUserName, 角色.超级风控员))
                    {
                        IClient1.平台用户DataTableChanged(TradeName, DataTable1);
                    }
                }
            }
            catch (Exception) { }
        }