Example #1
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        protected void databind()
        {
            EnumUtil.BindList <EnumApply>(rbStatus);

            int status = Requests.GetQueryInt("status", -1);

            rbStatus.SelectedValue = status.ToString();
            E_ItemApply data = new E_ItemApply();

            data.SetStatus      = status;
            data.ApplyType      = EnumApplyType.申请加入;
            data.UserID         = UserID;
            data.Page           = new MLMGC.DataEntity.E_Page();
            data.Page.PageIndex = pageIndex;
            data.Page.PageSize  = pageSize;

            rpList.DataSource = new T_ItemApply().GetList(data);
            rpList.DataBind();

            //设置分页样式
            pageList1.PageSize              = pageSize;
            pageList1.CurrentPageIndex      = pageIndex;
            pageList1.RecordCount           = data.Page.TotalCount;
            pageList1.CustomInfoHTML        = string.Format("共有记录 <span class='red_font'>{0}</span> 条", pageList1.RecordCount);
            pageList1.TextAfterPageIndexBox = "&nbsp;页/" + pageList1.PageCount + "&nbsp;";
        }
Example #2
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void databind()
        {
            //源
            EnumUtil.BindList <EnumClientStatus>(rbPISStatus);
            //删除共享状态
            rbPISStatus.Items.RemoveAt(0);
            rbPISStatus.Items.RemoveAt(rbPISStatus.Items.Count - 2);
            rbPISStatus.SelectedIndex = 0;

            //目标
            rbPITStatus.Items.Add(new ListItem(EnumClientStatus.潜在客户.ToString(), ((int)EnumClientStatus.潜在客户).ToString()));
            rbPITStatus.SelectedIndex = 0;

            //---------------------------------------------------------
            //源
            EnumUtil.BindList <EnumClientStatus>(rbIPSStatus);
            //删除共享状态
            rbIPSStatus.Items.RemoveAt(0);
            rbIPSStatus.Items.RemoveAt(rbIPSStatus.Items.Count - 2);
            rbIPSStatus.SelectedIndex = 0;

            //目标
            rbIPTStatus.Items.Add(new ListItem(EnumClientStatus.潜在客户.ToString(), ((int)EnumClientStatus.潜在客户).ToString()));
            rbIPTStatus.SelectedIndex = 0;
        }
Example #3
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        protected void databind()
        {
            //获取个人基本信息
            E_Personal data = new E_Personal();

            data.UserID     = UserID;
            data.PersonalID = PersonalID;
            data            = new T_Personal().GetModel(data);
            if (data == null)
            {
                return;
            }
            EnumUtil.BindList <EnumWorkYear>(ddlWorkYear);
            EnumUtil.BindList <EnumScale>(ddlScale);
            //-----------Info---------
            lblBName.Text     = data.RealName;
            lblBSex.Text      = data.Sex == 0 ? "男" : "女";
            lblBMarital.Text  = data.MaritalStatus.ToString();
            lblBBirthday.Text = string.Format("{0:yyyy-MM-dd}", data.Birthday);
            lblBWorkYear.Text = data.WorkYears.ToString();
            //居住地
            //户口所在地
            lblBEmail.Text   = data.Email;
            lblBMobile.Text  = data.Mobile;
            lblBTel.Text     = data.Tel;
            lblBFax.Text     = data.Fax;
            lblBKeyword.Text = data.KeyWord;
            lblBAddress.Text = data.Address;

            //-----------Edit----------
            txtBName.Text             = data.RealName;
            rdBGender.SelectedValue   = data.Sex.ToString();
            rdBMarital.SelectedValue  = ((int)data.MaritalStatus).ToString();
            txtBBirthday.Text         = string.Format("{0:yyyy-MM-dd}", data.Birthday);
            ddlWorkYear.SelectedValue = ((int)data.WorkYears).ToString();
            //居住地
            //户口所在地
            txtBEmail.Text   = data.Email;
            txtBMobile.Text  = data.Mobile;
            txtBTel.Text     = data.Tel;
            txtBFax.Text     = data.Fax;
            txtBKeyword.Text = data.KeyWord;
            txtBAddress.Text = data.Address;


            //获取个人的工作经验
            E_JobExperience dataJob = new E_JobExperience();

            dataJob.PersonalID = PersonalID;
            dataJob.UserID     = UserID;

            rpList.DataSource = new T_JobExperience().GetList(dataJob);
            rpList.DataBind();
        }
