/// <summary> /// 读取指定货物编码、客户编码、寄库交货单号、仓库和批次号的所有计划货物结存数据 /// </summary> /// <param name="strCustomerId"></param> /// <param name="strGoodsId"></param> /// <param name="strBatchNo"></param> /// <param name="strPacking"></param> /// <param name="strWarehouse"></param> /// <param name="strLocation"></param> /// <param name="strProductionDate"></param> /// <param name="strEnterWarehouseBillId"></param> /// <param name="strDeliveryNo"></param> /// <param name="nOpStaffId"></param> /// <param name="strOpStaffName"></param> /// <param name="strErrText"></param> /// <returns></returns> public List <DeliverPlanGoods> LoadDeliverPlanGoodsBalancesByConditions(string strCustomerId, string strGoodsId, string strBatchNo, string strPacking, string strWarehouse, string strLocation, string strProductionDate, string strEnterWarehouseBillId, string strDeliveryNo, long nOpStaffId, string strOpStaffName, out string strErrText) { try { List <DeliverPlanGoods> dataResult = null; strErrText = String.Empty; using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0))) { using (PlanDAO dao = new PlanDAO()) { dataResult = dao.LoadDeliverPlanGoodsBalancesByConditions(strCustomerId, strGoodsId, strBatchNo, strPacking, strWarehouse, strLocation, strProductionDate, strEnterWarehouseBillId, strDeliveryNo, nOpStaffId, strOpStaffName, out strErrText); } transScope.Complete(); } return(dataResult); } catch (Exception e) { strErrText = e.Message; return(null); } }