当前位置: 首页>>代码示例>>C#>>正文


C# DevExpress.GetValue方法代码示例

本文整理汇总了C#中DevExpress.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetValue方法的具体用法?C# DevExpress.GetValue怎么用?C# DevExpress.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DevExpress的用法示例。


在下文中一共展示了DevExpress.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: dxgvSerial_HtmlRowCreated

        protected void dxgvSerial_HtmlRowCreated(object sender, DevExpress.Web.ASPxGridViewTableRowEventArgs e)
        {
            if (e.RowType == DevExpress.Web.GridViewRowType.Data)
            {
                Label lbl = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblBranchName") as Label;
                string strCoCode = e.GetValue("CO_CODE").ToString();
                if (lbl != null && strCoCode != string.Empty)
                {
                    using (DataModel.COMPANY_BO objT24_COMPANY_BO = new DataModel.COMPANY_BO())
                    {
                        DataModel.COMPANY objT24_COMPANY = objT24_COMPANY_BO.GetByCOMPANY_CODE(strCoCode);
                        if (objT24_COMPANY != null)
                        {
                            lbl.Text = objT24_COMPANY.COMPANY_NAME;
                        }
                    }
                }

                Label lbl2 = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblStatus") as Label;
                if (lbl2 != null)
                {
                    if (e.GetValue("IsUsed") != null)
                    {
                        bool strStatus = Convert.ToBoolean(e.GetValue("IsUsed"));

                        if (strStatus)
                        {
                            lbl2.Text = "Đã cấp mã";
                        }
                        else
                        {
                            lbl2.Text = "Đã xóa";
                        }
                    }
                    else
                    {
                        lbl2.Text = "Đã cấp mã";
                    }
                }

                Label lbl3 = dxgvSerial.FindRowCellTemplateControl(e.VisibleIndex, null, "lblMaDuThuong") as Label;
                if (lbl3 != null)
                {
                    if (e.GetValue("Serials") != null)
                    {
                        string strSerials = e.GetValue("Serials").ToString();
                        if (!string.IsNullOrEmpty(strSerials))
                        {
                            strSerials = Commons.Common.FormatSerial(strSerials.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries).ToList());
                        }

                        lbl3.Text = strSerials;
                    }
                    else
                    {
                        lbl3.Text = string.Empty;
                    }
                }
            }
        }
开发者ID:manhtr,项目名称:Promotion,代码行数:60,代码来源:BaoCaoCapMa.aspx.cs

示例2: gdvCarteiras_HtmlRowPrepared

 protected void gdvCarteiras_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
 {
     if (Convert.ToDateTime(e.GetValue("DteDataPagamento")) <= DateTime.Now)
     {
         e.Row.ForeColor = Color.Red;
     }
 }
开发者ID:hugohcn,项目名称:sge_webapp,代码行数:7,代码来源:frmManterCarteiraCliente.aspx.cs

示例3: gvInvoiceSearch_HtmlRowPrepared

 protected void gvInvoiceSearch_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
 {
     string status = (string)e.GetValue("status");
     if (status == "DG")
     {
         e.Row.BackColor = System.Drawing.Color.Salmon;
     }
 }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:8,代码来源:InvoiceSearchByDeliver.aspx.cs

示例4: ASPxGridView2_HtmlRowPrepared

 protected void ASPxGridView2_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
 {
     int ConLai = Convert.ToInt32(e.GetValue("ConLai"));
     if (ConLai > 0)
     {
         e.Row.ForeColor = System.Drawing.Color.Red;
     }
 }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:8,代码来源:BCCongNoKHTheoNV.aspx.cs

示例5: detailYgzmx_HtmlDataCellPrepared

 //改变当前处理列的颜色
 protected void detailYgzmx_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
 {
     //根据工序ID 显示工序名称
         if (e.DataColumn.FieldName == "GXID")
         {
            string strgxid = e.GetValue("GXID").ToString();
           e.Cell.Text=helper.GetGxName(strgxid);
         }
 }
开发者ID:Fred-Lee,项目名称:AppInOneBPM,代码行数:10,代码来源:Ygz.aspx.cs

示例6: gridLogRecords_HtmlRowPrepared

 protected void gridLogRecords_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
 {
     if (this.LogType != LogTypesEnum.ChannelMonitoringHistory) return;
     if (e.RowType != DevExpress.Web.ASPxGridView.GridViewRowType.Data) return;
     ChannelLogEnum value = (ChannelLogEnum)e.GetValue("LogType");
     if (value == ChannelLogEnum.ChannelError)
         e.Row.BackColor = System.Drawing.Color.Red;
     else if (value == ChannelLogEnum.ProductError)
         e.Row.BackColor = System.Drawing.Color.Orange;
 }
开发者ID:ddksaku,项目名称:canon,代码行数:10,代码来源:LogPopupControl.ascx.cs

