コード例 #1
0
 protected void DataGrid1_ItemCommand1(object source, DataGridCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         int id = Convert.ToInt32(e.CommandArgument);
         SchoolCarInfoOperator.Delete(id);
         WebTools.Alert(this, "删除成功!");
         this.ProcedurePager1.Changed = true;
     }
     else if (e.CommandName == "Detail")
     {
         int id = Convert.ToInt32(e.CommandArgument);
         this.Pop(id);
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DictOperator.BindDropDownList("考试地点", this.cbKsdd);
         DictOperator.BindDropDownList("考试场次", this.cbKscc);
         SchoolCarInfoOperator.Bind(this.cbCarNo, this.Operator.Desp3);
         if (Request.Params["id"] != null)
         {
             YuyueLimit entity = YuyueLimitOperator.Get(Convert.ToInt32(Request.Params["id"]));
             //this.yuyueLimit = entity;
             this.InitYuyueLimit(entity);
         }
     }
 }
コード例 #3
0
ファイル: SimplePreasign.aspx.cs プロジェクト: radtek/fivemen
 protected void cbSchool_SelectedIndexChanged(object sender, EventArgs e)
 {
     SchoolCarInfoOperator.Bind(this.cbCarNo, this.cbSchool.SelectedItem.Value);
 }