Пример #1
0
        void BindSalesOrder()
        {
            odlSalesOrder = new Store.SalesOrder.BusinessLogic.SalesOrder();

            try
            {
                objSalesOrderList = odlSalesOrder.GetAllSalesOrderList(0, 0, "");
                if (objSalesOrderList != null)
                {
                    ddlSalesOrderID.DataSource     = objSalesOrderList;
                    ddlSalesOrderID.DataValueField = "SalesOrderID";
                    ddlSalesOrderID.DataBind();
                }
                else
                {
                    ddlSalesOrderID.DataSource = null;
                    ddlSalesOrderID.DataBind();
                }
            }
            catch (Exception ex)
            {
            }
            finally
            {
                odlSalesOrder     = null;
                objSalesOrderList = null;
            }
        }
Пример #2
0
        void BindSalesOrder()
        {
            oblSalesOrder = new Store.SalesOrder.BusinessLogic.SalesOrder();


            try
            {
                objSalesList = oblSalesOrder.GetAllSalesOrderList(0, 0, "");

                if (objSalesList != null)
                {
                    gvSOrder.DataSource = objSalesList;
                    gvSOrder.DataBind();
                }
                else
                {
                    gvSOrder.DataSource = null;
                    gvSOrder.DataBind();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                oblSalesOrder     = null;
                objSalesOrderList = null;
            }
        }