Esempio n. 1
0
        private void SetInitialSetting()
        {
            dt_From.Value = DateTime.Now.AddDays(-7);
            dt_To.Value   = DateTime.Now;
            ModuleControlSettings.SetDateTimePicker(dt_From, true);
            ModuleControlSettings.SetDateTimePicker(dt_To, true);

            dt_From.Enabled = EnabledDateFilter;
            dt_To.Enabled   = EnabledDateFilter;

            //groupBox1.Visible = UseSupplierList;
            //if (UseSupplierList)
            //{
            //    checkedListBox_Parameter.Items.Clear();
            //    IList listSupp = DataMaster.GetAll(typeof(MSupplier));
            //    MSupplier sup;
            //    for (int i = 0; i < listSupp.Count; i++)
            //    {
            //        sup = (MSupplier)listSupp[i];
            //        checkedListBox_Parameter.Items.Add(sup.SupplierId + " (" + sup.SupplierName + ")", true);
            //    }
            //}

            if (Param == ParameterView.None)
            {
                transactionByComboBox.Enabled = false;
                if (!EnabledDateFilter)
                {
                    splitContainer1.Panel1Collapsed = true;
                    BindReport();
                }
            }
            else if (Param == ParameterView.Customer)
            {
                transactionByLabel.Text = "Pilih Pelanggan : ";
                Module.ModuleControlSettings.SetCustomerComboBoxForFilter(transactionByComboBox);
            }
            else if (Param == ParameterView.Employee)
            {
                transactionByLabel.Text = "Pilih Pelapor : ";
                Module.ModuleControlSettings.SetEmployeeComboBoxForFilter(transactionByComboBox);
            }
            else if (Param == ParameterView.Supplier)
            {
                transactionByLabel.Text = "Pilih Supplier : ";
                Module.ModuleControlSettings.SetSupplierComboBoxForFilter(transactionByComboBox);
            }
            else if (Param == ParameterView.User)
            {
                transactionByLabel.Text = "Pilih Nama Pengguna : ";
                Module.ModuleControlSettings.SetUserComboBoxForFilter(transactionByComboBox);
            }
            else if (Param == ParameterView.Currency)
            {
                transactionByLabel.Text = "Pilih Mata Uang : ";
                AppCode.SetCurrencyStatusComboBox(transactionByComboBox);
                transactionByComboBox.SelectedIndex = 0;
            }
        }
Esempio n. 2
0
        private void FormGiro_Load(object sender, EventArgs e)
        {
            ModuleControlSettings.SaveLog(ListOfAction.Open, string.Empty, ListOfTable.TGiro, lbl_UserName.Text);
            UpdateGiroMaturity();
            FillSupplierBindingSource();
            FillBankBindingSource();
            ModuleControlSettings.SetNumericUpDown(num_TotUtang, true);
            ModuleControlSettings.SetNumericUpDown(giroAmmountNumericUpDown);
            ModuleControlSettings.SetNumericUpDown(giroIdNumericUpDown);
            ModuleControlSettings.SetGridDataView(tGiroDataGridView);
            ModuleControlSettings.SetDateTimePicker(giroCairDateDateTimePicker, false);
            ModuleControlSettings.SetDateTimePicker(giroMaturityDateDateTimePicker, false);
            ModuleControlSettings.SetDateTimePicker(giroOutDateDateTimePicker, false);
            ModuleControlSettings.SetDateTimePicker(modifiedDateDateTimePicker, true);
            AppCode.SetGiroStatusComboBox(giroStatusComboBox);
            AppCode.SetCurrencyStatusComboBox(currencyIdComboBox);
            AppCode.SetCurrencyStatusComboBox(currencyIdComboBox1);

            currencyIdComboBox.SelectedIndex = 0;

            num_TotUtang.Minimum = decimal.MinValue;

            combo_Supplier_SelectedIndexChanged(null, null);
        }