Exemplo n.º 1
0
 /// <summary>
 /// SetLueClass
 /// </summary>
 /// <param name="clsCode"></param>
 void SetLueClass(string clsCode)
 {
     if (string.IsNullOrEmpty(clsCode))
     {
         return;
     }
     Viewer.lueType.Properties.ForbidPoput = true;
     if (DataSourceClass != null && DataSourceClass.Count > 0)
     {
         if (DataSourceClass.Any(t => t.clsCode.Trim() == clsCode.Trim()))
         {
             Viewer.lueType.Text = (DataSourceClass.FirstOrDefault(t => t.clsCode.Trim() == clsCode.Trim())).clsName;
         }
         else
         {
             Viewer.lueType.Text = string.Empty;
         }
     }
     Viewer.lueType.Properties.DisplayValue = Viewer.lueType.Text;
     Viewer.lueType.Properties.ForbidPoput  = false;
 }
Exemplo n.º 2
0
 private void GetObjects(DataSourceClass pClass)
 {
 }
Exemplo n.º 3
0
        /// <summary>
        /// InitLue
        /// </summary>
        void InitLue()
        {
            // lueDuty
            Viewer.lueDuty.Properties.PopupWidth          = 130;
            Viewer.lueDuty.Properties.PopupHeight         = 200;
            Viewer.lueDuty.Properties.ValueColumn         = EntityCodeDuty.Columns.dutyCode;
            Viewer.lueDuty.Properties.DisplayColumn       = EntityCodeDuty.Columns.dutyName;
            Viewer.lueDuty.Properties.Essential           = false;
            Viewer.lueDuty.Properties.IsShowColumnHeaders = true;
            Viewer.lueDuty.Properties.ColumnWidth.Add(EntityCodeDuty.Columns.dutyCode, 45);
            Viewer.lueDuty.Properties.ColumnWidth.Add(EntityCodeDuty.Columns.dutyName, 85);
            Viewer.lueDuty.Properties.ColumnHeaders.Add(EntityCodeDuty.Columns.dutyCode, "编码");
            Viewer.lueDuty.Properties.ColumnHeaders.Add(EntityCodeDuty.Columns.dutyName, "名称");
            Viewer.lueDuty.Properties.ShowColumn      = EntityCodeDuty.Columns.dutyCode + "|" + EntityCodeDuty.Columns.dutyName;
            Viewer.lueDuty.Properties.IsUseShowColumn = true;
            //Viewer.lueDuty.Properties.FilterColumn = EntityCodeDuty.Columns.dutyCode + "|" + EntityCodeDuty.Columns.dutyName;
            if (DataSourceDuty != null && DataSourceDuty.Count > 0)
            {
                Viewer.lueDuty.Properties.DataSource = DataSourceDuty.ToArray();
            }
            Viewer.lueDuty.Properties.SetSize();

            // lueRank
            Viewer.lueRank.Properties.PopupWidth          = 160;
            Viewer.lueRank.Properties.PopupHeight         = 200;
            Viewer.lueRank.Properties.ValueColumn         = EntityCodeRank.Columns.rankCode;
            Viewer.lueRank.Properties.DisplayColumn       = EntityCodeRank.Columns.rankName;
            Viewer.lueRank.Properties.Essential           = false;
            Viewer.lueRank.Properties.IsShowColumnHeaders = true;
            Viewer.lueRank.Properties.ColumnWidth.Add(EntityCodeRank.Columns.rankCode, 50);
            Viewer.lueRank.Properties.ColumnWidth.Add(EntityCodeRank.Columns.rankName, 110);
            Viewer.lueRank.Properties.ColumnHeaders.Add(EntityCodeRank.Columns.rankCode, "编码");
            Viewer.lueRank.Properties.ColumnHeaders.Add(EntityCodeRank.Columns.rankName, "名称");
            Viewer.lueRank.Properties.ShowColumn      = EntityCodeRank.Columns.rankCode + "|" + EntityCodeRank.Columns.rankName;
            Viewer.lueRank.Properties.IsUseShowColumn = true;
            //Viewer.lueRank.Properties.FilterColumn = EntityCodeRank.Columns.rankCode + "|" + EntityCodeRank.Columns.rankName;
            if (GlobalDic.DataSourceRank != null && GlobalDic.DataSourceRank.Count > 0)
            {
                Viewer.lueRank.Properties.DataSource = GlobalDic.DataSourceRank.ToArray();
            }
            Viewer.lueRank.Properties.SetSize();

            // lueType
            Viewer.lueType.Properties.PopupWidth          = 130;
            Viewer.lueType.Properties.PopupHeight         = 180;
            Viewer.lueType.Properties.ValueColumn         = EntityCodeOperatorClass.Columns.clsCode;
            Viewer.lueType.Properties.DisplayColumn       = EntityCodeOperatorClass.Columns.clsName;
            Viewer.lueType.Properties.Essential           = false;
            Viewer.lueType.Properties.IsShowColumnHeaders = true;
            Viewer.lueType.Properties.ColumnWidth.Add(EntityCodeOperatorClass.Columns.clsCode, 45);
            Viewer.lueType.Properties.ColumnWidth.Add(EntityCodeOperatorClass.Columns.clsName, 85);
            Viewer.lueType.Properties.ColumnHeaders.Add(EntityCodeOperatorClass.Columns.clsCode, "编码");
            Viewer.lueType.Properties.ColumnHeaders.Add(EntityCodeOperatorClass.Columns.clsName, "名称");
            Viewer.lueType.Properties.ShowColumn      = EntityCodeOperatorClass.Columns.clsCode + "|" + EntityCodeOperatorClass.Columns.clsName;
            Viewer.lueType.Properties.IsUseShowColumn = true;
            //Viewer.lueRank.Properties.FilterColumn = EntityCodeRank.Columns.rankCode + "|" + EntityCodeRank.Columns.rankName;
            if (DataSourceClass != null && DataSourceClass.Count > 0)
            {
                Viewer.lueType.Properties.DataSource = DataSourceClass.ToArray();
            }
            Viewer.lueType.Properties.SetSize();
        }