private void InitializeCombo()
        {
            try
            {
                //Loding Company
                ddlCompany.DataSource     = _voucherManager.GetCompany();
                ddlCompany.DataTextField  = "HKName";
                ddlCompany.DataValueField = "HKID";
                ddlCompany.DataBind();
                //if (CurrentUserSession.IsAdmin)
                //{
                //    ddlCompany.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                //    ddlCompany.SelectedIndex = 0;
                //}

                //Loding FY
                ddlFY.DataSource     = manager.GetAllGen_AccFY();
                ddlFY.DataTextField  = "FYName";
                ddlFY.DataValueField = "FYKey";
                ddlFY.DataBind();
                ddlFY.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlFY.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Exemple #2
0
 private void InitializeCombo()
 {
     try
     {
         //Loading Payable
         ddlDebit_nc.DataSource     = manager.GetAllAcc_COAGetPayable();
         ddlDebit_nc.DataTextField  = "COAName";
         ddlDebit_nc.DataValueField = "COAKey";
         ddlDebit_nc.DataBind();
         //Loading Recipient
         ddlRecipient_nc.DataSource     = manager.GetAllContact();
         ddlRecipient_nc.DataTextField  = "Name";
         ddlRecipient_nc.DataValueField = "ID";
         ddlRecipient_nc.DataBind();
         //Loading Company
         ddlCompany_nc.DataSource     = manager.GetCompany();
         ddlCompany_nc.DataTextField  = "HKName";
         ddlCompany_nc.DataValueField = "HKID";
         ddlCompany_nc.DataBind();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Exemple #3
0
        private void InitializeCombo()
        {
            try
            {
                //Loding Company
                ddlCompany.DataSource     = manager.GetCompany();
                ddlCompany.DataTextField  = "HKName";
                ddlCompany.DataValueField = "HKID";
                ddlCompany.DataBind();
                //if (((PageBase)this.Page).CurrentUserSession.IsAdmin)
                //{
                //    ddlCompany.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                //    ddlCompany.SelectedIndex = 0;
                //}
                //Loding Voucher Type GetAllAcc_VoucherType
                ddlVoucherType.DataSource     = manager.GetAllAcc_VoucherType();
                ddlVoucherType.DataTextField  = "VoucherTypeCode";
                ddlVoucherType.DataValueField = "VoucherTypeKey";
                ddlVoucherType.DataBind();
                ddlVoucherType.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlVoucherType.SelectedIndex = 0;

                ddlSO.DataSource     = manager.GetAllSO();
                ddlSO.DataTextField  = "EmpName";
                ddlSO.DataValueField = "EmpKey";
                ddlSO.DataBind();
                ddlSO.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlSO.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
Exemple #4
0
 private void InitializeCombo()
 {
     try
     {
         //Loding Company
         ddlCompany_nc.DataSource     = manager.GetCompany();
         ddlCompany_nc.DataTextField  = "HKName";
         ddlCompany_nc.DataValueField = "HKID";
         ddlCompany_nc.DataBind();
         //Loding Credit
         ddlCashDebit_nc.DataSource     = manager.GetAllAcc_COA_CashInHand();
         ddlCashDebit_nc.DataTextField  = "COAName";
         ddlCashDebit_nc.DataValueField = "COAKey";
         ddlCashDebit_nc.DataBind();
         //Loading Cash At Bank
         ddlBankDeposit_nc.DataSource     = manager.GetAllAcc_COA_CashAtBank();
         ddlBankDeposit_nc.DataTextField  = "COAName";
         ddlBankDeposit_nc.DataValueField = "COAKey";
         ddlBankDeposit_nc.DataBind();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
        private void InitializeCombo()
        {
            try
            {
                //Loding Company
                ddlCompany.DataSource     = _voucherManager.GetCompany();
                ddlCompany.DataTextField  = "HKName";
                ddlCompany.DataValueField = "HKID";
                ddlCompany.DataBind();
                //if (CurrentUserSession.IsAdmin)
                //{
                //    ddlCompany.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                //    ddlCompany.SelectedIndex = 0;
                //}

                AccCOAList = new CustomList <Acc_COA>();
                AccCOAList = _voucherManager.GetAllAcc_COA_ByLevel(1);

                //formatCOA();
                //AccCOAList = lst;


                ddlAccountHead.DataSource     = AccCOAList;
                ddlAccountHead.DataTextField  = "COAName";
                ddlAccountHead.DataValueField = "COAKey";
                ddlAccountHead.DataBind();
                ddlAccountHead.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlAccountHead.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
 private void InitializeCombo()
 {
     try
     {
         //Loding Company
         ddlCompany_nc.DataSource     = manager.GetCompany();
         ddlCompany_nc.DataTextField  = "HKName";
         ddlCompany_nc.DataValueField = "HKID";
         ddlCompany_nc.DataBind();
         //Loding Voucher Type GetAllAcc_VoucherType
         ddlVoucherType_nc.DataSource     = manager.GetAllAcc_VoucherTypePayment();
         ddlVoucherType_nc.DataTextField  = "VoucherTypeCode";
         ddlVoucherType_nc.DataValueField = "VoucherTypeKey";
         ddlVoucherType_nc.DataBind();
         ddlVoucherType_nc.Items.Insert(0, new ListItem(String.Empty, String.Empty));
         ddlVoucherType_nc.SelectedIndex = 0;
         //Loding Credit
         ddlCredit.DataSource     = manager.GetAllAcc_COA_ByLevel(1);
         ddlCredit.DataTextField  = "COAName";
         ddlCredit.DataValueField = "COAKey";
         ddlCredit.DataBind();
         ddlCredit.Items.Insert(0, new ListItem(String.Empty, String.Empty));
         ddlCredit.SelectedIndex = 0;
         //Loading Receipeint
         ddlRecipient_nc.DataSource     = manager.GetAllContact();
         ddlRecipient_nc.DataTextField  = "Name";
         ddlRecipient_nc.DataValueField = "ID";
         ddlRecipient_nc.DataBind();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Exemple #7
0
 private void InisilizeCombo()
 {
     //Loading Company
     ddlCompany_nc.DataSource     = manager.GetCompany();
     ddlCompany_nc.DataTextField  = "HKName";
     ddlCompany_nc.DataValueField = "HKID";
     ddlCompany_nc.DataBind();
 }
Exemple #8
0
 private void InitializeCombo()
 {
     try
     {
         //Loading Company
         ddlCompany_nc.DataSource     = manager.GetCompany();
         ddlCompany_nc.DataTextField  = "HKName";
         ddlCompany_nc.DataValueField = "HKID";
         ddlCompany_nc.DataBind();
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
        private void InitializeCombo()
        {
            try
            {
                //Loding Company
                ddlCompany_nc.DataSource     = manager.GetCompany();
                ddlCompany_nc.DataTextField  = "HKName";
                ddlCompany_nc.DataValueField = "HKID";
                ddlCompany_nc.DataBind();
                //if (CurrentUserSession.IsAdmin)
                //{
                //    ddlCompany_nc.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                //    ddlCompany_nc.SelectedIndex = 0;
                //}
                //Loding Voucher Type GetAllAcc_VoucherType
                ddlVoucherType_nc.DataSource     = manager.GetAllAcc_VoucherType();
                ddlVoucherType_nc.DataTextField  = "VoucherTypeCode";
                ddlVoucherType_nc.DataValueField = "VoucherTypeKey";
                ddlVoucherType_nc.DataBind();
                ddlVoucherType_nc.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlVoucherType_nc.SelectedIndex = 0;

                //Loding debit
                ddlDebit.DataSource     = manager.GetAllAcc_COA_ByLevel(1);
                ddlDebit.DataTextField  = "COAName";
                ddlDebit.DataValueField = "COAKey";
                ddlDebit.DataBind();
                ddlDebit.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlDebit.SelectedIndex = 0;
                //Loding Credit
                ddlCredit.DataSource     = manager.GetAllAcc_COA_ByLevel(1);
                ddlCredit.DataTextField  = "COAName";
                ddlCredit.DataValueField = "COAKey";
                ddlCredit.DataBind();
                ddlCredit.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                ddlCredit.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }