Exemplo n.º 1
0
    protected void grid_OnRowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var graph = (StoragePlaceEnq)((PXGrid)sender).DataGraph;
        StoragePlaceStatus tran;

        PXResult record = e.Row.DataItem as PXResult;

        if (record != null)
        {
            tran = (StoragePlaceStatus)record[typeof(StoragePlaceStatus)];
        }
        else
        {
            tran = e.Row.DataItem as StoragePlaceStatus;
        }

        if (tran == null)
        {
            return;
        }

        //if (graph.Filter.Current.With(_ => _.ExpandByLotSerialNbr) == true && tran.IsOverall == true)
        //{
        //	e.Row.Style.CssClass = PickCss.Splitting;
        //}
        //else
        //{
        //	e.Row.Style.Reset();
        //}
    }
Exemplo n.º 2
0
    protected void AdditionDeductionGrids_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var item = e.Row.DataItem as PX.Objects.IN.InventoryQtyByPlanType;

        if (item != null && item.IsTotal.GetValueOrDefault())
        {
            e.Row.Style.CssClass = BoldTextStyle;
        }
    }
Exemplo n.º 3
0
    protected void LogGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var log = (PX.Objects.IN.WMSScanLog)PXResult.UnwrapMain(e.Row.DataItem);

        if (log == null)
        {
            return;
        }

        if (log.MessageType == PX.Objects.IN.WMSMessageTypes.Error)
        {
            e.Row.Style.CssClass = PickCss.Overpick;
        }
        else if (log.MessageType == PX.Objects.IN.WMSMessageTypes.Warning)
        {
            e.Row.Style.CssClass = PickCss.Partial;
        }
    }
Exemplo n.º 4
0
    protected void grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        SOShipLinePick shipLine = e.Row.DataItem as SOShipLinePick;

        if (shipLine == null)
        {
            return;
        }

        if (shipLine.PickedQty > shipLine.ShippedQty)
        {
            e.Row.Style.CssClass = "CssOverpick";
        }
        else if (shipLine.PickedQty == shipLine.ShippedQty)
        {
            e.Row.Style.CssClass = "CssComplete";
        }
        else if (shipLine.PickedQty > 0)
        {
            e.Row.Style.CssClass = "CssPartial";
        }
    }
    protected void grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        PXResult record = e.Row.DataItem as PXResult;

        if (record == null)
        {
            return;
        }

        EPView viewInfo = (EPView)record[typeof(EPView)];
        bool   isBold   = viewInfo != null && (viewInfo.Status == null || viewInfo.Status == EPViewStatusAttribute.NOTVIEWED);

        CRPMTimeActivity item = (CRPMTimeActivity)record[typeof(CRPMTimeActivity)];

        if (isBold)
        {
            e.Row.Style.CssClass = "BaseBold";
        }
        if (item.CategoryID != null && coloredCategories.Contains(item.CategoryID ?? 0))
        {
            if (item.IsOverdue == true)
            {
                e.Row.Style.CssClass = (isBold ? "CssBoldOver" : "CssOver") + item.CategoryID;
            }
            else
            {
                e.Row.Style.CssClass = (isBold ? "CssBold" : "Css") + item.CategoryID;
            }
        }
        else
        {
            if (item.IsOverdue == true)
            {
                e.Row.Style.CssClass = (isBold ? "CssOverdueBold" : "CssOverdue");
            }
        }
    }