Exemplo 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;
 }
Exemplo 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();
 }
Exemplo n.º 3
0
 public void UpdateDetails(CombineFromDetail s)
 {
     foreach (CombineFromDetail t in FromContainerDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignCombineFromDetailToCombineFromDetail(s, t);
         }
     }
 }
Exemplo n.º 4
0
 public void UpdateDetails(CombineFromDetail s)
 {
     foreach (CombineFromDetail t in FromContainerDetails)
     {
         if (t.ServiceDetailID == s.ServiceDetailID)
         {
             AssignCombineFromDetailToCombineFromDetail(s, t);
         }
     }
 }
Exemplo 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);
 }
Exemplo 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);
            }
        }
Exemplo 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);
        }
Exemplo n.º 8
0
 public void InsertDetail(CombineFromDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     FromContainerDetails.Add(s);
 }
Exemplo 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;
 }
Exemplo n.º 10
0
 public void InsertDetail(CombineFromDetail s)
 {
     s.ServiceDetailID = detailIDCount++;
     FromContainerDetails.Add(s);
 }