public void TestSetup()
        {
            grid_testObject = new MonthlyOperationGridClientSettings();

            userTA.InsertQuery(ADOPerson1.ID, "TestADOPerson6");
            DatabaseGateway.TA_SecurityUserDataTable userTable = userTable = userTA.GetDataByUserName("TestADOPerson6");
            ADOUser6.ID       = Convert.ToInt32(userTable.Rows[0]["user_ID"]);
            ADOUser6.UserName = "******";

            DatabaseGateway.TA_LanguagesDataTable langTable = langTA.GetData();
            ADOLAnguage1.ID = Convert.ToInt32(langTable.Rows[0][0]);
            ADOLAnguage2.ID = Convert.ToInt32(langTable.Rows[1][0]);

            userSettingTA.Insert(ADOUser1.ID, ADOLAnguage1.ID, null);
            userSettingTA.Insert(ADOUser2.ID, ADOLAnguage2.ID, null);

            DatabaseGateway.TA_UserSettingsDataTable userSetTanle = new DatabaseGateway.TA_UserSettingsDataTable();
            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser1.UserName);
            ADOUserSet1.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser2.UserName);
            ADOUserSet2.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            gridTA.Insert(ADOUserSet1.ID, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true);

            busGridSettings = new BGridMonthlyOperationClientSettings(ADOUser1.UserName);
            DatasetGatewayWorkFlow.TA_GridMonthlyOperationGridClientSettingsDataTable table = new DatasetGatewayWorkFlow.TA_GridMonthlyOperationGridClientSettingsDataTable();
            table       = gridTA.GetDataByUsername(ADOUser1.UserName);
            ADOgrid1.ID = Convert.ToInt32(table.Rows[0][0]);
        }
Ejemplo n.º 2
0
        public void TestSetup()
        {
            busUserSettings  = new BUserSettings();
            email_testObject = new EmailSettings();

            userTA.InsertQuery(ADOPerson1.ID, "TestADOPerson6");
            DatabaseGateway.TA_SecurityUserDataTable userTable = userTable = userTA.GetDataByUserName("TestADOPerson6");
            ADOUser6.ID       = Convert.ToInt32(userTable.Rows[0]["user_ID"]);
            ADOUser6.UserName = "******";

            DatabaseGateway.TA_LanguagesDataTable langTable = langTA.GetData();
            ADOLAnguage1.ID = Convert.ToInt32(langTable.Rows[0][0]);
            ADOLAnguage2.ID = Convert.ToInt32(langTable.Rows[1][0]);

            userSettingTA.Insert(ADOUser1.ID, ADOLAnguage1.ID, null);
            userSettingTA.Insert(ADOUser2.ID, ADOLAnguage2.ID, null);

            DatabaseGateway.TA_UserSettingsDataTable userSetTanle = userSettingTA.GetDataByUsername(ADOUser1.UserName);
            ADOUserSet1.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser2.UserName);
            ADOUserSet2.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            emailTA.Insert(ADOUserSet1.ID, true, true, 1, 420, 0, ADOUserSet1.ID);

            DatabaseGateway2.TA_EmailSettingsDataTable table = new DatabaseGateway2.TA_EmailSettingsDataTable();
            table = emailTA.GetDataByUserName(ADOUser1.UserName);
            ADOEmailSetting1.ID = Convert.ToInt32(table.Rows[0][0]);

            smsTA.Insert(ADOUserSet1.ID, true, true, 1, 420, 0, ADOUserSet1.ID);
            ADOSMSSetting1.ID = ADOUserSet1.ID;
        }
Ejemplo n.º 3
0
        public void TestSetup()
        {
            grid_testObject = new GanttChartClientSettings();


            DatabaseGateway.TA_LanguagesDataTable langTable = langTA.GetData();
            ADOLAnguage1.ID = Convert.ToInt32(langTable.Rows[0][0]);
            ADOLAnguage2.ID = Convert.ToInt32(langTable.Rows[1][0]);

            userSettingTA.Insert(ADOUser1.ID, ADOLAnguage1.ID, null);
            userSettingTA.Insert(ADOUser2.ID, ADOLAnguage2.ID, null);

            DatabaseGateway.TA_UserSettingsDataTable userSetTanle = new DatabaseGateway.TA_UserSettingsDataTable();
            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser1.UserName);
            ADOUserSet1.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser2.UserName);
            ADOUserSet2.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            gunchartTA.Insert(ADOUserSet1.ID, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true);

            //UpdateCurrentUserPersonId(ADOPerson1.ID);
            busGuncharSettings = new BGanttChartClientSettings(ADOUser1.UserName);
            DatasetGatewayWorkFlow.TA_GunChartClientSettingsDataTable table = new DatasetGatewayWorkFlow.TA_GunChartClientSettingsDataTable();
            table       = gunchartTA.GetDataByUserName(ADOUser1.UserName);
            ADOgrid1.ID = Convert.ToInt32(table.Rows[0][0]);
        }
Ejemplo n.º 4
0
        public void TestSetup()
        {
            grid_testObject = new MonthlyOperationGridMasterSettings();

            DatabaseGateway.TA_LanguagesDataTable langTable = langTA.GetData();
            ADOLAnguage1.ID = Convert.ToInt32(langTable.Rows[0][0]);
            ADOLAnguage2.ID = Convert.ToInt32(langTable.Rows[1][0]);

            userSettingTA.Insert(ADOUser1.ID, ADOLAnguage1.ID, null);
            userSettingTA.Insert(ADOUser2.ID, ADOLAnguage2.ID, null);
            DatabaseGateway.TA_UserSettingsDataTable userSetTanle = new DatabaseGateway.TA_UserSettingsDataTable();
            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser1.UserName);
            ADOUserSet1.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            userSetTanle   = userSettingTA.GetDataByUsername(ADOUser2.UserName);
            ADOUserSet2.ID = Convert.ToInt32(userSetTanle.Rows[0][0]);

            gridTA.Insert(ADOUserSet1.ID, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true);

            busGridSettings = new BGridMonthlyOperationMasterSettings(ADOUser1.UserName);
            DatasetGatewayWorkFlow.TA_GridMonthlyOperationGridMasterSettingsDataTable table = new DatasetGatewayWorkFlow.TA_GridMonthlyOperationGridMasterSettingsDataTable();
            table       = gridTA.GetDataByUsername(ADOUser1.UserName);
            ADOgrid1.ID = Convert.ToInt32(table.Rows[0][0]);
        }