コード例 #1
0
ファイル: AlternatePart.cs プロジェクト: vinay1988/Ang6API
        private static AlternatePart PopulateFromDBDetailsObject(AlternatePartDetails obj)
        {
            AlternatePart objNew = new AlternatePart();

            objNew.AlternatePartId = obj.AlternatePartId;
            objNew.PartNo          = obj.PartNo;
            objNew.FullPart        = obj.FullPart;
            objNew.Part            = obj.Part;
            objNew.ROHSCompliant   = obj.ROHSCompliant;
            objNew.UpdatedBy       = obj.UpdatedBy;
            objNew.DLUP            = obj.DLUP;
            return(objNew);
        }
コード例 #2
0
ファイル: AlternatePart.cs プロジェクト: vinay1988/Ang6API
 /// <summary>
 /// Get
 /// Calls [usp_select_AlternatePart]
 /// </summary>
 public static AlternatePart Get(System.Int32?alternatePartId)
 {
     Rebound.GlobalTrader.DAL.AlternatePartDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.AlternatePart.Get(alternatePartId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         AlternatePart obj = new AlternatePart();
         obj.AlternatePartId = objDetails.AlternatePartId;
         obj.PartNo          = objDetails.PartNo;
         obj.FullPart        = objDetails.FullPart;
         obj.Part            = objDetails.Part;
         obj.ROHSCompliant   = objDetails.ROHSCompliant;
         obj.UpdatedBy       = objDetails.UpdatedBy;
         obj.DLUP            = objDetails.DLUP;
         objDetails          = null;
         return(obj);
     }
 }