Exemplo n.º 1
0
 public static string GetInsertSQL(Business.DataObjectHTMLContent item, SqlParameterCollection parameters)
 {
     SetParameters(item, parameters);
     return(@"INSERT INTO hiobj_HTMLContent 
             (OBJ_ID) 
     VALUES (@OBJ_ID)");
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (DataObject is Business.DataObjectHTMLContent)
            {
                dataObjectHTMLContent = (Business.DataObjectHTMLContent)DataObject;
            }
            else
            {
                dataObjectHTMLContent = DataAccess.Business.DataObject.Load <Business.DataObjectHTMLContent>(DataObject.ObjectID, null, false);
            }

            LnkTitle.Text        = dataObjectHTMLContent.Title;
            LnkTitle.NavigateUrl = Helper.GetDetailLink(dataObjectHTMLContent.ObjectType, dataObjectHTMLContent.ObjectID.Value.ToString());
            LitDesc.Text         = dataObjectHTMLContent.Description.StripHTMLTags().CropString(50);
            if (string.IsNullOrEmpty(LitDesc.Text))
            {
                LitDesc.Text = "-";
            }

            PhTitle.ID  = null;
            PhDesc.ID   = null;
            LitDesc.ID  = null;
            LnkTitle.ID = null;
        }
Exemplo n.º 3
0
 private static void SetParameters(Business.DataObjectHTMLContent item, SqlParameterCollection parameters)
 {
 }
Exemplo n.º 4
0
 public static string GetUpdateSQL(Business.DataObjectHTMLContent item, SqlParameterCollection parameters)
 {
     SetParameters(item, parameters);
     return(string.Empty);
 }
Exemplo n.º 5
0
 public static void FillObject(Business.DataObjectHTMLContent item, SqlDataReader sqlReader)
 {
 }