Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.ProcedurePager1.AllowBinded = true;
            this.ProcedurePager1.TableName = "table_student_apply_info_c";
            this.ProcedurePager1.FieldString = @"id,c_lsh,sfzmhm,c_xm,c_jxmc,
decode(i_checked,0,'未审核',1,'已审核',2,'审核不过') as i_checked,
c_check_result,c_check_operator,
decode(i_photo_syn,0,'未同步',1,'已同步',2,'同步失败') as i_photo_syn
	".Replace("\r\n", "").Replace("\t", "");
            this.ProcedurePager1.RowFilter = " i_checked=0 ";
            this.ProcedurePager1.SortString = " order by id desc";

            DepartMentOperator.BindNick(cbJxdm, "驾校");
            cbJxdm.Items.Add(new ListItem("全部", ""));
            cbJxdm.SelectedIndex = cbJxdm.Items.Count - 1;
            
        }

    }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         // ViewState
         DictOperator.BindDropDownList("考试地点", this.cbKsdd);
         DictOperator.BindDropDownList("考试场次", this.cbKscc);
         DepartMentOperator.BindNick(this.cbSchool, "驾校");
         this.InitTableControls();
         if (Request.Params["id"] != null)
         {
             WeekRecord entity = WeekRecordOperator.Get(Convert.ToInt32(Request.Params["id"]));
             //weekRocord = WeekRecordOperator.Get(Convert.ToInt32(Request.Params["id"]));
             this.InitWeekRecord(entity);
             string    querySql   = string.Format("where I_WEEK_NUM={0}", entity.WeekNum);
             ArrayList listLimits = SimpleOrmOperator.QueryConditionList <YuyueLimit>(querySql);
             ViewState[VIEWSTATUE_LIMITS]     = listLimits;
             ViewState[VIEWSTATUE_WEEKRECORD] = entity;
         }
     }
 }