当前位置: 首页>>代码示例>>C#>>正文


C# Net.DirectEventArgs类代码示例

本文整理汇总了C#中Ext.Net.DirectEventArgs的典型用法代码示例。如果您正苦于以下问题:C# DirectEventArgs类的具体用法?C# DirectEventArgs怎么用?C# DirectEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DirectEventArgs类属于Ext.Net命名空间,在下文中一共展示了DirectEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: btnDoneAddressDetail_DirectClick

        protected void btnDoneAddressDetail_DirectClick(object sender, DirectEventArgs e)
        {
            hiddenStreet.Text = txtStreetAddress.Text;
            hiddenBarangay.Text = txtBarangay.Text;
            if (radioCity.Checked == true)
            {
                hiddenMunicipality.Text = "";
                hiddenCity.Text = txtCityOrMunicipality.Text;
            }
            else
            {
                hiddenCity.Text = "";
                hiddenMunicipality.Text = txtCityOrMunicipality.Text;
            }

            hiddenProvince.Text = txtProvince.Text;
            hiddenCountry.Text = cmbCountry.SelectedItem.Text;
            hiddenPostalCode.Text = txtPostalCode.Text;
            txtBusinessAddress.Text = StringConcatUtility.Build(", ", hiddenStreet.Text,
                hiddenBarangay.Text, hiddenMunicipality.Text, hiddenCity.Text, hiddenProvince.Text,
                hiddenCountry.Text, hiddenPostalCode.Text);
            winAddressDetail.Hidden = true;

            txtName.Text = txtName.Text;

            using (var context = new FinancialEntities())
            {
                int countryId = int.Parse(cmbCountry.SelectedItem.Value.ToString());
                var country = context.Countries.SingleOrDefault(entity => entity.Id == countryId);
                txtFaxCode.Text = country.CountryTelephoneCode;
                txtTelephoneCode.Text = country.CountryTelephoneCode;
            }
        }
开发者ID:wainona,项目名称:PamaranLending,代码行数:33,代码来源:EditContactOrganization.aspx.cs

示例2: btnAdditem_DirectClick

 /// <summary>
 /// 弹窗的添加一条数据
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnAdditem_DirectClick(object sender, DirectEventArgs e)
 {
     BG_Policy bg_policy = new BG_Policy();
     try
     {
         bg_policy.POrder = Convert.ToInt32(ADPOrder.Text);
         bg_policy.PTime = Convert.ToDateTime(ADPTime.Text);
         bg_policy.PFrom = ADPFrom.Text;
         bg_policy.PType = ADPcmb.SelectedItem.Value.ToString();
         bg_policy.PTitle = ADPTitle.Text;
         bg_policy.PContent = ADHEdit.Text;
         bg_policy.PStatus = "未发布";
         BG_PolicyManager.AddBG_Policy(bg_policy);
         PolicyDataBind();
         resetform.Reset();
     }
     catch (Exception ex)
     {
         X.Msg.Alert("提示", ex);
     }
     //ADPOrder.Clear();
     //ADPTime.Clear();
     //ADPFrom.Clear();
     //ADPTitle.Clear();
     //ADHEdit.Clear();
     //HEdit.Clear();
 }
开发者ID:randianb,项目名称:Budget-jinzhou-server-,代码行数:32,代码来源:PolicyEditList.aspx.cs

示例3: cmbEstado_Change

 /// <summary>
 /// Evento que se lanza al escoger un elemento de Estados
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void cmbEstado_Change(object sender, DirectEventArgs e)
 {
     //1. Obtener el estado seleccionado y obtener los Municipios
     string strEstado = e.ExtraParams["valor"];
     sMunicipios.DataSource = MunicipioBusiness.ObtenerMunicipiosPorEstado(strEstado);
     sMunicipios.DataBind();
 }
开发者ID:JYovan,项目名称:PROJECT_APP,代码行数:12,代码来源:Colonias.aspx.cs

示例4: click_btn_guardar

    public void click_btn_guardar(object sender, DirectEventArgs e)
    {
      try
      {

        string Tmensaje = ErrorText.REGISTRO_INGRESADO;

        //

        co_re_subcategorias obj = new co_re_subcategorias();
        if (hid_id.Text != "0")
        {
          obj = new bf_re_subcategorias().GetData(Convert.ToInt32(hid_id.Text));
          Tmensaje = ErrorText.REGISTRO_MODIFICADO;
        }
        obj.subca_subcategoria = txt_subca_subcategoria.Text;
        obj.subca_orden = Convert.ToInt32(num_subca_orden.Text);
        obj.id_categoria.id = Convert.ToInt32(hid_id_categoria.Text);

        if (hid_id.Text == "0")
        {
          panelCenter.Reset();
        }

        new bf_re_subcategorias().Save(obj);

        //

        Mensajes.Show("Mensaje", Tmensaje, MessageBox.Icon.INFO);
      }
      catch (Exception ex)
      {
        Mensajes.Error(ex.Message);
      }
    }
开发者ID:PlataformaGroup,项目名称:TattersallAdmin,代码行数:35,代码来源:wf_re_subcategorias_adm.aspx.cs

示例5: btnLogin_Click

 protected void btnLogin_Click(object sender, DirectEventArgs e)
 {
     DataSet ds = new DataSet();
     bool user = DIMERCO.SDK.Utilities.ReSM.CheckUserInfo(tfUserID.Text.Trim(), tfPW.Text.Trim(), ref ds);
     if (ds.Tables[0].Rows.Count == 1)
     {
         DataTable dtuser = ds.Tables[0];
         Session["UserID"] = dtuser.Rows[0]["UserID"].ToString();
         DataSet ds1 = DIMERCO.SDK.Utilities.LSDK.getUserProfilebyUserList(dtuser.Rows[0]["UserID"].ToString());
         if (ds1.Tables[0].Rows.Count == 1)
         {
             DataTable dt1 = ds1.Tables[0];
             Session["UserName"] = dt1.Rows[0]["fullName"].ToString();
             Session["Station"] = dt1.Rows[0]["stationCode"].ToString();
             Session["Department"] = dt1.Rows[0]["DepartmentName"].ToString();
             Session["CostCenter"] = dt1.Rows[0]["CostCenter"].ToString();
             X.AddScript("window.location.reload();");
         }
         else
         {
             X.Msg.Alert("Message", "Data Error.").Show();
             return;
         }
     }
     else
     {
         X.Msg.Alert("Message", "Please confirm your UserID and Password.").Show();
         return;
     }
     if (ds != null)
     {
         ds.Dispose();
     }
 }
开发者ID:MasterKongKong,项目名称:eReim,代码行数:34,代码来源:RoleUser.aspx.cs

示例6: btnEditar_Click

 protected void btnEditar_Click(object sender, DirectEventArgs e)
 {
     base.AcaoTela = Common.AcaoTela.Edicao;
     PreencherCampos(e);
     winMensagem.Title = "Alterando Mensagem";
     winMensagem.Show((Control)sender);
 }
开发者ID:rafathan,项目名称:intranet,代码行数:7,代码来源:GerenciarMensagens.aspx.cs

示例7: Cell_Click

 /// <summary>
 /// Permite seleccionar una celda de la tabla y recuperar el ID de la cotización
 /// </summary>
 /// <param name="sender">object sender</param>
 /// <param name="e">DirectEventArgs e</param>
 protected void Cell_Click(object sender, DirectEventArgs e)
 {
     CellSelectionModel sm = this.GridPanel1.SelectionModel.Primary as CellSelectionModel;
     idCot = Convert.ToString(sm.SelectedCell.RecordID);
     lbl_Cot.Text = "";
     lbl_Cot.Text = "       " + idCot;
 }
开发者ID:pprbe3,项目名称:Cotizador,代码行数:12,代码来源:CotizacionSocio.aspx.cs

