Esempio n. 1
0
 public override string ToString()
 {
     return($"{base.ToString()}\n" +
            $"FolderID: {mFolderID}\n" +
            $"Type: '{FieldTypeUtil.ToChar(mType)}'\n" +
            $"DefVal: '{mDefVal}\n" +
            $"Aligment: '{FieldAlignmentUtil.ToChar(mAlignment)}'\n" +
            $"Width: {mWidth}\n" +
            $"lovID: {mLOVID}\n" +
            $"Ord: {mOrd}");
 }
Esempio n. 2
0
 protected override void Init(SqlDataReader dr)
 {
     base.Init(dr);
     mFolderID  = GetIntFromDataReader(dr["folderID"]);
     mType      = FieldTypeUtil.FromChar(GetStringFromDataReader(dr["type"]));
     mWidth     = GetIntFromDataReader(dr["width"]);
     mAlignment = FieldAlignmentUtil.FromChar(GetStringFromDataReader(dr["alignment"]));
     mDefVal    = GetStringFromDataReader(dr["defVal"]);
     mLOVID     = GetIntFromDataReader(dr["lovID"]);
     mOrd       = GetIntFromDataReader(dr["ord"]);
 }
Esempio n. 3
0
        protected override SqlParameterCollection GetSaveParameters()
        {
            SqlParameterCollection result = base.GetSaveParameters();

            AddParam(result, "@folderID", SqlParamTypesEnum.Integer, mFolderID);
            AddParam(result, "@type", SqlParamTypesEnum.String, FieldTypeUtil.ToChar(mType));
            AddParam(result, "@defVal", SqlParamTypesEnum.String, mDefVal);
            AddParam(result, "@width", SqlParamTypesEnum.Integer, mWidth);
            AddParam(result, "@alignment", SqlParamTypesEnum.String, FieldAlignmentUtil.ToChar(mAlignment));
            AddParam(result, "@lovID", SqlParamTypesEnum.Integer, mLOVID);
            AddParam(result, "@ord", SqlParamTypesEnum.Integer, mOrd);
            return(result);
        }