コード例 #1
0
        private void LoadKnownValueDDL()
        {
            try
            {
                _objSubledgerSetup = new SubledgerSetup();
                _objSubledgerSetup.CompanyID = LoginUserInformation.CompanyID;
                _objSubledgerSetup.BranchID = 0; //LoginUserInformation.BranchID;
                _objSubledgerSetupController = new SubledgerSetupController();
                _objSubledgerSetupController.GetKnownValueSubledger(_objSubledgerSetup,ddlKnownValue);

            }
            catch (Exception msgException)
            {
                
                throw msgException;
            }
        }
コード例 #2
0
        private void AddValuesConvertSubledger()
        {
            try
            {
                _objSubledgerSetup = new SubledgerSetup();
                _objSubledgerSetup.SubledgerTypeID = ddlSubLedgerTypeConvertible.SelectedValue;
                _objSubledgerSetup.EntryUserName = LoginUserInformation.UserID;
                _objSubledgerSetupController = new SubledgerSetupController();
                _objSubledgerSetupController.SaveSubLedgerConvertible(_objSubledgerSetup);

            }
            catch (Exception msgException)
            {
                
                throw msgException;
            }
        }
コード例 #3
0
        private void LoadSubLedgerTypeDDL()
        {
            try
            {
                _objSubledgerSetup = new SubledgerSetup();
                _objSubledgerSetup.CompanyID = LoginUserInformation.CompanyID;
                _objSubledgerSetup.BranchID = 0;//LoginUserInformation.BranchID;
                _objSubledgerSetupController = new SubledgerSetupController();
                _objSubledgerSetupController.GetSubLedgerTypeConvertable(ddlSubLedgerTypeConvertible, _objSubledgerSetup);
                _objSubledgerSetupController.GetSubLedgerTypeNonConvertable(ddlSubLedgerTypeNonConvertable, _objSubledgerSetup);

            }
            catch (Exception msgException)
            {

                throw msgException;
            }
        }
コード例 #4
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;
            }
        }
コード例 #5
0
        private void AddValuesSubledgerType()
        {
            try
            {
                _objSubledgerSetup = new SubledgerSetup();
                _objSubledgerSetup.CompanyID = LoginUserInformation.CompanyID;
                _objSubledgerSetup.SubLedgerTypeName = txtSubledgerType.Text == string.Empty ? null : txtSubledgerType.Text;
                _objSubledgerSetup.SubledgerTypePrefix = txtSubledgerPrefix.Text == string.Empty ? null : txtSubledgerPrefix.Text;
                _objSubledgerSetup.KnownValueId = Convert.ToInt32(ddlKnownValue.SelectedValue);
                _objSubledgerSetup.IsConvertable = rdoConvert.SelectedValue;
                _objSubledgerSetup.EntryUserName = LoginUserInformation.UserID;
                _objSubledgerSetupController = new SubledgerSetupController();
                _objSubledgerSetupController.Save(_objSubledgerSetup);

            }
            catch (Exception msgException)
            {

                throw msgException;
            }
        }