Beispiel #1
0
        protected void btn_Search_Click(object sender, EventArgs e)
        {
            try
            {
                //TUserInfo u = BusinessSupply.BusinessOper.UserBusiness.GetUserById(Convert.ToInt32(uid));
                //int associationid = Convert.ToInt32(u.AssociationId.ToString());
                if (this.ddl_MemberJob.SelectedValue != "")
                {
                    //string job = this.ddl_MemberJob.SelectedValue;
                    //DataTable member = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPersonAssociationTableByAssociationAndJob(associationid, Convert.ToInt32(job));
                    //DataTable member = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPersonAssociationTableByJob(Convert.ToInt32(job));

                    DataTable dt = BasicInfoBusiness.GetBasicInfosForMessage();
                    this.CheckBoxList1.DataSource     = dt;
                    this.CheckBoxList1.DataTextField  = "Name";
                    this.CheckBoxList1.DataValueField = "Id";
                    this.CheckBoxList1.DataBind();
                    CheckCellphoneNum();
                    Session["ReceiverId"] = null;
                }
            }
            catch
            {
                ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alter", "alert('数据加载错误!')", true);
            }
        }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //TUserInfo u = BusinessSupply.BusinessOper.UserBusiness.GetUserById(Convert.ToInt32(uid));
         //int associationid = Convert.ToInt32(u.AssociationId.ToString());
         ////DataTable dt_person = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPersonWithEmailByAssociationId(associationid);
         //DataTable dt_person = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPersonByAssociationId(associationid);
         //DataTable dt_person = BusinessSupply.BusinessOper.PersonAssociationBusiness.GetPerson();
         DataTable dt = BasicInfoBusiness.GetBasicInfosForMessage();
         this.CheckBoxList1.DataSource     = dt;
         this.CheckBoxList1.DataTextField  = "Name";
         this.CheckBoxList1.DataValueField = "Id";
         this.CheckBoxList1.DataBind();
         CheckCellphoneNum();
         Session["ReceiverId"] = null;
     }
 }