コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SiteMaster master = (SiteMaster)this.Master.Master;
     UNIDAD_CLINICA uc = CRUD_UnidadClinica.Read(master.ActiveUser.nombre);
     try
     {
         Session["S_UC"] = Int32.Parse(uc.UC_ID.ToString());
     }
     catch
     {
         Session["S_UC"] = 0;
     }
 }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SiteMaster     master = (SiteMaster)this.Master.Master;
            UNIDAD_CLINICA uc     = CRUD_UnidadClinica.Read(master.ActiveUser.nombre);

            try
            {
                Session["UC_ID"] = Int32.Parse(uc.UC_ID.ToString());
            }
            catch
            {
                Session["UC_ID"] = 0;
            }
            if (!IsPostBack)
            {
                ASPxComboBox1.Items.Insert(0, new ListEditItem("Bodega"));
                ASPxComboBox1.DataBound += new EventHandler(addItem_DataBound);
            }
        }