Exemplo n.º 1
0
        public CompanyPoliciesRepository()
        {
            this._connString = SqlHelper.GetConnectionString();
            this._cplStore   = new CompanyPolicies();

            this.PopulateData();
        }
 private void FillTemp(CompanyPolicies companyPolicies)
 {
     this.CurrentCompanyPoliciesTemp = new CompanyPolicies()
     {
         InventoryCostingPolicy = companyPolicies.InventoryCostingPolicy
     };
 }
Exemplo n.º 3
0
        public Main()
        {
            var policies = new CompanyPolicies();

            policies.ApplyYearlyIncentivePlan();
            policies.Dispose();
        }
        public SetupGeneralSettingsPresenter(AppPresenter appPresenter, SetupGeneralSettingsView view)
            : base(view, "TabHeader")
        {
            this._appPresenter = appPresenter;

            this._isIdle = true;

            this._currentGeneralSettings = appPresenter.CurrentGeneralSettings;

            this._currentCompanyProfile     = new CompanyProfile();
            this._currentCompanyProfileTemp = null;

            this._currentCompanyPolicies     = new CompanyPolicies();
            this._currentCompanyPoliciesTemp = null;
        }
Exemplo n.º 5
0
        public bool Save(CompanyPolicies companyPolicies)
        {
            bool isSaved = false;

            if (this._generalSettingsRepository.Save(companyPolicies))
            {
                this.StatusText = "Kebijakan toko telah diperbarui.";

                isSaved = true;
            }
            else
            {
                this.StatusText = "Terjadi kesalahan program. Silahkan coba beberapa saat lagi.";
            }

            this.Reload("GeneralSettings");

            return(isSaved);
        }
 public void ClearCompanyPoliciesDetail()
 {
     this.CurrentCompanyPolicies     = new CompanyPolicies();
     this.CurrentCompanyPoliciesTemp = new CompanyPolicies();
 }