示例#1
0
        public string Professor_urm_Sel_ProfessorID(string UserName, string PW, string PWold)
        {
            Staffdal  t  = new Staffdal();
            DataSet   ds = new DataSet();
            DataTable dt = new DataTable();

            ds = t.Professor_urm_Sel_ProfessorID(UserName, PW, PWold);
            if (ds.Tables.Count > 0)
            {
                dt = ds.Tables[0];
                if (dt.Rows.Count > 0 && dt.Rows[0]["ProfessorID"].ToString() != string.Empty)
                {
                    return(dt.Rows[0]["ProfessorID"].ToString());
                }
                else
                {
                    return("0");
                }
            }
            else
            {
                return("0");
            }
        }