protected void Button1_Click(object sender, EventArgs e)
    {
        int receptionistId = Convert.ToInt32(Session["receptionistId"].ToString());
        string phoneNo = TextBox4.Text;
        string callDate = DateTime.ParseExact(TextBox1.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string callTime = TextBox2.Text;
        string callerName = TextBox3.Text;
        int callForwardedTo = Convert.ToInt32(DropDownList1.SelectedValue);

        AddPhoneCallForwardBL objAddPhoneCallForwardBL = new AddPhoneCallForwardBL();
        objAddPhoneCallForwardBL.AddPhoneCallForward(receptionistId, phoneNo, callDate, callTime, callerName, callForwardedTo);

        Label6.Text = "Phone Record Saved";

        TextBox1.Text = "";
        TextBox2.Text = "";
        TextBox3.Text = "";
        TextBox4.Text = "";
        DropDownList1.SelectedIndex = 0;
    }
Exemple #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        int    receptionistId  = Convert.ToInt32(Session["receptionistId"].ToString());
        string phoneNo         = TextBox4.Text;
        string callDate        = DateTime.ParseExact(TextBox1.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string callTime        = TextBox2.Text;
        string callerName      = TextBox3.Text;
        int    callForwardedTo = Convert.ToInt32(DropDownList1.SelectedValue);

        AddPhoneCallForwardBL objAddPhoneCallForwardBL = new AddPhoneCallForwardBL();

        objAddPhoneCallForwardBL.AddPhoneCallForward(receptionistId, phoneNo, callDate, callTime, callerName, callForwardedTo);

        Label6.Text = "Phone Record Saved";

        TextBox1.Text = "";
        TextBox2.Text = "";
        TextBox3.Text = "";
        TextBox4.Text = "";
        DropDownList1.SelectedIndex = 0;
    }