//更新明細內本月驗收合計 private void UpdateDetail_AcceptQty() { DataTable dtDetail = (DataTable)Session["PUR02_DTL_" + PageTimeStamp.Value]; ArrayList ParameterList = new ArrayList(); MaintainPurchaseOrder bco = new MaintainPurchaseOrder(ConntionDB); for (int i = 0; i < dtDetail.Rows.Count; i++) { ParameterList.Clear(); ParameterList.Add(dtDetail.Rows[i]["ITEM"].ToString()); ParameterList.Add(dtDetail.Rows[i]["PERIOD"].ToString()); ParameterList.Add(PUR_PURDate.Text); int iAcceptQty = bco.Get_AcceptQty(ParameterList); dtDetail.Rows[i]["ACCEPT_ACCQTY"] = iAcceptQty.ToString(); } dtDetail.AcceptChanges(); Session["PUR02_DTL_" + PageTimeStamp.Value] = dtDetail; }