Exemplo n.º 1
0
 private void pbContact_Click(object sender, EventArgs e)
 {
     using (var supportAboutPopup = new frmContact())
     {
         supportAboutPopup.ShowDialog();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Valida la el check y lo que necesite antes de abrir el formulario de contactación
        /// </summary>
        /// <history>
        /// [jorcanche] created 05/05/2016
        /// </history>
        private void Info_Click(object sender, RoutedEventArgs e)
        {
            var chkguInfo = sender as CheckBox;
            var outPre    = dgGuestPremanifest.Items[dgGuestPremanifest.Items.CurrentPosition] as GuestPremanifestOuthouse;

            //Invertimos el valor del Check para que no se refleje si no que hasta que se halla terminado la solicitud
            chkguInfo.IsChecked = !chkguInfo.IsChecked.Value;
            if (outPre != null && ValidateContact(outPre.guCheckIn, outPre.guInfo, outPre.guCheckOutD))
            {
                StaStart("Loading Contact´s Info...");
                frmContact frmCont = new frmContact(outPre.guID, Context.User);
                frmCont.Owner         = this;
                frmCont.ShowInTaskbar = false;
                StaEnd();
                if (!frmCont.ShowDialog().Value)
                {
                    if (frmCont._wasSave)
                    {
                        StaStart("Save Contact's Info...");
                        dgGuestPremanifest.SelectedItems.OfType <GuestPremanifestOuthouse>().ToList().ForEach(item =>
                        {
                            item.guPRInfo  = frmCont.PRInfo;
                            item.guInfoD   = frmCont.InfoD;
                            item.guCheckIn = true;
                            item.guInfo    = true;
                        });
                        dgGuestPremanifest.Items.Refresh();
                        StaEnd();
                    }
                }
                StaEnd();
            }
            StaEnd();
        }
        private void btnAddContacts_Click(object sender, EventArgs e)
        {
            frmContact _frmContacts = new frmContact();

            _frmContacts.StartPosition = FormStartPosition.CenterScreen;
            _frmContacts.CustomerId    = CustomerId;
            _frmContacts.databaseId    = DatabaseId;
            _frmContacts.IsEditMode    = false;
            _frmContacts.ShowDialog();
            BindContacts(CustomerId);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 导航菜单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lbNav_MouseClick(object sender, MouseEventArgs e)
        {
            //获取当前点击的获得的值

            var  selectNavTxt = lbNav.SelectedItem.ToString();
            bool isopen       = frmFuncLib.IsOpenModules(selectNavTxt);

            if (selectNavTxt == "客户" && isopen)
            {
                frmCustomer fc = new frmCustomer();
                AddForm(fc, "客户管理");
            }
            else if (selectNavTxt == "联系人" && isopen)
            {
                frmContact fcc = new frmContact();
                AddForm(fcc, "联系人管理");
            }
            else if (selectNavTxt == "拜访" && isopen)
            {
                frmVisit fv = new frmVisit();
                AddForm(fv, "拜访管理");
            }
            else if (selectNavTxt == "销售" && isopen)
            {
                frmTarget ft = new frmTarget();
                AddForm(ft, "销售管理");
            }
            else if (selectNavTxt == "产品" && isopen)
            {
                frmProduct fp = new frmProduct();
                AddForm(fp, "产品管理");
            }
            else if (selectNavTxt == "个人桌面")
            {
                lblMenuTitle.Text = "个人桌面";
                panel3.Controls.Clear();
                //个人桌面待定
            }
            else
            {
                MessageBox.Show("您没有权限操作此模块,请联系管理员开通!");
            }
        }
Exemplo n.º 5
0
 private void btnEditContact_Click(object sender, EventArgs e)
 {
     try
     {
         frmContact frm = new frmContact(SelectedContactID);
         frm.PartyID = this.SelectedPartyID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateContacts();
         }
     }
     catch (Exception ex)
     {
         string strErr = ex.Message;
         if (ex.InnerException != null)
         {
             strErr += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(strErr, "pageParties::btnEditContact_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnAddConsultantContacts_Click(object sender, EventArgs e)
 {
     try
     {
         frmContact frm = new frmContact();
         frm.PartyID = this.SelectedConsultantID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateConsultantInfo();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "ControlSalesEnquiryClientIDetails::btnAddConsultantContacts_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnAddNewContact_Click(object sender, EventArgs e)
 {
     try
     {
         frmContact frm = new frmContact();
         frm.PartyID = this.SelectedClientID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             gridCompanyContacts.DataSource = (new ServiceContacts()).GetMultiSelectListContactsForParty(this.SelectedClientID);
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "ControlSalesOrderContacts::btnAddNewContact_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 8
0
        private void BtnLienHe_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmContact fInfor = new frmContact();

            fInfor.ShowDialog();
        }
Exemplo n.º 9
0
        /// <summary>
        ///		Abre el formulario de modificación de contacto
        /// </summary>
        private void OpenFormUpdateContact(JabberContact objContact)
        {
            JabberConnection objConnection = GetSelectedConnection();

                if (objConnection == null)
                    Bau.Controls.Forms.Helper.ShowMessage(ParentForm, "Seleccione una conexión");
                else
                    { frmContact frmNewContact = new frmContact();

                            // Asigna las propiedades
                                frmNewContact.Jid = objContact?.Jid;
                                frmNewContact.ContactName = objContact?.Name;
                            // Abre el formulario
                                frmNewContact.ShowDialog();
                            // Si todo es correcto ...
                                if (frmNewContact.DialogResult == DialogResult.OK)
                                    objConnection.AddContact(frmNewContact.Jid, frmNewContact.ContactName);
                    }
        }