protected void Button1_Click(object sender, EventArgs e)
    {
        for (int i = 0; i < CheckBoxList1.Items.Count; i++)
        {
            if (CheckBoxList1.Items[i].Selected)
            {
                String county = CheckBoxList1.Items[i].Text.ToString();

                // DateTime hdate = Convert.ToDateTime(TextBox1.Text); //todo date validation
                String department = TextBox1.Text;
                String personname = TextBox2.Text;
                String location   = TextBox3.Text;
                String address    = TextBox4.Text;
                String phone      = TextBox5.Text;
                String phone2     = TextBox6.Text;
                String fax        = TextBox7.Text;
                String fax2       = TextBox8.Text;


                _ContactsHandler TempContacts = new _ContactsHandler(county);
                TempContacts.Contact_Create(department, personname, location, address, phone, phone2, fax, fax2);
            }
        }

        //Label5.Text = "done";
    }
예제 #2
0
    public Highland() //use object to cleanup
    {
        try
        {
            GDC_Create();
            JDR_Create();
            CIRCUIT_Create();


            _ContactsHandler AlleContacts = new _ContactsHandler("Highland");

            AlleContacts.Contact_Create("MAGISTRATE’S OFFICE", " ", "located at Alleghany Regional Jail/Sheriff’s Office", "268 West Main Street Covington, VA 24426", "965-1778", "965-1796", "965-1714", "965-1713");
            // AlleContacts.ExtraContact_Create("MAGISTRATE’S OFFICE", " ", "10.65.142.153", "10.65.142.150"); todo decide back or not
        }
        catch (Exception ex)
        {
            hi += "E : " + ex;
        }
    }