示例#1
0
        public void Update(int Id, int Formid, string Name, string Metadata, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formfield item = new Formfield();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.Formid = Formid;

            item.Name = Name;

            item.Metadata = Metadata;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;

            item.Save(UserName);
        }
示例#2
0
        public void Insert(int Formid, string Name, string Metadata, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formfield item = new Formfield();

            item.Formid = Formid;

            item.Name = Name;

            item.Metadata = Metadata;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;


            item.Save(UserName);
        }
示例#3
0
 public bool Destroy(object Id)
 {
     return(Formfield.Destroy(Id) == 1);
 }
示例#4
0
 public bool Delete(object Id)
 {
     return(Formfield.Delete(Id) == 1);
 }