コード例 #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);
        }