Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ClassDrugCompany generateComId = new ClassDrugCompany();

            txCompanyId.Text = generateComId.GenerateCompanyId();

            btnDelete.CssClass = "btn btn-danger disabled";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Web.UI.HtmlControls.HtmlGenericControl li    = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("liCompany");
            System.Web.UI.HtmlControls.HtmlGenericControl span1 = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("spanCompany1");
            System.Web.UI.HtmlControls.HtmlGenericControl span2 = (System.Web.UI.HtmlControls.HtmlGenericControl) this.Page.Master.FindControl("spanCompany2");
            li.Attributes.Add("class", "item-menu active-menu");
            span1.Attributes.Add("class", "fa fa-building fa-2x active-span");
            span2.Attributes.Add("class", "menu active-span");

            ClassDrugCompany generateComId = new ClassDrugCompany();

            txCompanyId.Text = generateComId.GenerateCompanyId();

            btnDelete.CssClass = "btn btn-danger disabled";
        }
Esempio n. 3
0
        protected void btnDeleteCompanySubmit_Click(object sender, EventArgs e)
        {
            ClassDrugCompany deleteCompany = new ClassDrugCompany();

            deleteCompany.DeleteCompany(this);
        }
Esempio n. 4
0
        protected void btnAddCompanySubmit_Click(object sender, EventArgs e)
        {
            ClassDrugCompany addCompany = new ClassDrugCompany();

            addCompany.addNewCompany(this);
        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            ClassDrugCompany searchCompany = new ClassDrugCompany();

            searchCompany.SearchDrugCompany(txSearch, ddSearch, GridViewDrugCompanies);
        }