コード例 #1
0
 /// <summary>
 ///  1.3 初始化栏位
 /// </summary>
 /// <param name="ColumnArray"></param>
 private void InitializedListColumn(List<ListColumnInfo> ColumnArray)
 {
     InitListViewColumnManager manager = new InitListViewColumnManager();
     manager.Init(this._RecordListView, ColumnArray, new BackRecordListFormaterManager());
 }
コード例 #2
0
 /// <summary>
 ///  1.3 初始化栏位
 /// </summary>
 /// <param name="ColumnArray">列数组</param>
 /// <param name="_Type">类型</param>
 private void InitializedListColumn(List<ListColumnInfo> ColumnArray, UIModels.EntryType _Type)
 {
     if (this.RecordListView.Columns != null && this.RecordListView.Columns.Count > 0)
     {
         this.RecordListView.Columns.Clear();
     }
     IListViewColumnFormater iformater = null;
     switch (_Type)
     {
         case EntryType.ZDSJGJ:
             iformater = new UIBLL.GouJinInfoListFormater();
             break;
         case EntryType.YS:
             iformater = new UIBLL.YanShouInfoListFormaterManager();
             break;
         case EntryType.CC:
             iformater = new UIBLL.CunChuInfoListFormatManager();
             break;
         case EntryType.XS:
             iformater = new UIBLL.XiaoShouInfoListFormaterManager();
             break;
         case EntryType.CK:
             iformater = new UIBLL.ChuKuInfoListFormatManager();
             break;
         case EntryType.SH:
             iformater = new UIBLL.ShouHouInfoListFormaterManager();
             break;
         case EntryType.BHGPJL:
             iformater = new UIBLL.BuHeGePinJiLuInfoListFormatManager();
             break;
         case EntryType.BLSJ:
             iformater = new UIBLL.BuLiangShiJianInfoListFormatManager();
             break;
         case EntryType.ZLGZ:
             iformater = new UIBLL.ProcessLoggingInfoListFormaterManager();
             break;
         case EntryType.Inventory:
             iformater = new UIBLL.InventoryInfoListFormaterManager();
             break;
         default:
             break;
     }
     InitListViewColumnManager manager = new InitListViewColumnManager();
     manager.Init(this.RecordListView, ColumnArray, iformater);
 }