怎么样去掉不属于自己的东西呀
ArrayList alTid = new ArrayList(tid.Split( ', '));// 所有开发商
ArrayList alAtt = new ArrayList(tpatt.Split( ', '));//所有开发商附件
AttachmentManage[] m = new AttachmentManage[alTid.Count];
Label[] lbl = new Label[alTid.Count];
for(int i = 0; i < alTid.Count; i++)
{
if(u.UserType == UserTypeEnum.ThirdPartyUser)
{
if(u.Name != alTid[i].ToString())
{
alTid.Remove(alTid[i]);
alAtt.Remove(alAtt[i]);
}
//continue;
}
lbl[i] = new Label();
lbl[i].Text = alTid[i].ToString() + "的附件: ";
m[i] = new AttachmentManage();
m[i].AttachmentGroupId = new Guid(alAtt[i].ToString());
m[i].ReadOnly = true;
panel1.Controls.Add(lbl[i]);
panel1.Controls.Add(m[i]);
}
------解决方案--------------------------------------------------------
什么意思啊?能说清楚点吗?
------解决方案--------------------------------------------------------
removeat ,remove
不知道楼主的意思
------解决方案--------------------------------------------------------
什么叫“不属于自己的东西”?
------解决方案--------------------------------------------------------
开发商登陆,总会有个登陆信息,根据登陆信息remove掉咯
------解决方案--------------------------------------------------------
问题很大...思维不对...你应该根据用户只添加属于它的附件...
------解决方案--------------------------------------------------------
if(u.UserType == UserTypeEnum.ThirdPartyUser)
{
if(u.Name != alTid[i].ToString())
{ continue; }
//continue;
}