コード例 #1
0
 public frmMDIParent(IWinSettingProvider IWinSettingProvider, IConfigurationService configurationService)
 {
     InitializeComponent();
     toolStrip.ItemClicked += SetMDIMode;
     _iWinSettingProvider   = IWinSettingProvider;
     _configurationService  = configurationService;
 }
コード例 #2
0
        public frmSettings(IWinSettingProvider settingProvider)
        {
            InitializeComponent();
            var settingProvider1 = settingProvider;

            txtImagePath.Text = settingProvider1.ImageDirectory;
            txtExcelPath.Text = settingProvider1.ExcelDirectory;
        }
コード例 #3
0
        public frmCostingBase(IConfigurationService configurationService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _configurationService = configurationService;
            _winSettingProvider   = winSettingProvider;

            CostingRate = new CostingRates();
        }
コード例 #4
0
        public frmMasterReport(IWinSettingProvider iWinSettingProvider, ICustomerService customerService, ISupplierService supplierService, IUserService userService, IConfigurationService configurationService, IDataSetProvider firmDataSetService)
        {
            InitializeComponent();
            _iWinSettingProvider  = iWinSettingProvider;
            _customerService      = customerService;
            _supplierService      = supplierService;
            _userService          = userService;
            _configurationService = configurationService;
            _firmDataSetService   = firmDataSetService;

            cboMasterReportType.DataSource = LocalStore.MasterReportItems.GetMasterReportItems();
        }
コード例 #5
0
        public frmJewelMaster(IJewelService jewelService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _jewelService       = jewelService;
            _winSettingProvider = winSettingProvider;
            crystalReportViewer1.ToolPanelView = ToolPanelViewType.None;

            txtDiamondPcs.KeyPress += WinEvents.AllowNumber_KeyPress;
            txtDiamondWt.KeyPress  += WinEvents.AllowNumeric_KeyPress;
            txtNetWt.KeyPress      += WinEvents.AllowNumeric_KeyPress;
            txtGrsWt.KeyPress      += WinEvents.AllowNumeric_KeyPress;

            BindForm();
        }
コード例 #6
0
        public frmCostingRates(ISupplierService supplierService,
                               IConfigurationService configurationService, IWinSettingProvider winSettingProvider,
                               ITransactionService costingServices, IJewelCalculation jewelCalculation)
            : this()
        {
            _configurationService = configurationService;
            _winSettingProvider   = winSettingProvider;
            _transactionService   = costingServices;
            _jewelCalculation     = jewelCalculation;

            PurchaseTransactionItems = new List <JewelTransaction>();

            cboCustomer.DataSource    = supplierService.GetActiveSuppliers();
            cboCustomer.SelectedIndex = -1;
            dtCosting.Value           = DateTime.Now;
        }
コード例 #7
0
        public frmTaxInvoiceReport(IConfigurationService configurationService, IReportService reportService, IWinSettingProvider winSettingProvider)
            : this()
        {
            _reportService      = reportService;
            _winSettingProvider = winSettingProvider;
            IConfigurationService configurationService1 = configurationService;

            cboFinancialYear.DataSource   = configurationService1.GetAllFinancialYears().Select(x => x.YearCode).ToList();
            cboFinancialYear.SelectedItem = configurationService1.GetCurrentFinancialYearCode;
            cboTransactionType.DataSource = Enum.GetNames(typeof(TransactionType))
                                            .Except(new List <string> {
                TransactionType.NotSet.ToString(), TransactionType.PurchaseTransaction.ToString()
            })
                                            .ToList();

            rdoDetail.Checked = true;
        }
コード例 #8
0
 public UserService(IWinSettingProvider settingProvider)
 {
     _settingProvider = settingProvider;
 }
コード例 #9
0
 public frmMDIParent(IWinSettingProvider IWinSettingProvider)
 {
     InitializeComponent();
     toolStrip.ItemClicked += SetMDIMode;
     _iWinSettingProvider   = IWinSettingProvider;
 }
コード例 #10
0
        public frmSettings(IWinSettingProvider settingProvider)
        {
            InitializeComponent();

            txtImagePath.Text = settingProvider.ImageDirectory;
        }
コード例 #11
0
 public ConnectionServices(IWinSettingProvider settingProvider)
     : this()
 {
     _settingProvider = settingProvider;
 }