public static void FillPublishUserInfo(List <U8User> users, DataTable dt)
 {
     users.Clear();
     foreach (DataRow dr in dt.Rows)
     {
         users.Add(PublishDataService.GetU8user(dr));
     }
 }
示例#2
0
        private void FillReceivers(DataTable table, PublishData pd)
        {
            pd.Receivers.Clear();
            foreach (DataRow dr in table.Rows)
            {
                U8User user = PublishDataService.GetU8user(dr);
                pd.Receivers.Add(user);

                //判断当前操作员是否拒绝接受该发布
                if (user.ID == this._loginInfo.UserID)
                {
                    pd.bRefused = SqlHelper.GetBooleanFrom(dr["bRefused"], false);
                }
            }
        }