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


C# DevExpress.GetListSourceFieldValue方法代码示例

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


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

示例1: gvResearch_CustomUnboundColumnData

        protected void gvResearch_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            int proStatus = Convert.ToInt32(e.GetListSourceFieldValue("ProfessorStatusID"));
            int round = Convert.ToInt32(e.GetListSourceFieldValue("RoundID"));
            int percent = Convert.ToInt32(e.GetListSourceFieldValue("Percentage"));
            double head = 10.5;
            double sub = 1.75;

            if (e.Column.FieldName == "ResCredit")
            {
                if (round == 1)
                {
                    if (proStatus == 1)
                    {
                        if (percent >= 75)
                        {
                            e.Value = head + 7;
                        }
                        else if (percent <= 74 && percent >= 51)
                        {
                            e.Value = head + 5.25;
                        }
                        else if (percent <= 50 && percent >= 25)
                        {
                            e.Value = head + 3.5;
                        }
                        else
                        {
                            e.Value = head + sub;
                        }
                    }
                    else
                    {
                        if (percent >= 75)
                        {
                            e.Value = 7;
                        }
                        else if (percent <= 74 && percent >= 51)
                        {
                            e.Value = 5.25;
                        }
                        else if (percent <= 50 && percent >= 25)
                        {
                            e.Value = 3.5;
                        }
                        else
                        {
                            e.Value = sub;
                        }
                    }
                }
            }
        }
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:53,代码来源:Topics.aspx.cs

示例2: ASPxGridView1_CustomUnboundColumnData

    protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
    {
        decimal total = Convert.ToDecimal(e.GetListSourceFieldValue("DSBAN"));
        decimal discount = Convert.ToDecimal(e.GetListSourceFieldValue("Discount1"));
        decimal discount2 = Convert.ToDecimal(e.GetListSourceFieldValue("Discount2"));
        decimal returnTotal = Convert.ToDecimal(e.GetListSourceFieldValue("ReturnTotal"));
        decimal importPrice = Convert.ToDecimal(e.GetListSourceFieldValue("ImportPrice"));

        if (e.Column.FieldName == "FinalTotal")
        {
            e.Value = total - (discount+discount2) - returnTotal;
        }

        if (e.Column.FieldName == "Rate")
        {
            e.Value = total - (discount + discount2) - returnTotal - importPrice;
        }

        //if (e.Column.FieldName == "PercentRate")
        //{
        //    decimal rate = total - discount - returnTotal - importPrice;
        //    if (importPrice == 0)
        //        e.Value = 0;
        //    else e.Value = rate * 100 / importPrice;
        //}
    }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:26,代码来源:ReportSellingSummaryBaseCustomerProducts.aspx.cs

示例3: ASPxGridView1_CustomUnboundColumnData

    protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
    {
        decimal dathu = Convert.ToDecimal(e.GetListSourceFieldValue("TienDaThu"));
        decimal datra = Convert.ToDecimal(e.GetListSourceFieldValue("TienDaTra"));

        if (e.Column.FieldName == "FinalTotal")
        {
            e.Value = dathu-datra;
        }
    }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:10,代码来源:DoanhThuBanHangTheoNghanhHangNhanVienKhuVuc.aspx.cs

示例4: ASPxGridView1_CustomUnboundColumnData

 protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
 {
     decimal total = Convert.ToDecimal(e.GetListSourceFieldValue("Total"));
     decimal discount1 = Convert.ToDecimal(e.GetListSourceFieldValue("Discount1"));
     decimal discount2 = Convert.ToDecimal(e.GetListSourceFieldValue("Discount2"));
     if (e.Column.FieldName == "FinalTotal")
     {
         e.Value = total - (discount1 + discount2);
     }
 }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:10,代码来源:DoanhSoBanHangTuSanPham.aspx.cs

示例5: ASPxGridView1_CustomUnboundColumnData

    protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
    {
        decimal gtdk = Convert.ToDecimal(e.GetListSourceFieldValue("gtTonDK"));
        decimal gtntk = Convert.ToDecimal(e.GetListSourceFieldValue("gtNhapTK"));
        decimal gtxtk = Convert.ToDecimal(e.GetListSourceFieldValue("gtXuatTK"));

        if (e.Column.FieldName == "gtCK")
        {
            e.Value = gtdk + gtntk - gtxtk;
        }
    }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:11,代码来源:ProductsSummary.aspx.cs

