79 строки
7.0 KiB
C#
79 строки
7.0 KiB
C#
#region Copyright Syncfusion Inc. 2001-2022.
|
|
// Copyright Syncfusion Inc. 2001-2022. All rights reserved.
|
|
// Use of this code is subject to the terms of our license.
|
|
// A copy of the current license can be obtained at any time by e-mailing
|
|
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
// applicable laws.
|
|
#endregion
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Data.OleDb;
|
|
using System.Data.Sql;
|
|
using System.Data.SqlClient;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Web;
|
|
using System.Web.SessionState;
|
|
using System.Web.UI;
|
|
using System.Web.UI.HtmlControls;
|
|
using System.Web.UI.WebControls;
|
|
using System.Xml;
|
|
|
|
namespace WebSampleBrowser.Grid
|
|
{
|
|
|
|
public partial class CellMerging : System.Web.UI.Page
|
|
{
|
|
public List<Merge> GetInversedData()
|
|
{
|
|
List<Merge> obj = new List<Merge>();
|
|
for (var i = 0; i < 1; i++)
|
|
{
|
|
obj.Add(new Merge() { EmployeeID = "10001", EmployeeName = "Davolio", Time900 = "Analysis Tasks", Time930 = "Analysis Tasks", Time1000 = "Team Meeting", Time1030 = "Testing", Time1100 = "Development", Time1130 = "Development", Time1200 = "Development", Time1230 = "Support", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Testing", Time300 = "Testing", Time330 = "Development", Time400 = "Conference", Time430 = "Team Meeting", Time500 = "Team Meeting" });
|
|
obj.Add(new Merge() { EmployeeID = "10002", EmployeeName = "Buchanan", Time900 = "Task Assign", Time930 = "Support", Time1000 = "Support", Time1030 = "Support",Time1100 = "Testing",Time1130 = "Testing", Time1200 = "Testing", Time1230 = "Testing", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Development", Time300 = "Development", Time330 = "Check Mail", Time400 = "Check Mail", Time430 = "Team Meeting", Time500 = "Team Meeting"});
|
|
obj.Add(new Merge() { EmployeeID = "10003", EmployeeName = "Fuller", Time900 = "Check Mail", Time930 = "Check Mail", Time1000 = "Check Mail", Time1030 = "Analysis Tasks",Time1100 = "Analysis Tasks",Time1130 = "Support", Time1200 = "Support", Time1230 = "Support", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Development", Time300 = "Development", Time330 = "Team Meeting", Time400 = "Team Meeting", Time430 = "Development", Time500 = "Development"});
|
|
obj.Add(new Merge() { EmployeeID = "10004", EmployeeName = "Leverling", Time900 = "Check Mail", Time930 = "Check Mail", Time1000 = "Check Mail", Time1030 = "Support",Time1100 = "Testing",Time1130 = "Testing", Time1200 = "Testing", Time1230 = "Testing", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Development", Time300 = "Development", Time330 = "Check Mail", Time400 = "Conference", Time430 = "Conference", Time500 = "Team Meeting" });
|
|
obj.Add(new Merge() { EmployeeID = "10005", EmployeeName = "Peacock", Time900 = "Task Assign", Time930 = "Task Assign", Time1000 = "Task Assign", Time1030 = "Task Assign",Time1100 = "Check Mail",Time1130 = "Support", Time1200 = "Support", Time1230 = "Support", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Development", Time300 = "Development", Time330 = "Team Meeting", Time400 = "Team Meeting", Time430 = "Testing", Time500 = "Testing" });
|
|
obj.Add(new Merge() { EmployeeID = "10006", EmployeeName = "Janet", Time900 = "Testing", Time930 = "Testing", Time1000 = "Support", Time1030 = "Support",Time1100 = "Support",Time1130 = "Team Meeting", Time1200 = "Team Meeting", Time1230 = "Team Meeting", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Development", Time300 = "Development", Time330 = "Team Meeting", Time400 = "Team Meeting", Time430 = "Development", Time500 = "Development"});
|
|
obj.Add(new Merge() { EmployeeID = "10007", EmployeeName = "Suyama", Time900 = "Analysis Tasks", Time930 = "Analysis Tasks", Time1000 = "Testing", Time1030 = "Development",Time1100 = "Development",Time1130 = "Testing", Time1200 = "Testing", Time1230 = "Testing", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Support", Time300 = "Build", Time330 = "Build", Time400 = "Check Mail", Time430 = "Check Mail", Time500 = "Check Mail" });
|
|
obj.Add(new Merge() { EmployeeID = "10008", EmployeeName = "Robert", Time900 = "Task Assign", Time930 = "Task Assign", Time1000 = "Task Assign", Time1030 = "Development",Time1100 = "Development",Time1130 = "Development", Time1200 = "Testing", Time1230 = "Support", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Check Mail", Time300 = "Check Mail", Time330 = "Check Mail", Time400 = "Team Meeting", Time430 = "Team Meeting", Time500 = "Build" });
|
|
obj.Add(new Merge() { EmployeeID = "10009", EmployeeName = "Andrew", Time900 = "Testing", Time930 = "Team Meeting", Time1000 = "Team Meeting", Time1030 = "Support",Time1100 = "Testing",Time1130 = "Development", Time1200 = "Development", Time1230 = "Development", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Check Mail", Time300 = "Check Mail", Time330 = "Check Mail", Time400 = "Team Meeting", Time430 = "Development", Time500 = "Development" });
|
|
obj.Add(new Merge() { EmployeeID = "10010", EmployeeName = "Michael", Time900 = "Task Assign", Time930 = "Task Assign", Time1000 = "Task Assign", Time1030 = "Analysis Tasks",Time1100 = "Analysis Tasks",Time1130 = "Development", Time1200 = "Development", Time1230 = "Development", Time100 = "Lunch Break", Time130 = "Lunch Break", Time200 = "Lunch Break", Time230 = "Testing", Time300 = "Testing", Time330 = "Testing", Time400 = "Build", Time430 = "Build", Time500 = "Build" });
|
|
}
|
|
return obj;
|
|
}
|
|
private void Page_Load(object sender, System.EventArgs e)
|
|
{
|
|
List<Merge> dr = GetInversedData();
|
|
this.EmployeeGrid.DataSource = dr;
|
|
this.EmployeeGrid.DataBind();
|
|
}
|
|
}
|
|
|
|
public class Merge
|
|
{
|
|
public string EmployeeID { get; set; }
|
|
public string EmployeeName { get; set; }
|
|
public string Time900 { get; set; }
|
|
public string Time930 { get; set; }
|
|
public string Time1000 { get; set; }
|
|
public string Time1030 { get; set; }
|
|
public string Time1100 { get; set; }
|
|
public string Time1130 { get; set; }
|
|
public string Time1200 { get; set; }
|
|
public string Time1230 { get; set; }
|
|
public string Time100 { get; set; }
|
|
public string Time130 { get; set; }
|
|
public string Time200 { get; set; }
|
|
public string Time230 { get; set; }
|
|
public string Time300 { get; set; }
|
|
public string Time330 { get; set; }
|
|
public string Time400 { get; set; }
|
|
public string Time430 { get; set; }
|
|
public string Time500 { get; set; }
|
|
}
|
|
} |