Ejemplo n.º 1
0
        private List <MovementDetailList> GetData(int pintPageIndex, int?pintPageSize, string pstrProductId, string pstrWarehouse)
        {
            OperationResult objOperationResult = new OperationResult();
            var             _objData           = _objLogisticBL.GetMovementDetailListByProductId(ref objOperationResult, pintPageIndex, pintPageSize, pstrProductId, pstrWarehouse);

            if (objOperationResult.Success != 1)
            {
                MessageBox.Show("Error en operación:" + System.Environment.NewLine + objOperationResult.ExceptionMessage, "ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            return(_objData);
        }
Ejemplo n.º 2
0
        private void LoadData()
        {
            this.BindGrid();

            MovementBL _objLogisticBL = new MovementBL();
            List <MovementDetailList> objMovementDetailList = new List <MovementDetailList>();
            OperationResult           objOperationResult    = new OperationResult();

            // Get the Entity Data
            objMovementDetailList = _objLogisticBL.GetMovementDetailListByProductId(ref objOperationResult, 0, null, _ProductId, _WarehouseId);
            grdData.DataSource    = objMovementDetailList;
            lblRecordCount.Text   = string.Format("Se encontraron {0} registros.", objMovementDetailList.Count());
        }