示例#1
0
        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";
        }
示例#2
0
        // GET: Admin/Supplier
        public ActionResult Index()
        {
            SupplierBLL     objSupplierBLL = new SupplierBLL();
            List <Supplier> SupplierList   = objSupplierBLL.GetAllSupplier();

            return(View(SupplierList));
        }
示例#3
0
        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";
        }
示例#4
0
 public void FillSupplier()
 {
     ddlSupplier.DataSource     = supplierBll.GetAllSupplier();
     ddlSupplier.DataValueField = "SupplierCode";
     ddlSupplier.DataTextField  = "SupplierName";
     ddlSupplier.DataBind();
     ddlSupplier.Items.Insert(0, new ListItem("Select One", "0"));
 }
示例#5
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";
 }
示例#6
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";
        }
        // 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());
        }
示例#8
0
        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();
            }
        }
示例#10
0
        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();
        }
示例#11
0
        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
            {
            }
        }
示例#12
0
        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();
        }
示例#13
0
 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();
 }
示例#14
0
        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();
        }
示例#15
0
        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());
        }
示例#17
0
        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;
            }
        }
示例#18
0
        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
            {

            }
        }
示例#19
0
        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;

            }
        }