| | |
| | | using System.Data; |
| | | using System.Data; |
| | | using System.Xml; |
| | | using System.Linq; |
| | | using Masuit.Tools; |
| | |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 3, // 供应商搜索 |
| | | a => a.SuppName != null && a.SuppName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 4, // 到货单号搜索 |
| | | a => a.LotNo != null && a.LotNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | a => a.PaperBillNo != null && a.PaperBillNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 5, // 检验单号搜索 |
| | | a => a.ReleaseNo != null && a.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 6, // 物料规格搜索 |
| | |
| | | ItemName = a.ItemName, |
| | | ItemModel = a.ItemModel, |
| | | SuppName = a.SuppName, |
| | | PaperBillNo = a.PaperBillNo, |
| | | LotNo = a.LotNo, |
| | | ReleaseNo = a.ReleaseNo, |
| | | FcheckResu = a.FcheckResu, |
| | | CreateDate = a.CreateDate, |
| | | FcovertQty = a.FcovertQty, |
| | | DEPARTMENTNAME = a.DEPARTMENTNAME, |
| | | FcheckBy = a.FcheckBy, |
| | | Modify1By = a.Modify1By, |
| | | FngDesc = a.FngDesc, |
| | | UrgentFlag = a.UrgentFlag, |
| | | Ftype = a.Ftype, |
| | |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 3, // 供应商搜索 |
| | | (a, v) => a.SuppName != null && a.SuppName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 4, // 到货单号搜索 |
| | | (a, v) => a.LotNo != null && a.LotNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | (a, v) => a.PaperBillNo != null && a.PaperBillNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 5, // 检验单号搜索 |
| | | (a, v) => a.ReleaseNo != null && a.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 6, // 物料规格搜索 |
| | |
| | | ItemName = a.ItemName, |
| | | ItemModel = a.ItemModel, |
| | | SuppName = a.SuppName, |
| | | PaperBillNo = a.PaperBillNo, |
| | | LotNo = a.LotNo, |
| | | ReleaseNo = a.ReleaseNo, |
| | | FcheckResu = a.FcheckResu, |
| | |
| | | UrgentFlag = a.UrgentFlag, |
| | | Ftype = a.Ftype, |
| | | LotNo1 = a.LotNo1, |
| | | FcheckBy = a.FcheckBy, |
| | | Modify1By = a.Modify1By, |
| | | EMERGENCY = a.EMERGENCY, |
| | | Status = a.Status, |
| | | IqcDate = a.IqcDate, |
| | |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 3, // 供应商搜索 |
| | | a => a.SuppName != null && a.SuppName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 4, // 到货单号搜索 |
| | | a => a.LotNo != null && a.LotNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | a => a.PaperBillNo != null && a.PaperBillNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 5, // 检验单号搜索 |
| | | a => a.ReleaseNo != null && a.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 6, // 物料规格搜索 |
| | |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 3, // 供应商搜索 |
| | | (a, v) => a.SuppName != null && a.SuppName.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 4, // 到货单号搜索 |
| | | (a, v) => a.LotNo != null && a.LotNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | (a, v) => a.PaperBillNo != null && a.PaperBillNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 5, // 检验单号搜索 |
| | | (a, v) => a.ReleaseNo != null && a.ReleaseNo.ToLower().Contains(queryObj.SearchValue.ToLower())) |
| | | .WhereIF(!string.IsNullOrEmpty(queryObj.SearchValue) && queryObj.selectedIndex == 6, // 物料规格搜索 |
| | |
| | | // 标准化FTP服务器地址 |
| | | string normalizedServer = NormalizeFtpServer(ftpServer); |
| | | |
| | | // 清理文件名:去除所有空白字符(包括中英文空格、制表符、回车换行等) |
| | | fileName = System.Text.RegularExpressions.Regex.Replace(fileName, @"[\s\u3000\r\n]+", ""); |
| | | |
| | | // 构建FTP文件路径 - 来料检使用IQC目录,使用fversion作为子目录 |
| | | string ftpPath; |
| | | if (!string.IsNullOrEmpty(fversion)) |
| | |
| | | normalizedServer += ":21"; // 默认FTP端口 |
| | | } |
| | | |
| | | // 开发环境使用本地服务器 |
| | | normalizedServer = "ftp://192.168.1.22:21"; |
| | | // 注释掉开发环境强制覆盖,使用传入的实际FTP服务器地址 |
| | | // normalizedServer = "ftp://192.168.1.22:21"; |
| | | |
| | | return normalizedServer; |
| | | } |