public InventoryPurchaseReport() { InitializeComponent(); Invisible(); label7.Visible = false; label9.Visible = false; label11.Visible = false; label13.Visible = false; receiveSumLabel.Visible = false; totalSaleslabel.Visible = false; totalReturnlabel.Visible = false; totalBalancelabel.Visible = false; InventoryCategoryBLL aBlll = new InventoryCategoryBLL(); List <InventoryCategory> aaList = new List <InventoryCategory>(); aaList = aBlll.GetAllCategory(); categoryNameComboBox.DataSource = aaList; categoryNameComboBox.DisplayMember = "CategoryName"; categoryNameComboBox.ValueMember = "CategoryId"; //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; }
// GET: Admin/Supplier public ActionResult Index() { SupplierBLL objSupplierBLL = new SupplierBLL(); List <Supplier> SupplierList = objSupplierBLL.GetAllSupplier(); return(View(SupplierList)); }
public InventoryPurchaseReport() { InitializeComponent(); Invisible(); label7.Visible = false; label9.Visible = false; label11.Visible = false; label13.Visible = false; receiveSumLabel.Visible = false; totalSaleslabel.Visible = false; totalReturnlabel.Visible = false; totalBalancelabel.Visible = false; InventoryCategoryBLL aBlll = new InventoryCategoryBLL(); List<InventoryCategory> aaList = new List<InventoryCategory>(); aaList = aBlll.GetAllCategory(); categoryNameComboBox.DataSource = aaList; categoryNameComboBox.DisplayMember = "CategoryName"; categoryNameComboBox.ValueMember = "CategoryId"; //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List<Supplier> aSuppliers = new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; }
public void FillSupplier() { ddlSupplier.DataSource = supplierBll.GetAllSupplier(); ddlSupplier.DataValueField = "SupplierCode"; ddlSupplier.DataTextField = "SupplierName"; ddlSupplier.DataBind(); ddlSupplier.Items.Insert(0, new ListItem("Select One", "0")); }
public SupplierInformationForm() { InitializeComponent(); //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List<Supplier> aSuppliers = new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; }
public SupplierInformationForm() { InitializeComponent(); //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; }
// GET: Purchase/Purchase public ActionResult Index() { SupplierBLL objSupplierBLL = new SupplierBLL(); List <Supplier> SupplierList = objSupplierBLL.GetAllSupplier(); ViewBag.supplierList = SupplierList; ProductBLL objProductBll = new ProductBLL(); List <Product> ProductList = objProductBll.GetAllProduct(); ViewBag.productList = ProductList; return(View()); }
public SupplierPaymentReportForm() { InitializeComponent(); //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List<Supplier> aSuppliers = new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; BookedPaymentTypeCombobox(); }
public void GetSupplier() { List <EntitySupplierMaster> ldtSupplier = mobjSupplierBLL.GetAllSupplier(); if (ldtSupplier.Count > 0 && ldtSupplier != null) { dgvSupplier.DataSource = ldtSupplier; dgvSupplier.DataBind(); Session["SupplierDetail"] = ldtSupplier; int lintRowcount = ldtSupplier.Count; lblRowCount.Text = "<b>Total Records:</b> " + lintRowcount.ToString(); } }
public InventoryPurchaseForm() { InitializeComponent(); // this.AcceptButton=savePurchasebutton; purchaseActionlabel.Visible = false; //Find out category List <InventoryCategory> aaList = new List <InventoryCategory>(); InventoryCategoryBLL aBll = new InventoryCategoryBLL(); aaList = aBll.GetAllCategory(); categoryNamecomboBox.DataSource = aaList; categoryNamecomboBox.DisplayMember = "CategoryName"; categoryNamecomboBox.ValueMember = "CategoryId"; //findout item InventoryItemBLL aaBll = new InventoryItemBLL(); List <InventoryItem> aList = new List <InventoryItem>(); Int32 category = Convert.ToInt32(categoryNamecomboBox.SelectedValue); aList = aaBll.GetItemByCategory(category); itemNamecomboBox.DataSource = aList; itemNamecomboBox.DisplayMember = "ItemName"; itemNamecomboBox.ValueMember = "ItemId"; //find out unit //int unitId = aaList[categoryNamecomboBox.SelectedIndex].UnitId; //UnitCreateBLL aCreateBll = new UnitCreateBLL(); //Unit aUnit = new Unit(); //aUnit = aCreateBll.GetUnitByUnitId(unitId); try { unittypelabel.Text = aList[itemNamecomboBox.SelectedIndex].UnitName; } catch (Exception) { } //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers, Convert.ToInt32(supplierNamecomboBox.SelectedValue)); BookedPaymentTypeCombobox(); }
private void supplierNamecomboBox_SelectedIndexChanged(object sender, EventArgs e) { SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); try { dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers, Convert.ToInt32(supplierNamecomboBox.SelectedValue)); } catch { } }
public SupplierPaymentReportForm() { InitializeComponent(); //find out supplier SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; BookedPaymentTypeCombobox(); }
public SupplierPayment() { InitializeComponent(); // this.AcceptButton = savePaymentbutton; //find out supplier purchaseActionlabel.Visible = false; SupplierBLL aSupplierBll = new SupplierBLL(); List<Supplier> aSuppliers = new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers, Convert.ToInt32(supplierNamecomboBox.SelectedValue)); BookedPaymentTypeCombobox(); }
public SupplierPayment() { InitializeComponent(); // this.AcceptButton = savePaymentbutton; //find out supplier purchaseActionlabel.Visible = false; SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aSuppliers = new List <Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers, Convert.ToInt32(supplierNamecomboBox.SelectedValue)); BookedPaymentTypeCombobox(); }
public InventoryPurchaseForm() { InitializeComponent(); // this.AcceptButton=savePurchasebutton; purchaseActionlabel.Visible = false; //Find out category List<InventoryCategory> aaList=new List<InventoryCategory>(); InventoryCategoryBLL aBll=new InventoryCategoryBLL(); aaList = aBll.GetAllCategory(); categoryNamecomboBox.DataSource = aaList; categoryNamecomboBox.DisplayMember = "CategoryName"; categoryNamecomboBox.ValueMember = "CategoryId"; //findout item InventoryItemBLL aaBll = new InventoryItemBLL(); List<InventoryItem> aList = new List<InventoryItem>(); Int32 category = Convert.ToInt32(categoryNamecomboBox.SelectedValue); aList = aaBll.GetItemByCategory(category); itemNamecomboBox.DataSource = aList; itemNamecomboBox.DisplayMember = "ItemName"; itemNamecomboBox.ValueMember = "ItemId"; //find out unit //int unitId = aaList[categoryNamecomboBox.SelectedIndex].UnitId; //UnitCreateBLL aCreateBll = new UnitCreateBLL(); //Unit aUnit = new Unit(); //aUnit = aCreateBll.GetUnitByUnitId(unitId); try { unittypelabel.Text = aList[itemNamecomboBox.SelectedIndex].UnitName; } catch (Exception) { } //find out supplier SupplierBLL aSupplierBll=new SupplierBLL(); List<Supplier>aSuppliers=new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); supplierNamecomboBox.DataSource = aSuppliers; supplierNamecomboBox.DisplayMember = "Name"; supplierNamecomboBox.ValueMember = "SupplierId"; dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers,Convert.ToInt32(supplierNamecomboBox.SelectedValue)); BookedPaymentTypeCombobox(); }
public ActionResult Index() { SupplierBLL objSupplierBLL = new SupplierBLL(); List <Supplier> SupplierList = objSupplierBLL.GetAllSupplier(); ViewBag.supplierList = SupplierList; ProductBLL objProductBll = new ProductBLL(); List <Product> ProductList = objProductBll.GetAllProduct(); ViewBag.productList = ProductList; CustomerDetailBLL objCustomerBLL = new CustomerDetailBLL(); ViewBag.customerList = objCustomerBLL.GetAllCustomerInfo(); CountryBLL objCountryBLL = new CountryBLL(); ViewBag.countryList = objCountryBLL.GetAllCountry(); return(View()); }
private void showButton_Click(object sender, System.EventArgs e) { SupplierBLL aSupplierBll = new SupplierBLL(); List <Supplier> aList = new List <Supplier>(); if (viewAllsuppliercheckBox.Checked) { aList = aSupplierBll.GetAllSupplier(); supplierdataGridView.DataSource = aList; } else { Supplier aSupplier = new Supplier(); aSupplier = aSupplierBll.GetSupplierByid(Convert.ToInt32(supplierNamecomboBox.SelectedValue)); aList = new List <Supplier> { aSupplier }; supplierdataGridView.DataSource = aList; } }
private void supplierNamecomboBox_SelectedIndexChanged(object sender, EventArgs e) { SupplierBLL aSupplierBll = new SupplierBLL(); List<Supplier> aSuppliers = new List<Supplier>(); aSuppliers = aSupplierBll.GetAllSupplier(); try { dueOradvancelabel.Text = aSupplierBll.GetDueOrAdvance(aSuppliers, Convert.ToInt32(supplierNamecomboBox.SelectedValue)); } catch { } }
private void showButton_Click(object sender, System.EventArgs e) { SupplierBLL aSupplierBll=new SupplierBLL(); List<Supplier>aList=new List<Supplier>(); if(viewAllsuppliercheckBox.Checked) { aList = aSupplierBll.GetAllSupplier(); supplierdataGridView.DataSource = aList; } else { Supplier aSupplier=new Supplier(); aSupplier = aSupplierBll.GetSupplierByid(Convert.ToInt32(supplierNamecomboBox.SelectedValue)); aList = new List<Supplier> {aSupplier}; supplierdataGridView.DataSource = aList; } }