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

        AddPhoneCallEmergencyBL objAddPhoneCallEmergencyBL = new AddPhoneCallEmergencyBL();
        objAddPhoneCallEmergencyBL.AddPhoneCallEmergency(receptionistId, phoneNo, callDate, callTime, callerName, callerArea, emergencyDetails);

        Label6.Text = "Phone Call Record Saved";

        TextBox1.Text = "";
        TextBox2.Text = "";
        TextBox3.Text = "";
        TextBox4.Text = "";
        TextBox5.Text = "";
        TextBox6.Text = "";
    }
Exemplo n.º 2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        int    receptionistId   = Convert.ToInt32(Session["receptionistId"].ToString());
        string phoneNo          = TextBox6.Text;
        string callDate         = DateTime.ParseExact(TextBox1.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
        string callTime         = TextBox2.Text;
        string callerName       = TextBox3.Text;
        string callerArea       = TextBox5.Text;
        string emergencyDetails = TextBox5.Text;

        AddPhoneCallEmergencyBL objAddPhoneCallEmergencyBL = new AddPhoneCallEmergencyBL();

        objAddPhoneCallEmergencyBL.AddPhoneCallEmergency(receptionistId, phoneNo, callDate, callTime, callerName, callerArea, emergencyDetails);

        Label6.Text = "Phone Call Record Saved";

        TextBox1.Text = "";
        TextBox2.Text = "";
        TextBox3.Text = "";
        TextBox4.Text = "";
        TextBox5.Text = "";
        TextBox6.Text = "";
    }