Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            DictOperator.BindDropDownList("考试地点", this.cbKsdd);
            DictOperator.BindDropDownList("考试场次", this.cbKscc);

            DepartMentOperator.Bind(this.cbSchool, "驾校");
            DictOperator.BindDropDownList("考试科目", this.cbKm);

            this.ProcedurePager1.TableName   = "table_yuyue_info";
            this.ProcedurePager1.FieldString = @"id,c_lsh,date_ksrq,c_kscc,c_ksdd,i_km,c_idcard,
c_xm,date_pxshrq,c_hmhp,c_jbr,
decode(i_checked,0,'未审核',1,'已审核',2,'审核不过') i_checked,
c_check_result
	"    .Replace("\r\n", "").Replace("\t", "");
            this.ProcedurePager1.SortString  = " order by id desc";
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DepartMentOperator.Bind(this.cbDepCodeValue, "驾校");
            if (Request.Params["id"] != null)
            {
                SchoolCarInfo entity = SimpleOrmOperator.Query <SchoolCarInfo>(Convert.ToInt32(Request.Params["id"]));
                WebFormHelper.SetDataToForm(this, entity);
            }

            if (!string.IsNullOrEmpty(Request.Params["depId"]))
            {
                int        depId = this.Operator.DeptId;
                DepartMent dep   = SimpleOrmOperator.Query <DepartMent>(depId);
                cbDepCodeValue.SelectedValue = dep.DepCode;
                cbDepCodeValue.Enabled       = false;
            }
        }
    }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         RoleOperator.Bind(this.cbRoleIdValue);
         DepartMentOperator.Bind(this.cbDepIdValue);
         if (Request.Params["id"] != null)
         {
             UserObject dep = SimpleOrmOperator.Query <UserObject>(Convert.ToInt32(Request.Params["id"]));
             WebFormHelper.SetDataToForm(this, dep);
             string[] ips = dep.BeginIp.Split('.');
             this.txtBeginIp1.Text = ips[0].ToString();
             this.txtBeginIp2.Text = ips[1].ToString();
             this.txtBeginIp3.Text = ips[2].ToString();
             this.txtBeginIp4.Text = ips[3].ToString();
             ips = dep.EndIp.Split('.');
             this.txtEndIp1.Text = ips[0].ToString();
             this.txtEndIp2.Text = ips[1].ToString();
             this.txtEndIp3.Text = ips[2].ToString();
             this.txtEndIp4.Text = ips[3].ToString();
         }
     }
 }