快乐的昕的电脑
2 天以前 cc0c486c83e857c6ee3943ebc5a830c941faa411
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,20 @@
            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
        {
            entity.Fstaffid = "0";
        }
        // ERP: 0=未禁用, 1=禁用
        // MES: A=未禁用, B=禁用
        if (supplier.FForbidStatus.IsNullOrEmpty())