| | |
| | | |
| | | Guid Keyid = Request["Keyid"].ToGuid2(); |
| | | |
| | | string AttachmentType = Request["AttachmentType"]; |
| | | |
| | | if (Keyid == null) |
| | | { |
| | | JavaScript.MessageBox("未找到该客户", this, false, false); |
| | | return; |
| | | } |
| | | Database DC = new Database(); |
| | | string sqlStr = string.Format(@" select * from [dbo].[OA_attachment] where [OA_Id]='{0}' and [AttachmentType]=3 order by [CreateTime] ", Keyid); |
| | | string sqlStr = string.Format(@" select * from [dbo].[OA_attachment] where [OA_Id]='{0}' and [AttachmentType]={1} order by [CreateTime] ", Keyid, AttachmentType); |
| | | int count = 0; |
| | | try |
| | | { |