void btReject_Click(object sender, EventArgs e) { if (PlanAddID == -1) { WriteTips(8, "NO Select Row", false); return; } Console.WriteLine("btReject_Click"); Console.WriteLine(PlanAddID.ToString()); if (_planAddBiz.RejectPlandAdd(PlanAddID.ToString())) { QueryAddPlan(); WriteTips(8, "ADD VoucherID Reject:" + PlanAddID.ToString(), false); } else { WriteTips(8, "Failure to reject test documents", false); } }
void btAccept_Click(object sender, EventArgs e) { if (PlanAddID == -1) { WriteTips(8, "NO SELECT ROW", false); return; } Console.WriteLine("btAccept_Click"); Console.WriteLine(PlanAddID.ToString() + "|" + SampleName + "|" + LOT_NO + "|" + LINE + "|" + ProdDate.ToString() + "|" + SampleID); string voucherid = ""; DOCPlan panAdd = new DOCPlan(); panAdd.SampleName = SampleName; panAdd.LOT_NO = LOT_NO; panAdd.LINE = LINE; panAdd.ProdDate = ProdDate; panAdd.SheetDate = SheetDate; panAdd.State = "1"; panAdd.Grade = "A"; panAdd.SampleID = SampleID; panAdd.createType = CreateType; panAdd.companyProd = CompanyProd; panAdd.companyOffer = CompanyOffer; panAdd.GradeVersion = GradeVersion; if (_planAddBiz.InsertPlanByAdd(panAdd, PlanAddID, out voucherid)) { QueryAddPlan(); WriteTips(8, "add VoucherID:" + voucherid, true); } else { WriteTips(8, "Receipt of test documents failed", false); } }