示例6: ASPxGridView1_CustomUnboundColumnData

 protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
 {
     decimal doanhsoban = Convert.ToDecimal(e.GetListSourceFieldValue("DoanhSoBan"));
     decimal khuyenmai = Convert.ToDecimal(e.GetListSourceFieldValue("KhuyenMai"));
     decimal chietkhau = Convert.ToDecimal(e.GetListSourceFieldValue("ChietKhau"));
     decimal doanhsotrahang = Convert.ToDecimal(e.GetListSourceFieldValue("DoanhSoTraHang"));
     decimal chietkhautrahang = Convert.ToDecimal(e.GetListSourceFieldValue("ChietKhauTraHang"));
     decimal trahangkhuyenmai = Convert.ToDecimal(e.GetListSourceFieldValue("TraHangKhuyenMai"));
     decimal giavonhangtra = Convert.ToDecimal(e.GetListSourceFieldValue("GiaVonHangTra"));
     decimal giavonhangban = Convert.ToDecimal(e.GetListSourceFieldValue("GiaVonHangBan"));
     if (e.Column.FieldName == "DoanhSo")
     {
         e.Value = doanhsoban - doanhsotrahang;
     }
     if (e.Column.FieldName == "GiaVon")
     {
         e.Value = giavonhangban - giavonhangtra;
     }
     if (e.Column.FieldName == "TongKhuyenMai")
     {
         e.Value = khuyenmai - trahangkhuyenmai;
     }
     if (e.Column.FieldName == "TongChietKhau")
     {
         e.Value = chietkhau - chietkhautrahang;
     }
     if (e.Column.FieldName == "LaiLo")
     {
         e.Value =  (doanhsoban - doanhsotrahang)-(giavonhangban - giavonhangtra)-(khuyenmai - trahangkhuyenmai)-(chietkhau - chietkhautrahang);
     }
 }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:31,代码来源:BaoCaoLaiLo.aspx.cs

示例7: gvDirectTeaching_CustomUnboundColumnData

        protected void gvDirectTeaching_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            int StdNumber = Convert.ToInt32(e.GetListSourceFieldValue("StdNumber"));
            double result = 0;

            if (e.Column.FieldName == "TheoryCpW"){

                if (StdNumber >= 101){
                    result = 6.5F;
                }else if (StdNumber <= 100 && StdNumber >= 71){
                    result = 5.5F;
                }else if (StdNumber <= 70 && StdNumber >= 41){
                    result = 4.5F;
                }else if (StdNumber <= 40 && StdNumber > 0){
                    result = 3.5F;
                }
                theoResult = result;
                e.Value = result;
            }

            if (e.Column.FieldName == "PracticeCpW")
            {
                if (StdNumber>0)
                {
                    result = 1.75F;
                }
                pracResult = result;
                e.Value = result;
            }

            if (e.Column.FieldName == "TotalinRow")
            {

                int theoryCredit = Convert.ToInt32(e.GetListSourceFieldValue("TheoryCredit"));
                int practiceCredit = Convert.ToInt32(e.GetListSourceFieldValue("PracticeCredit"));
                int theoryWeek = Convert.ToInt32(e.GetListSourceFieldValue("TheoryWeek"));
                int practiceWeek = Convert.ToInt32(e.GetListSourceFieldValue("PracticeWeek"));

                double tmpMultiTheo = (theoryWeek * (theoResult * theoryCredit)) / 15;
                double tmpMultiPrac = (practiceWeek * (pracResult * practiceCredit)) / 15;

                string str = String.Format("{0:F2}", tmpMultiTheo + tmpMultiPrac);
                e.Value = str;

            }
        }
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:46,代码来源:DirectTeaching.aspx.cs

示例8: ASPxGridView1_CustomUnboundColumnData

    protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
    {
        decimal total = Convert.ToDecimal(e.GetListSourceFieldValue("TotalPayment"));
        decimal discount1 = Convert.ToDecimal(e.GetListSourceFieldValue("DiscountValue1"));
        decimal discount2 = Convert.ToDecimal(e.GetListSourceFieldValue("DiscountValue2"));
        decimal tax = Convert.ToDecimal(e.GetListSourceFieldValue("Tax"));
        decimal returnTotal = Convert.ToDecimal(e.GetListSourceFieldValue("Returnpayment"));
        decimal importPrice = Convert.ToDecimal(e.GetListSourceFieldValue("ImportPrice"));

        if (e.Column.FieldName == "PaymentTotal")
        {
            e.Value = total + tax - discount1 - discount2;
        }
        if (e.Column.FieldName == "FinalTotal")
        {
            e.Value = total + tax - discount1 - discount2 - returnTotal;
        }

        if (e.Column.FieldName == "Rate")
        {
            e.Value = total + tax - discount1 - discount2 - returnTotal - importPrice;
        }

        if (e.Column.FieldName == "PercentRate")
        {
            decimal rate = total + tax - discount1 - discount2 - returnTotal - importPrice;
            if (importPrice == 0)
                e.Value = 0;
            else e.Value = rate * 100 / importPrice;
        }
    }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:31,代码来源:ReportSellingSummaryBaseEmployee.aspx.cs

示例9: gvCulture_CustomUnboundColumnData

        protected void gvCulture_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            int proNumber = Convert.ToInt32(e.GetListSourceFieldValue("ProjectNumber"));
            double CarryCredit = 1.5;

            if (e.Column.FieldName == "CarryCredit")
            {
                e.Value = CarryCredit;
            }
            if (e.Column.FieldName == "Total")
            {
                e.Value = proNumber*CarryCredit;
            }
        }
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:14,代码来源:ArtandCulture.aspx.cs

示例10: ASPxGridView1_CustomUnboundColumnData

    protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
    {
        decimal SlXuat = e.GetListSourceFieldValue("SlXuat")==DBNull.Value? 0 : Convert.ToInt32(e.GetListSourceFieldValue("SlXuat"));
        decimal SlTang = e.GetListSourceFieldValue("SlTang") == DBNull.Value ? 0 : Convert.ToInt32(e.GetListSourceFieldValue("SlTang"));
        decimal TongXuat = e.GetListSourceFieldValue("TongXuat") == DBNull.Value ? 0 : Convert.ToDecimal(e.GetListSourceFieldValue("TongXuat"));
        decimal TongTang = e.GetListSourceFieldValue("TongTang") == DBNull.Value ? 0 : Convert.ToDecimal(e.GetListSourceFieldValue("TongTang"));

        if (e.Column.FieldName == "SL")
        {
            e.Value = SlXuat+SlTang;
        }

        if (e.Column.FieldName == "TT")
        {
            e.Value = TongTang+TongXuat;
        }
    }
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:17,代码来源:StockCardGiaVon.aspx.cs

示例11: gvSupervision_CustomUnboundColumnData

        protected void gvSupervision_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            double StdNumber = Convert.ToDouble(e.GetListSourceFieldValue("StdNumber"));
            double CarryCredit = 3.5;

            if (e.Column.FieldName == "CarryCredit")
            {
                e.Value = CarryCredit;
            }

            if (e.Column.FieldName == "CpW")
            {
                e.Value = StdNumber * CarryCredit;
            }
        }
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:15,代码来源:Supervision.aspx.cs

示例12: gvAdvisorProject_CustomUnboundColumnData

        protected void gvAdvisorProject_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            int status = Convert.ToInt32(e.GetListSourceFieldValue("StatusID"));

            if (e.Column.FieldName == "CpW")
            {
                if (status == 0)
                {
                    e.Value = 3;
                }
                else
                {
                    e.Value = 1.5;
                }
            }
        }
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:16,代码来源:AdvisorProject.aspx.cs

