Exemplo n.º 1
0
    public DataTable DgBind()
    {
        DataTable table = null;

        table = YuyueDayLimitOperator.Search();
        return(table);
    }
Exemplo n.º 2
0
 protected void DataGrid1_ItemCommand(object source, DataGridCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         int id = Convert.ToInt32(e.CommandArgument);
         YuyueDayLimitOperator.Delete(id);
         WebTools.Alert(this, "删除成功!");
         this.SimplePager1.Changed = true;
     }
     else if (e.CommandName == "Detail")
     {
         int id = Convert.ToInt32(e.CommandArgument);
         this.Pop(id);
     }
 }