Beispiel #1
0
        public static Cell BuildCell(int index, ExcelColumn col, RowHandler row)
        {
            Cell cell = null;
            CellConstruct constr = new CellConstruct(index, col, row);
            switch (col.ColumnType)
            {
                case ExcelColumn.ColumnTypes.Counter:
                case ExcelColumn.ColumnTypes.Text:
                case ExcelColumn.ColumnTypes.Note:
                case ExcelColumn.ColumnTypes.Number:
                case ExcelColumn.ColumnTypes.Unknown:
                    cell = new CellText(constr);
                    break;
                case ExcelColumn.ColumnTypes.Choice:
                    cell = new CellTextDropdown(constr);
                    break;
                case ExcelColumn.ColumnTypes.Custom:
                    cell = col.CellBuilder(constr, col.BuilderArgs);
                    break;
                default:
                    break;
            }

            return cell;
        }
Beispiel #2
0
 public CellTextMultiUser(CellConstruct construct, DataHandlerUser userHandler, ChooseUsers chooseUsers)
     : base(construct)
 {
     _dataHandlerUser = userHandler;
     _chooseUsers = chooseUsers;
     _waitingDelegateInfos = new List<UserInfo>();
 }
Beispiel #3
0
 public CellTextID1(CellConstruct construct, SPList currentList)
     : base(construct)
 {
     if (rowHandler != null)
     {
         Cell idCell = rowHandler.FindCell("ID");
         idCell.PropertyChangedEvent += idCell_PropertyChangedEvent;
     }
     _currentList = currentList;
 }
Beispiel #4
0
 public CellTextDropdown(CellConstruct cellConst)
     : base(cellConst) 
 {
     _dropDownButtonClick = dropDownButton_MouseLeftButtonDown;
 }
Beispiel #5
0
        public Cell(CellConstruct cellConst) 
        {
            State = States.Normal;
            Column = cellConst.Column;
            Col = cellConst.Col;
            rowHandler = cellConst.rowHandler;
            CellTooltip = null;

            
        }
Beispiel #6
0
 public Cell BuildCheckBox(CellConstruct construct, params object[] args)
 {
     CellTextCheckBox cell = new CellTextCheckBox(construct, (bool)args[0], (string)args[1], (string)args[2]);
     return cell;
 }
Beispiel #7
0
 public Cell BuildHyperLink(CellConstruct construct, params object[] args)
 {
     CellTextHyperLink cell = new CellTextHyperLink(construct,(string)args[0]);
     return cell;
 }
Beispiel #8
0
 public Cell BuildMultiActivityLink(CellConstruct construct, params object[] args)
 {
     CellTextMultiActivity cell = new CellTextMultiActivity(construct, (ActivityFinderPopupViewModel)args[0],(string)args[1]);
     return cell;
 }
Beispiel #9
0
 public Cell BuildID1(CellConstruct construct, params object[] args)
 {
     CellTextID1 cell = new CellTextID1(construct, (SPList)args[0]);
     return cell;
 }
Beispiel #10
0
 public Cell BuildMultiUser(CellConstruct construct, params object[] args)
 {
     CellTextMultiUser cell = new CellTextMultiUser(construct, (DataHandlerUser)args[0], (ChooseUsers)args[1]);
     return cell;
 }
Beispiel #11
0
 public CellText BuildBusinessAreaDepends(CellConstruct construct, params object[] args)
 {
     CellTextDropdownDependsOrgStruct cell = new CellTextDropdownDependsOrgStruct(construct, (IEnumerable<OrgStructure>)args[0], (string)args[1]);
     return cell;
 }
Beispiel #12
0
 public CellText BuildSpecificFrequencyDepends(CellConstruct construct, params object[] args)
 {
     CellTextDropdownDependsSpecificFrequency cell = new CellTextDropdownDependsSpecificFrequency(construct, (IEnumerable<Frequency>)args[0], (string)args[1]);
     return cell;
 }
Beispiel #13
0
 public CellText(CellConstruct cellConst)
     : base(cellConst) { }
Beispiel #14
0
 public CellTextHyperLink(CellConstruct construct,String displayData)
     : base(construct)
 {
     _displayData = displayData;                        
 }