protected void bind() { string InvoiceNum = Request.QueryString["InvoiceNum"]; BLL_Supplier_Votech obj = new BLL_Supplier_Votech(); DAL_CreateInvoice[] Invoice_List; Invoice_List = obj.GetInvoiceCreated(); lbl_InvoiceNum.Text = InvoiceNum; lbl_CompanyEmail.Text = Invoice_List[0].CO_CompanyEmail.ToString(); lbl_CompanyName.Text = Invoice_List[0].CO_CompanyName.ToString(); lbl_Companycontact.Text = Invoice_List[0].CO_CompanyContact.ToString(); lbl_CompanyAddress.Text = Invoice_List[0].CO_CompanyAddress.ToString(); lbl_Date.Text = Invoice_List[0].InvoiceDate.ToString(); //Gridview codes DAL_Access_Supplier_Votech item = new DAL_Access_Supplier_Votech(); DataSet ds; ds = item.getInvoiceOrderItem(); gv_InvoiceOrderItem.DataSource = ds; gv_InvoiceOrderItem.DataBind(); //gv_InvoiceOrderItem.FooterRow.Cells[2].Text = "Total Amount"; //gv_InvoiceOrderItem.FooterRow.Cells[3].Text = ds.Compute("SUM(OI_Price)", "").ToString(); //lbl_Total.Text = ds.Compute("SUM(OI_Price)", "").ToString(); }
private void BindPaymentStatusList() { BLL_Supplier_Votech obj = new BLL_Supplier_Votech(); DataSet ds; ds = obj.GetAllCustomerOrders(); gv_PaymentStatus.DataSource = ds; gv_PaymentStatus.DataBind(); }
private void BindPaymentStatusList() { string CO_ID = Request.QueryString["CO_ID"]; BLL_Supplier_Votech obj = new BLL_Supplier_Votech(); DataSet ds; ds = obj.GetAllOrderItem(CO_ID); gvViewMore.DataSource = ds; gvViewMore.DataBind(); }