Esempio n. 1
0
 protected virtual void AssignCombineDetailsToCombineHistoryDetail(CombineFromDetail s, CombineHistoryDetail t)
 {
     t.CloseWhenEmpty    = s.CloseWhenEmpty;
     t.CombineAllQty     = s.CombineAllQty;
     t.FromContainerName = s.FromContainerName;
     t.Qty = s.Qty;
 }
Esempio n. 2
0
 protected void btnAddNewDetail_Click(object sender, EventArgs e)
 {
     Combine service = MESPageService as Combine;
     CombineFromDetail sd = new CombineFromDetail();
     sd.FromContainerName = "";
     service.InsertDetail(sd);
     GridView1.DataBind();
 }
Esempio n. 3
0
 public void UpdateDetails(CombineFromDetail s)
 {
     foreach (CombineFromDetail t in FromContainerDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignCombineFromDetailToCombineFromDetail(s, t);
         }
     }
 }
Esempio n. 4
0
 public void UpdateDetails(CombineFromDetail s)
 {
     foreach (CombineFromDetail t in FromContainerDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignCombineFromDetailToCombineFromDetail(s, t);
         }
     }
 }
Esempio n. 5
0
 public void DeleteDetail(CombineFromDetail s)
 {
     int i = -1;
     foreach (CombineFromDetail t in FromContainerDetails)
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             i = FromContainerDetails.IndexOf(t);
             break;
         }
     if (-1 != i)
         FromContainerDetails.RemoveAt(i);
 }
Esempio n. 6
0
        public void DeleteDetail(CombineFromDetail s)
        {
            int i = -1;

            foreach (CombineFromDetail t in FromContainerDetails)
            {
                if (t.ServiceDetailID == s.ServiceDetailID)
                {
                    i = FromContainerDetails.IndexOf(t);
                    break;
                }
            }
            if (-1 != i)
            {
                FromContainerDetails.RemoveAt(i);
            }
        }
Esempio n. 7
0
        public void T100_Combine_LOT1()
        {
            Combine s = new Combine();
            Container co = new Container();
            co.ContainerName = "LOT1";
            s.Container = co;
            s.CloseWhenEmpty = true;

            CombineFromDetail d = new CombineFromDetail();
            d.FromContainerName = "LOT1-1";
            d.Qty = 1;
            s.InsertDetail(d);

            d = new CombineFromDetail();
            d.FromContainerName = "LOT1-2";
            d.CombineAllQty = true;
            s.InsertDetail(d);

            Assert.IsTrue(s.ExecuteService(), s.CompletionMessage);
        }
Esempio n. 8
0
 public void InsertDetail(CombineFromDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     FromContainerDetails.Add(s);
 }
Esempio n. 9
0
 protected virtual void AssignCombineDetailsToCombineHistoryDetail(CombineFromDetail s, CombineHistoryDetail t)
 {
     t.CloseWhenEmpty = s.CloseWhenEmpty;
     t.CombineAllQty = s.CombineAllQty;
     t.FromContainerName = s.FromContainerName;
     t.Qty = s.Qty;
 }
Esempio n. 10
0
 public void InsertDetail(CombineFromDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     FromContainerDetails.Add(s);
 }