コード例 #1
0
 protected void btnCustSave_Click(object sender, EventArgs e)
 {
     CustomerService.AddCustomer(Convert.ToString(ViewState["LetterNo"]),
                                 txtCustName.Text,
                                 "I",
                                 dtpCustBirthDate.SelectedDate,
                                 rblCustGender.SelectedValue,
                                 String.IsNullOrEmpty(ddlCustJobPosition.SelectedValue) ? 0 : Convert.ToInt32(ddlCustJobPosition.SelectedValue),
                                 txtCustEmail.Text,
                                 txtCustAddress.Text,
                                 txtCustZipCode.Text,
                                 txtCustWebsite.Text,
                                 txtInformationSource.Text,
                                 new Dictionary <int, string>()
     {
         { 1, txtCustCellPhone1.Text }, { 2, txtCustCellPhone2.Text }
     },
                                 new Dictionary <int, string>()
     {
         { 1, txtCustSocialMediaNetwork1.Text },
         { 2, txtCustSocialMediaNetwork2.Text }
     },
                                 new Dictionary <int, string>()
     {
         { 1, txtCustWorkPhone1.Text }, { 2, txtCustWorkPhone2.Text }
     });
     ;
     RadGridParticipants.DataBind();
 }
コード例 #2
0
 protected void RadGridParticipants_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "DeleteParticipant")
     {
         string customerCode = Convert.ToString(e.CommandArgument);
         ConfirmationLetterService.RemoveParticipant(RowID, customerCode);
         RadGridParticipants.DataBind();
     }
 }
コード例 #3
0
 protected void btnRefreshParticipant_Click(object sender, EventArgs e)
 {
     RadGridParticipants.DataBind();
 }