Пример #1
0
        public void Update(int Id, int Fieldid, string Label, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formcode item = new Formcode();

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

            item.Id = Id;

            item.Fieldid = Fieldid;

            item.Label = Label;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;

            item.Save(UserName);
        }
Пример #2
0
        public void Insert(int Fieldid, string Label, bool?Deleted, DateTime?Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Formcode item = new Formcode();

            item.Fieldid = Fieldid;

            item.Label = Label;

            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(Formcode.Destroy(Id) == 1);
 }
Пример #4
0
 public bool Delete(object Id)
 {
     return(Formcode.Delete(Id) == 1);
 }