Esempio n. 1
0
        private string DelAttach(DataTable dt)
        {
            string needDel = "";

            foreach (DataRow dr in dt.Rows)
            {
                needDel += dr["MsgID"] + ",";
                if (string.IsNullOrEmpty(dr["AttachMent"].ToString()))
                {
                    continue;
                }
                foreach (string vpath in dr["AttachMent"].ToString().Split(','))
                {
                    SafeSC.DelFile(vpath);
                }
            }
            return(needDel);
        }