示例8: Cell_Click

        public void Cell_Click(object sender, DirectEventArgs e)
        {
            CellSelectionModel sm = this.AdmonModelos.SelectionModel.Primary as CellSelectionModel;
            Session["idModelo"] = Convert.ToString(sm.SelectedCell.RecordID);
            OBD_danos.DatosModelo modelo = new OBD_danos.DatosModelo();

            modelo = wsData.AdminCatRegresaModelo(Convert.ToInt32(Session["idModelo"]));

            dpfModelo.Text = modelo.IdModelo;
            txtIdPRYBE.Text = modelo.IdPrybe;
            cbMarca.SetValue(Convert.ToInt32(modelo.IdMarca));
            txtDescrip.Text = modelo.Descripcion;
            sfAno.SetValue(modelo.Ano);
            if (modelo.ValorComercial != "") { txtVC.Text = modelo.ValorComercial; } else { txtVC.Text = "0"; }
            txtABA.Text = modelo.ClaveAba;
            txtPrimero.Text = modelo.ClavePrimero;
            txtQualitas.Text = modelo.ClaveQualitas;
            txtIDMultiva.Text = modelo.Multiva.Id;
            txtMarMultiva.Text = modelo.Multiva.Marca;
            txtSMarMultiva.Text = modelo.Multiva.SubMarca;
            txtDescMultiva.Text = modelo.Multiva.DescSubMarca;
            txtIDGNP.Text = modelo.Gnp.Id;
            txtMarGNP.Text = modelo.Gnp.Marca;
            txtDescGNP.Text = modelo.Gnp.Descripcion;
            txtANA.Text = modelo.ClaveAna;
            txtMAPFRE.Text = modelo.ClaveMapfre;
            txtPotosi.Text = modelo.ClavePotosi;
            txtZurich.Text = modelo.ClaveZurich;
            txtAXA.Text = modelo.ClaveAxa;

            btnModificar.Disabled = false;
        }
开发者ID:pprbe3,项目名称:Cotizador,代码行数:32,代码来源:AdmonCatalogo.aspx.cs

示例9: SendMail

 protected void SendMail(object sender, DirectEventArgs e)
 {
     try
     {
         DIMERCO.SDK.MailMsg mail = new DIMERCO.SDK.MailMsg();
         mail.Title = "Dimerco eReimbursement";
         mail.FromDispName = "eReimbursement";
         mail.From = "[email protected]";
         mail.To = "[email protected],[email protected]";
         mail.Body = "<div><table style='border-collapse: collapse;'><tr><td nowrap='nowrap'>所有跟Shipment相关的文件不能从Value+中导出的全部扫描后传入Document Cloud中,以备任何时间查看或者下载打印;所有跟Shipment相关的文件不能从Value+中导出的全部扫描后传入Document Cloud中,以备任何时间查看或者下载打印;所有跟Shipment相关的文件不能从Value+中导出的全部扫描后传入Document Cloud中,以备任何时间查看或者下载打印;所有跟Shipment相关的文件不能从Value+中导出的全部扫描后传入Document Cloud中,以备任何时间查看或者下载打印;</td><td>13</td></tr><tr><td>22</td><td>23</td></tr></table></div>";
         mail.Send();
         X.Msg.Show(new MessageBoxConfig
         {
             Title = "Message",
             Message = "发送成功",
             Buttons = MessageBox.Button.OK,
             Icon = MessageBox.Icon.WARNING
         });
     }
     catch (Exception)
     {
         
         throw;
     }
 }
开发者ID:MasterKongKong,项目名称:eReim,代码行数:25,代码来源:mailtest.aspx.cs

