Beispiel #1
0
        private void cboCustType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cboCustType.SelectedValue == null)
            {
                return;
            }
            if (cboCustType.SelectedValue.ToString().CompareTo("New...") != 0)
            {
                return;
            }

            MTN_CUSTOMER_TYPE frm = new MTN_CUSTOMER_TYPE();

            frm.ShowDialog();
            FillControl.FillCustomerType(cboCustType, false, true);
        }
Beispiel #2
0
        private void MTN_CUSTOMER_LIST_Load(object sender, EventArgs e)
        {
            DBGrid.ContextMenuStrip.Items.Add("-");
            DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Customer Log"), LXMS.Properties.Resources.largeLogs, new System.EventHandler(this.mnuCustomerLog_Click));

            DBGridTrace.ContextMenuStrip.Items.Add("-");
            DBGridTrace.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("New"), LXMS.Properties.Resources.new_med, new System.EventHandler(this.mnuAddTrace_Click));
            DBGridTrace.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Edit"), LXMS.Properties.Resources.Edit, new System.EventHandler(this.mnuEditTrace_Click));
            Util.ChangeStatus(this, true);
            FillControl.FillStatus(cboStatus, false);
            FillControl.FillCustomerLevel(cboCustLevel, false);
            FillControl.FillCustomerType(cboCustType, false, true);
            FillControl.FillEmployeeList(cboSalesMan, false, true);
            FillControl.FillShipmentTemplete(cboShipmentTemplete, false);
            FillControl.FillCurrency(cboCurrency, false, true);
            //SelectVisible = false;
            DBGrid.Tag      = this.Text;
            DBGridTrace.Tag = this.Text + "Trace";
            LoadTree();
        }