Esempio n. 1
0
 public void GetData()
 {
     this.treeView1.Nodes.Clear();
     BLL.CustomerGroup bll = new BLL.CustomerGroup();
     this.treeView1.Nodes.Add(bll.GetCustomerGroup());
     this.treeView1.Nodes[0].Toggle();
 }
Esempio n. 2
0
        private void frmCustomer_Load(object sender, EventArgs e)
        {
            this.Height = 422;

            BLL.CustomerGroup bll = new BLL.CustomerGroup();
            this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
            this.cbxCustomerGroup.Nodes[0].Toggle();
            GetCustomerGroup(_guid);

            //加载省列表
            cbxProvince.DataSource    = DBUtility.XMLHelper.GetProvinces();
            cbxProvince.DisplayMember = "ProvinceName";
            cbxProvince.ValueMember   = "ID";
            cbxProvince.SelectedValue = 27;

            cbxProvince_SelectedIndexChanged(null, null);
            cbxCity_SelectedIndexChanged(null, null);
            this.cbxProvince.SelectedIndexChanged += new System.EventHandler(this.cbxProvince_SelectedIndexChanged);
            this.cbxCity.SelectedIndexChanged     += new System.EventHandler(this.cbxCity_SelectedIndexChanged);

            if (this._model != null)
            {
                GetUpdate();
            }
            else
            {
                GetAdd();
            }
        }
Esempio n. 3
0
        private void frmCustomer_Load(object sender, EventArgs e)
        {
            this.Height = 422;

            BLL.CustomerGroup bll = new BLL.CustomerGroup();
            this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
            this.cbxCustomerGroup.Nodes[0].Toggle();
            GetCustomerGroup(_guid);

            //加载省列表
            cbxProvince.DataSource = DBUtility.XMLHelper.GetProvinces();
            cbxProvince.DisplayMember = "ProvinceName";
            cbxProvince.ValueMember = "ID";
            cbxProvince.SelectedValue = 27;

            cbxProvince_SelectedIndexChanged(null, null);
            cbxCity_SelectedIndexChanged(null, null);
            this.cbxProvince.SelectedIndexChanged += new System.EventHandler(this.cbxProvince_SelectedIndexChanged);
            this.cbxCity.SelectedIndexChanged += new System.EventHandler(this.cbxCity_SelectedIndexChanged);

            if (this._model != null)
            {
                GetUpdate();
            }
            else
            {
                GetAdd();
            }
        }
Esempio n. 4
0
 public void GetData()
 {
     this.treeView1.Nodes.Clear();
     BLL.CustomerGroup bll = new BLL.CustomerGroup();
     this.treeView1.Nodes.Add(bll.GetCustomerGroup());
     this.treeView1.Nodes[0].Toggle();
 }
Esempio n. 5
0
 private void frmAddCustomerGroup_Load(object sender, EventArgs e)
 {
     BLL.CustomerGroup bll = new BLL.CustomerGroup();
     this.cbxTreeCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
     this.cbxTreeCustomerGroup.Nodes[0].Toggle();
     if (this._model != null)
     {
         GetUpdate();
     }
 }
Esempio n. 6
0
 private void frmAddCustomerGroup_Load(object sender, EventArgs e)
 {
     BLL.CustomerGroup bll = new BLL.CustomerGroup();
     this.cbxTreeCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
     this.cbxTreeCustomerGroup.Nodes[0].Toggle();
     if (this._model != null)
     {
         GetUpdate();
     }
 }
Esempio n. 7
0
        private void frmService_Load(object sender, EventArgs e)
        {
            BLL.CustomerGroup bll = new BLL.CustomerGroup();
            this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
            this.cbxCustomerGroup.Nodes[0].Toggle();
            if (_guid != Guid.Empty)
            {
                GetCustomerGroup(_guid);
            }

            if (this._model != null)
            {
                GetUpdate();
            }
            else
            {
                GetAdd();
            }
        }
Esempio n. 8
0
        private void frmService_Load(object sender, EventArgs e)
        {
            BLL.CustomerGroup bll = new BLL.CustomerGroup();
            this.cbxCustomerGroup.Nodes.Add(bll.GetCustomerGroup());
            this.cbxCustomerGroup.Nodes[0].Toggle();
            if (_guid != Guid.Empty)
            {
                GetCustomerGroup(_guid);
            }

            if (this._model != null)
            {
                GetUpdate();
            }
            else
            {
                GetAdd();
            }
        }