Exemple #1
0
 /// <summary>
 /// Update a SupplierContact.
 /// </summary>
 public void Update(Model.SupplierContact supplierContact)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(supplierContact);
 }
Exemple #2
0
 /// <summary>
 /// Insert a SupplierContact.
 /// </summary>
 public void Insert(Model.SupplierContact supplierContact)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(supplierContact);
 }
Exemple #3
0
        private void simpleButtonAdd_Click(object sender, EventArgs e)
        {
            if (action != "view")
            {
                ClearText();
                SetTextEditReadOnly(false);
                _ac = "insert";
                sc  = new Book.Model.SupplierContact();

                this.simpleButtonAdd.Enabled    = false;
                this.simpleButtonSave.Enabled   = true;
                this.simpleButtonModify.Enabled = false;
                this.simpleButtonDel.Enabled    = false;
                this.simpleButtonUndo.Enabled   = true;
            }
        }
Exemple #4
0
        private void gridView1_Click(object sender, EventArgs e)
        {
            GridView    view    = sender as GridView;
            GridHitInfo hitInfo = view.CalcHitInfo(view.GridControl.PointToClient(Cursor.Position));

            if (hitInfo.InRow && !view.IsGroupRow(hitInfo.RowHandle))
            {
                sc = this.bindingSourceSupplierContact.Current as Model.SupplierContact;

                if (sc != null)
                {
                    this.textEditEmail.Text   = sc.SupplierContactEmail;
                    this.textEditMobile.Text  = sc.SupplierContactMobile;
                    this.textEditName.Text    = sc.SupplierContactName;
                    this.textEditPhone.Text   = sc.SupplierContactPhone;
                    this.memoEditRemarks.Text = sc.SupplierContactRemark;
                }
            }
        }
Exemple #5
0
        private void simpleButtonModifiy_Click(object sender, EventArgs e)
        {
            if (action != "view")
            {
                sc = this.bindingSourceSupplierContact.Current as Model.SupplierContact;
                if (sc != null)
                {
                    SetTextEditReadOnly(false);
                    _ac = "modify";

                    this.simpleButtonAdd.Enabled    = false;
                    this.simpleButtonDel.Enabled    = false;
                    this.simpleButtonModify.Enabled = false;
                    this.simpleButtonSave.Enabled   = true;
                    this.simpleButtonUndo.Enabled   = true;

                    this.textEditEmail.Text   = sc.SupplierContactEmail;
                    this.textEditMobile.Text  = sc.SupplierContactMobile;
                    this.textEditName.Text    = sc.SupplierContactName;
                    this.textEditPhone.Text   = sc.SupplierContactPhone;
                    this.memoEditRemarks.Text = sc.SupplierContactRemark;
                }
            }
        }
 public void Update(Model.SupplierContact e)
 {
     this.Update <Model.SupplierContact>(e);
 }
 public void Insert(Model.SupplierContact e)
 {
     this.Insert <Model.SupplierContact>(e);
 }