Пример #1
0
 public ActionResult MedicalProfile(MedicalAccount aMedicalAccount)
 {
     if (aMedicalAccount.MedicalContactNo2 == null)
     {
         aMedicalAccount.MedicalContactNo2 = "";
     }
     if (aMedicalAccount.AmbulanceContact == null)
     {
         aMedicalAccount.AmbulanceContact = "";
     }
     if (User.IsInRole("Medical"))
     {
         ViewBag.Message    = aMedicalManager.UpdateMedicalProfile(aMedicalAccount);
         aMedicalAccount    = aMedicalManager.GetMedicalData(MedicalUsername);
         ViewBag.GetMedical = aMedicalAccount;
     }
     ViewBag.GetName = GetMedicalData().MedicalName;
     return(View());
 }
Пример #2
0
    protected void cmdStart_Click(object sender, EventArgs e)
    {
        try
        {
            objMedMgr.UpdateMedicalProfile(grEmployee);
            dtMed                = objMedMgr.SelectMedicalPeriod();
            btnStart.Enabled     = false;
            GridView1.DataSource = dtMed;
            GridView1.DataBind();
            this.FormatGridview();

            GridView2.DataSource = dtMed;
            GridView2.DataBind();
            this.FormatGridview2();
        }
        catch (Exception ex)
        {
            throw (ex);
        }
        lblMsg.Text = "Medical renew process has been completed successfully";
    }