Ejemplo n.º 1
0
 public static List <Micajah.Common.Bll.MeasureUnit> GetConvertedUoMs(Guid?ParentUoMID, Guid OrganizationId)
 {
     Micajah.Common.Bll.MeasureUnitCollection UoMs = null;
     if (ParentUoMID == null)
     {
         UoMs = Micajah.Common.Bll.MeasureUnitCollection.GetUnits(OrganizationId);
     }
     else
     {
         Micajah.Common.Bll.MeasureUnit mu = Micajah.Common.Bll.MeasureUnit.Create((Guid)ParentUoMID, OrganizationId);
         UoMs = mu.GetConvertUnits();
         UoMs.Add(mu);
         UoMs.SortByName();
     }
     return(UoMs.ToList());
 }
Ejemplo n.º 2
0
 public static List <Micajah.Common.Bll.MeasureUnit> GetOrganizationUoMs()
 {
     Micajah.Common.Bll.MeasureUnitCollection UoMs = Micajah.Common.Bll.MeasureUnitCollection.GetUnits(LinqMicajahDataContext.OrganizationId);
     return(UoMs.ToList());
 }