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