Example #4
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        protected void databind()
        {
            EnumUtil.BindList <EnumApply>(rbStatus);

            //根据EnterpriseID获取ItemID
            E_Item item = new T_Item().GetModel(new E_Item()
            {
                EnterpriseID = EnterpriceID
            });

            if (item == null)
            {
                Jscript.ShowMsg("未找到项目", this);
                return;
            }

            int status = Requests.GetQueryInt("status", -1);

            rbStatus.SelectedValue = status.ToString();
            string      start = Requests.GetQueryString("start");
            string      end   = Requests.GetQueryString("end");
            E_ItemApply data  = new E_ItemApply();

            data.SetStatus = status;
            data.ApplyType = EnumApplyType.申请加入;
            data.ItemID    = item.ItemID;
            data.Page      = new MLMGC.DataEntity.E_Page();

            if (!string.IsNullOrEmpty(start))
            {
                data.Page.StartDate = Convert.ToDateTime(start);
                txtStartDate.Text   = Convert.ToDateTime(start).ToString("yyyy-MM-dd");
            }
            if (!string.IsNullOrEmpty(end))
            {
                data.Page.EndDate = Convert.ToDateTime(end);
                txtEndDate.Text   = Convert.ToDateTime(end).ToString("yyyy-MM-dd");
            }
            data.Page.PageIndex = pageIndex;
            data.Page.PageSize  = pageSize;

            rpList.DataSource = new T_ItemApply().GetList(data);
            rpList.DataBind();

            //设置分页样式
            pageList1.PageSize              = pageSize;
            pageList1.CurrentPageIndex      = pageIndex;
            pageList1.RecordCount           = data.Page.TotalCount;
            pageList1.CustomInfoHTML        = string.Format("共有记录 <span class='red_font'>{0}</span> 条", pageList1.RecordCount);
            pageList1.TextAfterPageIndexBox = "&nbsp;页/" + pageList1.PageCount + "&nbsp;";
        }
Example #5
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void databind()
        {
            //源
            EnumUtil.BindList <EnumClientStatus>(rbEISStatus);
            rbEISStatus.SelectedIndex = 0;

            //目标
            rbEITStatus.Items.Add(new ListItem(EnumClientStatus.共享.ToString(), ((int)EnumClientStatus.共享).ToString()));
            rbEITStatus.SelectedIndex = 0;

            //---------------------------------------------------------
            //源
            EnumUtil.BindList <EnumClientStatus>(rbIESStatus);
            rbIESStatus.Items.RemoveAt(0);
            rbIESStatus.SelectedIndex = 0;

            //目标
            rbIETStatus.Items.Add(new ListItem(EnumClientStatus.待分配名录.ToString(), ((int)EnumClientStatus.待分配名录).ToString()));
            rbIETStatus.Items.Add(new ListItem(EnumClientStatus.共享.ToString(), ((int)EnumClientStatus.共享).ToString()));
            rbIETStatus.SelectedIndex = 0;
        }
Example #6
0
        /// <summary>
        /// 页面初始化加载数据
        /// </summary>
        protected void databind()
        {
            //绑定名录状态
            EnumUtil.BindList <MLMGC.DataEntity.Item.EnumClientStatus>(rbStatus);
            rbStatus.Items.RemoveAt(0);                        //删除待分配
            rbStatus.Items.RemoveAt(rbStatus.Items.Count - 2); //删除共享
            rbStatus.SelectedIndex = rbStatus.Items.Count - 1; //默认所有状态选中

            E_ItemClientInfo data = new E_ItemClientInfo();

            data.EnterpriseID = EnterpriceID;

            data.ClientName = Requests.GetQueryString("name");
            txtName.Text    = data.ClientName;

            data.SetStatus         = Requests.GetQueryInt("status", 0);
            rbStatus.SelectedValue = ((int)data.Status).ToString();

            //分页参数
            data.Page           = new MLMGC.DataEntity.E_Page();
            data.Page.PageSize  = pageSize;
            data.Page.PageIndex = pageIndex;

            DataTable dt = new T_ItemClientInfo().LeaderList(data);

            if (dt != null && dt.Rows.Count > 0)//判断是否有数据返回
            {
                //绑定列表
                rpList.DataSource = dt;
                rpList.DataBind();
            }

            //设置分页样式
            pageList1.PageSize              = pageSize;
            pageList1.CurrentPageIndex      = pageIndex;
            pageList1.RecordCount           = data.Page.TotalCount;
            pageList1.CustomInfoHTML        = string.Format("共有记录 <span class='red_font'>{0}</span> 条", pageList1.RecordCount);
            pageList1.TextAfterPageIndexBox = "&nbsp;页/" + pageList1.PageCount + "&nbsp;";
        }
