Exemplo n.º 1
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.º 2
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);
        }