Ejemplo n.º 1
0
 protected void btnAddNewDetail_Click(object sender, EventArgs e)
 {
     Associate service = MESPageService as Associate;
     AssociateDetail sd = new AssociateDetail();
     sd.ChildContainerName = "";
     service.InsertDetail(sd);
     GridView1.DataBind();
 }
Ejemplo n.º 2
0
 public void UpdateDetails(AssociateDetail s)
 {
     foreach (AssociateDetail t in AssociateDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignAssociateDetailToAssociateDetail(s, t);
         }
     }
 }
Ejemplo n.º 3
0
 public void UpdateDetails(AssociateDetail s)
 {
     foreach (AssociateDetail t in AssociateDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignAssociateDetailToAssociateDetail(s, t);
         }
     }
 }
Ejemplo n.º 4
0
 public void DeleteDetail(AssociateDetail s)
 {
     int i = -1;
     foreach (AssociateDetail t in AssociateDetails)
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             i = AssociateDetails.IndexOf(t);
             break;
         }
     if (-1 != i)
         AssociateDetails.RemoveAt(i);
 }
Ejemplo n.º 5
0
        public void DeleteDetail(AssociateDetail s)
        {
            int i = -1;

            foreach (AssociateDetail t in AssociateDetails)
            {
                if (t.ServiceDetailID == s.ServiceDetailID)
                {
                    i = AssociateDetails.IndexOf(t);
                    break;
                }
            }
            if (-1 != i)
            {
                AssociateDetails.RemoveAt(i);
            }
        }
Ejemplo n.º 6
0
        public void T120_Associate_LOT1()
        {
            Associate s = new Associate();
            Container co = new Container();
            co.ContainerName = "LOT1";
            s.Container = co;

            AssociateDetail sd;
            sd = new AssociateDetail();
            sd.ChildContainerName = "LOT1-1";
            s.InsertDetail(sd);
            sd = new AssociateDetail();
            sd.ChildContainerName = "LOT1-2";
            s.InsertDetail(sd);

            Assert.IsTrue(s.ExecuteService(), s.CompletionMessage);
        }
Ejemplo n.º 7
0
 protected virtual void AssignAssociateDetailToAssociateHistoryDetail(AssociateDetail s, AssociateHistoryDetail t)
 {
     t.ChildContainer = ResolveContainer(s.ChildContainerName);
 }
Ejemplo n.º 8
0
 protected virtual void AssignAssociateDetailToAssociateDetail(AssociateDetail s, AssociateDetail t)
 {
     t.ChildContainerName = s.ChildContainerName;
 }
Ejemplo n.º 9
0
 public void InsertDetail(AssociateDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     AssociateDetails.Add(s);
 }
Ejemplo n.º 10
0
 public void InsertDetail(AssociateDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     AssociateDetails.Add(s);
 }
Ejemplo n.º 11
0
 protected virtual void AssignAssociateDetailToAssociateHistoryDetail(AssociateDetail s, AssociateHistoryDetail t)
 {
     t.ChildContainer = ResolveContainer(s.ChildContainerName);
 }
Ejemplo n.º 12
0
 protected virtual void AssignAssociateDetailToAssociateDetail(AssociateDetail s, AssociateDetail t)
 {
     t.ChildContainerName = s.ChildContainerName;
 }