public DashboardforSP(string spUserName) { InitializeComponent(); this.spUserName = spUserName; generalOperations = new GeneralOperations(); accessProperty = generalOperations.GetServiceProviderRegDetails(spUserName); fullnametextBox.Text = accessProperty.FullName; divisiontextBox.Text = accessProperty.Division; citytextBox.Text = accessProperty.City; addresstextBox.Text = accessProperty.Address; mobilenumbertextBox.Text = accessProperty.MobileNumber; generalOperations2 = new GeneralOperations(); accessProperty2 = generalOperations2.GetServiceProviderAdditionalDetails(spUserName); try { servicechargetextBox.Text = accessProperty2.ServiceCharge.ToString(); availabilitytextBox.Text = accessProperty2.AvailStime; } catch (Exception exp) { } }
// public int AddServiceProviderDetails(string username, double serviceCharge, string availableTime) { AccessPropertySP accessProperty = new AccessPropertySP() { UserName = username, ServiceCharge = serviceCharge, AvailStime = availableTime }; this.operation = new Operations(); return(this.operation.AddServiceProviderDetails(accessProperty)); }
public ServiceProviderProfile(string spUsername) { InitializeComponent(); this.spUsername = spUsername; generalOperations = new GeneralOperations(); accessProperty = generalOperations.GetServiceProviderRegDetails(spUsername); fullnametextBox.Text = accessProperty.UserName; EmailtextBox.Text = accessProperty.EmailId; passwordtextBox.Text = accessProperty.Password; catagorytextBox.Text = accessProperty.Category; addresstextBox.Text = accessProperty.Address; citytextBox.Text = accessProperty.City; divisiontextBox.Text = accessProperty.Division; mobiletoextBox.Text = accessProperty.MobileNumber; NidtextBox.Text = accessProperty.NID; nametextBox.Text = accessProperty.FullName; dobtextBox.Text = accessProperty.DOB; gendertextBox.Text = accessProperty.Gender; professiontextBox.Text = accessProperty.Profession; }