Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
    }
Exemplo n.º 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);
    }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }