Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     LoadGrid();
     if (!IsPostBack)
     {
         DropDownListPlan.DataSource     = PlanLogic.GetAll();
         DropDownListPlan.DataTextField  = "Descripcion";
         DropDownListPlan.DataValueField = "ID";
         DropDownListPlan.DataBind();
         DropDownListPlan.SelectedIndex = -1;
     }
 }
Ejemplo n.º 2
0
        public void fillData()
        {
            DropDownListState.DataTextField = objBusinessLayer.BusinessFillState().Columns[0].ToString();
            objDataTableState            = objBusinessLayer.BusinessFillState();
            DropDownListState.DataSource = objDataTableState;
            DropDownListState.DataBind();

            DropDownListPlan.DataTextField = objBusinessLayer.BusinessFillPlan().Columns[0].ToString();
            objDataTablePlan            = objBusinessLayer.BusinessFillPlan();
            DropDownListPlan.DataSource = objDataTablePlan;
            DropDownListPlan.DataBind();

            string lid = objBusinessLayer.BusinessGetLastRe().Rows[0]["PatientId"].ToString();
            long   id  = Convert.ToInt64(lid) + 1;

            lblPatientID.Text = Convert.ToString(id);
        }