コード例 #1
0
        private void ExecuteDrillDown()
        {
            int row = priGrelha1.Grelha.ActiveRowIndex;
            int col = priGrelha1.Grelha.ActiveColumnIndex;

            string colKey = priGrelha1.Cols.GetEditaCol(col).ColKey;

            if ((colKey == colArtigo) || (colKey == colDescArtigo))
            {
                string artigo = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colArtigo));
                DrillDownManager.DrillDownEntidade(PSO, ConstantesPrimavera100.Audit.TAB_ARTIGOS, artigo);
            }
            else if (colKey == colUnidade)
            {
                string unidade = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colUnidade));
                DrillDownManager.DrillDownEntidade(PSO, ConstantesPrimavera100.Audit.TAB_UNIDADES, unidade);
            }
            else if ((colKey == colEntidade) || (colKey == colNomeEntidade))
            {
                string entidade = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colEntidade));
                DrillDownManager.DrillDownEntidade(PSO, DaCategoriaEntidadeDrillDown(row), entidade);
            }
            else if (colKey == colArmazem)
            {
                string armazem = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colArmazem));
                DrillDownManager.DrillDownEntidade(PSO, ConstantesPrimavera100.Audit.TAB_ARMAZENS, armazem);
            }
            else if (colKey == colEstado)
            {
                string estado = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colEstado));
                DrillDownManager.DrillDownEntidade(PSO, ConstantesPrimavera100.Audit.TAB_ESTADOS_INVENTARIO, estado);
            }
        }
コード例 #2
0
        private void ExecuteDrillDown()
        {
            int row = priGrelha1.Grelha.ActiveRowIndex;
            int col = priGrelha1.Grelha.ActiveColumnIndex;

            if (priGrelha1.Cols.GetEditaCol(col).ColKey == colEntidade)
            {
                string entidade = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colEntidade));

                DrillDownManager.DrillDownEntidade(PSO, categoriaEntidade, entidade);

                return;
            }

            if (priGrelha1.Cols.GetEditaCol(col).ColKey == colNumDocInt)
            {
                string modulo  = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colModulo));
                string tipodoc = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colTipoDoc));
                string serie   = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colSerie));
                int    numdoc  = PSO.Utils.FInt(priGrelha1.GetGRID_GetValorCelula(row, colNumDocInt));
                string filial  = PSO.Utils.FStr(priGrelha1.GetGRID_GetValorCelula(row, colFilial));

                DrillDownManager.DrillDownDocumento(PSO, modulo, tipodoc, numdoc, serie, filial);

                return;
            }
        }