快乐的昕的电脑
5 天以前 52e709fcf50517c2b953eae2be753b71df347fa5
供应商信息:采购员和负责人电话推送
已修改2个文件
26 ■■■■ 文件已修改
MES.Service/Dto/webApi/ErpSupplier.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/service/BasicData/MesSupplierManager.cs 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MES.Service/Dto/webApi/ErpSupplier.cs
@@ -7,8 +7,8 @@
    public string FNumber { get; set; }
    public string? FShortName { get; set; }
    public string? FName { get; set; }
    public string? FTContact { get; set; }
    public string? Fmobilephone { get; set; }
    public string? F_UNW_LXR { get; set; }
    public string? F_UNW_LXRDH { get; set; }
    public string? FStaffId { get; set; }
    public string? FForbidStatus { get; set; }//禁用状态
    public string? FUseOrgId { get; set; }
MES.Service/service/BasicData/MesSupplierManager.cs
@@ -132,8 +132,8 @@
            SuppNo = supplier.FNumber,
            SuppSname = supplier.FShortName,
            SuppName = supplier.FName,
            Lxr = supplier.FTContact,
            Telf1 = supplier.Fmobilephone,
            Lxr = supplier.F_UNW_LXR,
            Telf1 = supplier.F_UNW_LXRDH,
            Fstaffid = supplier.FStaffId,
            //Fforbidstatus = supplier.FForbidStatus,
            Type = supplier.Type,
@@ -150,6 +150,24 @@
            Fumbrella = string.IsNullOrEmpty(supplier.FCreateOrgId) ? "1" : supplier.FCreateOrgId,
        };
        //负责人名称编码转ID,Fstaffid = supplier.FStaffId
        var entitySubconUnit = Db.Queryable<MesStaff>()
        .Where(x => x.StaffNo == supplier.FStaffId)
        .Select(x => x.Id.ToString())
        .First();
        if (!string.IsNullOrWhiteSpace(entitySubconUnit))
        {
            entity.Fstaffid = entitySubconUnit;
        }
        else if (!string.IsNullOrWhiteSpace(supplier.FStaffId))
        {
            entity.Fstaffid = supplier.FStaffId;
        }
        else
        {
            entity.Fstaffid = "0";
        }
        // ERP: 0=未禁用, 1=禁用
        // MES: A=未禁用, B=禁用
        if (supplier.FForbidStatus.IsNullOrEmpty())