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);
     }
 }
 private void InitializeSession()
 {
     try
     {
         AccVoucherList    = new CustomList <Acc_Voucher>();
         AccVoucherDetList = new CustomList <Acc_VoucherDet>();
         AccCOAList        = new CustomList <Acc_COA>();
         AccCOAList        = manager.GetAllAcc_COA_ByLevel(1);
         //AccCOAListAll = new CustomList<Acc_COA>();
         //AccCOAListAll = manager.GetAllAcc_COA_ByLevelAll(1);
         //formatCOA();
         //AccCOAList = lst;
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Exemple #4
0
 private void InitializeSession()
 {
     try
     {
         AccVoucherList     = new CustomList <Acc_Voucher>();
         AccVoucherTypeList = new CustomList <Acc_VoucherType>();
         AccVoucherTypeList = manager.GetAllAcc_VoucherType();
         AccVoucherDetList  = new CustomList <Acc_VoucherDet>();
         AccCOAList         = manager.GetAllAcc_COA_ByLevel(1);
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
Exemple #5
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);
     }
 }