public User_Create(int User_id, int APPLICATION_TYPE_ID, string Username) { InitializeComponent(); userid = User_id; Application_Type_Id = APPLICATION_TYPE_ID; dbc.BindCompany(ddl_Company); dbc.BindBranch(ddl_branchname, int.Parse(ddl_Company.SelectedValue.ToString())); dbc.Bindrole(ddl_role); dbc.Bind_Employee_Job_Role(ddl_Emp_Job_Role); User_Name = Username; }
private void Form9_Load(object sender, EventArgs e) { dbc.BindUserName_Allocate(ddl_EmployeeName); dbc.BindBranch(ddlBranch, 1); dbc.Bindrole(cbo_UserRole); Bind_Main_Sub_Item(); ddlBranch.SelectedIndex = 0; this.Text = "User Wise Access Settings"; //this.WindowState = FormWindowState.Maximized; }
protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("~/Login.aspx"); } else { userid = int.Parse(Session["userid"].ToString()); Empname = Session["Empname"].ToString(); } //txt_password1.Text = ""; //txt_confirmpassword.Text = ""; txt_password1.Attributes.Add("value", txt_password1.Text); txt_confirmpassword.Attributes.Add("value", txt_confirmpassword.Text); if (!IsPostBack) { dbc.BindCompany(ddl_Company); dbc.BindBranch(ddl_branchname, int.Parse(ddl_Company.SelectedValue.ToString())); DivNewsView.Visible = true; DivNewcreate.Visible = false; dbc.Bindrole(ddl_role); grd_Master.Visible = true; grd_UpdateMaster.Visible = false; trpassword.Visible = true; trconpassword.Visible = true; grd_UpdateMaster.Visible = false; grd_Master.Visible = true; GridviewbindMaster(); Get_Userdetails(); UserRoleShow(); //Cache.Remove(key); // Session["imgempphoto"] = null; } lbl_Record_Addedby.Text = Empname.ToString(); lbl_Record_AddedDate.Text = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt"); }
protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("~/Login.aspx"); } else { userid = int.Parse(Session["userid"].ToString()); Empname = Session["Empname"].ToString(); } if (!IsPostBack) { dbc.BindCompany(ddl_Company); dbc.BindBranch(ddl_branchname, int.Parse(ddl_Company.SelectedValue.ToString())); // GetMaximumClientNumber(); DivView.Visible = true; Divcreate.Visible = false; lblhead.Text = "View Clients"; GridviewbindClients(); lbl_Record_Addedby.Text = Empname.ToString(); lbl_Record_AddedDate.Text = DateTime.Now.ToString("MM/dd/yyyy hh:mm:ss tt"); dbc.BindCountry(Ddl_Client_Country); dbc.BindCompany(ddl_Company); // dbc.BindState(ddl_company_state); if (Ddl_Client_Country.SelectedIndex > 0) { dbc.BindState1(Ddl_Client_State, int.Parse(Ddl_Client_Country.SelectedValue)); } if (Ddl_Client_State.SelectedIndex > 0) { dbc.BindDistrict(ddl_Client_district, int.Parse(Ddl_Client_State.SelectedValue.ToString())); } } }
private void Vendor_Create_Load(object sender, EventArgs e) { AutoGenerateNumber(); dbc.BindCompany(ddl_CompanyName); dbc.BindBranch(ddl_BranchNamee, int.Parse(ddl_CompanyName.SelectedValue.ToString())); txt_Vendor.Select(); if (Vendor_Id == 0) { btn_Add_New.Text = "Add New Vendor"; tabControl1.TabPages.Remove(grid_State_County); } else { Bind_Vendor_Info(); Bind_All_State_Info(); btn_Add_New.Text = "Edit Vendor"; } Ordermanagement_01.Vendors.Vendor_View vendorview = new Ordermanagement_01.Vendors.Vendor_View(Userid, User_Role); vendorview.Hide(); }