예제 #1
0
        ///取得採購單DETL資料
        //string PurchaseNo,string Item,string Period ,string VirtualCode
        public DataRow GetPurchaseOrderDetail(ArrayList ParameterList)
        {
            DataRow dr = null;
            try
            {
                DBO.MaintainAcceptDBO dbo = new DBO.MaintainAcceptDBO(ref USEDB);
                DataTable dtResult = dbo.GetPurchaseOrderDetail(ParameterList);

                if (dtResult.Rows.Count == 1)
                {
                    dr = dtResult.Rows[0];
                }
                else
                {
                    throw new Exception("查無相關採購資料可供更新");
                }
                return dr;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }