Пример #1
0
        private void treeList1_GetNodeDisplayValue(object sender, DevExpress.XtraTreeList.GetNodeDisplayValueEventArgs e)
        {
            // TreeList t = sender as TreeList;
            // object o = t.DataSource;
            //if (e.Node != null)
            //{
            //    string s = "Quantities, Coefficient,Unitprice,Combinedprice,jsdj,cjdj,cjhj,";
            //    if (s.Contains(e.Column.FieldName+","))
            //    {
            //        decimal d = ZiboSoft.Commons.Common.ToolKit.ParseDecimal(e.Value);
            //        //int m = Convert.ToInt32(d);
            //        if (d <= 0)
            //        {
            //            e.Value = "";
            //        }

            //    }
            //}



            //if (e.Column.FieldName == "Combinedprice" || e.Column.FieldName == "Unitprice")
            //{
            //    decimal d=ToolKit.ParseDecimal(e.Value);
            //    e.Value = d.ToString("F2");
            //}
        }
Пример #2
0
        private void treeList1_GetNodeDisplayValue(object sender, DevExpress.XtraTreeList.GetNodeDisplayValueEventArgs e)
        {
            //if (!e.Node.HasChildren && e.Node.Tag == null)
            //{

            //    DataTable table = this.m_CUnitProject.Libraries.ListGallery.LibraryDataSet.Tables["清单表"].Copy();

            //    DataRow[] dr = table.Select(" QINGDSYBH= '" + e.Node.GetValue("QINGDSYBH") + "'");
            //    for (int i = 0; i < dr.Length; i++)
            //    {
            //        TreeListNode chilNode = treeList1.AppendNode(null, e.Node.Id);
            //        chilNode.Tag = dr[i];
            //        chilNode.SetValue(this.treeListColumn1, "" + string.Format("【{0}】 {1}", dr[i]["QINGDBH"], dr[i]["QINGDMC"]));
            //    }

            //}
        }
Пример #3
0
 private void treeListEx1_GetNodeDisplayValue(object sender, DevExpress.XtraTreeList.GetNodeDisplayValueEventArgs e)
 {
 }