protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now); aCenter = (DAL.DAO.Center)Session["CenterInfoDetails"]; centerName.Text = aCenter.Name; List<CenterMedicineStock> medicinStockList = aCenterManager.GetStock(aCenter); LoadDataGridView(medicinStockList); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now); aCenter = (DAL.DAO.Center)Session["CenterInfoDetails"]; centerName.Text = aCenter.Name; List <CenterMedicineStock> medicinStockList = aCenterManager.GetStock(aCenter); LoadDataGridView(medicinStockList); }
protected void Page_Load(object sender, EventArgs e) { newCenter = (DAL.DAO.Center)Session["CenterInfoDetails"]; if (!IsPostBack) { LoadDoctorDropDownList(); LoadDiseaseDropDownList(); GetMedicineList(); LoadMedicineDropDownList(); LoadDataGridView(); } }
public int SaveCenter(DAL.DAO.Center aCenter, out string password) { password = newCode.PasswordGenerate(); if (aCenterGateway.IsCenterExist(aCenter.Name, aCenter.ThanaID)) { return(-1); } else { aCenter.Password = newCode.Encrypt(password); return(aCenterGateway.SaveCenter(aCenter)); } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now); if (Session["CenterInfoDetails"] != null) { newCenter = (DAL.DAO.Center)Session["CenterInfoDetails"]; centerName.Text = newCenter.Name; } else { Response.Redirect("~/CenterLoginUI.aspx"); } }
public List <CenterMedicineStock> GetStock(DAL.DAO.Center newCenter) { List <CenterMedicineStock> listofStock = aCenterGateway.ListofStocks(newCenter); List <CenterMedicineStock> medicineStockWithDetails = new List <CenterMedicineStock>(); foreach (CenterMedicineStock medicineStock in listofStock) { CenterMedicineStock newMedicineStock = new CenterMedicineStock(); newMedicineStock.Quantity = medicineStock.Quantity; newMedicineStock.MedicineName = aCenterGateway.MedicineName(medicineStock.MedicineID); medicineStockWithDetails.Add(newMedicineStock); } return(medicineStockWithDetails); }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now); if (Session["CenterInfoDetails"] != null) { newCenter = (DAL.DAO.Center) Session["CenterInfoDetails"]; centerName.Text = newCenter.Name; } else { Response.Redirect("~/CenterLoginUI.aspx"); } }
protected void saveDoctorButton_Click(object sender, EventArgs e) { Doctor newDoctor = new Doctor(); DAL.DAO.Center newCenter = (DAL.DAO.Center)Session["CenterInfoDetails"]; newDoctor.CenterID = newCenter.ID; newDoctor.Name = nameOfDoctorTextBox.Text; newDoctor.Degree = degreeOfDoctorTextBox.Text; newDoctor.Specialization = specializationOfDoctorTextBox.Text; if (aCenterManager.SaveDoctorInfo(newDoctor) == true) { labelNotification.Text = "Doctor Information Saved Successfully"; labelNotification.ForeColor = Color.Green; nameOfDoctorTextBox.Text = degreeOfDoctorTextBox.Text = specializationOfDoctorTextBox.Text = null; } else { labelNotification.Text = "Doctor Information can't save"; labelNotification.ForeColor = Color.Red; } }
public List <CenterMedicineStock> GetAllMedicineByCenterID(DAL.DAO.Center center) { return(aCenterGateway.ListofStocks(center)); }
public bool CenterInfoCheck(string Name, string password, out DAL.DAO.Center newCenter) { return(aCenterGateway.IsCenterExist(Name, Code.Encrypt(password), out newCenter)); }