示例7: dxgvLiXi_HtmlRowCreated

        protected void dxgvLiXi_HtmlRowCreated(object sender, DevExpress.Web.ASPxGridViewTableRowEventArgs e)
        {
            if (e.RowType == DevExpress.Web.GridViewRowType.Data)
            {
                Label lbl = dxgvLiXi.FindRowCellTemplateControl(e.VisibleIndex, null, "lblBranchName") as Label;
                string strCoCode = e.GetValue("CoCode").ToString();
                if (lbl != null && strCoCode != string.Empty)
                {
                    using (COMPANY_BO objT24_COMPANY_BO = new COMPANY_BO())
                    {
                        COMPANY objT24_COMPANY = objT24_COMPANY_BO.GetByCOMPANY_CODE(strCoCode);
                        if (objT24_COMPANY != null)
                        {
                            lbl.Text = objT24_COMPANY.COMPANY_NAME;
                        }
                    }
                }

                Label lbl2 = dxgvLiXi.FindRowCellTemplateControl(e.VisibleIndex, null, "lblStatus") as Label;
                if (lbl2 != null)
                {
                    if (e.GetValue("IsUsed") != null)
                    {
                        bool strStatus = Convert.ToBoolean(e.GetValue("IsUsed"));

                        if (strStatus)
                        {
                            lbl2.Text = "Đã cấp";
                        }
                        else
                        {
                            lbl2.Text = "Đã xóa";
                        }
                    }
                    else
                    {
                        lbl2.Text = "Đã cấp";
                    }
                }
            }
        }
开发者ID:manhtr,项目名称:Promotion,代码行数:41,代码来源:BaoCaoCapLiXi.aspx.cs

示例8: ASPxGridView1_HtmlRowPrepared

    protected void ASPxGridView1_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
    {
        if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
        {
            string n_IdPedido = e.GetValue("n_IdPedido").ToString();
            int i_IdMenu = int.Parse(Request.QueryString["IdMenu"]);

            LinkButton LinkButton1 = new LinkButton();
            LinkButton1 = (LinkButton)ASPxGridView1.FindRowCellTemplateControl(e.VisibleIndex, (GridViewDataColumn)(ASPxGridView1.Columns[0]), "LinkButton1");

            LinkButton1.PostBackUrl = "CrearPedido.aspx?n_IdPedido=" + n_IdPedido + "&td=1&IdMenu=" + i_IdMenu;

        }
    }
开发者ID:jalmeida777,项目名称:VentasWebDevExpress,代码行数:14,代码来源:ListarPedidos.aspx.cs

示例9: ASPxGridView1_HtmlRowPrepared

    protected void ASPxGridView1_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
    {
        if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
        {
            string n_IdProducto = e.GetValue("n_IdProducto").ToString();
            int i_IdMenu = int.Parse(Request.QueryString["IdMenu"]);

            LinkButton lbProducto = new LinkButton();
            lbProducto = (LinkButton)ASPxGridView1.FindRowCellTemplateControl(e.VisibleIndex, (GridViewDataColumn)(ASPxGridView1.Columns[2]), "lbProducto");

            lbProducto.PostBackUrl = "CrearProducto.aspx?n_IdProducto=" + n_IdProducto + "&IdMenu=" + i_IdMenu;
            lbProducto.Enabled = chkEditar.Checked;
        }
    }
开发者ID:jalmeida777,项目名称:VentasWebDevExpress,代码行数:14,代码来源:ListarProducto.aspx.cs

示例10: gridRGZ_HtmlDataCellPrepared

    //改变当前处理列的颜色
    protected void gridRGZ_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
    {
        //if (e.DataColumn.FieldName == "JE" || e.DataColumn.FieldName == "DJ")
        //{
        //        e.Cell.ForeColor = System.Drawing.Color.Red;
        //}
        //string jjyxz = e.GetValue("JJYXZ").ToString();

        //for (int n = 0; n < gridRGZ.Columns.Count; n++)
        //{

        //    if (e.DataColumn.FieldName == jjyxz)
        //    {
        //        e.Cell.ForeColor = System.Drawing.Color.Blue;
        //    }

        //}
        if (e.DataColumn.FieldName == "SJLY" )
        {

            int intsjly = int.Parse(e.GetValue("SJLY").ToString());
            switch (intsjly)
            {
                case 0:
                    e.Cell.Text= "系统";
                    break;
                case 1:
                    e.Cell.Text = "导入";
                    break;
            }
        }
        if (e.DataColumn.FieldName == "SPZT")
        {

            int intspzt = int.Parse(e.GetValue("SPZT").ToString());
            switch (intspzt)
            {
                case 0:
                    e.Cell.Text = "未审批";
                    break;
                case 1:
                    e.Cell.Text = "已审批";
                    break;
            }
        }
    }
开发者ID:Fred-Lee,项目名称:AppInOneBPM,代码行数:47,代码来源:Rgzmx.aspx.cs

示例11: gvPolicyCustomer_HtmlDataCellPrepared

 protected void gvPolicyCustomer_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
 {
     double target = 0,payment = -1;
     ListEditItem selectedItem = cmbPolicy.SelectedItem;
     Double.TryParse(selectedItem.GetValue("target").ToString(),out target);
     if (e.DataColumn.FieldName == "payment" && int.Parse(cmbPolicy.Value.ToString())!= -1)
     {
         Double.TryParse(e.GetValue("payment").ToString(), out payment);
         if (payment >= target)
         {
             e.Cell.BackColor = System.Drawing.Color.Blue;
             e.Cell.ForeColor = System.Drawing.Color.White;
         }
         else
         {
             e.Cell.ForeColor = System.Drawing.Color.Blue;
         }
     }
 }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:19,代码来源:XetThuongDoanhSoKH.aspx.cs

