Exemplo n.º 1
0
        private void TBPostCodeSearch_TextChanged(object sender, EventArgs e)
        {
            string txt = TBPostCodeSearch.Text.Trim();

            if (!String.IsNullOrEmpty(txt))
            {
                List <HistoryModel> lm = CustomerHistoryDA.SearchCustomerHistoryByPostCode(Config.VBR4000Connection, txt);
                BindList(lm);
            }
        }
Exemplo n.º 2
0
        private void toolStripTextBox1_TextChanged(object sender, EventArgs e)
        {
            string txt = TBCustomerIDSearch.Text.Trim();

            if ((!String.IsNullOrEmpty(txt)) && (txt.Length >= 3))
            {
                List <HistoryModel> lm = CustomerHistoryDA.SeachCustomerHistoryByCustomerId(Config.VBR4000Connection, txt);
                BindList(lm);
            }
        }
Exemplo n.º 3
0
        private void CustomerHistory_Load(object sender, EventArgs e)
        {
            this.Width  = FormSize.Width(this.Tag.ToString());
            this.Height = FormSize.Heigth(this.Tag.ToString());

            int IFW = FormSize.Width(Singleton <Tree> .Instance.Tag.ToString());

            initialLocation.X = IFW;
            initialLocation.Y = 0;
            this.Location     = initialLocation;
            Application.DoEvents();
            List <HistoryModel> lm = CustomerHistoryDA.GetCustomerHistory(Config.VBR4000Connection);

            BindList(lm);
        }
Exemplo n.º 4
0
        private void buEndDate_Click(object sender, EventArgs e)
        {
            List <HistoryModel> lm = CustomerHistoryDA.SearchCustomerHistoryByEndDate(Config.VBR4000Connection);

            BindList(lm);
        }