Exemple #1
0
        void BindPurchaseOrderItem(int id)
        {
            oblPurchaseOrderItem = new Store.PurchaseOrderItem.BusinessLogic.PurchaseOrderItem();

            try
            {
                objPurchaseOrderItemList = oblPurchaseOrderItem.GetAllPurchaseOrderItemList(id, 0, "");

                if (objPurchaseOrderItemList != null)
                {
                    Gridview1.DataSource = objPurchaseOrderItemList;
                    Gridview1.DataBind();
                }
                else
                {
                    Gridview1.DataSource = null;
                    Gridview1.DataBind();
                }
            }
            catch (Exception ex)
            {
                Store.Common.Utility.ExceptionLog.Exceptionlogs(ex.Message, Store.Common.Utility.ExceptionLog.LineNumber(ex), typeof(PReceived).FullName, 1);
            }
            finally
            {
                oblPurchaseOrderItem     = null;
                objPurchaseOrderItemList = null;
            }
        }
        void BindPurchaseOrderItem()
        {
            oblPurchaseOrderItem = new Store.PurchaseOrderItem.BusinessLogic.PurchaseOrderItem();

            try
            {
                objPurchaseOrderItemList = oblPurchaseOrderItem.GetAllPurchaseOrderItemList(0, 0, "");

                if (objPurchaseOrderItemList != null)
                {
                    dgvPurchaseItemOrder.DataSource = objPurchaseOrderItemList;
                    dgvPurchaseItemOrder.DataBind();
                }
                else
                {
                    dgvPurchaseItemOrder.DataSource = null;
                    dgvPurchaseItemOrder.DataBind();
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
                oblPurchaseOrderItem     = null;
                objPurchaseOrderItemList = null;
            }
        }
Exemple #3
0
        Store.PurchaseOrderItem.BusinessObject.PurchaseOrderItemList BindPurchaseOrderItem(int id)
        {
            oblPurchaseOrderItem = new Store.PurchaseOrderItem.BusinessLogic.PurchaseOrderItem();

            try
            {
                objPurchaseOrderItemList = oblPurchaseOrderItem.GetAllPurchaseOrderItemList(id, 0, "");
                return(objPurchaseOrderItemList);
            }
            catch (Exception ex)
            {
                return(null);
            }
            finally
            {
                oblPurchaseOrderItem     = null;
                objPurchaseOrderItemList = null;
            }
        }