示例13: grdAnimationCustomerGroups_CustomUnboundColumnData

        private void grdAnimationCustomerGroups_CustomUnboundColumnData(object sender, DevExpress.Xpf.Grid.GridColumnDataEventArgs e)
        {
            //Guid IDCustomerGroup = (Guid)e.GetListSourceFieldValue("IDCustomerGroup");
            //CustomerGroup cg = AnimationManager.GetInstance().GetCustomerGroupByID(IDCustomerGroup);
            CustomerGroup cg = e.GetListSourceFieldValue("CustomerGroup") as CustomerGroup;

            if (cg != null)
            {
                string fieldName = e.Column.FieldName;
                if (fieldName == "CustomerGroupName")
                {
                    if (e.IsGetData)
                    {
                        e.Value = cg.Name;
                    }
                }
                else if (fieldName == "CustomerGroupCode")
                {
                    if (e.IsGetData)
                    {
                        e.Value = cg.Code;
                    }
                }
                else if (fieldName == "CustomerGroupSalesAreaName")
                {
                    if (e.IsGetData)
                    {
                        e.Value = cg.SalesArea.Name;
                    }
                }
            }
        }
开发者ID:ddksaku,项目名称:loreal,代码行数:32,代码来源:CustomerGroupAnimation.xaml.cs

示例14: gvResearchPublish_CustomUnboundColumnData

        protected void gvResearchPublish_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e)
        {
            if (e.Column.FieldName == "CpW")
            {
                strConnString = WebConfigurationManager.ConnectionStrings["AssessmentSystem"].ConnectionString;
                objConn = new SqlConnection(strConnString);
                objConn.Open();

                int resStatus = Convert.ToInt32(e.GetListSourceFieldValue("ResStatusID"));
                int resType = Convert.ToInt32(e.GetListSourceFieldValue("ResTypeID"));

                try
                {
                    id = Convert.ToInt32(e.GetListSourceFieldValue("ResNumber"));
                }
                catch (Exception)
                {

                }

                strSQL = "SELECT * FROM Research WHERE id = '" + id + "'";
                dtAdapter = new SqlDataAdapter(strSQL, objConn);
                dtAdapter.Fill(dt);

                if (resStatus == 1 && id != null)
                {
                    if (dt.Rows.Count > 0)
                    {
                        int proStatus = Convert.ToInt32(dt.Rows[i]["ProfessorStatusID"]);
                        int round = Convert.ToInt32(dt.Rows[i]["RoundID"]);
                        int percent = Convert.ToInt32(dt.Rows[i]["Percentage"]);

                        double head = 10.5;
                        double sub = 1.75;
                        double tmp = 0;

                        if (round == 1 || round == 2)
                        {
                            if (proStatus == 1)
                            {
                                if (percent >= 75)
                                {
                                    tmp = head + 7;
                                }
                                else if (percent <= 74 && percent >= 51)
                                {
                                    tmp = head + 5.25;
                                }
                                else if (percent <= 50 && percent >= 25)
                                {
                                    tmp = head + 3.5;
                                }
                                else
                                {
                                    tmp = head + sub;
                                }
                            }
                            else
                            {
                                if (percent >= 75)
                                {
                                    tmp = 7;
                                }
                                else if (percent <= 74 && percent >= 51)
                                {
                                    tmp = 5.25;
                                }
                                else if (percent <= 50 && percent >= 25)
                                {
                                    tmp = 3.5;
                                }
                                else
                                {
                                    tmp = sub;
                                }
                            }

                            if (resType == 1)
                            {
                                e.Value = tmp * 0.5;
                            }
                            else
                            {
                                e.Value = tmp;
                            }
                        }
                    }
                    i++;
                }
                else
                {
                    if (resType == 1)
                    {
                        e.Value = 3.5;
                    }
                    else
                    {
                        e.Value = 7;
                    }
                }
//.........这里部分代码省略.........
开发者ID:zillusTioNz,项目名称:AssessmentSystem,代码行数:101,代码来源:Publishing.aspx.cs

示例15: ASPxGridView1_CustomUnboundColumnData

 protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs e)
 {
     if (e.Column.FieldName == "CompositeKey")
     {
         e.Value = e.GetListSourceFieldValue("idCarrera").ToString() + e.GetListSourceFieldValue("idCurso").ToString();
     }
 }
开发者ID:jupmasalamanca,项目名称:CalufaMatriculaWeb,代码行数:7,代码来源:FrmConsultaCursoXCarrera.aspx.cs


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