protected void btnAddNewDetail_Click(object sender, EventArgs e) { Defect service = MESPageService as Defect; DefectDetail sd = new DefectDetail(); sd.DefectReason_Name = "DefaultDefect"; service.InsertDetail(sd); GridView1.DataBind(); }
public void T110_Defect_LOT1() { Defect s = new Defect(); Container co = new Container(); co.ContainerName = "LOT1"; s.Container = co; DefectDetail d = new DefectDetail(); d.DefectQty = 1; s.InsertDetail(d); Assert.IsTrue(s.ExecuteService(), s.CompletionMessage); }