Example #1
0
        protected void SaveTestTypeBT_Click(object sender, EventArgs e)
        {
            testType aTestType = new testType();

            aTestType.tesType = testTypeNameTB.Text;
            TestManager aTestManager = new TestManager();

            if (aTestType.tesType != "")
            {
                bool test = aTestManager.isTestExist(aTestType.tesType);
                if (test == false)
                {
                    int x = aTestManager.save(aTestType.tesType);
                    showMessageLB.Text = x + " Row Affected";

                    TestManager     aManager = new TestManager();
                    List <testType> aList    = aManager.ShowList();
                    ShoeAllGridView.DataSource = aList;
                    ShoeAllGridView.DataBind();
                }
                else
                {
                    showMessageLB.Text = "Data Exists";
                }
            }
            else
            {
                showMessageLB.Text = "It's Blank";
            }
        }
Example #2
0
        public List <testType> GetAllList()
        {
            SqlConnection connection = new SqlConnection(connectionString);
            //connection.ConnectionString = connectionString;
            //2. Qeury
            string query = "SELECT * FROM Test_type";

            connection.Open();
            SqlCommand    command = new SqlCommand(query, connection);
            SqlDataReader reader  = command.ExecuteReader();

            List <testType> aList = new List <testType>();

            if (reader.HasRows)
            {
                int i = 1;
                while (reader.Read())
                {
                    testType aTestType = new testType();
                    aTestType.tesType = reader["tt_type"].ToString();
                    aTestType.id      = i;
                    aList.Add(aTestType);
                    i++;
                }
                reader.Close();
            }
            connection.Close();
            return(aList);
        }
Example #3
0
    private void button1_Click(object sender, EventArgs e)
    {
        txtOutput.Text = "";
        if (AOP_Test.ToLogisNull())
        {
            AOP_Test.ToLog += ToTxtOutputAdd;  //ToTxtOutputChange;
        }
        MethodInfo methodtest = typeof(testType).GetMethod("test1");
        MethodInfo testbegin1 = typeof(AOP_Test).GetMethod("b1");
        MethodInfo testend1   = typeof(AOP_Test).GetMethod("e1");
        MethodInfo testbegin2 = typeof(AOP_Test).GetMethod("b2");
        MethodInfo testend2   = typeof(AOP_Test).GetMethod("e2");

        AOP.Z.AddM(methodtest, testbegin1, testend1);
        int i = 999;

        testType v    = new testType();
        string   Res1 = v.test1(i, "test1").ToString();

        testType v2 = new testType();

        AOP.Z.AddO(methodtest, v2, testbegin2, testend2);
        string Res2 = v2.test1(i, "test2").ToString();

        ToTxtOutputAdd(Res1 + Res2);

        MethodInfo f_ = typeof(testType).GetMethod("statictest1");

        AOP.Z.AddM(f_, testbegin1, testend1);
        testType.statictest1(ref i, "12", 11, new IntPtr(333));
        ToTxtOutputAdd(testType.testOutsideFieldint.ToString());
    }
Example #4
0
 public void setExamType(testType _type)
 {
     if (exam != null)
     {
         exam.examType = _type;
     }
 }
Example #5
0
    public object test4(object inputtestType)
    {
        RaiseIL.Dummy(RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy());
        Trace.WriteLine(3.ToString());
        StringBuilder stringBuildertest = (StringBuilder)inputtestType;

        stringBuildertest.Append('h');
        testType testTypetest = (testType)inputtestType;

        testTypetest.Append('h');
        MessageBox.Show(stringBuildertest.Capacity.ToString());
        return(7);
    }
Example #6
0
    public object test4(object inputtestType)
    {
        RaiseIL.Dummy(RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy(), RaiseIL.Dummy());
        Trace.WriteLine(3.ToString());
        StringBuilder stringBuildertest = (StringBuilder)inputtestType;

        stringBuildertest.Append('h');
        testType testTypetest = (testType)inputtestType;

        testTypetest.Append('h');
        System.Diagnostics.Debug.WriteLine(stringBuildertest.Capacity.ToString());
        return(7);
    }
Example #7
0
 public DDPNotificationType()
 {
     this.testField = testType.Item0;
 }
Example #8
0
 public SystemStatusType()
 {
     this.testField = testType.Item0;
 }
Example #9
0
 public DDPUpdateType()
 {
     this.testField = testType.Item0;
 }
Example #10
0
 public PricingUpdateType()
 {
     this.testField = testType.Item0;
 }
Example #11
0
 public PricingNotificationType()
 {
     this.testField = testType.Item0;
 }
Example #12
0
 public SARSURPICType()
 {
     this.testField = testType.Item0;
 }
Example #13
0
 public ShipPositionRequestType()
 {
     this.testField = testType.Item0;
 }
Example #14
0
 public ReceiptType()
 {
     this.testField = testType.Item0;
 }
Example #15
0
 public void MarkAsModified(testType item)
 {
 }
Example #16
0
 public PricingRequestType()
 {
     this.testField = testType.Item0;
 }
Example #17
0
 public DDPRequestType()
 {
     this.testField = testType.Item0;
 }
Example #18
0
 public JournalReportType()
 {
     this.testField = testType.Item0;
 }