Example #7
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        protected void databind()
        {
            //绑定状态
            EnumUtil.BindList <ItemStatus>(rbStatus);

            E_Item data = new T_Item().GetModel(new E_Item()
            {
                EnterpriseID = EnterpriceID
            });

            if (data != null)
            {
                txtItemName.Text       = data.ItemName;
                txtItemIntro.Text      = data.ItemIntro;
                txtSignature.Text      = data.Signature;
                txtItemContent.Content = data.ItemContent;
                imgPhoto.ImageUrl      = MLMGC.COMP.Config.GetEnterpriseItemPhotoUrl(data.Photo);
                hdUrl.Value            = MLMGC.COMP.Config.GetEnterpriseItemPhotoUrl(data.Photo);
                txtEstablished.Text    = data.Established.ToShortDateString();
                //txtCityID.Text = data.CityID.ToString();
                rbStatus.SelectedValue = ((int)data.Status).ToString();
                region.RegionID        = data.CityID;
            }
        }
Example #8
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        protected void databind()
        {
            //获取个人信息,判断他的信息是否完善,如果不完善,跳转到个人资料页面进行填写。
            E_Personal dataPersonal = new E_Personal();

            dataPersonal.UserID     = UserID;
            dataPersonal.PersonalID = PersonalID;
            dataPersonal            = new T_Personal().GetModel(dataPersonal);
            if (dataPersonal == null)
            {
                Response.Redirect("../main.aspx");
            }
            //判断资料是否完善
            if (!new T_Personal().IsPerfect(dataPersonal))
            {
                Jscript.AlertAndRedirect(this, "个人信息不完善", "../Modify.aspx");
                return;
            }

            //绑定文件类型
            EnumUtil.BindList <EnumFileType>(rdType);
            rdType.Items.RemoveAt(rdType.Items.Count - 1);//去掉最后一个其它
            //文库项目分类
            DataTable dt = new T_WenKuClass().GetList();

            //绑定目录分类
            ddlCategory.Items.Add(new ListItem("全部", "-1"));
            if (dt == null)
            {
                return;
            }
            foreach (DataRow row in dt.Rows)
            {
                ddlCategory.Items.Add(new ListItem(row["WenKuClassName"].ToString(), row["WenKuClassID"].ToString()));
            }
            ddlCategory.Items.Add(new ListItem("其它", "0"));


            //获取文库列表
            E_WenKu data = new E_WenKu();

            data.UserID               = UserID;
            data.WenKuClassID         = Requests.GetQueryInt("cid", -1);
            ddlCategory.SelectedValue = data.WenKuClassID.ToString();

            data.Keywords        = Requests.GetQueryString("keywords");
            txtName.Text         = data.Keywords;
            data.SetFileType     = Requests.GetQueryInt("filetype", 0);
            rdType.SelectedValue = ((int)data.FileType).ToString();
            data.SetStatusFlag   = (int)EnumStatusFlag.审核通过且上线;

            data.Page           = new MLMGC.DataEntity.E_Page();
            data.Page.PageIndex = pageIndex;
            data.Page.PageSize  = pageSize;

            rpList.DataSource = new T_WenKu().GetList(data);
            rpList.DataBind();

            //设置分页样式
            pageList1.PageSize              = pageSize;
            pageList1.CurrentPageIndex      = pageIndex;
            pageList1.RecordCount           = data.Page.TotalCount;
            pageList1.CustomInfoHTML        = string.Format("共有记录 <span class='red_font'>{0}</span> 条", pageList1.RecordCount);
            pageList1.TextAfterPageIndexBox = "&nbsp;页/" + pageList1.PageCount + "&nbsp;";
        }
Example #9
0
 /// <summary>
 /// 绑定类型
 /// </summary>
 protected void databind()
 {
     //--绑定状态--
     EnumUtil.BindList <EnumClientStatus>(rblStatus);
     rblStatus.SelectedIndex = 0;
 }