示例12: gridRGZ_HtmlDataCellPrepared

    //改变当前处理列的颜色
    protected void gridRGZ_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e)
    {
        if (e.DataColumn.FieldName == "CQBZCL" )
        {
            e.Cell.ForeColor = System.Drawing.Color.Red;
        }

        if (e.DataColumn.FieldName == "SPZT")
        {

            int intspzt = int.Parse(e.GetValue("SPZT").ToString());
            switch (intspzt)
            {
                case 0:
                    e.Cell.Text = "未审批";
                    break;
                case 1:
                    e.Cell.Text = "已审批";
                    break;
            }
        }
    }
开发者ID:Fred-Lee,项目名称:AppInOneBPM,代码行数:23,代码来源:XwclSP.aspx.cs

示例13: dxgridDeliveries_HtmlRowPrepared

    protected void dxgridDeliveries_HtmlRowPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableRowEventArgs e)
    {
        try
        {
            string _s = "";
            int _id = 0;

            if (e.RowType == DevExpress.Web.ASPxGridView.GridViewRowType.Data)
            {

                _id = wwi_func.vint(e.GetValue("DeliveryID").ToString());

                if (_id > 0)
                {
                    _s = wwi_func.lookup_multi_values("CompanyName,Address1,Address2,Address3,CountryName,TelNo,PalletDims,MaxPalletWeight,MaxPalletHeight,SpecialDeliveryInstructions", "view_delivery_instruction", "DeliveryID", _id, "|");
                    if (!string.IsNullOrEmpty(_s))
                    {
                        string[] _labels = { "DeliveryName", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "DeliveryAddress", "PalletSpec", "PalletWeight", "PalletHeight", "Instructions" };
                        string[] _elements = _s.Split("|".ToCharArray());

                        for (int _ix = 0; _ix < _labels.Length; _ix++)
                        {
                            ASPxLabel _lbl = (ASPxLabel)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxlbl" + _labels[_ix]);
                            if (_lbl != null)
                            {
                                _lbl.Text += _elements[_ix] + Environment.NewLine;
                            }
                        }//end loop
                    }//end if
                }

                //current status
                _id = e.GetValue("CurrentStatusID") != null ? wwi_func.vint(e.GetValue("CurrentStatusID").ToString()) : 0;
                string _f = "";
                if (_id > 0)
                {
                    _f = wwi_func.lookup_value("Field1", "CurrentStatus", "ID", _id);
                    ASPxLabel _lbl = (ASPxLabel)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxlblCurrentStatusID");
                    if (_lbl != null) { _lbl.Text = _f; }
                }

                //modify javascript on button click so we can drop dll sub decks into hidden field to pass onto edit form
                //will save making a callback to the server 
                ASPxButton _btn = (ASPxButton)this.dxgridDeliveries.FindRowTemplateControl(e.VisibleIndex, "dxbtnEdit");
                if (_btn != null)
                {
                    _s += "|" + _f;
                    _btn.ClientSideEvents.Click = "function(s, e) { hfOrder.Set(\"subdecks\",\"" + _s + "\"); gridDeliveries.StartEditRow(" + e.VisibleIndex.ToString() + "); }"; //gridDeliveries.StartEditRow(' + Container.VisibleIndex + ')

                }

            }//end data template
        }
        catch (Exception ex)
        {
            this.dxlblErr.Text = ex.Message.ToString();
            this.dxpnlErr.ClientVisible = true;
        }
    }//end html row prepared
开发者ID:Publiship,项目名称:WWI_CRM_folders,代码行数:59,代码来源:order_deliveries.aspx.cs

示例14: gvSenaraiStok_HtmlDataCellPrepared

 protected void gvSenaraiStok_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridViewTableDataCellEventArgs e)
 {
     switch (e.DataColumn.FieldName)
     {
         //case "LPD_EmpId": FormDeleteLink(e.DataColumn.FieldName, e.VisibleIndex, e.CellValue); break;
         case "PhysicalBalance": FormPerananCombo(e.DataColumn.FieldName, e.VisibleIndex, e.CellValue, e.GetValue("StockId").ToString()); break;
     }
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:8,代码来源:Tab_HasilVerifikasi_Controller.ascx.cs

示例15: getFullNodePathHyphen

 private string getFullNodePathHyphen(DevExpress.XtraTreeList.Nodes.TreeListNode theNode)
 {
     string theName = "";
     if (theNode.Level != 0)
     {
         theName = getFullNodePathHyphen(theNode.ParentNode) + "-";
     }
     theName = theName + (string)theNode.GetValue(0);
     return theName;
 }
开发者ID:robertfall,项目名称:LAD,代码行数:10,代码来源:frmECDPayments.cs


注:本文中的DevExpress.GetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。