Ejemplo n.º 1
0
    protected void cbDjzsxzqhP_SelectedIndexChanged(object sender, EventArgs e)
    {
        string code = cbDjzsxzqhP.SelectedValue;

        cbDjzsxzqhC.Items.Clear();
        cbDjzsxzqhValue.Items.Clear();
        DrvQueryHelper.BindDDLCity(cbDjzsxzqhC, code);
        DrvQueryHelper.BindDDLArea(cbDjzsxzqhValue, cbDjzsxzqhC.SelectedValue);
    }
Ejemplo n.º 2
0
    protected void ddlProvince_SelectedIndexChanged(object sender, EventArgs e)
    {
        string code = this.ddlProvince.SelectedValue;

        if (code.Length > 0)
        {
            DrvQueryHelper.BindDDLCity(this.ddlCity, code);
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DrvQueryHelper.BindDropDownListBustype(this.cbBustype);
            DrvQueryHelper.BindDropDownListSfzmmc(this.cbSfzmmcValue);
            DrvQueryHelper.BindDropDownListHospital(this.cbTjyy);
            ListItemCollection tjyys = new ListItemCollection();
            lbJxmc.Text = this.Operator.Desp4;
            foreach (ListItem li in this.cbTjyy.Items)
            {
                if (li.Value.StartsWith(getDefaultCityCode()))
                {
                    tjyys.Add(li);
                }
            }
            this.cbTjyy.Items.Clear();
            foreach (ListItem li in tjyys)
            {
                this.cbTjyy.Items.Add(li);
            }

            DrvQueryHelper.BindDropDownListLocalArea2(this.cbLxzsxzqhValue);
            ListItemCollection xzqhs = new ListItemCollection();
            foreach (ListItem li in this.cbLxzsxzqhValue.Items)
            {
                if (li.Value.StartsWith(getDefaultCityCode()) && li.Value != getDefaultCityCode() + "00")
                {
                    xzqhs.Add(li);
                }
            }
            this.cbXzqhValue.Items.Clear();
            this.cbLxzsxzqhValue.Items.Clear();
            foreach (ListItem li in xzqhs)
            {
                //this.cbXzqhValue.Items.Add(new ListItem(li.Text,li.Value));
                this.cbLxzsxzqhValue.Items.Add(new ListItem(li.Text, li.Value));
                this.cbXzqhValue.Items.Add(new ListItem(li.Text, li.Value));
            }
            this.cbXzqhValue.Items.Add(new ListItem("其它(外地)", "440907"));

            DrvQueryHelper.BindDropDownListLy(this.cbLyValue);
            DrvQueryHelper.BindDropDownListZkcx(this.cbZkcxValue);
            DrvQueryHelper.BindDropDownListNational(this.cbGjValue);
            DrvQueryHelper.BindDropDownListLocalArea(this.cbDjzsxzqhValue);
            //DrvQueryHelper.BindDropDownListLocalArea(this.cbLxzsxzqhValue);
            DrvQueryHelper.BindDDLProvince(this.cbLxzsxzqhP);
            DrvQueryHelper.BindDDLProvince(this.cbDjzsxzqhP);
            this.cbGjValue.SelectedValue = "156";

            if (Request.Params["id"] != null)
            {
                StudentApplyInfo entity = SimpleOrmOperator.Query <StudentApplyInfo>(Convert.ToInt32(Request.Params["id"]));
                WebFormHelper.SetDataToForm(this, entity);
                this.txtTjrq.Value = entity.Tjrq;
                this.txtCsrq.Value = entity.Csrq;
                this.cbDjzsxzqhValue.Items.Clear();
                //this.cbDjzsxzqhValue.Items.Add(new ListItem(entity.Djzsxzqh, entity.Djzsxzqh));
                //this.cbDjzsxzqhValue.Items.Clear();
                //this.cbDjzsxzqhValue.Text = entity.Djzsxzqh;
                this.imgPhoto.ImageUrl       = "ApplyInfoPhoto.aspx?idcard=" + entity.Sfzmhm;
                this.cbBustype.SelectedValue = entity.PhotoSrc;
                if (!string.IsNullOrEmpty(entity.Lxzsxzqh))
                {
                    this.cbLxzsxzqhP.SelectedValue = string.Format("{0}0000", entity.Lxzsxzqh.Substring(0, 2));
                    DrvQueryHelper.BindDDLCity(cbLxzsxzqhC, this.cbLxzsxzqhP.SelectedValue);
                    this.cbLxzsxzqhC.SelectedValue = string.Format("{0}00", entity.Lxzsxzqh.Substring(0, 4));
                    DrvQueryHelper.BindDDLArea(cbLxzsxzqhValue, this.cbLxzsxzqhC.SelectedValue);
                    this.cbLxzsxzqhValue.SelectedValue = entity.Lxzsxzqh;
                }
                if (!string.IsNullOrEmpty(entity.Djzsxzqh))
                {
                    this.cbDjzsxzqhP.SelectedValue = string.Format("{0}0000", entity.Djzsxzqh.Substring(0, 2));
                    DrvQueryHelper.BindDDLCity(cbDjzsxzqhC, this.cbDjzsxzqhP.SelectedValue);
                    this.cbDjzsxzqhC.SelectedValue = string.Format("{0}00", entity.Djzsxzqh.Substring(0, 4));
                    DrvQueryHelper.BindDDLArea(cbDjzsxzqhValue, this.cbDjzsxzqhC.SelectedValue);
                    this.cbDjzsxzqhValue.SelectedValue = entity.Djzsxzqh;
                }
            }
            else
            {
                this.imgPhoto.ImageUrl = "~/images/no_photo.jpg";
                //this.cbLxzsxzqhValue.SelectedValue = "440500";
                //this.cbXzqhValue.SelectedValue = "440500";
                //this.cbDjzsxzqhValue.SelectedValue = "440500";

                this.cbLxzsxzqhP.SelectedValue = string.Format("{0}0000", this.getDefaultCityCode().Substring(0, 2));
                DrvQueryHelper.BindDDLCity(cbLxzsxzqhC, this.cbLxzsxzqhP.SelectedValue);
                this.cbLxzsxzqhC.SelectedValue = string.Format("{0}00", this.getDefaultCityCode());
                DrvQueryHelper.BindDDLArea(cbLxzsxzqhValue, this.cbLxzsxzqhC.SelectedValue);

                this.cbDjzsxzqhP.SelectedValue = string.Format("{0}0000", this.getDefaultCityCode().Substring(0, 2));
                DrvQueryHelper.BindDDLCity(cbDjzsxzqhC, this.cbDjzsxzqhP.SelectedValue);
                this.cbDjzsxzqhC.SelectedValue = string.Format("{0}00", this.getDefaultCityCode().Substring(0, 4));
                DrvQueryHelper.BindDDLArea(cbDjzsxzqhValue, this.cbDjzsxzqhC.SelectedValue);

                this.txtYsl.Text = "5.0";
                this.txtZsl.Text = "5.0";
                this.cbZkcxValue.SelectedValue = "C1";
                this.txtLxzsyzbm.Text          = "510000";
            }

            if (Request.Params["allowcheck"] == null)
            {
                this.btnCheck.Visible      = false;
                this.btnCheckImage.Visible = false;
            }
            else
            {
                this.btnSure.Visible   = false;
                this.cbBustype.Enabled = false;
            }
        }
    }