示例10: imgbtnGuardar_Click

        /// <summary>
        /// Evento de clic del botón Guardar
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void imgbtnGuardar_Click(object sender, DirectEventArgs e)
        {
            //1. Obtener datos de la Forma y saber si es edición o nuevo
            string strRegistro = e.ExtraParams["registro"];

            //2. Por cada elemento del submit de la Forma detectar el campo y asignarlo al objeto correspondiente
            Dictionary<string, string> dRegistro = JSON.Deserialize<Dictionary<string, string>>(strRegistro);
            CodigoPostal cp = new CodigoPostal();
            foreach (KeyValuePair<string, string> sd in dRegistro)
            {
                switch (sd.Key)
                {
                    case "cmbEstado":
                        cp.Estado = sd.Value;
                        break;
                    case "cmbMunicipio":
                        cp.Municipio = sd.Value;
                        break;
                    case "cmbColonia":
                        cp.Colonia = sd.Value;
                        break;
                    case "txtCP":
                        cp.Numero = Convert.ToInt32(sd.Value);
                        break;
                }
            }

            //3. Insertar en la base de datos
            cp.Id = CodigoPostalBusiness.Insertar(cp);
            e.ExtraParamsResponse.Add(new Ext.Net.Parameter("data", cp.Id, ParameterMode.Value));
        }
开发者ID:JYovan,项目名称:PROJECT_APP,代码行数:36,代码来源:FormaCodigoPostales.aspx.cs

示例11: btnNovo_Click

 protected void btnNovo_Click(object sender, DirectEventArgs e)
 {
     base.AcaoTela = Common.AcaoTela.Inclusao;
     winSistema.Title = "Cadastrando Sistema";
     LimparCampos();
     winSistema.Show((Control)sender);
 }
开发者ID:rafathan,项目名称:intranet,代码行数:7,代码来源:GerenciarSistemas.aspx.cs

示例12: btnGenerate_Click

        protected void btnGenerate_Click(object sender, DirectEventArgs e)
        {
            using (var unitOfWork = new UnitOfWorkScope(true))
            {
                BusinessLogic.GenerateBillFacade.GenerateReceivable(dtGenerationDate.SelectedDate);
            }
            using (var unitOfWork = new UnitOfWorkScope(true))
            {

                LoanAccount.UpdateLoanAccountStatus(dtGenerationDate.SelectedDate);
            }
            using (var unitOfWork = new UnitOfWorkScope(true))
            {
                DemandLetter.UpdateDemandLetterStatus(dtGenerationDate.SelectedDate);
            }
            using (var unitOfWork = new UnitOfWorkScope(true))
            {
                Customer.UpdateCustomerStatus(dtGenerationDate.SelectedDate);
            }
            using (var unitOfWork = new UnitOfWorkScope(true))
            {

                FinancialProduct.UpdateStatus();

            }
        }
开发者ID:wainona,项目名称:PamaranLending,代码行数:26,代码来源:GenerateBill.aspx.cs

示例13: btnSave_OnDirectEvent

        protected void btnSave_OnDirectEvent(object sender, DirectEventArgs e)
        {
            int loanId = int.Parse(hdnLoanId.Text);
            var LoanStatus = ObjectContext.LoanAccountStatus.SingleOrDefault(entity => entity.LoanAccount.FinancialAccountId == loanId && entity.IsActive == true);
            var loanAccountStatusTypeAssoc = ObjectContext.LoanAccountStatusTypeAssocs.Where(entity => entity.EndDate == null
                                                && entity.FromStatusTypeId == LoanStatus.LoanAccountStatusType.Id
                                                && entity.ToStatusTypeId == LoanAccountStatusType.UnderLitigationType.Id);

            if (loanAccountStatusTypeAssoc == null)
            {
                X.Msg.Alert("Error!", "Cannot change status to Under Litigation.").Show();
                return;
            }
            LoanStatus.IsActive = false;

            LoanAccountStatu newLoanAccountStatus = new LoanAccountStatu();
            newLoanAccountStatus.FinancialAccountId = loanId;
            newLoanAccountStatus.LoanAccountStatusType = LoanAccountStatusType.UnderLitigationType;
            newLoanAccountStatus.Remarks = txtComment.Text;
            newLoanAccountStatus.TransitionDateTime = DateTime.Now;
            newLoanAccountStatus.IsActive = true;
            ObjectContext.LoanAccountStatus.AddObject(newLoanAccountStatus);

            ChangeCustomerStatusToUnderLitigation(loanId);

            ObjectContext.SaveChanges();
        }
开发者ID:wainona,项目名称:PamaranLending,代码行数:27,代码来源:UnderLitigationLoan.aspx.cs

