protected void btn_disable_approval_Click(object sender, EventArgs e) { if (CompanyID() != "") { CompanyBSO companyBSO = new CompanyBSO(); companyBSO.UpdateCompany(CompanyID(), "0", Session["Admin_UserName"].ToString(), DateTime.Now); } ViewCompany(Convert.ToInt32(hddGroup.Value)); }
protected void btn_disable_Click(object sender, EventArgs e) { if (CompanyID() != "") { CompanyBSO companyBSO = new CompanyBSO(); companyBSO.UpdateCompany(CompanyID(), "0"); } ViewCompany(Convert.ToInt32(hddGroup.Value)); }
protected void btn_disable_Click(object sender, EventArgs e) { if (CompanyID() != "") { CompanyBSO companyBSO = new CompanyBSO(); companyBSO.UpdateCompany(CompanyID(), "0"); } ViewCompany(); }
protected void btn_enable_approval_Click(object sender, EventArgs e) { if (CompanyID() != "") { CompanyBSO companyBSO = new CompanyBSO(); companyBSO.UpdateCompany(CompanyID(), "1", Session["Admin_UserName"].ToString(), DateTime.Now); } ViewCompany(); }
protected void btn_edit_Click(object sender, ImageClickEventArgs e) { try { Company company = ReceiveHtml(); CompanyBSO companyBSO = new CompanyBSO(); companyBSO.UpdateCompany(company); clientview.Text = String.Format(Resources.StringAdmin.UpdateSuccessful, "Thong tin", company.Title); ViewCateCompany(Convert.ToInt32(hddGroupCate.Value)); } catch (Exception ex) { clientview.Text = ex.Message.ToString(); } }