Esempio n. 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;
        }
    }
    protected void grid_OnRowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        GLTranReclHist tran;

        PXResult record = e.Row.DataItem as PXResult;

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

        if (tran == null)
        {
            return;
        }

        if (tran.IsCurrent == true)
        {
            e.Row.Style.CssClass = "CssCurrentLine";
        }
    }
 protected void grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
 {
     /*EmployeeClaimsApproval.EPExpenseClaimOwned item = e.Row.DataItem as EmployeeClaimsApproval.EPExpenseClaimOwned;
      * if (item == null) return;
      * if (item.Escalated == true)
      *      e.Row.Style.CssClass = "CssEscalated";*/
 }
 protected void gridVersions_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
 {
     //DummyProjRevision item = e.Row.DataItem as DummyProjRevision;
     //if (item == null) return;
     //if(item.ID == Guid.Empty)
     //    e.Row.Style.CssClass = "CssCurrent";
 }
Esempio n. 5
0
 protected void ProjectStatusGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
 {
     ProjectEntry.PMProjectBalanceRecord item = e.Row.DataItem as ProjectEntry.PMProjectBalanceRecord;
     if (item != null && item.RecordID < 0)
     {
         e.Row.Style.CssClass = "BoldText";
     }
 }
Esempio n. 6
0
    protected void ISERecordsGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        var item = e.Row.DataItem as PX.Objects.IN.InventorySummaryEnquiryResult;

        if (item != null && item.IsTotal.GetValueOrDefault())
        {
            e.Row.Style.CssClass = BoldTextStyle;
        }
    }
    protected void BudgetGrid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        PMBudget item = e.Row.DataItem as PMBudget;

        if (item != null && item.SortOrder == 1)
        {
            e.Row.Style.CssClass = "BoldText";
        }
    }
Esempio n. 8
0
 protected void grid_RowDataBoundApprovals(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);
      * EPExpenseClaim item = (EPExpenseClaim)record[typeof(EPExpenseClaim)];
      * if (item..Length > 35)
      *      item.Subject = item.Subject.Substring(0, 35) + "...";
      * if (isBold) e.Row.Style.CssClass = "BaseBold";*/
 }
Esempio n. 9
0
    protected void Grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        PMForecastRecord item = e.Row.DataItem as PMForecastRecord;

        if (item == null)
        {
            return;
        }

        if (item.IsSummary)
        {
            e.Row.Style.CssClass = "SummaryRecord";
        }
        else if (item.IsTotal)
        {
            e.Row.Style.CssClass = "TotalRecord";
        }
        else if (item.IsTotal || item.IsDifference)
        {
            e.Row.Style.CssClass = "DiffRecord";
            if (item.Qty != 0)
            {
                e.Row.Cells["Qty"].Style.CssClass = "TotalErrorCell";
            }
            if (item.CuryAmount != 0)
            {
                e.Row.Cells["CuryAmount"].Style.CssClass = "TotalErrorCell";
            }
            if (item.RevisedQty != 0)
            {
                e.Row.Cells["RevisedQty"].Style.CssClass = "TotalErrorCell";
            }
            if (item.CuryRevisedAmount != 0)
            {
                e.Row.Cells["CuryRevisedAmount"].Style.CssClass = "TotalErrorCell";
            }
            if (item.ChangeOrderQty != 0)
            {
                e.Row.Cells["ChangeOrderQty"].Style.CssClass = "TotalErrorCell";
            }
            if (item.CuryChangeOrderAmount != 0)
            {
                e.Row.Cells["CuryChangeOrderAmount"].Style.CssClass = "TotalErrorCell";
            }
            if (item.ActualQty != 0)
            {
                e.Row.Cells["ActualQty"].Style.CssClass = "TotalErrorCell";
            }
            if (item.CuryActualAmount != 0)
            {
                e.Row.Cells["CuryActualAmount"].Style.CssClass = "TotalErrorCell";
            }
        }
    }
Esempio n. 10
0
 protected void grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
 {
     EPApprovalProcess.EPOwned item = e.Row.DataItem as EPApprovalProcess.EPOwned;
     if (item == null)
     {
         return;
     }
     if (item.Escalated > 0)
     {
         e.Row.Style.CssClass = "CssEscalated";
     }
 }
Esempio n. 11
0
    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);

        if (isBold)
        {
            e.Row.Style.CssClass = "SubjBold";
        }
    }
Esempio n. 12
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;
        }
    }
Esempio n. 13
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;
            }
        }
    }
    protected void grid_RowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        PickPackShip.SOShipLinePick shipLine = e.Row.DataItem as PickPackShip.SOShipLinePick;
        if (shipLine == null)
        {
            return;
        }

        if (shipLine.PickedQty > shipLine.ShippedQty)
        {
            e.Row.Style.CssClass = PickCss.Overpick;
        }
        else if (shipLine.PickedQty == shipLine.ShippedQty)
        {
            e.Row.Style.CssClass = PickCss.Complete;
        }
        else if (shipLine.PickedQty > 0)
        {
            e.Row.Style.CssClass = PickCss.Partial;
        }
    }
Esempio n. 15
0
    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);
        EPActivity item     = (EPActivity)record[typeof(EPActivity)];

        if (item.Subject.Length > 35)
        {
            item.Subject = item.Subject.Substring(0, 35) + "...";
        }
        if (isBold)
        {
            e.Row.Style.CssClass = "BaseBold";
        }
    }
Esempio n. 16
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;
        }
    }
Esempio n. 17
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;
        }
    }
Esempio n. 18
0
    protected void grid_OnRowDataBound(object sender, PX.Web.UI.PXGridRowEventArgs e)
    {
        GLTranForReclassification tran;

        PXResult record = e.Row.DataItem as PXResult;

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

        if (tran == null)
        {
            return;
        }

        if (tran.IsSplitted || tran.IsSplitting)
        {
            e.Row.Style.CssClass = "CssSplitting";
        }
        else
        {
            e.Row.Style.Reset();
        }

        if (tran.CuryNewAmt < 0)
        {
            e.Row.Cells["CuryNewAmt"].Style.CssClass = "CssNegativeAmount";
        }
        else
        {
            e.Row.Cells["CuryNewAmt"].Style.Reset();
        }
    }
Esempio n. 19
0
    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);

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

        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");
            }
        }
    }