Example #1
0
        public DataTable GetDataTable(BasesModel model)
        {
            string sql = string.Format("select * from GP_Bases_login where bases_name=@bases_name and bases_password=@bases_password");

            SqlParameter[] prams = { db.MakeInParam("@bases_name",     SqlDbType.NVarChar, 50, model.bases_name),
                                     db.MakeInParam("@bases_password", SqlDbType.NVarChar, 50, model.bases_password) };
            DataTable      dt = db.RunDataTable(sql, prams);

            return(dt);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["basesModel"] == null)
     {
         Response.Write("<script>alert('尚无该成员信息!');</script>");
     }
     basesModel      = (BasesModel)Session["basesModel"];
     ltRealName.Text = basesModel.bases_real_name.ToString();
     ltDate.Text     = DateTime.Now.ToString("yyyy年MM月dd日");
 }
Example #3
0
 public DataTable GetDataTable(BasesModel model)
 {
     return(basesDAL.GetDataTable(model));
 }