protected void btnsubmit_Click(object sender, EventArgs e) { dao.ContentNotesDAO objcontent = new dao.ContentNotesDAO(); Reportfunction obj1 = new Reportfunction(); ArrayList list = new ArrayList(); objcontent.Scompanyid = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID.ToString(); objcontent.SCreatedBy = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID.ToString(); objcontent.STitle = Txttitle.Text; objcontent.SProcess = DDLprocess.SelectedItem.Value; for (int i = 0; i < grdDesc.VisibleRowCount; i++) { dao.ContentSubNotesDAO objsubcontent = new dao.ContentSubNotesDAO(); GridViewDataColumn c = (GridViewDataColumn)grdDesc.Columns[0]; // textbox column ASPxTextBox txtbox = (ASPxTextBox)grdDesc.FindRowCellTemplateControl(i, c, "txtsubtitle"); GridViewDataColumn c1 = (GridViewDataColumn)grdDesc.Columns[1]; // txtMemo column ASPxMemo txtMemo = (ASPxMemo)grdDesc.FindRowCellTemplateControl(i, c1, "txtDesc"); if (txtbox.Text.Trim() != "" && txtMemo.Text.Trim() != "") { objsubcontent.SSubTitle = txtbox.Text; objsubcontent.SSubDescription = txtMemo.Text; objsubcontent.SCompanyId1 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID.ToString(); objsubcontent.SCreatedBy = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID.ToString(); objcontent.AddContent(objsubcontent); } } objcontent.SFileName = Fileupload.FileName; Result result = new Result(); result = obj1.SaveNotesTransaction(objcontent); //obj1.addnotes(objcontent); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Reportfunction obj = new Reportfunction(); //BindSubGrid(); grdDesc.DataSource = BindSubGrid(); grdDesc.DataBind(); } }
private void loadSpecialty() { DataSet ds = new DataSet(); Reportfunction obj = new Reportfunction(); // ASPxListBox box = (ASPxListBox)this.cmbSpecialty.FindControl("lst_specialty"); ds = obj.loadSpecialty(txtCompanyID.Text); cmbSpecialty.TextField = "SZ_PROCEDURE_GROUP"; cmbSpecialty.ValueField = "SZ_PROCEDURE_GROUP_ID"; cmbSpecialty.DataSource = ds; cmbSpecialty.DataBind(); DevExpress.Web.ListEditItem Item = new DevExpress.Web.ListEditItem("---Select---", "NA"); cmbSpecialty.Items.Insert(0, Item); cmbSpecialty.SelectedIndex = 0; }