protected void Page_Load(object sender, EventArgs e) { //sessionID = Session.SessionID.ToString(); sessionID = Session.SessionID.ToString(); UCFormHeader1.FormHeaderText = "Pack Master"; if (!IsPostBack) { Button btnExport = (Button)UCToolbar1.FindControl("btnExport"); btnExport.Visible = false; Button btnImport = (Button)UCToolbar1.FindControl("btnImport"); btnImport.Visible = false; Button btmMail = (Button)UCToolbar1.FindControl("btmMail"); btmMail.Visible = false; Button btnPrint = (Button)UCToolbar1.FindControl("btnPrint"); btnPrint.Visible = false; //Button btnConvertTo = (Button)UCToolbar1.FindControl("btnConvertTo"); //btnConvertTo.Visible = false; ResetUserControl(); GetProductList(); setActiveTab(0); ScriptManager.RegisterStartupScript(this.FlyoutChangeProdPrice, FlyoutChangeProdPrice.GetType(), "reg1", "SaveNewPrice();", false); } //this.UCToolbar1.ToolbarAccess("ProductMaster"); this.UCToolbar1.evClickAddNew += pageAddNew; this.UCToolbar1.evClickSave += pageSave; this.UCToolbar1.evClickClear += pageClear; //this.UCToolbar1.evClickImport += pageImport; }
protected void Page_Load(object sender, EventArgs e) { CustomProfile profile = CustomProfile.GetProfile(); UCFormHeader1.FormHeaderText = "Designation Master"; if (!IsPostBack) { //BinddlDepartment(); FillCompany(); BindGrid(); hdnDesignationID.Value = null; if (profile.Personal.CompanyID == 14) { Button btnExport = (Button)UCToolbar1.FindControl("btnExport"); btnExport.Visible = false; Button btnImport = (Button)UCToolbar1.FindControl("btnImport"); btnImport.Visible = false; Button btmMail = (Button)UCToolbar1.FindControl("btmMail"); btmMail.Visible = false; Button btnPrint = (Button)UCToolbar1.FindControl("btnPrint"); btnPrint.Visible = false; } } this.UCToolbar1.ToolbarAccess("DesignationMaster"); this.UCToolbar1.evClickAddNew += pageAddNew; this.UCToolbar1.evClickSave += pageSave; this.UCToolbar1.evClickClear += pageClear; }
protected void setActiveTab(int ActiveTab) { Button btnSave = (Button)UCToolbar1.FindControl("btnSave"); if (btnSave != null) { if (ActiveTab == 0) { tabaggregatorlist.Visible = true; tabAggrgator.Visible = false; tabApiDetail.Visible = false; tabAggregatorMaster.ActiveTabIndex = 0; } else if (ActiveTab == 2) { tabaggregatorlist.Visible = true; tabAggrgator.Visible = true; tabApiDetail.Visible = true; tabAggregatorMaster.ActiveTabIndex = 2; } else { tabaggregatorlist.Visible = true; tabAggrgator.Visible = true; tabApiDetail.Visible = true; tabAggregatorMaster.ActiveTabIndex = 1; } } }
protected void setActiveTab(int ActiveTab) { Button btnSave = (Button)UCToolbar1.FindControl("btnSave"); if (btnSave != null) { // btnSave.Enabled = false; if (ActiveTab == 0) { tabapprovallist.Visible = true; tabapprolevel.Visible = false; panApprovalDetail.Visible = false; tabApprovalLevelMaster.ActiveTabIndex = 0; // btnSave.Enabled = false;//added by vishal } else { tabapprovallist.Visible = true; tabapprolevel.Visible = true; panApprovalDetail.Visible = true; tabApprovalLevelMaster.ActiveTabIndex = 1; //if (btnSave != null) btnSave.Enabled = true; } } }
protected void setActiveTab(int ActiveTab) { Button btnSave = (Button)UCToolbar1.FindControl("btnSave"); if (ActiveTab == 0) { TabPanelRoleDetails.Visible = false; TabContainerRoleMaster.ActiveTabIndex = 0; //btnSave.Enabled = false; //btnSave.Visible = false; } else { TabPanelRoleDetails.Visible = true; TabContainerRoleMaster.ActiveTabIndex = 1; //btnSave.Enabled = true; // btnSave.Visible = true; } }
protected void setActiveTab(int ActiveTab) { Button btnSave = (Button)UCToolbar1.FindControl("btnSave"); if (btnSave != null) { if (ActiveTab == 0) { TabCustomerList.Visible = true; tabStoreInfo.Visible = false; tabStoreMaster.ActiveTabIndex = 0; } else { TabCustomerList.Visible = true; tabStoreInfo.Visible = true; tabStoreMaster.ActiveTabIndex = 1; } } }