无法隐式转换,可以考虑强制转换 用 int.Parse(string)或者int.TryParse(string, out int)
你的ClassroomBuilding和 ClassroomStep这两个变量类型都是int类型的,而 buildnum和 floor是string类型的,所以不能这样直接赋值。把这两句改成:classroom.ClassroomBuilding = int.Parse(buildnum);classroom.ClassroomStep = int.Parse(floor);或者将ClassroomBuilding和 ClassroomStep这两个变量类型改成strin...
***.userid=***.text.ToString();//无法将类型int隐式转换为stringif(entity.***.length<=0){***.focus();thrownewException("UserID不能为空");}***.userid=in... ***.userid = ***.text.ToString();//无法将类型int隐式转换为string if (entity.***.length <= 0) { ***.focus();...