CNSA-216-FP/FWA_MAIN/physnew02.aspx.cs
netnobody19 0c31e87b73 Final
2024-04-03 19:23:50 -04:00

48 lines
1.4 KiB
C#

using System;
using System.Web.UI;
namespace FWA_MAIN
{
public partial class physnew02 : Page
{
protected string physID;
protected void Page_Load(object sender, EventArgs e)
{
physID = Crypt.Decrypt(Request.QueryString["ID"]);
txtPhysID.Enabled = false;
txtPhysID.Text = physID;
}
protected void btnCancelPhys_OnClick(object sender, EventArgs e)
{
Response.Redirect("physician.aspx");
}
protected void btnSavePhys_OnClick(object sender, EventArgs e)
{
string id = Val.varchar(txtPhysID, 8);
string FNAME = Val.varchar(txtFNAME, 30);
string LNAME = Val.varchar(txtLNAME, 30);
string MidInit = Val.varchar(txtMidInit, 1);
Int16 zip = Val.SmallIntType(txtZip);
string city = Val.varchar(txtCity, 30);
string state = Val.varchar(txtState, 2);
DateTime date = Val.Date(txtDOB);
string phone = Val.varchar(txtPhone, 14);
string gender = Val.varchar(txtGender, 1);
string specialty = Val.varchar(txtSpecialty, 100);
PharmacyDataTier.CreatePhysician(id,FNAME,LNAME,MidInit,date,gender,city,zip,state,phone,specialty);
Response.Redirect("physician.aspx");
}
}
}