コード例 #1
0
    protected void PackGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var shipLine = (SOShipLineSplit)PXResult.UnwrapMain(e.Row.DataItem);

        if (shipLine == null)
        {
            return;
        }

        SOPickPackShipSetup setup = ((PX.Web.UI.PXGrid)sender).DataGraph.GetExtension <PickPackShip>().Setup.With(s => s.Current ?? s.Select());
        bool noPick = setup.ShowPickTab == false;

        if (shipLine.PickedQty > 0 && shipLine.PackedQty > (noPick ? shipLine.Qty : shipLine.PickedQty))
        {
            e.Row.Style.CssClass = PickCss.Overpick;
        }
        else if (shipLine.PickedQty > 0 && shipLine.PackedQty == (noPick ? shipLine.Qty : shipLine.PickedQty))
        {
            e.Row.Style.CssClass = PickCss.Complete;
        }
        else if (shipLine.PackedQty > 0)
        {
            e.Row.Style.CssClass = PickCss.Partial;
        }
    }
コード例 #2
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;
        }
    }
コード例 #3
0
    protected void ReceiveGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var receiptLine = (POReceiptLineSplit)PXResult.UnwrapMain(e.Row.DataItem);

        if (receiptLine == null)
        {
            return;
        }

        var grid    = (PX.Web.UI.PXGrid)sender;
        var reGraph = (ReceivePutAwayHost)grid.DataGraph;

        if (reGraph.Document.Current.With(r => r.WMSSingleOrder == true))
        {
            decimal?restQty = ReceivePutAway.RestQty.GetValue(reGraph, receiptLine);

            if (restQty == 0)
            {
                e.Row.Style.CssClass = PickCss.Complete;
            }
            else if (receiptLine.ReceivedQty > 0)
            {
                e.Row.Style.CssClass = PickCss.Partial;
            }
        }
        else
        {
            if (receiptLine.ReceivedQty > receiptLine.Qty)
            {
                e.Row.Style.CssClass = PickCss.Overpick;
            }
            else if (receiptLine.ReceivedQty == receiptLine.Qty)
            {
                e.Row.Style.CssClass = PickCss.Complete;
            }
            else if (receiptLine.ReceivedQty > 0)
            {
                e.Row.Style.CssClass = PickCss.Partial;
            }
        }
    }
コード例 #4
0
    protected void PutAwayGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var shipLine = (POReceiptLineSplit)PXResult.UnwrapMain(e.Row.DataItem);

        if (shipLine == null)
        {
            return;
        }

        if (shipLine.PutAwayQty > shipLine.Qty)
        {
            e.Row.Style.CssClass = PickCss.Overpick;
        }
        else if (shipLine.PutAwayQty == shipLine.Qty)
        {
            e.Row.Style.CssClass = PickCss.Complete;
        }
        else if (shipLine.PutAwayQty > 0)
        {
            e.Row.Style.CssClass = PickCss.Partial;
        }
    }
コード例 #5
0
    protected void PickWSGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var shipLine = (SOPickerListEntry)PXResult.UnwrapMain(e.Row.DataItem);

        if (shipLine == null)
        {
            return;
        }

        if (shipLine.PickedQty > shipLine.Qty)
        {
            e.Row.Style.CssClass = PickCss.Overpick;
        }
        else if (shipLine.PickedQty == shipLine.Qty)
        {
            e.Row.Style.CssClass = PickCss.Complete;
        }
        else if (shipLine.PickedQty > 0)
        {
            e.Row.Style.CssClass = PickCss.Partial;
        }
    }