Пример #1
0
 private void initDutyTable(string id)
 {
     DataClassesDataContext db = new DataClassesDataContext();
     FillTable ft = new FillTable(10, 7);
     ft.creatDataArray(db.Duty.Where(dutys=>dutys.assistantID==id).ToList());
     ft.fillDataArrayToTable(DutyTable,NoValueDisplay.Nothing);
 }
Пример #2
0
 private void initDutyTable()
 {
     DataClassesDataContext db = new DataClassesDataContext();
     FillTable ft = new FillTable(10, 7);
     ft.creatDataArray(db.Duty.ToList());
     ft.fillDataArrayToTable(DutyTable,NoValueDisplay.NoValueString);
 }
Пример #3
0
    private void initDutyTable()
    {
        DataClassesDataContext db = new DataClassesDataContext();
        FillTable ft = new FillTable(10, 7);

        ft.creatDataArray(db.Duty.ToList());
        ft.fillDataArrayToTable(DutyTable, NoValueDisplay.NoValueString);
    }
Пример #4
0
    private void initDutyTable(string id)
    {
        DataClassesDataContext db = new DataClassesDataContext();
        FillTable ft = new FillTable(10, 7);

        ft.creatDataArray(db.Duty.Where(dutys => dutys.assistantID == id).ToList());
        ft.fillDataArrayToTable(DutyTable, NoValueDisplay.Nothing);
    }
Пример #5
0
 public void fillDataArrayToTableTest()
 {
     DataClassesDataContext db = new DataClassesDataContext("Data Source=FIREFLY-PC;Initial Catalog=LASDB;Integrated Security=True");
     FillTable ft = new FillTable(10, 7);
     Table table = new Table();
     ft.creatDataArray(db.Duty.ToList());
     ft.fillDataArrayToTable(table, NoValueDisplay.NoValueString);
     Assert.IsNotNull(table);
 }
Пример #6
0
        public void fillDataArrayToTableTest()
        {
            DataClassesDataContext db = new DataClassesDataContext("Data Source=FIREFLY-PC;Initial Catalog=LASDB;Integrated Security=True");
            FillTable ft    = new FillTable(10, 7);
            Table     table = new Table();

            ft.creatDataArray(db.Duty.ToList());
            ft.fillDataArrayToTable(table, NoValueDisplay.NoValueString);
            Assert.IsNotNull(table);
        }
Пример #7
0
 public void creatDataArrayTest()
 {
     FillTable fillTable = new FillTable(10, 7);
     DataClassesDataContext db = new DataClassesDataContext("Data Source=FIREFLY-PC;Initial Catalog=LASDB;Integrated Security=True");
     List<Duty> dutys = db.Duty.ToList();
     fillTable.creatDataArray(db.Duty.ToList());
     foreach (Duty duty in dutys)
     {
         Assert.IsTrue(fillTable.DataArray[duty.time][duty.day - 1].Any(d=> d==duty.Assistants.name));
     }
 }
Пример #8
0
        public void creatDataArrayTest()
        {
            FillTable fillTable          = new FillTable(10, 7);
            DataClassesDataContext db    = new DataClassesDataContext("Data Source=FIREFLY-PC;Initial Catalog=LASDB;Integrated Security=True");
            List <Duty>            dutys = db.Duty.ToList();

            fillTable.creatDataArray(db.Duty.ToList());
            foreach (Duty duty in dutys)
            {
                Assert.IsTrue(fillTable.DataArray[duty.time][duty.day - 1].Any(d => d == duty.Assistants.name));
            }
        }