Пример #1
0
        private void InitializeCombo()
        {
            ddlCostCentre.DataSource     = hkManager.GetAllHouseKeeping(3);
            ddlCostCentre.DataTextField  = "HKName";
            ddlCostCentre.DataValueField = "HKID";
            ddlCostCentre.DataBind();
            ddlCostCentre.Items.Insert(0, new ListItem(String.Empty, String.Empty));
            ddlCostCentre.SelectedIndex = 0;

            ddlBranch.DataSource     = hkManager.GetAllHouseKeeping(31);
            ddlBranch.DataTextField  = "HKName";
            ddlBranch.DataValueField = "HKID";
            ddlBranch.DataBind();
            ddlBranch.Items.Insert(0, new ListItem(String.Empty, String.Empty));
            ddlBranch.SelectedIndex = 0;

            ContactInfoManager cIM = new ContactInfoManager();

            ddlParty.DataSource     = cIM.GetAllContactInfo();
            ddlParty.DataTextField  = "Name";
            ddlParty.DataValueField = "ContactID";
            ddlParty.DataBind();
            ddlParty.Items.Insert(0, new ListItem(String.Empty, String.Empty));
            ddlParty.SelectedIndex = 0;

            CurrencyManager _CurrencyManager = new CurrencyManager();

            ddlCurrencyID.DataSource     = _CurrencyManager.GetAllGen_Currency();
            ddlCurrencyID.DataTextField  = "CurrencyName";
            ddlCurrencyID.DataValueField = "CurrencyKey";
            ddlCurrencyID.DataBind();
            ddlCurrencyID.Items.Insert(0, new ListItem(String.Empty, String.Empty));
            ddlCurrencyID.SelectedIndex = 0;
        }
Пример #2
0
        private void InitializeCombo()
        {
            try
            {
                ddlCostCenter.DataSource     = hkManager.GetAllHouseKeeping(3);
                ddlCostCenter.DataTextField  = "HKName";
                ddlCostCenter.DataValueField = "HKID";
                ddlCostCenter.DataBind();
                ddlCostCenter.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlCostCenter.SelectedIndex = 0;

                ddlBranchOrUnit.DataSource     = hkManager.GetAllHouseKeeping(31);
                ddlBranchOrUnit.DataTextField  = "HKName";
                ddlBranchOrUnit.DataValueField = "HKID";
                ddlBranchOrUnit.DataBind();
                ddlBranchOrUnit.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlBranchOrUnit.SelectedIndex = 0;

                ddlAccountType.DataSource     = manager.GetAllCmnBankAccountType();
                ddlAccountType.DataTextField  = "AccountTypeName";
                ddlAccountType.DataValueField = "AccountTypeID";
                ddlAccountType.DataBind();
                ddlAccountType.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlAccountType.SelectedIndex = 0;

                ddlBankBranch.DataSource     = manager.GetAllBank_Branch();
                ddlBankBranch.DataTextField  = "BranchName";
                ddlBankBranch.DataValueField = "BranchKey";
                ddlBankBranch.DataBind();
                ddlBankBranch.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlBankBranch.SelectedIndex = 0;

                ddlUserName.DataSource     = _CIManager.GetAllContactInfo();
                ddlUserName.DataTextField  = "Name";
                ddlUserName.DataValueField = "ContactID";
                ddlUserName.DataBind();
                ddlUserName.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlUserName.SelectedIndex = 0;

                ddlCOA.DataSource     = _COAManager.GetAllAcc_COA_ByLevel(5);
                ddlCOA.DataTextField  = "COAName";
                ddlCOA.DataValueField = "COAKey";
                ddlCOA.DataBind();
                ddlCOA.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlCOA.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Пример #3
0
        protected void btnFind_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                CustomList <ContactInfo>    items   = manager.GetAllContactInfo();
                Dictionary <string, string> columns = new Dictionary <string, string>();

                columns.Add("Name", "Name");
                columns.Add("PhoneNo", "Phone No");

                StaticInfo.SearchItem(items, "ContactInfo", "SearchContactInfo", FRAMEWORK.SearchColumnConfig.GetColumnConfig(typeof(ContactInfo), columns), 500);
            }
            catch (Exception ex)
            {
                this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex));
            }
        }
Пример #4
0
 private void InitializeSession()
 {
     try
     {
         AccVoucherList    = new CustomList <Acc_Voucher>();
         AccVoucherDetList = new CustomList <Acc_VoucherDet>();
         AccCOAList        = new CustomList <Acc_COA>();
         UnitList          = new CustomList <HouseKeepingValue>();
         CostCenterList    = new CustomList <HouseKeepingValue>();
         UnitList          = hkManager.GetAllHouseKeeping(31);
         CostCenterList    = hkManager.GetAllHouseKeeping(3);
         AccCOAList        = manager.GetAllAcc_COA_ByLevel(5);
         ContactInfoList   = _contactInfoManager.GetAllContactInfo();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }