Ejemplo n.º 1
0
        public Row_C_USER_PRIVILEGE getC_PrivilegebyIDemp(string id, string emp, OleExec DB)
        {
            string  strSql = $@" SELECT * FROM C_USER_PRIVILEGE a,c_user b where a.PRIVILEGE_ID='{id}' and EMP_NO='{emp}' and A.USER_ID=B.ID ";
            DataSet res    = DB.ExecSelect(strSql);

            if (res.Tables[0].Rows.Count > 0)
            {
                Row_C_USER_PRIVILEGE ret = (Row_C_USER_PRIVILEGE)NewRow();
                ret.loadData(res.Tables[0].Rows[0]);
                return(ret);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
        public Row_C_USER_PRIVILEGE getC_PrivilegebyID(string id, OleExec DB)
        {
            string  strSql = $@" SELECT * FROM C_USER_PRIVILEGE where PRIVILEGE_ID='{id}' ";
            DataSet res    = DB.ExecSelect(strSql);

            if (res.Tables[0].Rows.Count > 0)
            {
                Row_C_USER_PRIVILEGE ret = (Row_C_USER_PRIVILEGE)NewRow();
                ret.loadData(res.Tables[0].Rows[0]);
                return(ret);
            }
            else
            {
                return(null);
            }
        }