/// <summary> /// 根据合作公司Id,加载联系人。 /// </summary> /// <param name="supplierCompany">供应商</param> private void LoadLinkManByCompany(SupplierCompanyDTO supplierCompany) { //加载联系人 if (supplierCompany == null) return; _linkManFilter.Value = supplierCompany.LinkManId; if (!Linkmen.AutoLoad) { Linkmen.AutoLoad = true; } else { Linkmen.Load(true); } }
/// <summary> /// 根据合作公司Id,加载联系人。 /// </summary> /// <param name="supplierCompany">供应商</param> private void LoadSupplierByCompany(SupplierCompanyDTO supplierCompany) { //加载供应商 if (supplierCompany == null) return; _supplierFilter.Value = supplierCompany.SupplierCompanyId; if (!Suppliers.AutoLoad) { Suppliers.AutoLoad = true; } else { Suppliers.Load(true); } }
/// <summary> /// 根据合作公司Id,加载合作公司发动机物料。 /// </summary> /// <param name="supplierCompany">供应商公司</param> private void LoadEngineMaterialByCompany(SupplierCompanyDTO supplierCompany) { if (supplierCompany == null) return; _engienMeterialFilter.Value = supplierCompany.SupplierCompanyId; if (!SupplierCompanyEngineMaterials.AutoLoad) { SupplierCompanyEngineMaterials.AutoLoad = true; } else { SupplierCompanyEngineMaterials.Load(true); } }