Example #1
0
        private void AddValuesSubLedger()
        {
            try
            {
                _objSubledgerSetup = new SubledgerSetup();
                _objSubledgerSetup.CompanyID = LoginUserInformation.CompanyID;
                _objSubledgerSetup.BranchID = 0;// LoginUserInformation.BranchID;
                _objSubledgerSetup.EntryUserName = LoginUserInformation.UserID;
                _objSubledgerSetup.SubledgerTypeID = ddlSubLedgerTypeNonConvertable.SelectedValue;
                _objSubledgerSetup.SubledgerHeadName = txtSubledgerName.Text == string.Empty ? null : txtSubledgerName.Text;
                _objSubledgerSetup.SubledgerDescription = txtDescription.Text == string.Empty ? null : txtDescription.Text;
                _objSubledgerSetupController = new SubledgerSetupController();
                _objSubledgerSetupController.SaveSubLedger(_objSubledgerSetup);

            }
            catch (Exception msgException)
            {

                throw msgException;
            }
        }