Ejemplo n.º 1
0
        /// <summary>
        /// 增删改SYS_ROLES
        /// op_SYS_ROLES
        /// 参数类名:SYS_ROLESModel
        /// </summary>
        /// <returns>返回数</returns>
        public static int op_SYS_ROLES(
            CykjSoft.Bean.UserBean userBean
            , XASYU.MODEL.SYS_ROLESModel SYS_ROLES
            )
        {
            int    iRESULT = 0;
            int    iERRCD  = 0;
            string sERRMSG = String.Empty;

            try
            {
                XASYU.DBBusiness.DataBaseManager.op_SYS_ROLES(
                    userBean.YHDLM //用户登陆名
                    , ref iRESULT
                    , ref iERRCD
                    , ref sERRMSG
                    , DataOperationTypeHelper.GetOperationString(SYS_ROLES.OpType)
                    , SYS_ROLES.ID      //ID
                    , SYS_ROLES.Name    //Name
                    , SYS_ROLES.Remark  //Remark
                    );
            }
            catch (Exception ex)
            {
                iRESULT = -1;
                ex.ToString();
            }
            return(iRESULT);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 查询SYS_ROLES
 /// query_SYS_ROLES
 /// 参数类名:SYS_ROLESModel
 /// </summary>
 /// <returns>DataSet</returns>
 public static DataSet query_SYS_ROLES(
     CykjSoft.Bean.UserBean userBean
     , XASYU.MODEL.SYS_ROLESModel SYS_ROLES
     , ref int V_ITOTALCOUNT //记录数
     , int V_SSTARTINDEX     //开始索引
     , int V_SPERPAGESIZE    //页大小
     )
 {
     return(XASYU.DBBusiness.DataBaseQuery.query_SYS_ROLES(
                userBean.YHDLM        //用户登陆名
                , ref V_ITOTALCOUNT   //记录数
                , V_SSTARTINDEX       //开始索引
                , V_SPERPAGESIZE      //页大小
                , SYS_ROLES.ID        //ID
                , SYS_ROLES.Name      //Name
                , SYS_ROLES.Remark    //Remark
                , SYS_ROLES.StartDate //开始时间
                , SYS_ROLES.EndDate   //结束时间
                ));
 }