示例14: UploadClick

        protected void UploadClick(object sender, DirectEventArgs e)
        {
            try
            {
                if (this.FileUploadField1.HasFile)
                {
                    string loggedUsr = Session["username"] as string;

                    COCASJOL.LOGIC.Utiles.ImportarExcelLogic excelImport = new LOGIC.Utiles.ImportarExcelLogic();

                    string extension = Path.GetExtension(this.FileUploadField1.FileName);

                    string uploadSavePath = System.Configuration.ConfigurationManager.AppSettings.Get("uploadSavePath");
                    string uploadNameSocios = System.Configuration.ConfigurationManager.AppSettings.Get("uploadNameSocios");

                    string savePath = Server.MapPath(uploadSavePath) + uploadNameSocios + extension;

                    string msg = "";

                    lock (lockObj)
                    {
                        this.FileUploadField1.PostedFile.SaveAs(savePath);
                         msg = excelImport.SociosCargarDatos(savePath, loggedUsr);
                    }
                    this.BasicForm.Reset();
                    X.Msg.Alert("Importar Socios", msg).Show();
                    this.SociosSt_Reload(null, null);
                }
            }
            catch (Exception ex)
            {
                log.Fatal("Error fatal al guardar archivo subido.", ex);
                throw;
            }
        }
开发者ID:xapiz,项目名称:COCASJOL,代码行数:35,代码来源:Socios.aspx.cs

示例15: BtnSave_Click

    protected void BtnSave_Click(object sender, DirectEventArgs e)
    {
        try
        {
            Y_StylePicture _Y_StylePicture = new Y_StylePicture();
            string filename = UpFile.PostedFile.FileName;
            if (string.IsNullOrEmpty(filename))
            {
                X.Msg.Alert("失败", "请先选择要上传的图片!").Show();
                return;
            }
            if (Hid.Text.Length > 0)
            {

                string ext = Path.GetExtension(filename).ToLower();
                if (ext != ".png" && ext != ".jpg")
                {
                    X.Msg.Notify("失败", "<font color='red'>文件格式不正确,仅支持png,jpg格式文件!</font>").Show();
                    return;
                }
                filename = DateTime.Now.ToString("yyyyMMddHHmmss") + ext;
                UpFile.PostedFile.SaveAs(Server.MapPath("StylePicture/" + filename));
                IList<Y_StylePicture> list = WMSFactory.Y_StylePicture.FindByCondition("StyleId+ColorId='" + Hid.Text.Trim() + "'");
                bool isok = false;
                if (list != null && list.Count == 1)
                {
                    _Y_StylePicture = list[0];
                    if (File.Exists(Server.MapPath("StylePicture/" + _Y_StylePicture.Picture)))
                        File.Delete(Server.MapPath("StylePicture/" + _Y_StylePicture.Picture));
                    _Y_StylePicture.Picture = filename; //图标地址
                    isok = WMSFactory.Y_StylePicture.Update(_Y_StylePicture);
                }
                else
                {
                    _Y_StylePicture.StyleId = Hid.Text.Trim().Substring(0, Hid.Text.Trim().Length - 1);
                    _Y_StylePicture.ColorId = Hid.Text.Trim().Replace(_Y_StylePicture.StyleId, "");
                    _Y_StylePicture.Picture = filename;
                    isok = WMSFactory.Y_StylePicture.Add(_Y_StylePicture);
                }
                if (isok)
                {
                    CL_WinEdit.Hide();
                    Y_Grid.Reload();
                    MsgBox.NotifiShow("恭喜您,操作成功!", "OK");
                }
                else
                    MsgBox.MessageShow("操作失败,请您重试!", "ERROR");
            }
            else
            {
                X.Msg.Alert("失败", "请重新选择要修改的行!").Show();
                return;
            }
        }
        catch (Exception error)
        {
            X.Msg.Alert("失败", "异常:" + error.Message).Show();
            return;
        }
    }
开发者ID:huaminglee,项目名称:Code,代码行数:60,代码来源:StylePicture.aspx.cs


注:本文中的Ext.Net.DirectEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。