示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Check Valid User
        if (Session["UserID"] == null)
        {
            Response.Redirect("~/AdminPanel/Authentication/CheckUser.aspx?url=" + Server.UrlEncode(Request.Url.AbsoluteUri));
        }
        #endregion Check Valid User

        if (!Page.IsPostBack)
        {
            CommonFillMethods.fillDropDownListDepartment(ddlDepartment);

            if (Request.QueryString["HospitalID"] == null)
            {
                Response.Redirect("~/AdminPanel/Hospital/HospitalList.aspx");
            }
            else
            {
                if (Request.QueryString["DoctorID"] == null)
                {
                    pnlLoginDetail.Visible = true;
                }
                else
                {
                    pnlLoginDetail.Visible = false;
                }
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            fillDropdownList();
            if (Session["UserID"] != null)
            {
                if (Session["Select"].ToString() == "Employee")
                {
                    CommonFillMethods.SelectWithoutHODForDropDownList(ddlDesignation);
                }
                else if (Session["Select"].ToString() == "HOD")
                {
                    CommonFillMethods.fillDropDownListDesignation(ddlDesignation);
                }

                fillControls(Convert.ToInt32(Session["UserID"].ToString().Trim()));
                lblHeadeing.Text = "User Edit Details";
            }
            else
            {
                PanelHOD.Visible = false;
                CommonFillMethods.fillDropDownListDesignation(ddlDesignation);
                lblHeadeing.Text = "New User Registration";
            }
        }
    }
示例#3
0
 private void fillDropDownList()
 {
     CommonFillMethods.FillDropDownListBloodGroup(ddlBloodGroup);
     CommonFillMethods.FillDropDownListCity(ddlCity);
     CommonFillMethods.FillDropDownListContactCategory(ddlContactCategory);
     CommonFillMethods.FillDropDownListCountry(ddlCountry);
     CommonFillMethods.FillDropDownListState(ddlState);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ViewState["CityID"]       = "";
         ViewState["SpecialityID"] = "";
         fillHospitalRepeater(1);
         CommonFillMethods.fillCheckBoxListCity(chklCity);
         CommonFillMethods.fillCheckBoxListSpeciality(chklSpeciality);
     }
 }
示例#5
0
 protected void ddlState_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlState.SelectedIndex > 0)
     {
         CommonFillMethods.FillDropDownListCityByStateID(ddlCity, Convert.ToInt32(ddlState.SelectedValue.Trim()));
         ddlCity.Focus();
     }
     else
     {
         CommonFillMethods.FillDropDownListEmpty(ddlCity);
     }
 }
示例#6
0
    private void FilAddressDetails()
    {
        AddressBAL balAddress = new AddressBAL();
        AddressENT entAddress = new AddressENT();

        entAddress = balAddress.SelectByPK(Convert.ToInt32(Session["AddressID"]), Convert.ToInt32(Session["UserID"]));

        if (!entAddress.FullName.IsNull)
        {
            txtFullName.Text = entAddress.FullName.Value;
        }

        if (!entAddress.StateID.IsNull)
        {
            ddlState.SelectedValue = entAddress.StateID.Value.ToString();
        }

        if (!entAddress.CityID.IsNull)
        {
            ddlCity.SelectedValue = entAddress.CityID.Value.ToString();
            CommonFillMethods.FillDropDownListCityByStateID(ddlCity, entAddress.StateID);
        }

        if (!entAddress.Address1.IsNull)
        {
            txtAddressLine1.Text = entAddress.Address1.Value;
        }

        if (!entAddress.Address2.IsNull)
        {
            txtAddressLine2.Text = entAddress.Address2.Value;
        }

        if (!entAddress.Postcode.IsNull)
        {
            txtPostCode.Text = entAddress.Postcode.Value.ToString();
        }

        if (!entAddress.MobileNo.IsNull)
        {
            txtMobileNo.Text = entAddress.MobileNo.Value;
        }
    }
示例#7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Check Valid User
        if (Session["UserID"] == null)
        {
            Response.Redirect("~/AdminPanel/Authentication/CheckUser.aspx?url=" + Server.UrlEncode(Request.Url.AbsoluteUri));
        }
        #endregion Check Valid User

        if (!Page.IsPostBack)
        {
            CommonFillMethods.fillDropDownListCity(ddlCity);
            CommonFillMethods.fillDropDownListSpeciality(ddlSpeciality);
            CommonFillMethods.fillCheckBoxListReport(chlReport);

            if (Request.QueryString["HospitalID"] == null)
            {
            }
            else
            {
                FillControls(Convert.ToInt32(Request.QueryString["HospitalID"].ToString().Trim()));
            }
        }
    }
 private void FillDropDownList()
 {
     CommonFillMethods.FillDropDownListState(ddlStateID);
 }
示例#9
0
 private void fillDropDownList()
 {
     CommonFillMethods.FillDropDownListCountry(ddlCountry);
 }
 private void FillDropDownList()
 {
     CommonFillMethods.FillDropDownListCityID(ddlCity);
     CommonFillMethods.FillDropDownListCategoryID(ddlCategory);
     CommonFillMethods.FillDropDownListCategoryTypeID(ddlCategoryType);
 }
 private void fillDropdownList()
 {
     CommonFillMethods.fillDropDownListDepartment(ddlDepartment);
     CommonFillMethods.fillDropDownListInstitute(ddlInstitute);
 }
示例#12
0
 private void FillDropDownList()
 {
     CommonFillMethods.FillDropDownListState(ddlState);
     CommonFillMethods.FillDropDownListEmpty(ddlCity);
 }
示例#13
0
 private void fillDropdownList()
 {
     CommonFillMethods.fillDropDownListLeaveType(ddlLeaveType, Convert.ToInt32(Session["UserID"].ToString().Trim()));
 }
 private void FillDropDownList()
 {
     CommonFillMethods.FillDropDownListCategory(ddlCategoryID);
 }