Exemplo n.º 1
0
 private void BindItemDropdownListForUpdate(long categoryId, long itemID)
 {
     using (TheFacade facade = new TheFacade())
     {
         List <Ins_Item> itemList = facade.InsentiveFacade.GetItemListForMemberItemUpdateByCategoryID(categoryId, MemberID, itemID);
         DDLHelper.Bind <Ins_Item>(ddlItem, itemList, "Name", "IID", EnumCollection.ListItemType.ItemName, true);
     }
 }
 private void LoadMember()
 {
     using (TheFacade facade = new TheFacade())
     {
         List <Member> members = facade.InsentiveFacade.GetMemberAll();
         DDLHelper.Bind <Member>(ddlMember, members, "Name", "ID", EnumCollection.ListItemType.Select, true);
     }
 }
Exemplo n.º 3
0
 private void LoadMemberItem()
 {
     using (TheFacade facade = new TheFacade())
     {
         List <Ins_MemberItem> memberItems = facade.InsentiveFacade.GetMemberItemByMemberID(MemberID);
         DDLHelper.Bind <Ins_MemberItem>(ddlItem, memberItems, "Name", "IID", EnumCollection.ListItemType.Select, true);
     }
 }
Exemplo n.º 4
0
        private void LoadCurrencyType()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <Currency> currencyTypeList = facade.MemberFacade.GetAllCurrency();

                DDLHelper.Bind <Currency>(ddlCurrencyType, currencyTypeList, "CurrencyCode", "IID", EnumCollection.ListItemType.Currency, true);
            }
        }
        private void LoadInvoice()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <Inv_Master> invoiceList = facade.MemberFacade.GetInvoiceByMemberIDForChaForm(MemberID);

                DDLHelper.Bind <Inv_Master>(ddlInvoiceList, invoiceList, "Number", "IID", EnumCollection.ListItemType.Invoice, true);
            }
        }
        private void LoadBusniessType()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <BusinessType> businessTypeList = facade.MemberFacade.GetBusinessTypeInfoAll();

                DDLHelper.Bind <BusinessType>(ddlBusniessTypes, businessTypeList, "Name", "ID", EnumCollection.ListItemType.BusinessTypeList, true);
            }
        }
        private void LoadCompanyCategory()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <CompanyCategory> companyCategoryList = facade.MemberFacade.GetCompanyCategoryInfoAll();

                DDLHelper.Bind <CompanyCategory>(ddlCompanyCategory, companyCategoryList, "Name", "ID", EnumCollection.ListItemType.CompanyCategory, true);
            }
        }
 private void LoadData()
 {
     using (TheFacade facade = new TheFacade())
     {
         List <Member> memberItems = facade.MemberFacade.GetApprovedMember();
         DDLHelper.Bind <Member>(ddlMember, memberItems, "Name", "ID", EnumCollection.ListItemType.Select, true);
     }
     LoadListViews();
 }
Exemplo n.º 9
0
        private void LoadPageData()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <Ins_ItemCategory> categoryList = facade.InsentiveFacade.GetCategoryAll();

                DDLHelper.Bind <Ins_ItemCategory>(ddlItemCetagory, categoryList, "Name", "IID", EnumCollection.ListItemType.CategoryName, true);
                List <MeasurementUnit> mesurementUnitlist = new List <MeasurementUnit>();
                mesurementUnitlist = facade.InventoryGeneralFacade.GetMeasurementUnitAll();
                DDLHelper.Bind <MeasurementUnit>(ddlMesumentUnit, mesurementUnitlist, "Name", "IID", EnumCollection.ListItemType.MesurementUnit, true);

                List <Ins_Item> itemList = facade.InsentiveFacade.GetItemAll();
                lvItem.DataSource = itemList;
                lvItem.DataBind();
            }
        }
Exemplo n.º 10
0
        private void LoadPageData()
        {
            using (TheFacade facade = new TheFacade())
            {
                //List<Ins_Item> itemList = facade.InsentiveFacade.GetItemAll();
                //DDLHelper.Bind<Ins_Item>(ddlItem, itemList, "Name", "IID", EnumCollection.ListItemType.ItemName, true);

                List <Member> members = facade.InsentiveFacade.GetMemberAll();
                DDLHelper.Bind <Member>(ddlMember, members, "Name", "ID", EnumCollection.ListItemType.Select, true);

                List <Ins_ItemCategory> categories = facade.InsentiveFacade.GetCategoryAll();
                DDLHelper.Bind <Ins_ItemCategory>(ddlCategory, categories, "Name", "IID", EnumCollection.ListItemType.Select, true);
                //if(MemberID > 0)
                //    ddlMember.SelectedValue = MemberID.ToString();
                LoadMemberItem();
            }
        }
Exemplo n.º 11
0
        private void LoadPageData()
        {
            using (TheFacade facade = new TheFacade())
            {
                List <Member> members = facade.InsentiveFacade.GetMemberAll();
                DDLHelper.Bind <Member>(ddlMember, members, "Name", "ID", EnumCollection.ListItemType.Select, true);

                List <Currency> currencies = facade.CommonFacade.GetCurrencyAll();
                DDLHelper.Bind <Currency>(ddlCurrency, currencies, "CurrencyCode", "IID", EnumCollection.ListItemType.Select, true);

                List <Country> countries = facade.CommonFacade.GetCountryAll();
                DDLHelper.Bind <Country>(ddlCountry, countries, "Name", "IID", EnumCollection.ListItemType.Select, true);

                LoadMemberItem();

                ////List<Ins_ItemCategory> categories = facade.InsentiveFacade.GetCategoryAll();
                ////DDLHelper.Bind<Ins_ItemCategory>(ddlCategory, categories, "Name", "IID", EnumCollection.ListItemType.Select, true);

                if (InvoiceId > 0)
                {
                    Inv_Master invoice = facade.InvoiceFacade.GetInvoiceByID(InvoiceId);
                    if (invoice.MemberId > 0)
                    {
                        MemberID = invoice.MemberId.Value;
                    }
                    ddlCurrency.SelectedValue = invoice.CurrencyId.ToString();
                    txtDate.Text                           = invoice.Date.ToString("dd/MM/yyyy");//, CultureInfo.InvariantCulture);
                    txtDollarAmount.Text                   = invoice.DollarAmount.ToString("#.##");
                    txtTotalcurrency.Text                  = invoice.CurrencyAmount.HasValue ? invoice.CurrencyAmount.Value.ToString("#.##") : string.Empty;
                    txtConversionRate.Text                 = invoice.DollarCounversionRate.ToString("#.##");
                    txtInvoiceNo.Text                      = invoice.Number;
                    txtLocalItemDescription.Text           = invoice.ExportedLocalItemDescription;
                    txtLoacItemQuantity.Text               = invoice.ExportedLocalItemQuantity;
                    txtLocalItemAmount.Text                = invoice.ExportedLocalItemAmount.HasValue ? invoice.ExportedLocalItemAmount.Value.ToString("#.##") : string.Empty;
                    txtLocalDistrubuterNameAndAddress.Text = invoice.ExportedLocalDistrubuterNameAndAddress;
                    ddlCountry.SelectedValue               = (invoice.CountryID > 0)?invoice.CountryID.ToString():"-1";
                    List <Inv_Detail> invoDetails = facade.InvoiceFacade.GetInvoiceDetailByInvoiceId(InvoiceId);
                    lvInvoiceDetail.DataSource = invoDetails;
                    lvInvoiceDetail.DataBind();
                }
            }
        }