void popDoc() { ClientManagmentFunction c = new ClientManagmentFunction(); GridView1.DataSource = c.UploadDocs(cid); GridView1.DataBind(); }
protected void saveChanges_Click(object sender, EventArgs e) { ClientManagmentFunction inter = new ClientManagmentFunction(); saveClient.Mail = editEmail.Text; saveClient.Fname = editFName.Text; saveClient.Lname = editLName.Text; saveClient.Address = editaddress.Text; saveClient.State = editstate.Text; saveClient.City = editCity.Text; saveClient.Zip = editZip.Text; saveClient.CompanyName = EditCompanyName.Text; saveClient.WorkNum = EditWorkPhone.Text; saveClient.HomeNum = EditHomePhone.Text; saveClient.Fax = EditFax.Text; saveClient.MobileNum = EditMobilePhone.Text; saveClient.Memo = EditNote.Text; try { inter.EditClient(saveClient); fillClient(); deleteClient.Visible = false; cProfile.Visible = true; editProfile.Visible = false; saveChanges.Visible = false; editClient.Visible = true; } catch (Exception ex) { error.Text = ex.Message; } }
void popReqDoc() { ClientManagmentFunction c = new ClientManagmentFunction(); ReqDocGV.DataSource = c.listOfReqDocs(saveClient.Id); ReqDocGV.DataBind(); }
protected void Delete_Click(object sender, EventArgs e) { int id = int.Parse((sender as LinkButton).CommandArgument); ClientManagmentFunction f = new ClientManagmentFunction(); f.DeleteDoc(id);// (Convert.ToInt32(((Label)catGV.Rows[id].FindControl("lId")).Text)); popDoc(); }
protected void downloadS_Click(object sender, EventArgs e) { ClientManagmentFunction c = new ClientManagmentFunction(); Docs p = c.findSDoc(cid); Response.Clear(); Response.Buffer = true; Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = p.ContentType; Response.AppendHeader("Content-Disposition", "attachment; filename=" + p.Name); Response.BinaryWrite(p.Data); Response.Flush(); Response.End(); }
protected void send_Click(object sender, EventArgs e) { ClientManagmentFunction c = new ClientManagmentFunction(); string selectedDocs = ""; if (id1.Checked) { selectedDocs += "Tax Returns@"; id1.Visible = false; } if (id2.Checked) { id2.Visible = false; selectedDocs += "Bank Statements@"; } if (id3.Checked) { id3.Visible = false; selectedDocs += "Pay Stubs@"; } if (id4.Checked) { id4.Visible = false; selectedDocs += "Proof of Insurance@"; } if (id5.Checked) { id5.Visible = false; selectedDocs += "Drivers License State ID@"; } if (id6.Checked) { id6.Visible = false; selectedDocs += "Social Security@"; } if (id7.Checked) { id7.Visible = false; selectedDocs += "Utilities Bills@"; } if (id8.Checked) { id8.Visible = false; selectedDocs += "PL Report@"; } c.AddNewRD(selectedDocs, saveClient.Id); popReqDoc(); }
protected void DownloadFile(object sender, EventArgs e) { int id = int.Parse((sender as LinkButton).CommandArgument); ClientManagmentFunction c = new ClientManagmentFunction(); Docs p = c.findDocById(id); Response.Clear(); Response.Buffer = true; Response.Charset = ""; Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = p.ContentType; Response.AppendHeader("Content-Disposition", "attachment; filename=" + p.Name); Response.BinaryWrite(p.Data); Response.Flush(); Response.End(); }
protected void deleteClient_Click(object sender, EventArgs e) { ClientManagmentFunction inter = new ClientManagmentFunction(); inter.DeleteClient(saveClient.Id); }