コード例 #1
0
    private string CheckEmployeeCode()
    {
        bool isEdit = Convert.ToBoolean(Request.Form["isEdit"]);
        int  res    = Convert.ToInt32(UserInfoManage.CheckEmployeeCode(Request.Form["code"], GetUserInfo().companyId.ToString()));

        if (isEdit && res <= 1)
        {
            return("T");
        }
        else if (!isEdit && res == 0)
        {
            return("T");
        }
        else
        {
            return("F");
        }
    }