private void QRY_SALES_DESIGN_SUMMARY_Load(object sender, EventArgs e)
 {
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillDesignType(cboFormType, true);
     FillControl.FillCustomerList(lstCustomer);
     FillControl.FillEmployeeList(cboSalesMan, true, false);
     lstCustomer.BackColor = frmOptions.BACKCOLOR;
     dtpFrom.Value         = Util.modperiod.StartDate;
     dtpTo.Value           = Util.modperiod.EndDate;
 }
Exemple #2
0
 private void QRY_SALES_SHIPMENT_DETAIL_Load(object sender, EventArgs e)
 {
     DBGrid.ContextMenuStrip.Items.Add("-");
     DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Sales Statement"), LXMS.Properties.Resources.Property, new System.EventHandler(this.mnuSalesStatement_Click));
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillShipType(cboShipType, true);
     FillControl.FillCustomerList(lstCustomer);
     FillControl.FillEmployeeList(cboSalesMan, true, false);
     lstCustomer.BackColor = frmOptions.BACKCOLOR;
     dtpFrom.Value         = Util.modperiod.StartDate;
     dtpTo.Value           = Util.modperiod.EndDate;
 }
Exemple #3
0
        private void cboSalesMan_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cboSalesMan.SelectedValue == null)
            {
                return;
            }
            if (cboSalesMan.SelectedValue.ToString().CompareTo("New...") != 0)
            {
                return;
            }

            MTN_EMPLOYEE_LIST frm = new MTN_EMPLOYEE_LIST();

            frm.ShowDialog();
            FillControl.FillEmployeeList(cboSalesMan, false, true);
        }
Exemple #4
0
 private void OPA_SALES_MAN_MNY_Load(object sender, EventArgs e)
 {
     //DBGrid.ContextMenuStrip.Items.Add("-");
     //DBGrid.ContextMenuStrip.Items.Add(clsTranslate.TranslateString("Sales Statement"), LXMS.Properties.Resources.Property, new System.EventHandler(this.mnuSalesStatement_Click));
     DBGrid.Tag = this.Name;
     clsTranslate.InitLanguage(this);
     FillControl.FillEmployeeList(cboSalesMan, false, false);
     FillControl.FillCustomerList(lstCustomer);
     lstCustomer.BackColor = frmOptions.BACKCOLOR;
     dtpFrom.Value         = Util.modperiod.StartDate;
     dtpTo.Value           = Util.modperiod.EndDate;
     if (dtpTo.Value < DateTime.Today)
     {
         dtpTo.Value = DateTime.Today.AddDays(1);
     }
 }
Exemple #5
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();
        }
Exemple #6
0
 private void CRM_CHANGE_SALES_MAN_Load(object sender, EventArgs e)
 {
     clsTranslate.InitLanguage(this);
     FillControl.FillEmployeeList(cboSalesMan.ComboBox, false, false);
     FillControl.FillEmployeeList(cboNewMan.ComboBox, false, true);
 }