Exemplo n.º 1
0
 protected virtual void AssignDetailToDetail(RemoveDetail f, RemoveDetail t)
 {
     t.IssueControl = f.IssueControl;
     t.Product_Name = f.Product_Name;
     t.DestinationContainer_Name = f.DestinationContainer_Name;
     t.QtyRemoved        = f.QtyRemoved;
     t.RemoveReason_Name = f.RemoveReason_Name;
 }
Exemplo n.º 2
0
 protected virtual void AssignDetailsToHistoryDetail(RemoveDetail s, ComponentRemoveHistoryDetail t)
 {
     t.IssueControl         = s.IssueControl;
     t.Product              = ResolveCDO("Product", s.Product_Name) as Product;
     t.DestinationContainer = ResolveContainer(s.DestinationContainer_Name);
     t.QtyRemoved           = s.QtyRemoved;
     t.RemoveReason         = ResolveCDO("RemoveReason", s.RemoveReason_Name) as RemoveReason;
 }
Exemplo n.º 3
0
 public void UpdateDetails(RemoveDetail s)
 {
     foreach (RemoveDetail t in Details)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignDetailToDetail(s, t);
         }
     }
 }
Exemplo n.º 4
0
        public void DeleteDetail(RemoveDetail s)
        {
            int i = -1;

            foreach (RemoveDetail t in Details)
            {
                if (t.ServiceDetailID == s.ServiceDetailID)
                {
                    i = Details.IndexOf(t);
                    break;
                }
            }
            if (-1 != i)
            {
                Details.RemoveAt(i);
            }
        }
Exemplo n.º 5
0
 public void InsertDetail(RemoveDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     Details.Add(s);
 }