Exemplo n.º 1
0
 protected virtual void AssignDetailToDetail(ComponentIssueDetail f, ComponentIssueDetail t)
 {
     t.IssueControl     = f.IssueControl;
     t.Product_Name     = f.Product_Name;
     t.QtyRequired      = f.QtyRequired;
     t.ActualQtyIssued  = f.ActualQtyIssued;
     t.IssueReason_Name = f.IssueReason_Name;
     t.FromLocation     = f.FromLocation;
     t.ToLocation       = f.ToLocation;
 }
Exemplo n.º 2
0
 public void UpdateDetails(ComponentIssueDetail s)
 {
     foreach (ComponentIssueDetail t in Details)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignDetailToDetail(s, t);
         }
     }
 }
Exemplo n.º 3
0
 public void UpdateDetails(ComponentIssueDetail s)
 {
     foreach (ComponentIssueDetail t in Details)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignDetailToDetail(s, t);
         }
     }
 }
Exemplo n.º 4
0
 protected virtual void AssignDetailsToHistoryDetail(ComponentIssueDetail s, ComponentIssueHistoryDetail t)
 {
     t.IssueControl    = s.IssueControl;
     t.Product         = ResolveCDO("Product", s.Product_Name) as Product;
     t.QtyRequired     = s.QtyRequired;
     t.ActualQtyIssued = s.ActualQtyIssued;
     t.IssueReason     = ResolveCDO("IssueReason", s.IssueReason_Name) as IssueReason;
     t.Container       = ResolveContainer(s.Container_Name) as Container;
     t.FromLocation    = s.FromLocation;
     t.ToLocation      = s.ToLocation;
 }
Exemplo n.º 5
0
 public void DeleteDetail(ComponentIssueDetail s)
 {
     int i = -1;
     foreach (ComponentIssueDetail t in Details)
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             i = Details.IndexOf(t);
             break;
         }
     if(-1 != i)
         Details.RemoveAt(i);
 }
Exemplo n.º 6
0
        public void DeleteDetail(ComponentIssueDetail s)
        {
            int i = -1;

            foreach (ComponentIssueDetail t in Details)
            {
                if (t.ServiceDetailID == s.ServiceDetailID)
                {
                    i = Details.IndexOf(t);
                    break;
                }
            }
            if (-1 != i)
            {
                Details.RemoveAt(i);
            }
        }
Exemplo n.º 7
0
        public void T150_ComponentIssue()
        {
            ComponentIssue s = new ComponentIssue();
            Container co = new Container();
            co.ContainerName = "LOT1";
            s.Container = co;

            ComponentIssueDetail d = new ComponentIssueDetail();    // d stands for detail
            d.IssueControl = 1;
            d.Product_Name = "ProductA(r2)";
            d.Container_Name = "LOT1";
            d.ActualQtyIssued = 2;
            s.InsertDetail(d);

            Assert.IsTrue(s.ExecuteService(), s.CompletionMessage);
        }
Exemplo n.º 8
0
 public void InsertDetail(ComponentIssueDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     Details.Add(s);
 }
Exemplo n.º 9
0
 protected virtual void AssignDetailToDetail(ComponentIssueDetail f, ComponentIssueDetail t)
 {
     t.IssueControl = f.IssueControl;
     t.Product_Name=f.Product_Name;
     t.QtyRequired = f.QtyRequired;
     t.ActualQtyIssued = f.ActualQtyIssued;
     t.IssueReason_Name= f.IssueReason_Name;
     t.FromLocation = f.FromLocation;
     t.ToLocation = f.ToLocation;
 }
Exemplo n.º 10
0
 protected virtual void AssignDetailsToHistoryDetail(ComponentIssueDetail s, ComponentIssueHistoryDetail t)
 {
     t.IssueControl = s.IssueControl;
     t.Product = ResolveCDO("Product", s.Product_Name) as Product;
     t.QtyRequired = s.QtyRequired;
     t.ActualQtyIssued = s.ActualQtyIssued;
     t.IssueReason = ResolveCDO("IssueReason", s.IssueReason_Name) as IssueReason;
     t.Container = ResolveContainer(s.Container_Name) as Container;
     t.FromLocation = s.FromLocation;
     t.ToLocation = s.ToLocation;
 }
Exemplo n.º 11
0
 public void InsertDetail(ComponentIssueDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     Details.Add(s);
 }